{"version":3,"sources":["webpack://Grommet/webpack/bootstrap","webpack://Grommet/external \"React\"","webpack://Grommet/external \"styled\"","webpack://Grommet/./src/js/utils/index.js","webpack://Grommet/./src/js/default-props.js","webpack://Grommet/./src/js/components/Box/index.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://Grommet/./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://Grommet/./node_modules/recompose/dist/Recompose.esm.js","webpack://Grommet/./src/js/components/Keyboard/index.js","webpack://Grommet/./node_modules/grommet-icons/StyledIcon.js","webpack://Grommet/./src/js/components/Button/index.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://Grommet/./src/js/components/Text/index.js","webpack://Grommet/./src/js/components/Form/FormContext.js","webpack://Grommet/./src/js/components/hocs.js","webpack://Grommet/./src/js/components/TableCell/index.js","webpack://Grommet/./src/js/utils/colors.js","webpack://Grommet/./src/js/components/Table/StyledTable.js","webpack://Grommet/./node_modules/prop-types/index.js","webpack://Grommet/./src/js/utils/object.js","webpack://Grommet/./src/js/components/Heading/index.js","webpack://Grommet/./src/js/components/Anchor/index.js","webpack://Grommet/./src/js/contexts/index.js","webpack://Grommet/./src/js/components/TextInput/index.js","webpack://Grommet/./src/js/components/InfiniteScroll/index.js","webpack://Grommet/./src/js/components/DataTable/StyledDataTable.js","webpack://Grommet/./src/js/components/TableRow/index.js","webpack://Grommet/./node_modules/fbjs/lib/shallowEqual.js","webpack://Grommet/./src/js/components/Table/TableContext.js","webpack://Grommet/./src/js/components/Drop/index.js","webpack://Grommet/./node_modules/symbol-observable/es/index.js","webpack://Grommet/./src/js/utils/mixins.js","webpack://Grommet/./src/js/utils/background.js","webpack://Grommet/./src/js/components/Stack/index.js","webpack://Grommet/external \"ReactDOM\"","webpack://Grommet/./src/js/components/Table/index.js","webpack://Grommet/./src/js/components/TableBody/index.js","webpack://Grommet/./src/js/components/TableHeader/index.js","webpack://Grommet/./src/js/components/TableFooter/index.js","webpack://Grommet/./src/js/components/DataTable/Cell.js","webpack://Grommet/./src/js/components/DataTable/buildState.js","webpack://Grommet/./src/js/components/DropButton/index.js","webpack://Grommet/./node_modules/change-emitter/lib/index.js","webpack://Grommet/./node_modules/react-desc/lib/index.js","webpack://Grommet/./node_modules/react-desc/lib/PropTypes.js","webpack://Grommet/./node_modules/react-desc/lib/descToJSON.js","webpack://Grommet/./src/js/themes/base.js","webpack://Grommet/./node_modules/grommet-icons/themes/base.js","webpack://Grommet/./src/js/components/Collapsible/index.js","webpack://Grommet/./src/js/components/Chart/utils.js","webpack://Grommet/./src/js/components/CheckBox/index.js","webpack://Grommet/./src/js/components/Clock/StyledClock.js","webpack://Grommet/./src/js/components/FocusedContainer.js","webpack://Grommet/./src/js/components/DataTable/ExpanderCell.js","webpack://Grommet/./src/js/components/RadioButtonGroup/index.js","webpack://Grommet/./src/js/components/RadioButton/index.js","webpack://Grommet/./src/js/themes/index.js","webpack://Grommet/./src/js/components/Image/index.js","webpack://Grommet/./src/js/components/Layer/index.js","webpack://Grommet/./src/js/components/Layer/StyledLayer.js","webpack://Grommet/./src/js/components/Paragraph/index.js","webpack://Grommet/./src/js/components/Menu/index.js","webpack://Grommet/./src/js/components/Meter/index.js","webpack://Grommet/./src/js/components/Meter/StyledMeter.js","webpack://Grommet/./src/js/components/Meter/utils.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/construct.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js","webpack://Grommet/./node_modules/polished/dist/polished.es.js","webpack://Grommet/./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://Grommet/./node_modules/recompose/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://Grommet/./node_modules/symbol-observable/es/ponyfill.js","webpack://Grommet/./node_modules/unquote/index.js","webpack://Grommet/./src/js/index.js","webpack://Grommet/./src/js/components/index.js","webpack://Grommet/./src/js/components/Accordion/index.js","webpack://Grommet/./src/js/components/Accordion/Accordion.js","webpack://Grommet/./src/js/components/Box/Box.js","webpack://Grommet/./src/js/utils/border.js","webpack://Grommet/./src/js/utils/debounce.js","webpack://Grommet/./src/js/utils/DOM.js","webpack://Grommet/./src/js/utils/graphics.js","webpack://Grommet/./src/js/utils/prop-types.js","webpack://Grommet/./node_modules/react-desc/lib/describe.js","webpack://Grommet/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://Grommet/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://Grommet/./node_modules/react-desc/lib/descToMarkdown.js","webpack://Grommet/./node_modules/react-desc/lib/descToTypescript.js","webpack://Grommet/./src/js/utils/styles.js","webpack://Grommet/./src/js/utils/responsive.js","webpack://Grommet/./src/js/utils/router.js","webpack://Grommet/./src/js/utils/throttle.js","webpack://Grommet/./src/js/utils/themeDocUtils.js","webpack://Grommet/./node_modules/grommet-icons/icons/Actions.js","webpack://Grommet/./node_modules/grommet-icons/default-props.js","webpack://Grommet/./node_modules/grommet-icons/utils.js","webpack://Grommet/./node_modules/grommet-icons/themes/index.js","webpack://Grommet/./node_modules/grommet-icons/icons/ClosedCaption.js","webpack://Grommet/./node_modules/grommet-icons/icons/Expand.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormDown.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormNext.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormPrevious.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormUp.js","webpack://Grommet/./node_modules/grommet-icons/icons/Next.js","webpack://Grommet/./node_modules/grommet-icons/icons/Pause.js","webpack://Grommet/./node_modules/grommet-icons/icons/Play.js","webpack://Grommet/./node_modules/grommet-icons/icons/Previous.js","webpack://Grommet/./node_modules/grommet-icons/icons/Subtract.js","webpack://Grommet/./node_modules/grommet-icons/icons/Volume.js","webpack://Grommet/./node_modules/grommet-icons/icons/VolumeLow.js","webpack://Grommet/./src/js/components/Keyboard/Keyboard.js","webpack://Grommet/./src/js/components/Box/StyledBox.js","webpack://Grommet/./src/js/components/AccordionPanel/index.js","webpack://Grommet/./src/js/components/AccordionPanel/AccordionPanel.js","webpack://Grommet/./src/js/components/Button/Button.js","webpack://Grommet/./src/js/components/Button/StyledButton.js","webpack://Grommet/./src/js/components/Collapsible/Collapsible.js","webpack://Grommet/(webpack)/buildin/global.js","webpack://Grommet/(webpack)/buildin/harmony-module.js","webpack://Grommet/./src/js/components/Heading/Heading.js","webpack://Grommet/./src/js/components/Heading/StyledHeading.js","webpack://Grommet/./src/js/components/Anchor/Anchor.js","webpack://Grommet/./src/js/components/Anchor/StyledAnchor.js","webpack://Grommet/./src/js/components/Avatar/index.js","webpack://Grommet/./src/js/components/Avatar/Avatar.js","webpack://Grommet/./src/js/components/Avatar/StyledAvatar.js","webpack://Grommet/./src/js/components/Text/Text.js","webpack://Grommet/./src/js/components/Text/StyledText.js","webpack://Grommet/./src/js/components/Calendar/index.js","webpack://Grommet/./src/js/components/Calendar/Calendar.js","webpack://Grommet/./src/js/components/Calendar/StyledCalendar.js","webpack://Grommet/./src/js/components/Calendar/utils.js","webpack://Grommet/./src/js/components/Carousel/index.js","webpack://Grommet/./src/js/components/Carousel/Carousel.js","webpack://Grommet/./src/js/contexts/AnnounceContext/index.js","webpack://Grommet/./src/js/contexts/AnnounceContext/AnnounceContext.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/index.js","webpack://Grommet/./src/js/contexts/ResponsiveContext/ResponsiveContext.js","webpack://Grommet/./src/js/contexts/ThemeContext/index.js","webpack://Grommet/./src/js/contexts/ThemeContext/ThemeContext.js","webpack://Grommet/./src/js/components/Stack/Stack.js","webpack://Grommet/./src/js/components/Stack/StyledStack.js","webpack://Grommet/./src/js/components/Chart/index.js","webpack://Grommet/./src/js/components/Chart/Chart.js","webpack://Grommet/./src/js/components/Chart/StyledChart.js","webpack://Grommet/./src/js/components/Chart/calcs.js","webpack://Grommet/./src/js/components/CheckBox/CheckBox.js","webpack://Grommet/./src/js/components/CheckBox/StyledCheckBox.js","webpack://Grommet/./src/js/components/Clock/index.js","webpack://Grommet/./src/js/components/Clock/Clock.js","webpack://Grommet/./src/js/components/Clock/Analog.js","webpack://Grommet/./src/js/components/Clock/Digital.js","webpack://Grommet/./src/js/components/DataTable/index.js","webpack://Grommet/./src/js/components/DataTable/DataTable.js","webpack://Grommet/./src/js/components/DataTable/Header.js","webpack://Grommet/./src/js/components/TableCell/TableCell.js","webpack://Grommet/./src/js/components/DataTable/Resizer.js","webpack://Grommet/./src/js/components/DataTable/Searcher.js","webpack://Grommet/./node_modules/grommet-icons/icons/FormSearch.js","webpack://Grommet/./src/js/components/TextInput/TextInput.js","webpack://Grommet/./src/js/components/Drop/Drop.js","webpack://Grommet/./src/js/components/Drop/DropContainer.js","webpack://Grommet/./src/js/components/Drop/PortalContext.js","webpack://Grommet/./src/js/components/Drop/StyledDrop.js","webpack://Grommet/./src/js/components/InfiniteScroll/InfiniteScroll.js","webpack://Grommet/./src/js/components/TextInput/StyledTextInput.js","webpack://Grommet/./src/js/components/TableRow/TableRow.js","webpack://Grommet/./src/js/components/Table/Table.js","webpack://Grommet/./src/js/components/TableBody/TableBody.js","webpack://Grommet/./node_modules/recompose/getDisplayName.js","webpack://Grommet/./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","webpack://Grommet/./node_modules/react-is/index.js","webpack://Grommet/./node_modules/react-is/cjs/react-is.production.min.js","webpack://Grommet/./src/js/components/TableHeader/TableHeader.js","webpack://Grommet/./src/js/components/TableFooter/TableFooter.js","webpack://Grommet/./src/js/components/DataTable/Footer.js","webpack://Grommet/./src/js/components/DataTable/Body.js","webpack://Grommet/./src/js/components/DataTable/GroupedBody.js","webpack://Grommet/./src/js/components/Diagram/index.js","webpack://Grommet/./src/js/components/Diagram/Diagram.js","webpack://Grommet/./src/js/components/Diagram/StyledDiagram.js","webpack://Grommet/./src/js/components/Distribution/index.js","webpack://Grommet/./src/js/components/Distribution/Distribution.js","webpack://Grommet/./src/js/components/DropButton/DropButton.js","webpack://Grommet/./src/js/components/Footer/index.js","webpack://Grommet/./src/js/components/Footer/Footer.js","webpack://Grommet/./src/js/components/Form/index.js","webpack://Grommet/./src/js/components/Form/Form.js","webpack://Grommet/./src/js/components/FormField/index.js","webpack://Grommet/./src/js/components/FormField/FormField.js","webpack://Grommet/./src/js/components/RadioButtonGroup/RadioButtonGroup.js","webpack://Grommet/./src/js/components/RadioButton/RadioButton.js","webpack://Grommet/./src/js/components/RadioButton/StyledRadioButton.js","webpack://Grommet/./src/js/components/Grid/index.js","webpack://Grommet/./src/js/components/Grid/Grid.js","webpack://Grommet/./src/js/components/Grid/StyledGrid.js","webpack://Grommet/./src/js/components/Grommet/index.js","webpack://Grommet/./src/js/components/Grommet/Grommet.js","webpack://Grommet/./src/js/themes/grommet.js","webpack://Grommet/./src/js/themes/dark.js","webpack://Grommet/./src/js/components/Grommet/StyledGrommet.js","webpack://Grommet/./src/js/components/Header/index.js","webpack://Grommet/./src/js/components/Header/Header.js","webpack://Grommet/./src/js/components/Image/Image.js","webpack://Grommet/./src/js/components/Image/StyledImage.js","webpack://Grommet/./src/js/components/Layer/Layer.js","webpack://Grommet/./src/js/components/Layer/LayerContainer.js","webpack://Grommet/./src/js/components/List/index.js","webpack://Grommet/./src/js/components/List/List.js","webpack://Grommet/./src/js/components/Main/index.js","webpack://Grommet/./src/js/components/Main/Main.js","webpack://Grommet/./src/js/components/Markdown/index.js","webpack://Grommet/./src/js/components/Markdown/Markdown.js","webpack://Grommet/./node_modules/markdown-to-jsx/dist/esm.js","webpack://Grommet/./src/js/components/Paragraph/Paragraph.js","webpack://Grommet/./src/js/components/Paragraph/StyledParagraph.js","webpack://Grommet/./src/js/components/MaskedInput/index.js","webpack://Grommet/./src/js/components/MaskedInput/MaskedInput.js","webpack://Grommet/./src/js/components/MaskedInput/StyledMaskedInput.js","webpack://Grommet/./src/js/components/Menu/Menu.js","webpack://Grommet/./src/js/components/Meter/Meter.js","webpack://Grommet/./src/js/components/Meter/Bar.js","webpack://Grommet/./src/js/components/Meter/Circle.js","webpack://Grommet/./src/js/components/Nav/index.js","webpack://Grommet/./src/js/components/Nav/Nav.js","webpack://Grommet/./src/js/components/RangeInput/index.js","webpack://Grommet/./src/js/components/RangeInput/RangeInput.js","webpack://Grommet/./src/js/components/RangeInput/StyledRangeInput.js","webpack://Grommet/./src/js/components/RangeSelector/index.js","webpack://Grommet/./src/js/components/RangeSelector/RangeSelector.js","webpack://Grommet/./src/js/components/RangeSelector/EdgeControl.js","webpack://Grommet/./src/js/components/RoutedAnchor/index.js","webpack://Grommet/./src/js/components/RoutedAnchor/RoutedAnchor.js","webpack://Grommet/./src/js/components/RoutedButton/index.js","webpack://Grommet/./src/js/components/RoutedButton/RoutedButton.js","webpack://Grommet/./src/js/components/Select/index.js","webpack://Grommet/./src/js/components/Select/Select.js","webpack://Grommet/./src/js/components/Select/SelectContainer.js","webpack://Grommet/./src/js/components/Select/SelectOption.js","webpack://Grommet/./src/js/components/Select/StyledSelect.js","webpack://Grommet/./src/js/components/SkipLink/index.js","webpack://Grommet/./src/js/components/SkipLink/SkipLink.js","webpack://Grommet/./src/js/components/SkipLinks/index.js","webpack://Grommet/./src/js/components/SkipLinks/SkipLinks.js","webpack://Grommet/./src/js/components/SkipLinkTarget/index.js","webpack://Grommet/./src/js/components/SkipLinkTarget/SkipLinkTarget.js","webpack://Grommet/./src/js/components/Tab/index.js","webpack://Grommet/./src/js/components/Tab/Tab.js","webpack://Grommet/./src/js/components/Tab/StyledTab.js","webpack://Grommet/./src/js/components/Tabs/index.js","webpack://Grommet/./src/js/components/Tabs/Tabs.js","webpack://Grommet/./src/js/components/Tabs/StyledTabs.js","webpack://Grommet/./src/js/components/TextArea/index.js","webpack://Grommet/./src/js/components/TextArea/TextArea.js","webpack://Grommet/./src/js/components/TextArea/StyledTextArea.js","webpack://Grommet/./src/js/components/Video/index.js","webpack://Grommet/./src/js/components/Video/Video.js","webpack://Grommet/./src/js/components/Video/StyledVideo.js","webpack://Grommet/./src/js/components/WorldMap/index.js","webpack://Grommet/./src/js/components/WorldMap/WorldMap.js","webpack://Grommet/./src/js/components/WorldMap/StyledWorldMap.js","webpack://Grommet/./node_modules/grommet-styles/es6/utils/colors.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/color.js","webpack://Grommet/./node_modules/grommet-styles/es6/styles/size.js","webpack://Grommet/./node_modules/grommet-styles/es6/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","React","styled","defaultProps","theme","base","deepMerge","_extends","assign","target","arguments","length","source","apply","this","componentWillMount","state","constructor","getDerivedStateFromProps","props","setState","componentWillReceiveProps","nextProps","prevState","componentWillUpdate","nextState","prevProps","__reactInternalSnapshotFlag","__reactInternalSnapshot","getSnapshotBeforeUpdate","polyfill","Component","isReactComponent","Error","foundWillMountName","foundWillReceivePropsName","foundWillUpdateName","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate","componentName","displayName","newApiName","componentDidUpdate","maybeSnapshot","snapshot","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","__suppressDeprecationWarning","setStatic","BaseComponent","setDisplayName","getDisplayName","Component$$1","wrapDisplayName","hocName","propsMapper","factory","input","pick","obj","result","shouldMapOrKeys","shouldMap","WithPropsOnChange","_Component","_this","_len","args","Array","_key","concat","computedProps","render","mapValues","func","handlers","WithHandlers","_args","createHandler","handler","DefaultProps","ownerProps","rest","oldName","newName","_extends2","nameMap","_","reduce","val","propName","stateName","stateUpdaterName","initialState","WithState","stateValue","updateStateValue","updateFn","callback","_ref","stateUpdaters","WithStateHandlers","mayBeEvent","_len2","_key2","persist","noop","dispatchName","reducer","WithReducer","initializeStateValue","dispatch","action","_proto","undefined","type","identity","test","left","right","leftFactory","rightFactory","Nothing","renderNothing","ShouldUpdate","shouldComponentUpdate","hoc","propKeys","onlyUpdateForPropTypes","propTypes","childContextTypes","getChildContext","WithContext","contextTypes","GetContext","context","spec","Lifecycle","forEach","hook","isClassComponent","Boolean","baseComponent","_class","_temp","ToClass","createElement","toRenderProps","children","RenderPropsComponent","renderPropName","baseFactory","createFactory","renderPropsFactory","_renderPropsFactory","setPropTypes","compose","funcs","a","b","arg","Sink","Components","factories","map","Nest","reduceRight","child","higherOrderComponent","blacklist","NewComponent","_config","fromESObservable","toESObservable","configureObservable","config","observable","stream","config$$1","propsToVdom","ComponentFromStream","_config$fromESObserva","vdom","propsEmitter","props$","subscribe","observer","unsubscribe","listen","next","complete","vdom$","_this2","subscription","emit","componentWillUnmount","componentFromStream","identity$1","componentFromStream$$1","transform","childProps","mapPropsStream","emitter","createEventHandler","StyledIcon","_react","_styledComponents","newObj","desc","getOwnPropertyDescriptor","set","_interopRequireWildcard","_grommetStyles","_defaultProps","colorCss","css","colorStyle","color","global","colors","icon","IconInner","a11yTitle","size","withConfig","componentId","_ref2","_ref2$size","_ref3","_ref4","extend","setPrototypeOf","_inheritsLoose","subClass","superClass","__proto__","FormContext","createContext","useFormContext","valueProp","useState","setValue","nextValue","focusWithMouse","WrappedComponent","FocusableComponent","wrappedRef","window","addEventListener","handleActiveMouse","wrapperNode","current","setFocus","removeEventListener","clearTimeout","focusTimer","mouseTimer","mouseActive","setTimeout","focus","createRef","withFocusRef","nextWrappedRef","onFocus","onBlur","ref","event","resetFocus","ForwardRef","forwardRef","ForwardRefComponent","AnnounceContext","Consumer","announce","normalizeColor","dark","colorSpec","light","hexExp","rgbExp","rgbaExp","hslExp","getRGBArray","match","v","parseInt","parseHexToRGB","red","green","blue","alpha","splice","parseFloat","h","g","hue2rgb","q","inT","Math","round","hslToRGB","opacity","canExtractRGBArray","SIZE_MAP","sizeStyle","StyledTableCell","td","verticalAlign","align","background","backgroundStyle","border","borderStyle","responsive","pad","edgeStyle","box","responsiveBreakpoint","tableContextTheme","StyledTableDataCaption","caption","edgeSize","xxsmall","StyledTableRow","tr","StyledTableBody","tbody","StyledTableHeader","thead","StyledTableFooter","tfoot","StyledTable","table","genericStyles","isObject","item","isArray","freeze","sources","output","StyledDataTable","Table","hoverStyle","row","hover","StyledDataTableRow","TableRow","onClick","onClickRow","active","StyledDataTableBody","TableBody","focusStyle","StyledDataTableHeader","TableHeader","StyledDataTableFooter","TableFooter","is","x","y","objA","objB","keysA","keysB","TableContext","root","self","parseMetricToNum","fontAsString","lineHeight","font","ceil","breakpoint","content","findAllByType","component","matches","push","availableAt","url","badge","label","toLowerCase","normalizeBackground","evalStyle","backgroundArg","backgroundColor","colorIsDark","textColorArg","textColor","text","styles","image","repeat","position","getRGBA","medium","lastIndexOf","backgroundDark","activeStyle","selectedStyle","selected","hoverIndicator","ReactDOM","normalizeProp","rowProp","prop","Cell","column","datum","index","primaryProperty","scope","datumValue","textProps","dataTable","primary","Text","TableCell","CellWrapper","withTheme","parts","split","slice","join","columns","primaryKey","search","data","filters","onSearch","sort","regexps","filter","RegExp","replace","some","direction","before","after","d1","d2","sumReducer","accumulated","reducers","max","min","sum","aggregateColumn","aggregate","aggregateValues","footer","groupBy","groupMap","groupByProperty","groupValue","group","groups","expanded","expand","createChangeEmitter","currentListeners","nextListeners","ensureCanMutateNextListeners","listener","isSubscribed","listeners","_PropTypes2","_interopRequireDefault","_describe2","default","PropTypes","describe","addPropTypeDocumentationField","fieldName","reactDesc","documentedPropType","defaultValue","description","deprecated","format","custom","definePropType","propTypeObj","required","configurable","createPropType","definePropTypeWithArgs","createPropTypeWithArgs","documentation","propType","propTypeAsJson","properties","arrayFormat","array","prefix","propTypeFormat","shapeFormat","shape","valueFormat","accentColors","statusColors","critical","error","warning","ok","unknown","disabled","focusColor","rgba","black","brand","control","placeholder","white","colorArray","generate","baseSpacing","scale","baseFontSize","fontScale","fontSizing","factor","height","maxWidth","iconBase","animation","duration","jiggle","borderSize","xsmall","small","large","xlarge","breakpoints","none","hair","full","deviceBreakpoints","phone","tablet","computer","width","radius","debounceDelay","drop","shadowSize","zIndex","elevation","padding","weight","strong","weak","spacing","xxlarge","accordion","side","heading","level","icons","collapse","FormUp","FormDown","anchor","textDecoration","fontWeight","avatar","button","vertical","horizontal","borderWidth","transition","timing","calendar","fontSize","daySize","slideDuration","previous","Previous","Next","FormPrevious","FormNext","carousel","Subtract","chart","checkBox","check","thickness","toggle","knob","clock","analog","hour","minute","second","huge","digital","collapsible","minSpeed","baseline","groupHeader","groupEnd","header","ascending","contract","descending","resize","diagram","line","formField","margin","help","start","info","bottom","grommet","1","2","3","4","5","6","layer","container","overlay","list","maskedInput","menu","down","meter","paragraph","radioButton","gap","rangeInput","track","thumb","rangeSelector","invert","select","options","step","tab","tabs","panel","body","textArea","textInput","video","captions","closedCaption","ClosedCaption","configure","Actions","fullScreen","Expand","pause","Pause","play","Play","reduceVolume","VolumeLow","volume","Volume","scrubber","worldMap","continent","place","deepFreeze","values","bounds","valuesX","valuesY","every","boundsX","boundsY","StyledHour","StyledMinute","StyledSecond","StyledAnalog","svg","StyledDigitalDigit","div","previousUp","keyframes","previousDown","StyledDigitalPrevious","nextUp","nextDown","StyledDigitalNext","isNotAncestorOf","parent","contains","hidden","restrictScroll","bodyOverflowStyle","setBodyOverflowStyle","useRef","useEffect","timer","getBodyChildElements","makeNodeUnfocusable","document","style","overflow","makeNodeFocusable","aria-hidden","ExpanderCell","onToggle","ExpandIcon","normalizedThemeProps","Box","Button","fill","plain","ExpanderCellWrapper","hiddenPositionStyle","StyledLayer","baseStyle","targetBounds","top","breakpointStyle","StyledOverlay","getMargin","axis","marginValue","marginApplied","getBounds","end","KEYFRAMES","center","true","false","getAnimationStyle","animate","animationDuration","POSITIONS","desktopContainerStyle","modal","responsiveContainerStyle","StyledContainer","roundStyle","StyledMeter","stroke","strokeOpacity","neutralExp","valuesLength","colorIndex","neutralColors","k","_getPrototypeOf","getPrototypeOf","_setPrototypeOf","isNativeReflectConstruct","Reflect","construct","sham","Proxy","Date","toString","e","Parent","Class","instance","Function","_cache","Map","fn","TypeError","has","Wrapper","writable","_taggedTemplateLiteralLoose","strings","raw","last","defaultMathSymbols","symbols","postfix","symbol","f","factorial","NaN","Infinity","notation","precedence","rightToLeft","argCount","regSymbol","infix","pow","of","sqrt","_Error","PolishedError","code","ReferenceError","_assertThisInitialized","unitRegExp","exec","operators","op","pop","calculate","expression","additionalSymbols","symbolMap","mergeSymbolMaps","pattern","lastIndex","afterValue","token","bad","notNumber","notNewValue","notAfterValue","curr","prev","reverseString","str","reverse","math","formula","reversedFormula","formulaMatch","unit","capitalizeString","string","charAt","toUpperCase","positionMap","generateProperty","splitProperty","acc","joinedProperty","generateStyles","valuesWithDefaults","directionalProperty","firstValue","_values$","secondValue","_values$2","thirdValue","_values$3","fourthValue","endsWith","suffix","substr","cssRegex","stripUnit","unitReturn","matchedValue","pxtoFactory","to","pxval","newPxval","newBase","em","cssRegex$1","getValueAndUnit","console","warn","ratioNames","minorSecond","majorSecond","minorThird","majorThird","perfectFourth","augFourth","perfectFifth","minorSixth","goldenSection","majorSixth","minorSeventh","majorSeventh","octave","majorTenth","majorEleventh","majorTwelfth","doubleOctave","modularScale","steps","ratio","realBase","realRatio","rem","between","fromSize","toSize","minScreen","maxScreen","_stripUnit","unitlessFromSize","fromSizeUnit","_stripUnit2","unitlessToSize","toSizeUnit","_stripUnit3","unitlessMinScreen","minScreenUnit","_stripUnit4","unitlessMaxScreen","maxScreenUnit","slope","toFixed","clearFix","clear","display","cover","offset","ellipsis","textOverflow","whiteSpace","wordWrap","fluidRange","cssProp","mediaQueries","fallbacks","_iterator","_isArray","_i","iterator","_extends3","done","dataURIRegex","formatHintMap","woff","woff2","ttf","otf","eot","svgz","generateFormatHint","formatHint","generateFileReferences","fontFilePath","fileFormats","isDataURI","generateSources","localFonts","fontReferences","generateLocalReferences","fontFace","fontFamily","fontStretch","fontStyle","fontVariant","_ref$fileFormats","_ref$formatHint","unicodeRange","fontDisplay","fontVariationSettings","fontFeatureSettings","fontFaceDeclaration","src","JSON","parse","stringify","hideText","textIndent","hideVisually","clip","hiDPI","constructGradientValue","literals","template","substitutions","definedValues","substitute","trim","_templateObject","linearGradient","colorStops","fallback","_ref$toDirection","toDirection","backgroundImage","normalize","html","textSizeAdjust","h1","hr","boxSizing","pre","borderBottom","sub","sup","img","textTransform","WebkitAppearance","outline","fieldset","legend","progress","textarea","outlineOffset","details","summary","_templateObject$1","radialGradient","_ref$extent","extent","_ref$position","_ref$shape","retinaImage","filename","backgroundSize","extension","retinaFilename","retinaSuffix","ext","rFilename","functionsMap","easeInBack","easeInCirc","easeInCubic","easeInExpo","easeInQuad","easeInQuart","easeInQuint","easeInSine","easeOutBack","easeOutCubic","easeOutCirc","easeOutExpo","easeOutQuad","easeOutQuart","easeOutQuint","easeOutSine","easeInOutBack","easeInOutCirc","easeInOutCubic","easeInOutExpo","easeInOutQuad","easeInOutQuart","easeInOutQuint","easeInOutSine","timingFunctions","timingFunction","getBorderWidth","pointingDirection","fullWidth","halfWidth","fullHeight","halfHeight","getBorderColor","foregroundColor","triangle","_ref$backgroundColor","widthAndUnit","heightAndUnit","isNaN","borderColor","wrap","overflowWrap","wordBreak","colorToInt","convertToInt","hslToRgb","hue","saturation","lightness","convert","huePrime","chroma","abs","secondComponent","lightnessModification","namedColorMap","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellow","yellowgreen","hexRegex","hexRgbaRegex","reducedHexRegex","reducedRgbaHexRegex","rgbRegex","rgbaRegex","hslRegex","hslaRegex","parseToRgb","normalizedColor","normalizedColorName","nameToHex","_alpha","rgbMatched","rgbaMatched","hslMatched","rgbColorString","hslRgbMatched","hslaMatched","_rgbColorString","_hslRgbMatched","parseToHsl","delta","rgbToHsl","reduceHexValue","numberToHex","hex","colorToHex","convertToHex","hslToHex","hsl","hsla","rgb","rgbValue","toColorString","isRgba","isRgb","isHsla","isHsl","curry","curried","combined","adjustHue","degree","hslColor","curriedAdjustHue","complement","guard","lowerBoundary","upperBoundary","darken","amount","curriedDarken","desaturate","curriedDesaturate","getLuminance","rgbColor","_Object$keys$map","channel","getContrast","color1","color2","luminance1","luminance2","grayscale","hslToColorString","lighten","curriedLighten","meetsContrastGuidelines","contrastRatio","AA","AALarge","AAA","AAALarge","mix","otherColor","parsedColor1","parsedColor2","alphaDelta","weight1","weight2","floor","curriedMix","opacify","parsedColor","curriedOpacify","readableColor","lightReturnColor","darkReturnColor","rgbToColorString","saturate","curriedSaturate","setHue","curriedSetHue","setLightness","curriedSetLightness","setSaturation","curriedSetSaturation","shade","percentage","curriedShade","tint","curriedTint","transparentize","curriedTransparentize","multiMode","backgroundImages","backgrounds","sideMap","sideKeyword","unshift","borderRadius","uppercaseSide","generateSelectors","statefulSelectors","states","stateMap","selectors","buttons","positionMap$1","stateMap$1","template$1","textInputs","transitions","transitionsString","REACT_STATICS","getDefaultProps","mixins","KNOWN_STATICS","caller","callee","arity","getOwnPropertyNames","getOwnPropertySymbols","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","inheritedComponent","descriptor","symbolObservablePonyfill","reg","AccordionWrapper","activeIndex","multiple","onActive","activeIndexes","setActiveIndexes","stateActiveIndex","setStateActiveIndex","derivedActiveIndexes","role","Children","toArray","cloneElement","onPanelChange","nextActiveIndexes","nextActiveIndex","tag","as","tabIndex","useContext","ThemeContext","focusable","useMemo","clickProps","adjustedTabIndex","firstIndex","contents","StyledBoxGap","directionProp","darkChanged","backgroundIsDark","Provider","StyledBox","aria-label","elevationProp","fillProp","overflowProp","wrapProp","widthProp","heightProp","Keyboard","onEnter","BoxWrapper","responsiveValue","cb","timeout","element","parentNode","getBoundingClientRect","rect","scrollWidth","scrollHeight","tagName","getElementsByTagName","excludeMatch","node","appendChild","scrollX","scrollY","scrollTo","hasAttribute","setAttribute","elements","prior","getAttribute","removeAttribute","autoFocusingTags","findVisibleParent","offsetParent","parentElement","polarToCartesian","centerX","centerY","angleInDegrees","angleInRadians","PI","cos","sin","startAngle","endAngle","normalizedEndAngle","arcSweep","anglePer","a11yTitlePropType","backgroundDoc","oneOfType","bool","number","oneOf","colorPropType","MARGIN_SIZES","marginProp","PAD_SIZES","padPropType","genericProps","alignSelf","gridArea","hoverIndicatorPropType","ComponentInstance","DocumentedComponent","addDocumentationProp","usage","intrinsicElement","toJSON","_descToJSON2","toTypescript","_descToTypescript2","toMarkdown","_descToMarkdown2","propTypesValue","convertPropType","isRequired","_propTypes2","convertArray","convertShape","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","location","propFullName","secret","err","getShim","ReactPropTypes","any","arrayOf","elementType","instanceOf","objectOf","exact","checkPropTypes","_typeof","availableAtStr","currentAvailable","parseAvailableAt","getAvailableAt","getUsage","_ref5","_ref5$properties","_ref6","getDefaultValue","_ref7","getIntrinsicElement","_descToJSON","propTypeAsTypescript","joinWith","family","baseBackground","controlBorderStyle","kind","inputStyle","focusIndicator","placeholderColor","placeholderStyle","ALIGN_SELF_MAP","stretch","componentStyle","windowWidth","first","ROUTER_PROPS","path","method","threshhold","deferTimer","now","disabledStyle","iconColor","_StyledIcon","viewBox","strokeWidth","extendDefaultTheme","_utils","_themes","_default","_base","points","KEYS","8","9","13","27","32","37","38","39","40","188","16","KeyboardWrapper","onKeyDown","restProps","onKeyDownHandler","useCallback","keyCode","which","callbackName","only","ALIGN_MAP","alignStyle","ALIGN_CONTENT_MAP","around","alignContentStyle","alignContent","BASIS_MAP","auto","basisStyle","basis","elevationStyle","FLEX_MAP","grow","shrink","flexStyle","flex","JUSTIFY_MAP","evenly","justifyStyle","justify","WRAP_MAP","wrapStyle","ROUND_MAP","SLIDE_SIZES","PULSE_SIZES","JIGGLE_SIZES","ZOOM_SIZES","animationBounds","deg","normalizeTiming","time","defaultTiming","animationObjectStyle","animationTransition","delay","animationObjectInitialStyle","animationAncilaries","animationStyle","animationItemStyle","interactiveStyle","getHoverIndicatorStyle","getSize","heightObjectStyle","heightStyle","widthObjectStyle","widthStyle","directionStyle","fillStyle","responsiveSize","corner","overflowStyle","hasBetweenBorder","adjustedBorder","borderHeight","gapStyle","AccordionPanel","onMouseOut","onMouseOver","setHover","AccordionIcon","aria-selected","aria-expanded","Heading","Collapsible","open","AccordionPanelWrapper","href","buttonIcon","domTag","StyledButton","colorValue","hasIcon","hasLabel","fillContainer","count","sizeProp","ButtonWrapper","radiusStyle","isIconOnly","basicStyle","padStyle","getHoverColor","plainStyle","primaryStyle","animatedBoxProperty","AnimatedBox","collapsibleDirection","dimension","dimensionSize","shouldAnimate","animationTimeout","speed","requestAnimationFrame","CollapsibleWrapper","originalModule","webpackPolyfill","StyledHeading","colorProp","HeadingWrapper","TEXT_ALIGN_MAP","textAlignStyle","textAlign","headingTheme","levelStyle","responsiveData","truncate","Anchor","coloredIcon","StyledAnchor","AnchorWrapper","avatarSize","avatarProps","StyledAvatar","StyledAvatarText","StyledText","TextWrapper","weightStyle","wordBreakStyle","span","headingPadMap","normalizeReference","reference","date","dates","normalizedReference","setHours","buildDisplayBounds","firstDayOfWeek","setDate","getDay","subtractDays","addDays","Calendar","validBounds","dateProp","datesProp","daysOfWeek","locale","onReference","onSelect","range","referenceProp","showAdjacentDays","setDates","setReference","displayBounds","setDisplayBounds","targetDisplayBounds","setTargetDisplayBounds","slide","setSlide","nextDisplayBounds","getTime","weeks","daysApart","days","firstDayInMonth","PreviousIcon","NextIcon","previousMonth","endOfMonth","subtractMonths","startOfMonth","nextMonth","addMonths","setActive","lastSelectedDate","setLastSelectedDate","changeReference","nextReference","betweenDates","toISOString","selectDate","selectedDate","nextDates","nextDate","priorDates","previousDate","selDate","priorDate","day","StyledWeek","otherMonth","getMonth","StyledDayContainer","StyledDay","dateString","inRange","selectedState","withinDates","dayDisabled","toDateString","isSelected","getDate","StyledCalendar","onPreviousMonth","onNextMonth","previousInBound","nextInBound","toLocaleDateString","month","year","weekday","renderDaysOfWeek","onUp","preventDefault","stopPropagation","onDown","onLeft","onRight","StyledWeeksContainer","StyledWeeks","CalendarWrapper","translateYFrom","translateYTo","slideTransition","slideStyle","daySizeStyle","hourDelta","getHours","months","years","setFullYear","getFullYear","targetMonth","setMonth","sameDay","date1","date2","sameDayOrAfter","sameDayOrBefore","from","Carousel","initialChild","controls","timerRef","indexes","setIndexes","priorActiveIndex","setInterval","clearInterval","showArrows","showSelectors","CurrentIcon","wrappedChildren","nextIconDisabled","previousIconDisabled","Stack","guidingChild","CarouselWrapper","message","announcer","querySelector","insertBefore","firstChild","createAnnouncer","innerHTML","ResponsiveContext","Extend","StackWrapper","interactiveChild","toChildIndex","guidingIndex","interactiveIndex","styledChildren","childIndex","interactive","isGuidingIndex","guiding","StyledStackLayer","buildStyledChildren","StyledStack","stack","styleMap","defaultSize","defaultValues","Chart","propsBounds","dash","id","onHover","propsSize","propsValues","setValues","setBounds","containerSize","setContainerSize","setSize","setScale","setStrokeWidth","containerRef","nextValues","normalizeValues","nextBounds","normalizeBounds","nextStrokeWidth","gapWidth","autoWidth","sizeWidth","sizeHeight","nextScale","containerNode","onResize","strokeDasharray","useGradient","hoverProps","valueArg","valueOnHover","valueRest","onMouseLeave","renderArea","cx","cy","colorName","viewBounds","defs","gradientRect","drawing","strokeLinecap","strokeLinejoin","gradientId","maskId","x1","y1","x2","y2","c1","c2","gradientColor","stopColor","mask","StyledChart","preserveAspectRatio","ChartWrapper","coarseness","calcValues","interval","Number","toPrecision","dimensions","yAxis","yStepInterval","xAxis","xStepInterval","stopLabelClick","CheckBox","checkedProp","checked","focusProp","onChange","indeterminate","setChecked","themeableProps","CheckedIcon","IndeterminateIcon","visual","StyledCheckBoxToggle","StyledCheckBoxKnob","StyledCheckBoxBox","StyledCheckBoxIcon","checkBoxNode","StyledCheckBox","StyledCheckBoxInput","removeUndefined","normalizedLabel","StyledCheckBoxContainer","htmlFor","CheckBoxWrapper","TIME_REGEXP","DURATION_REGEXP","Clock","hourLimit","nextElements","hours","hours12","minutes","seconds","getMinutes","getSeconds","parseTime","componentDidMount","run","precision","increment","e2","Analog","Digital","ClockWrapper","hourAngle","minuteAngle","secondAngle","secondHand","minuteHand","secondSize","minuteSize","hourSize","getClockDimensions","halfSize","transformOrigin","version","AnalogWrapper","Digit","Element","sep","tens","ones","contexts","DataTableWrapper","onMore","onSortProp","onSort","resizeable","rowProps","sortProp","sortable","normalizePrimaryProperty","showFooter","filtering","setFiltering","initializeFilters","setFilters","setSort","adjustedData","filterAndSortData","footerValues","buildFooterValues","buildGroups","buildGroupState","groupState","setGroupState","widths","setWidths","nextWidths","Header","onFiltering","onFilter","nextFilters","nextSort","nextGroupState","onExpand","expandedKeys","GroupedBody","Body","Footer","Icon","resizer","Resizer","searcher","Searcher","HeaderWrapper","verticalAlignToJustify","middle","colSpan","tableContext","mergedProps","cellProps","TableCellWrapper","ResizerBox","setStart","setWidth","onMouseDown","nodeName","clientX","onMouseMove","nextWidth","onMouseUp","remove","ResizerWrapper","inputRef","needsFocus","onEsc","TextInput","FormSearch","SearcherWrapper","renderLabel","suggestion","stringLabel","ContainerBox","dropHeight","dropAlign","dropTarget","dropProps","messages","enterSelect","suggestionsCount","suggestionsExist","suggestionIsOpen","onSuggestionsClose","onSuggestionsOpen","readOnly","suggestions","formContext","dropRef","suggestionsRef","suggestionRefs","showDrop","setShowDrop","activeSuggestionIndex","setActiveSuggestionIndex","selectedSuggestionIndex","setSelectedSuggestionIndex","suggestionValues","buttonNode","optionsNode","isNodeAfterScroll","offsetTop","isNodeBeforeScroll","openDrop","closeDrop","onNextSuggestion","onPreviousSuggestion","showStyledPlaceholder","adjustedEvent","Drop","onClickOutside","StyledSuggestions","InfiniteScroll","items","plainLabel","isValidElement","StyledTextInputContainer","StyledPlaceholder","nativeEvent","stopImmediatePropagation","onTab","StyledTextInput","autoComplete","TextInputWrapper","restrictFocus","originalFocusedElement","setOriginalFocusedElement","activeElement","dropContainer","setDropContainer","getNewContainer","setFocusWithoutScroll","removeChild","createPortal","DropContainer","DropWrapper","preventLayerClose","portalContext","PortalContext","portalId","nextPortalContext","scrollParents","preserveHeight","innerWidth","windowHeight","innerHeight","maxHeight","targetRect","containerRect","percentVisibleAreaBelow","addScrollListeners","findScrollParents","scrollParent","removeScrollListeners","onClickDocument","clickedPortalId","attr","StyledDrop","alignProp","data-g-portal-id","FocusedContainer","dropKeyFrames","getTransformOriginStyle","Ref","InfiniteScrollWrapper","renderMarker","show","lastPage","beginPage","setBeginPage","endPage","setEndPage","pageHeight","setPageHeight","pageArea","setPageArea","multiColumn","setMultiColumn","pendingLength","setPendingLength","belowMarkerRef","firstPageItemRef","lastPageItemRef","showRef","beginRect","findDOMNode","endRect","nextPageHeight","nextMultiColumn","nextPageArea","onScroll","documentElement","scrollTop","nextBeginPage","nextEndPage","scrollIntoView","marker","itemsIndex","ol","TableRowWrapper","TableWrapper","TableBodyWrapper","withForwardRef","reactIs","contextType","getDerivedStateFromError","MEMO_STATICS","compare","TYPE_STATICS","getStatics","isMemo","Memo","targetStatics","sourceStatics","for","w","u","$$typeof","z","typeOf","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isValidElementType","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","TableHeaderWrapper","TableFooterWrapper","FooterWrapper","withFocus","scrollableAncestor","primaryValue","memberCount","computeMidPoint","fromPoint","toPoint","COMMANDS","curved","midPoint","cmds","direct","rectilinear","findTarget","getElementById","Diagram","connections","setDimensions","connectionPoints","setConnectionPoints","svgRef","savedOnResize","onResizeHandler","paths","placeConnections","updatedConnectionPoints","fromTarget","toTarget","fromElement","toElement","fromRect","toRect","cleanedRest","offsetWidth","StyledDiagram","DiagramWrapper","Value","Distribution","subIndex","childBasis","total","accumulator","subTotal","DistributionWrapper","DropButton","dropContent","onClose","onOpen","setShow","buttonRef","onDropClose","onClickInternal","DropButtonWrapper","defaultMessages","invalid","defaultErrors","defaultInfos","updateErrors","nextErrors","hasStatusError","status","updateInfos","nextInfos","Form","errors","errorsProp","infos","infosProp","messagesProp","onReset","onSubmit","validate","setMessages","setErrors","setInfos","touched","setTouched","validations","update","initial","prevValue","prevErrors","errName","nextError","prevInfos","infoName","nextInfo","prevTouched","nextTouched","addValidation","validation","removeValidation","componentValue","defaultComponentValue","valueData","setData","nextData","FormWrapper","grommetInputNames","grommetInputPadNames","isGrommetInput","comp","FormFieldBox","Message","FormField","className","validateSingle","aValidate","value2","regexp","validateField","onFieldBlur","wantContentPad","RadioButtonGroup","normalizedError","normalizedInfo","containerRest","onContextBlur","formValue","Input","aria-invalid","renderInput","abut","abutMargin","contentProps","outerBackground","outerStyle","mergedMargin","FormFieldWrapper","optionsProp","optionRefs","valueIndex","option","onNext","onPrevious","optionDisabled","optionValue","optionRest","RadioButton","aRef","RadioButtonGroupWrapper","circle","StyledRadioButtonContainer","onMouseEnter","StyledRadioButton","StyledRadioButtonInput","StyledRadioButtonBox","StyledRadioButtonIcon","RadioButtonWrapper","GridWrapper","rows","StyledGrid","a11yTitleProp","rowsProp","available","CSS","supports","JUSTIFY_CONTENT_MAP","justifyContentStyle","justifyContent","getRepeatSize","sizeFor","isRow","mapped","attrs","areas","area","cells","areasStyle","columnsStyle","gapSize","rowsStyle","grid","FullGlobalStyle","createGlobalStyle","Grommet","getBreakpoint","backgroundProp","dir","themeMode","stateTheme","themeProp","themeModeProp","nextTheme","baseTheme","themeBackground","defaultMode","deviceResponsive","userAgent","getDeviceBreakpoint","StyledGrommet","GrommetWrapper","fullStyle","face","cssVars","ImageWrapper","onError","imageMissing","setImageMissing","extraProps","StyledImage","opacityProp","FIT_MAP","contain","fitStyle","fit","Layer","layerContainer","setLayerContainer","layerClone","cloneNode","clonedContainer","animationDirection","clone","LayerContainer","LayerWrapper","HiddenAnchor","fullBounds","layerTarget","setTargetBounds","anchorRef","layerRef","updateBounds","StyledList","ul","StyledItem","List","itemProps","secondaryKey","onClickItem","boxProps","adjustedBackground","ListWrapper","MainWrapper","GrommetMarkdownWrapper","components","overrides","Image","Paragraph","th","ATTRIBUTE_TO_JSX_PROP_MAP","accesskey","allowfullscreen","allowtransparency","autocomplete","autofocus","autoplay","cellpadding","cellspacing","charset","class","classid","colspan","contenteditable","contextmenu","crossorigin","enctype","formaction","formenctype","formmethod","formnovalidate","formtarget","frameborder","hreflang","inputmode","keyparams","keytype","marginheight","marginwidth","maxlength","mediagroup","minlength","novalidate","radiogroup","readonly","rowspan","spellcheck","srcdoc","srclang","srcset","tabindex","usemap","namedCodesToUnicode","amp","apos","gt","lt","nbsp","quot","DO_NOT_PROCESS_HTML_ELEMENTS","ATTR_EXTRACTOR_R","AUTOLINK_MAILTO_CHECK_R","BLOCK_END_R","BLOCKQUOTE_R","BLOCKQUOTE_TRIM_LEFT_MULTILINE_R","BREAK_LINE_R","BREAK_THEMATIC_R","CODE_BLOCK_FENCED_R","CODE_BLOCK_R","CODE_INLINE_R","CONSECUTIVE_NEWLINE_R","CR_NEWLINE_R","FOOTNOTE_R","FOOTNOTE_REFERENCE_R","FORMFEED_R","GFM_TASK_R","HEADING_R","HEADING_SETEXT_R","HTML_BLOCK_ELEMENT_R","HTML_CHAR_CODE_R","HTML_COMMENT_R","HTML_CUSTOM_ATTR_R","HTML_SELF_CLOSING_ELEMENT_R","INTERPOLATION_R","LINK_AUTOLINK_BARE_URL_R","LINK_AUTOLINK_MAILTO_R","LINK_AUTOLINK_R","LIST_ITEM_END_R","LIST_LOOKBEHIND_R","CAPTURE_LETTER_AFTER_HYPHEN","NP_TABLE_R","PARAGRAPH_R","REFERENCE_IMAGE_OR_LINK","REFERENCE_IMAGE_R","REFERENCE_LINK_R","SQUARE_BRACKETS_R","SHOULD_RENDER_AS_BLOCK_R","TAB_R","TABLE_SEPARATOR_R","TABLE_TRIM_PIPES","TABLE_CELL_END_TRIM","TABLE_CENTER_ALIGN","TABLE_LEFT_ALIGN","TABLE_RIGHT_ALIGN","TEXT_BOLD_R","TEXT_EMPHASIZED_R","TEXT_STRIKETHROUGHED_R","TEXT_ESCAPED_R","TEXT_PLAIN_R","TRIM_NEWLINES_AND_TRAILING_WHITESPACE_R","HTML_LEFT_TRIM_AMOUNT_R","UNESCAPE_URL_R","LIST_ITEM_PREFIX_R","LIST_ITEM_R","LIST_R","LINK_R","IMAGE_R","BLOCK_SYNTAXES","slugify","parseTableAlignCapture","parseTableRow","inTable","parseTable","inline","parseTableAlign","parseTableCells","getTableStyle","parserFor","j","substring","order","normalizeWhitespace","inlineRegex","simpleInlineRegex","simple","blockRegex","anyScopeRegex","sanitizeUrl","decodeURIComponent","unescapeUrl","parseInline","parseSimpleInline","parseBlock","parseCaptureInline","captureNothing","shift","getTag","compiler","forceInline","forceBlock","normalizeAttributeKey","attributeValueToJSXPropValue","blockQuote","react","breakLine","breakThematic","codeBlock","lang","codeFenced","codeInline","footnote","identifier","footnoteReference","gfmTask","completed","headingSetext","htmlComment","alt","title","link","linkAngleBraceStyleDetector","linkBareUrlDetector","linkMailtoDetector","_list","ordered","newlineCoalescer","refImage","refLink","fallbackContent","tableSeparator","textBolded","textEmphasized","textEscaped","textStrikethroughed","disableParsingRawHTML","htmlBlock","containsBlockSyntax","noInnerParse","htmlSelfClosing","reactFor","ruleOutput","Markdown","_objectWithoutProperties","ParagraphWrapper","StyledParagraph","parseValue","valueParts","maskIndex","found","fixed","part","beginIndex","endIndex","minLength","defaultMask","MaskedInput","setValueParts","activeMaskIndex","setActiveMaskIndex","activeOptionIndex","setActiveOptionIndex","caretIndex","selectionStart","setInputValue","HTMLInputElement","Event","bubbles","dispatchEvent","onChangeInput","onOption","nextValueParts","onNextOption","onPreviousOption","onSelectOption","StyledMaskedInputContainer","StyledMaskedInput","MaskedInputWrapper","Menu","controlButtonIndex","dropBackground","MenuIcon","buttonRefs","constants","activeItemIndex","setActiveItemIndex","isOpen","setOpen","onDropOpen","onSelectMenuItem","click","isTab","onNextMenuItem","onPreviousMenuItem","controlMirror","closeMenu","onSpace","openMenu","shiftKey","close","MenuWrapper","MeterWrapper","memoizedMax","deriveMax","Bar","Circle","capOffset","mid","someHighlight","highlight","pathRest","defaultColor","strokeProps","BarWrapper","startValue","pathCaps","translateEndAngle","arcCommands","pathCap","CircleWrapper","NavWrapper","RangeInput","StyledRangeInput","RangeInputWrapper","rangeTrackStyle","rangeThumbStyle","firefoxMicrosoftThumbStyle","Container","RangeSelector","lower","upper","changing","setChanging","lastChange","setLastChange","moveValue","setMoveValue","valueForMouseCoord","clientY","scaleY","scaleX","mouseMove","mouseUp","layoutProps","EdgeControl","edge","onDecrease","onIncrease","cursor","nextMoveValue","RangeSelectorWrapper","DIRECTION_PROPS","focused","setFocused","keyboardProps","boxDirection","justifySelf","minWidth","minHeight","EdgeControlWrapper","RoutedAnchor","router","modifierKey","ctrlKey","metaKey","history","RoutedAnchorWrapper","RoutedButton","RoutedButtonWrapper","SelectTextInput","StyledSelectDropButton","Select","closeOnChange","disabledKey","emptySearchMessage","labelKey","propOpen","searchPlaceholder","valueKey","valueLabel","normalizedValueProp","valueOptions","SelectIcon","onRequestOpen","onRequestClose","selectValue","inputValue","valueOption","SelectContainer","nextSelected","SelectWrapper","OptionsBox","OptionBox","debounce","initialOptions","keyboardNavTimer","keyboardNavigating","isDisabled","optionsRef","clearKeyboardNavigation","selectOption","valueItem","searchRef","optionNode","containerBottom","customSearchInput","searchInput","selectOptionsStyle","onSearchChange","isActive","SelectOption","onActiveOption","optionLabel","SelectContainerWrapper","memo","nextActive","nextDisabled","nextOption","SelectOptionWrapper","SkipLinks","showLayer","setShowLayer","removeLayer","layerNode","skipTo","SkipLinksWrapper","Tab","onActivate","over","setOver","normalizedTitle","tabStyles","StyledTab","TabWrapper","tabHoverStyle","Tabs","tabContents","propsActiveIndex","setActiveIndex","activeContent","activeTitle","tabProps","isTabActive","activateTab","tabContentTitle","StyledTabs","StyledTabsHeader","StyledTabPanel","TabsWrapper","TextArea","StyledTextArea","fillArg","TextAreaWrapper","videoEvents","Video","scrubberRef","videoRef","previousValue","currentValue","hasPlayed","paused","loading","currentTime","interacting","ended","playing","percentagePlayed","scrubberRect","percent","scrubTime","muted","textTracks","forceUpdate","requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","interactionTimer","interactionStop","unmounted","videoHeight","videoRatio","videoWidth","nextHeight","nextCaptions","throttle","mediaEventProps","injectUpdateVideoEvents","nextVideoRef","mute","restate","autoPlay","renderControls","formattedTime","formatTime","Icons","Configure","FullScreen","ReduceVolume","captionControls","showCaptions","StyledVideoControls","Meter","StyledVideoScrubber","scrub","seek","louder","quieter","fullscreen","mouseEventListeners","loop","controlsElement","interactionStart","onTouchStart","StyledVideoContainer","StyledVideo","VideoWrapper","positionStyle","headStyle","CONTINENTS","origin","dots","maxCoordinate","MAP_LAT_BOTTOM_RAD","mapRadius","MAP_LON_RIGHT","mapOffsetY","log","buildState","continents","stateDots","segment","spots","dotCommands","stateArea","point","buildContinentState","updateState","places","latLon","latitudeRad","coords","buildInteractiveProps","activeFunc","WorldMap","activeCoords","onSelectPlace","hoverColor","activeContinent","activePlace","continentStates","placeStates","continentColor","interactiveProps","activate","fillOpacity","placeColor","restPlace","fillRule","coord","atan","exp","coordToLatLon","StyledWorldMap","WorldMapWrapper","_getRGBArray"],"mappings":"wBACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQ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eypF,EAAej4F,aAAcA,iB,+CC3B/C2R,EAAc,SAAqBjE,GACrC,MAAI,KAAKpG,KAAKoG,GATI,SAAuBA,GACzC,OAAOA,EAAM0N,QAAQ,oCAAoC,SAAUld,EAAGU,EAAG2T,EAAGvI,GAC1E,MAAO,IAAMpL,EAAIA,EAAI2T,EAAIA,EAAIvI,EAAIA,KAChCk2E,UAAU,GAAGtuE,MAAM,SAASvH,KAAI,SAAUkM,GAC3C,OAAOzE,SAASyE,EAAG,OAMZxE,CAAcrE,GAGnB,OAAOpG,KAAKoG,GACPA,EAAMkE,MAAM,4DAA4DQ,OAAO,GAGjF1E,GAGE0K,EAAc,SAAqB1K,GAC5C,IAAIyqF,EAAexmF,EAAYjE,GAQ/B,OADkB,IANRyqF,EAAa,GAMO,IALlBA,EAAa,GAKmB,IAJjCA,EAAa,IAIkC,IACtC,KAEXhnF,EAAiB,SAASA,EAAezD,EAAOzN,GACzD,IAAIoR,EAAYpR,EAAM0N,OAAOC,OAAOF,IAAUA,EAE1C7J,EAASwN,EAab,OAXIpR,EAAMmR,MAAQC,EAAUD,KAC1BvN,EAASwN,EAAUD,MACTnR,EAAMmR,MAAQC,EAAUC,QAClCzN,EAASwN,EAAUC,OAIjBzN,GAAU5D,EAAM0N,OAAOC,OAAO/J,IAAW5D,EAAM0N,OAAOC,OAAO/J,KAAYA,IAC3EA,EAASsN,EAAetN,EAAQ5D,IAG3B4D,GC9CE,EAAa,SAAoBxF,EAAMU,EAAOkB,EAAOoe,GAC9D,OAAO,cAAI,CAAC,GAAI,IAAK,KAAMhgB,EAAM8S,EAAepS,EAAOkB,KCF9C,EAAY,SAAmB5B,EAAMU,EAAOkB,GACrD,OAAO,cAAI,CAAC,GAAI,IAAK,KAAM5B,EAAM4B,EAAM0N,OAAOK,KAAKjP,IAAUA,ICF/D","file":"grommet.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 68);\n","module.exports = React;","module.exports = styled;","export * from './mixins';\nexport * from './background';\nexport * from './border';\nexport * from './colors';\nexport * from './debounce';\nexport * from './DOM';\nexport * from './graphics';\nexport * from './prop-types';\nexport * from './styles';\nexport * from './object';\nexport * from './responsive';\nexport * from './router';\nexport * from './throttle';\nexport * from './themeDocUtils';\n","import { deepMerge } from './utils';\nimport { base } from './themes/base';\n\nexport const defaultProps = {\n  theme: base,\n};\n\nexport const extendDefaultTheme = theme => {\n  defaultProps.theme = deepMerge(base, theme);\n};\n","export { Box } from './Box';\n","export default function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n  // Call this.constructor.gDSFP to support sub-classes.\n  var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n  if (state !== null && state !== undefined) {\n    this.setState(state);\n  }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n  // Call this.constructor.gDSFP to support sub-classes.\n  // Use the setState() updater to ensure state isn't stale in certain edge cases.\n  function updater(prevState) {\n    var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n    return state !== null && state !== undefined ? state : null;\n  }\n  // Binding \"this\" is important for shallow renderer support.\n  this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n  try {\n    var prevProps = this.props;\n    var prevState = this.state;\n    this.props = nextProps;\n    this.state = nextState;\n    this.__reactInternalSnapshotFlag = true;\n    this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n      prevProps,\n      prevState\n    );\n  } finally {\n    this.props = prevProps;\n    this.state = prevState;\n  }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n  var prototype = Component.prototype;\n\n  if (!prototype || !prototype.isReactComponent) {\n    throw new Error('Can only polyfill class components');\n  }\n\n  if (\n    typeof Component.getDerivedStateFromProps !== 'function' &&\n    typeof prototype.getSnapshotBeforeUpdate !== 'function'\n  ) {\n    return Component;\n  }\n\n  // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n  // Error if any of these lifecycles are present,\n  // Because they would work differently between older and newer (16.3+) versions of React.\n  var foundWillMountName = null;\n  var foundWillReceivePropsName = null;\n  var foundWillUpdateName = null;\n  if (typeof prototype.componentWillMount === 'function') {\n    foundWillMountName = 'componentWillMount';\n  } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n    foundWillMountName = 'UNSAFE_componentWillMount';\n  }\n  if (typeof prototype.componentWillReceiveProps === 'function') {\n    foundWillReceivePropsName = 'componentWillReceiveProps';\n  } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n    foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n  }\n  if (typeof prototype.componentWillUpdate === 'function') {\n    foundWillUpdateName = 'componentWillUpdate';\n  } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n    foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n  }\n  if (\n    foundWillMountName !== null ||\n    foundWillReceivePropsName !== null ||\n    foundWillUpdateName !== null\n  ) {\n    var componentName = Component.displayName || Component.name;\n    var newApiName =\n      typeof Component.getDerivedStateFromProps === 'function'\n        ? 'getDerivedStateFromProps()'\n        : 'getSnapshotBeforeUpdate()';\n\n    throw Error(\n      'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n        componentName +\n        ' uses ' +\n        newApiName +\n        ' but also contains the following legacy lifecycles:' +\n        (foundWillMountName !== null ? '\\n  ' + foundWillMountName : '') +\n        (foundWillReceivePropsName !== null\n          ? '\\n  ' + foundWillReceivePropsName\n          : '') +\n        (foundWillUpdateName !== null ? '\\n  ' + foundWillUpdateName : '') +\n        '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n        'https://fb.me/react-async-component-lifecycle-hooks'\n    );\n  }\n\n  // React <= 16.2 does not support static getDerivedStateFromProps.\n  // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n  // Newer versions of React will ignore these lifecycles if gDSFP exists.\n  if (typeof Component.getDerivedStateFromProps === 'function') {\n    prototype.componentWillMount = componentWillMount;\n    prototype.componentWillReceiveProps = componentWillReceiveProps;\n  }\n\n  // React <= 16.2 does not support getSnapshotBeforeUpdate.\n  // As a workaround, use cWU to invoke the new lifecycle.\n  // Newer versions of React will ignore that lifecycle if gSBU exists.\n  if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n    if (typeof prototype.componentDidUpdate !== 'function') {\n      throw new Error(\n        'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n      );\n    }\n\n    prototype.componentWillUpdate = componentWillUpdate;\n\n    var componentDidUpdate = prototype.componentDidUpdate;\n\n    prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n      prevProps,\n      prevState,\n      maybeSnapshot\n    ) {\n      // 16.3+ will not execute our will-update method;\n      // It will pass a snapshot value to did-update though.\n      // Older versions will require our polyfilled will-update value.\n      // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n      // Because for <= 15.x versions this might be a \"prevContext\" object.\n      // We also can't just check \"__reactInternalSnapshot\",\n      // Because get-snapshot might return a falsy value.\n      // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n      var snapshot = this.__reactInternalSnapshotFlag\n        ? this.__reactInternalSnapshot\n        : maybeSnapshot;\n\n      componentDidUpdate.call(this, prevProps, prevState, snapshot);\n    };\n  }\n\n  return Component;\n}\n\nexport { polyfill };\n","export default function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}","import React, { createFactory, Component, createElement } from 'react';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport shallowEqual from 'fbjs/lib/shallowEqual';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport { polyfill } from 'react-lifecycles-compat';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { createChangeEmitter } from 'change-emitter';\nimport $$observable from 'symbol-observable';\n\nvar setStatic = function setStatic(key, value) {\n  return function (BaseComponent) {\n    /* eslint-disable no-param-reassign */\n    BaseComponent[key] = value;\n    /* eslint-enable no-param-reassign */\n\n    return BaseComponent;\n  };\n};\n\nvar setDisplayName = function setDisplayName(displayName) {\n  return setStatic('displayName', displayName);\n};\n\nvar getDisplayName = function getDisplayName(Component$$1) {\n  if (typeof Component$$1 === 'string') {\n    return Component$$1;\n  }\n\n  if (!Component$$1) {\n    return undefined;\n  }\n\n  return Component$$1.displayName || Component$$1.name || 'Component';\n};\n\nvar wrapDisplayName = function wrapDisplayName(BaseComponent, hocName) {\n  return hocName + \"(\" + getDisplayName(BaseComponent) + \")\";\n};\n\nvar mapProps = function mapProps(propsMapper) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var MapProps = function MapProps(props) {\n      return factory(propsMapper(props));\n    };\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'mapProps'))(MapProps);\n    }\n\n    return MapProps;\n  };\n};\n\nvar withProps = function withProps(input) {\n  var hoc = mapProps(function (props) {\n    return _extends({}, props, typeof input === 'function' ? input(props) : input);\n  });\n\n  if (process.env.NODE_ENV !== 'production') {\n    return function (BaseComponent) {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withProps'))(hoc(BaseComponent));\n    };\n  }\n\n  return hoc;\n};\n\nvar pick = function pick(obj, keys) {\n  var result = {};\n\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n\n    if (obj.hasOwnProperty(key)) {\n      result[key] = obj[key];\n    }\n  }\n\n  return result;\n};\n\nvar withPropsOnChange = function withPropsOnChange(shouldMapOrKeys, propsMapper) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n    var shouldMap = typeof shouldMapOrKeys === 'function' ? shouldMapOrKeys : function (props, nextProps) {\n      return !shallowEqual(pick(props, shouldMapOrKeys), pick(nextProps, shouldMapOrKeys));\n    };\n\n    var WithPropsOnChange =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithPropsOnChange, _Component);\n\n      function WithPropsOnChange() {\n        var _this;\n\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n        _this.state = {\n          computedProps: propsMapper(_this.props),\n          prevProps: _this.props\n        };\n        return _this;\n      }\n\n      WithPropsOnChange.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n        if (shouldMap(prevState.prevProps, nextProps)) {\n          return {\n            computedProps: propsMapper(nextProps),\n            prevProps: nextProps\n          };\n        }\n\n        return {\n          prevProps: nextProps\n        };\n      };\n\n      var _proto = WithPropsOnChange.prototype;\n\n      _proto.render = function render() {\n        return factory(_extends({}, this.props, this.state.computedProps));\n      };\n\n      return WithPropsOnChange;\n    }(Component);\n\n    polyfill(WithPropsOnChange);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withPropsOnChange'))(WithPropsOnChange);\n    }\n\n    return WithPropsOnChange;\n  };\n};\n\nvar mapValues = function mapValues(obj, func) {\n  var result = {};\n  /* eslint-disable no-restricted-syntax */\n\n  for (var key in obj) {\n    if (obj.hasOwnProperty(key)) {\n      result[key] = func(obj[key], key);\n    }\n  }\n  /* eslint-enable no-restricted-syntax */\n\n\n  return result;\n};\n\nvar withHandlers = function withHandlers(handlers) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var WithHandlers =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithHandlers, _Component);\n\n      function WithHandlers() {\n        var _this;\n\n        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n          _args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;\n        _this.handlers = mapValues(typeof handlers === 'function' ? handlers(_this.props) : handlers, function (createHandler) {\n          return function () {\n            var handler = createHandler(_this.props);\n\n            if (process.env.NODE_ENV !== 'production' && typeof handler !== 'function') {\n              console.error( // eslint-disable-line no-console\n              'withHandlers(): Expected a map of higher-order functions. ' + 'Refer to the docs for more info.');\n            }\n\n            return handler.apply(void 0, arguments);\n          };\n        });\n        return _this;\n      }\n\n      var _proto = WithHandlers.prototype;\n\n      _proto.render = function render() {\n        return factory(_extends({}, this.props, this.handlers));\n      };\n\n      return WithHandlers;\n    }(Component);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withHandlers'))(WithHandlers);\n    }\n\n    return WithHandlers;\n  };\n};\n\nvar defaultProps = function defaultProps(props) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var DefaultProps = function DefaultProps(ownerProps) {\n      return factory(ownerProps);\n    };\n\n    DefaultProps.defaultProps = props;\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'defaultProps'))(DefaultProps);\n    }\n\n    return DefaultProps;\n  };\n};\n\nvar omit = function omit(obj, keys) {\n  var rest = _extends({}, obj);\n\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n\n    if (rest.hasOwnProperty(key)) {\n      delete rest[key];\n    }\n  }\n\n  return rest;\n};\n\nvar renameProp = function renameProp(oldName, newName) {\n  var hoc = mapProps(function (props) {\n    var _extends2;\n\n    return _extends({}, omit(props, [oldName]), (_extends2 = {}, _extends2[newName] = props[oldName], _extends2));\n  });\n\n  if (process.env.NODE_ENV !== 'production') {\n    return function (BaseComponent) {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProp'))(hoc(BaseComponent));\n    };\n  }\n\n  return hoc;\n};\n\nvar keys = Object.keys;\n\nvar mapKeys = function mapKeys(obj, func) {\n  return keys(obj).reduce(function (result, key) {\n    var val = obj[key];\n    /* eslint-disable no-param-reassign */\n\n    result[func(val, key)] = val;\n    /* eslint-enable no-param-reassign */\n\n    return result;\n  }, {});\n};\n\nvar renameProps = function renameProps(nameMap) {\n  var hoc = mapProps(function (props) {\n    return _extends({}, omit(props, keys(nameMap)), mapKeys(pick(props, keys(nameMap)), function (_, oldName) {\n      return nameMap[oldName];\n    }));\n  });\n\n  if (process.env.NODE_ENV !== 'production') {\n    return function (BaseComponent) {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'renameProps'))(hoc(BaseComponent));\n    };\n  }\n\n  return hoc;\n};\n\nvar flattenProp = function flattenProp(propName) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var FlattenProp = function FlattenProp(props) {\n      return factory(_extends({}, props, props[propName]));\n    };\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'flattenProp'))(FlattenProp);\n    }\n\n    return FlattenProp;\n  };\n};\n\nvar withState = function withState(stateName, stateUpdaterName, initialState) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var WithState =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithState, _Component);\n\n      function WithState() {\n        var _this;\n\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n        _this.state = {\n          stateValue: typeof initialState === 'function' ? initialState(_this.props) : initialState\n        };\n\n        _this.updateStateValue = function (updateFn, callback) {\n          return _this.setState(function (_ref) {\n            var stateValue = _ref.stateValue;\n            return {\n              stateValue: typeof updateFn === 'function' ? updateFn(stateValue) : updateFn\n            };\n          }, callback);\n        };\n\n        return _this;\n      }\n\n      var _proto = WithState.prototype;\n\n      _proto.render = function render() {\n        var _extends2;\n\n        return factory(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[stateUpdaterName] = this.updateStateValue, _extends2)));\n      };\n\n      return WithState;\n    }(Component);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withState'))(WithState);\n    }\n\n    return WithState;\n  };\n};\n\nvar withStateHandlers = function withStateHandlers(initialState, stateUpdaters) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var WithStateHandlers =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithStateHandlers, _Component);\n\n      function WithStateHandlers() {\n        var _this;\n\n        for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n          _args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(_args)) || this;\n        _this.state = typeof initialState === 'function' ? initialState(_this.props) : initialState;\n        _this.stateUpdaters = mapValues(stateUpdaters, function (handler) {\n          return function (mayBeEvent) {\n            for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n              args[_key2 - 1] = arguments[_key2];\n            }\n\n            // Having that functional form of setState can be called async\n            // we need to persist SyntheticEvent\n            if (mayBeEvent && typeof mayBeEvent.persist === 'function') {\n              mayBeEvent.persist();\n            }\n\n            _this.setState(function (state, props) {\n              return handler(state, props).apply(void 0, [mayBeEvent].concat(args));\n            });\n          };\n        });\n        return _this;\n      }\n\n      var _proto = WithStateHandlers.prototype;\n\n      _proto.render = function render() {\n        return factory(_extends({}, this.props, this.state, this.stateUpdaters));\n      };\n\n      return WithStateHandlers;\n    }(Component);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withStateHandlers'))(WithStateHandlers);\n    }\n\n    return WithStateHandlers;\n  };\n};\n\nvar noop = function noop() {};\n\nvar withReducer = function withReducer(stateName, dispatchName, reducer, initialState) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var WithReducer =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithReducer, _Component);\n\n      function WithReducer() {\n        var _this;\n\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n        _this.state = {\n          stateValue: _this.initializeStateValue()\n        };\n\n        _this.dispatch = function (action, callback) {\n          if (callback === void 0) {\n            callback = noop;\n          }\n\n          return _this.setState(function (_ref) {\n            var stateValue = _ref.stateValue;\n            return {\n              stateValue: reducer(stateValue, action)\n            };\n          }, function () {\n            return callback(_this.state.stateValue);\n          });\n        };\n\n        return _this;\n      }\n\n      var _proto = WithReducer.prototype;\n\n      _proto.initializeStateValue = function initializeStateValue() {\n        if (initialState !== undefined) {\n          return typeof initialState === 'function' ? initialState(this.props) : initialState;\n        }\n\n        return reducer(undefined, {\n          type: '@@recompose/INIT'\n        });\n      };\n\n      _proto.render = function render() {\n        var _extends2;\n\n        return factory(_extends({}, this.props, (_extends2 = {}, _extends2[stateName] = this.state.stateValue, _extends2[dispatchName] = this.dispatch, _extends2)));\n      };\n\n      return WithReducer;\n    }(Component);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withReducer'))(WithReducer);\n    }\n\n    return WithReducer;\n  };\n};\n\nvar identity = function identity(Component$$1) {\n  return Component$$1;\n};\n\nvar branch = function branch(test, left, right) {\n  if (right === void 0) {\n    right = identity;\n  }\n\n  return function (BaseComponent) {\n    var leftFactory;\n    var rightFactory;\n\n    var Branch = function Branch(props) {\n      if (test(props)) {\n        leftFactory = leftFactory || createFactory(left(BaseComponent));\n        return leftFactory(props);\n      }\n\n      rightFactory = rightFactory || createFactory(right(BaseComponent));\n      return rightFactory(props);\n    };\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'branch'))(Branch);\n    }\n\n    return Branch;\n  };\n};\n\nvar renderComponent = function renderComponent(Component$$1) {\n  return function (_) {\n    var factory = createFactory(Component$$1);\n\n    var RenderComponent = function RenderComponent(props) {\n      return factory(props);\n    };\n\n    if (process.env.NODE_ENV !== 'production') {\n      RenderComponent.displayName = wrapDisplayName(Component$$1, 'renderComponent');\n    }\n\n    return RenderComponent;\n  };\n};\n\nvar Nothing =\n/*#__PURE__*/\nfunction (_Component) {\n  _inheritsLoose(Nothing, _Component);\n\n  function Nothing() {\n    return _Component.apply(this, arguments) || this;\n  }\n\n  var _proto = Nothing.prototype;\n\n  _proto.render = function render() {\n    return null;\n  };\n\n  return Nothing;\n}(Component);\n\nvar renderNothing = function renderNothing(_) {\n  return Nothing;\n};\n\nvar shouldUpdate = function shouldUpdate(test) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var ShouldUpdate =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(ShouldUpdate, _Component);\n\n      function ShouldUpdate() {\n        return _Component.apply(this, arguments) || this;\n      }\n\n      var _proto = ShouldUpdate.prototype;\n\n      _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n        return test(this.props, nextProps);\n      };\n\n      _proto.render = function render() {\n        return factory(this.props);\n      };\n\n      return ShouldUpdate;\n    }(Component);\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'shouldUpdate'))(ShouldUpdate);\n    }\n\n    return ShouldUpdate;\n  };\n};\n\nvar pure = function pure(BaseComponent) {\n  var hoc = shouldUpdate(function (props, nextProps) {\n    return !shallowEqual(props, nextProps);\n  });\n\n  if (process.env.NODE_ENV !== 'production') {\n    return setDisplayName(wrapDisplayName(BaseComponent, 'pure'))(hoc(BaseComponent));\n  }\n\n  return hoc(BaseComponent);\n};\n\nvar onlyUpdateForKeys = function onlyUpdateForKeys(propKeys) {\n  var hoc = shouldUpdate(function (props, nextProps) {\n    return !shallowEqual(pick(nextProps, propKeys), pick(props, propKeys));\n  });\n\n  if (process.env.NODE_ENV !== 'production') {\n    return function (BaseComponent) {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForKeys'))(hoc(BaseComponent));\n    };\n  }\n\n  return hoc;\n};\n\nvar onlyUpdateForPropTypes = function onlyUpdateForPropTypes(BaseComponent) {\n  var propTypes = BaseComponent.propTypes;\n\n  if (process.env.NODE_ENV !== 'production') {\n    if (!propTypes) {\n      /* eslint-disable */\n      console.error('A component without any `propTypes` was passed to ' + '`onlyUpdateForPropTypes()`. Check the implementation of the ' + (\"component with display name \\\"\" + getDisplayName(BaseComponent) + \"\\\".\"));\n      /* eslint-enable */\n    }\n  }\n\n  var propKeys = Object.keys(propTypes || {});\n  var OnlyUpdateForPropTypes = onlyUpdateForKeys(propKeys)(BaseComponent);\n\n  if (process.env.NODE_ENV !== 'production') {\n    return setDisplayName(wrapDisplayName(BaseComponent, 'onlyUpdateForPropTypes'))(OnlyUpdateForPropTypes);\n  }\n\n  return OnlyUpdateForPropTypes;\n};\n\nvar withContext = function withContext(childContextTypes, getChildContext) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var WithContext =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(WithContext, _Component);\n\n      function WithContext() {\n        var _this;\n\n        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n          args[_key] = arguments[_key];\n        }\n\n        _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n\n        _this.getChildContext = function () {\n          return getChildContext(_this.props);\n        };\n\n        return _this;\n      }\n\n      var _proto = WithContext.prototype;\n\n      _proto.render = function render() {\n        return factory(this.props);\n      };\n\n      return WithContext;\n    }(Component);\n\n    WithContext.childContextTypes = childContextTypes;\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'withContext'))(WithContext);\n    }\n\n    return WithContext;\n  };\n};\n\nvar getContext = function getContext(contextTypes) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    var GetContext = function GetContext(ownerProps, context) {\n      return factory(_extends({}, ownerProps, context));\n    };\n\n    GetContext.contextTypes = contextTypes;\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'getContext'))(GetContext);\n    }\n\n    return GetContext;\n  };\n};\n\nvar lifecycle = function lifecycle(spec) {\n  return function (BaseComponent) {\n    var factory = createFactory(BaseComponent);\n\n    if (process.env.NODE_ENV !== 'production' && spec.hasOwnProperty('render')) {\n      console.error('lifecycle() does not support the render method; its behavior is to ' + 'pass all props and state to the base component.');\n    }\n\n    var Lifecycle =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(Lifecycle, _Component);\n\n      function Lifecycle() {\n        return _Component.apply(this, arguments) || this;\n      }\n\n      var _proto = Lifecycle.prototype;\n\n      _proto.render = function render() {\n        return factory(_extends({}, this.props, this.state));\n      };\n\n      return Lifecycle;\n    }(Component);\n\n    Object.keys(spec).forEach(function (hook) {\n      return Lifecycle.prototype[hook] = spec[hook];\n    });\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'lifecycle'))(Lifecycle);\n    }\n\n    return Lifecycle;\n  };\n};\n\nvar isClassComponent = function isClassComponent(Component$$1) {\n  return Boolean(Component$$1 && Component$$1.prototype && typeof Component$$1.prototype.render === 'function');\n};\n\nvar toClass = function toClass(baseComponent) {\n  var _class, _temp;\n\n  return isClassComponent(baseComponent) ? baseComponent : (_temp = _class =\n  /*#__PURE__*/\n  function (_Component) {\n    _inheritsLoose(ToClass, _Component);\n\n    function ToClass() {\n      return _Component.apply(this, arguments) || this;\n    }\n\n    var _proto = ToClass.prototype;\n\n    _proto.render = function render() {\n      if (typeof baseComponent === 'string') {\n        return React.createElement(baseComponent, this.props);\n      }\n\n      return baseComponent(this.props, this.context);\n    };\n\n    return ToClass;\n  }(Component), _class.displayName = getDisplayName(baseComponent), _class.propTypes = baseComponent.propTypes, _class.contextTypes = baseComponent.contextTypes, _class.defaultProps = baseComponent.defaultProps, _temp);\n};\n\nfunction toRenderProps(hoc) {\n  var RenderPropsComponent = function RenderPropsComponent(props) {\n    return props.children(props);\n  };\n\n  return hoc(RenderPropsComponent);\n}\n\nvar fromRenderProps = function fromRenderProps(RenderPropsComponent, propsMapper, renderPropName) {\n  if (renderPropName === void 0) {\n    renderPropName = 'children';\n  }\n\n  return function (BaseComponent) {\n    var baseFactory = React.createFactory(BaseComponent);\n    var renderPropsFactory = React.createFactory(RenderPropsComponent);\n\n    var FromRenderProps = function FromRenderProps(ownerProps) {\n      var _renderPropsFactory;\n\n      return renderPropsFactory((_renderPropsFactory = {}, _renderPropsFactory[renderPropName] = function () {\n        return baseFactory(_extends({}, ownerProps, propsMapper.apply(void 0, arguments)));\n      }, _renderPropsFactory));\n    };\n\n    if (process.env.NODE_ENV !== 'production') {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'fromRenderProps'))(FromRenderProps);\n    }\n\n    return FromRenderProps;\n  };\n};\n\nvar setPropTypes = function setPropTypes(propTypes) {\n  return setStatic('propTypes', propTypes);\n};\n\nvar compose = function compose() {\n  for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n    funcs[_key] = arguments[_key];\n  }\n\n  return funcs.reduce(function (a, b) {\n    return function () {\n      return a(b.apply(void 0, arguments));\n    };\n  }, function (arg) {\n    return arg;\n  });\n};\n\nvar createSink = function createSink(callback) {\n  var Sink =\n  /*#__PURE__*/\n  function (_Component) {\n    _inheritsLoose(Sink, _Component);\n\n    function Sink() {\n      var _this;\n\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n\n      _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n      _this.state = {};\n      return _this;\n    }\n\n    Sink.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) {\n      callback(nextProps);\n      return null;\n    };\n\n    var _proto = Sink.prototype;\n\n    _proto.render = function render() {\n      return null;\n    };\n\n    return Sink;\n  }(Component);\n\n  polyfill(Sink);\n  return Sink;\n};\n\nvar componentFromProp = function componentFromProp(propName) {\n  var Component$$1 = function Component$$1(props) {\n    return createElement(props[propName], omit(props, [propName]));\n  };\n\n  Component$$1.displayName = \"componentFromProp(\" + propName + \")\";\n  return Component$$1;\n};\n\nvar nest = function nest() {\n  for (var _len = arguments.length, Components = new Array(_len), _key = 0; _key < _len; _key++) {\n    Components[_key] = arguments[_key];\n  }\n\n  var factories = Components.map(createFactory);\n\n  var Nest = function Nest(_ref) {\n    var children = _ref.children,\n        props = _objectWithoutPropertiesLoose(_ref, [\"children\"]);\n\n    return factories.reduceRight(function (child, factory) {\n      return factory(props, child);\n    }, children);\n  };\n\n  if (process.env.NODE_ENV !== 'production') {\n    var displayNames = Components.map(getDisplayName);\n    Nest.displayName = \"nest(\" + displayNames.join(', ') + \")\";\n  }\n\n  return Nest;\n};\n\nvar hoistStatics = function hoistStatics(higherOrderComponent, blacklist) {\n  return function (BaseComponent) {\n    var NewComponent = higherOrderComponent(BaseComponent);\n    hoistNonReactStatics(NewComponent, BaseComponent, blacklist);\n    return NewComponent;\n  };\n};\n\nvar _config = {\n  fromESObservable: null,\n  toESObservable: null\n};\n\nvar configureObservable = function configureObservable(c) {\n  _config = c;\n};\n\nvar config = {\n  fromESObservable: function fromESObservable(observable) {\n    return typeof _config.fromESObservable === 'function' ? _config.fromESObservable(observable) : observable;\n  },\n  toESObservable: function toESObservable(stream) {\n    return typeof _config.toESObservable === 'function' ? _config.toESObservable(stream) : stream;\n  }\n};\n\nvar componentFromStreamWithConfig = function componentFromStreamWithConfig(config$$1) {\n  return function (propsToVdom) {\n    return (\n      /*#__PURE__*/\n      function (_Component) {\n        _inheritsLoose(ComponentFromStream, _Component);\n\n        function ComponentFromStream() {\n          var _config$fromESObserva;\n\n          var _this;\n\n          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n            args[_key] = arguments[_key];\n          }\n\n          _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n          _this.state = {\n            vdom: null\n          };\n          _this.propsEmitter = createChangeEmitter();\n          _this.props$ = config$$1.fromESObservable((_config$fromESObserva = {\n            subscribe: function subscribe(observer) {\n              var unsubscribe = _this.propsEmitter.listen(function (props) {\n                if (props) {\n                  observer.next(props);\n                } else {\n                  observer.complete();\n                }\n              });\n\n              return {\n                unsubscribe: unsubscribe\n              };\n            }\n          }, _config$fromESObserva[$$observable] = function () {\n            return this;\n          }, _config$fromESObserva));\n          _this.vdom$ = config$$1.toESObservable(propsToVdom(_this.props$));\n          return _this;\n        }\n\n        var _proto = ComponentFromStream.prototype;\n\n        _proto.componentWillMount = function componentWillMount() {\n          var _this2 = this;\n\n          // Subscribe to child prop changes so we know when to re-render\n          this.subscription = this.vdom$.subscribe({\n            next: function next(vdom) {\n              _this2.setState({\n                vdom: vdom\n              });\n            }\n          });\n          this.propsEmitter.emit(this.props);\n        };\n\n        _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n          // Receive new props from the owner\n          this.propsEmitter.emit(nextProps);\n        };\n\n        _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n          return nextState.vdom !== this.state.vdom;\n        };\n\n        _proto.componentWillUnmount = function componentWillUnmount() {\n          // Call without arguments to complete stream\n          this.propsEmitter.emit(); // Clean-up subscription before un-mounting\n\n          this.subscription.unsubscribe();\n        };\n\n        _proto.render = function render() {\n          return this.state.vdom;\n        };\n\n        return ComponentFromStream;\n      }(Component)\n    );\n  };\n};\n\nvar componentFromStream = function componentFromStream(propsToVdom) {\n  return componentFromStreamWithConfig(config)(propsToVdom);\n};\n\nvar identity$1 = function identity(t) {\n  return t;\n};\n\nvar mapPropsStreamWithConfig = function mapPropsStreamWithConfig(config$$1) {\n  var componentFromStream$$1 = componentFromStreamWithConfig({\n    fromESObservable: identity$1,\n    toESObservable: identity$1\n  });\n  return function (transform) {\n    return function (BaseComponent) {\n      var factory = createFactory(BaseComponent);\n      var fromESObservable = config$$1.fromESObservable,\n          toESObservable = config$$1.toESObservable;\n      return componentFromStream$$1(function (props$) {\n        var _ref;\n\n        return _ref = {\n          subscribe: function subscribe(observer) {\n            var subscription = toESObservable(transform(fromESObservable(props$))).subscribe({\n              next: function next(childProps) {\n                return observer.next(factory(childProps));\n              }\n            });\n            return {\n              unsubscribe: function unsubscribe() {\n                return subscription.unsubscribe();\n              }\n            };\n          }\n        }, _ref[$$observable] = function () {\n          return this;\n        }, _ref;\n      });\n    };\n  };\n};\n\nvar mapPropsStream = function mapPropsStream(transform) {\n  var hoc = mapPropsStreamWithConfig(config)(transform);\n\n  if (process.env.NODE_ENV !== 'production') {\n    return function (BaseComponent) {\n      return setDisplayName(wrapDisplayName(BaseComponent, 'mapPropsStream'))(hoc(BaseComponent));\n    };\n  }\n\n  return hoc;\n};\n\nvar createEventHandlerWithConfig = function createEventHandlerWithConfig(config$$1) {\n  return function () {\n    var _config$fromESObserva;\n\n    var emitter = createChangeEmitter();\n    var stream = config$$1.fromESObservable((_config$fromESObserva = {\n      subscribe: function subscribe(observer) {\n        var unsubscribe = emitter.listen(function (value) {\n          return observer.next(value);\n        });\n        return {\n          unsubscribe: unsubscribe\n        };\n      }\n    }, _config$fromESObserva[$$observable] = function () {\n      return this;\n    }, _config$fromESObserva));\n    return {\n      handler: emitter.emit,\n      stream: stream\n    };\n  };\n};\nvar createEventHandler = createEventHandlerWithConfig(config);\n\n// Higher-order component helpers\n\nexport { mapProps, withProps, withPropsOnChange, withHandlers, defaultProps, renameProp, renameProps, flattenProp, withState, withStateHandlers, withReducer, branch, renderComponent, renderNothing, shouldUpdate, pure, onlyUpdateForKeys, onlyUpdateForPropTypes, withContext, getContext, lifecycle, toClass, toRenderProps, fromRenderProps, setStatic, setPropTypes, setDisplayName, compose, getDisplayName, wrapDisplayName, shallowEqual, isClassComponent, createSink, componentFromProp, nest, hoistStatics, componentFromStream, componentFromStreamWithConfig, mapPropsStream, mapPropsStreamWithConfig, createEventHandler, createEventHandlerWithConfig, configureObservable as setObservableConfig };\n","export { Keyboard } from './Keyboard';\n","\"use strict\";\n\nexports.__esModule = true;\nexports.StyledIcon = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _styledComponents = _interopRequireWildcard(require(\"styled-components\"));\n\nvar _grommetStyles = require(\"grommet-styles\");\n\nvar _defaultProps = require(\"./default-props\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj[\"default\"] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nvar colorCss = (0, _styledComponents.css)([\"\", \" \", \" g{fill:inherit;stroke:inherit;}*:not([stroke]){&[fill=\\\"none\\\"]{stroke-width:0;}}*[stroke*=\\\"#\\\"],*[STROKE*=\\\"#\\\"]{stroke:inherit;fill:none;}*[fill-rule],*[FILL-RULE],*[fill*=\\\"#\\\"],*[FILL*=\\\"#\\\"]{fill:inherit;stroke:none;}\"], function (props) {\n  return (0, _grommetStyles.colorStyle)('fill', props.color || props.theme.global.colors.icon, props.theme);\n}, function (props) {\n  return (0, _grommetStyles.colorStyle)('stroke', props.color || props.theme.global.colors.icon, props.theme);\n});\n\nvar IconInner = function IconInner(_ref) {\n  var a11yTitle = _ref.a11yTitle,\n      color = _ref.color,\n      size = _ref.size,\n      theme = _ref.theme,\n      rest = _objectWithoutPropertiesLoose(_ref, [\"a11yTitle\", \"color\", \"size\", \"theme\"]);\n\n  return _react[\"default\"].createElement(\"svg\", _extends({\n    \"aria-label\": a11yTitle\n  }, rest));\n};\n\nIconInner.displayName = 'Icon';\nvar StyledIcon = (0, _styledComponents[\"default\"])(IconInner).withConfig({\n  displayName: \"StyledIcon\",\n  componentId: \"ofa7kd-0\"\n})([\"display:inline-block;flex:0 0 auto;\", \" \", \" \", \"\"], function (_ref2) {\n  var _ref2$size = _ref2.size,\n      size = _ref2$size === void 0 ? 'medium' : _ref2$size,\n      theme = _ref2.theme;\n  return \"\\n    width: \" + (theme.icon.size[size] || size) + \";\\n    height: \" + (theme.icon.size[size] || size) + \";\\n  \";\n}, function (_ref3) {\n  var color = _ref3.color;\n  return color !== 'plain' && colorCss;\n}, function (_ref4) {\n  var theme = _ref4.theme;\n  return theme && theme.icon.extend;\n});\nexports.StyledIcon = StyledIcon;\nStyledIcon.defaultProps = {};\nObject.setPrototypeOf(StyledIcon.defaultProps, _defaultProps.defaultProps);","export { Button } from './Button';\n","export default function _inheritsLoose(subClass, superClass) {\n  subClass.prototype = Object.create(superClass.prototype);\n  subClass.prototype.constructor = subClass;\n  subClass.__proto__ = superClass;\n}","export { Text } from './Text';\n","import React, { useState } from 'react';\n\n// When not a descendant of a Form, FormContext still provides a basic\n// useFormContext that holds the value state.\nconst useFormContext = (_, valueProp) => {\n  const [value, setValue] = useState(valueProp);\n  if (valueProp !== undefined && valueProp !== value) setValue(valueProp);\n  return [\n    value,\n    nextValue => {\n      // only set if the caller hasn't supplied a specific value\n      if (valueProp === undefined) setValue(nextValue);\n    },\n  ];\n};\n\nexport const FormContext = React.createContext({ useFormContext });\n","/* eslint-disable react/no-multi-comp */\nimport React, { Component } from 'react';\nimport getDisplayName from 'recompose/getDisplayName';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport { withTheme } from 'styled-components';\nimport { AnnounceContext } from '../contexts';\n\nexport const withFocus = ({ focusWithMouse } = {}) => WrappedComponent => {\n  class FocusableComponent extends Component {\n    static getDerivedStateFromProps(nextProps, prevState) {\n      const { withFocusRef } = nextProps;\n      const { wrappedRef } = prevState;\n      const nextWrappedRef = withFocusRef || wrappedRef;\n      if (nextWrappedRef !== wrappedRef) {\n        return { wrappedRef: nextWrappedRef };\n      }\n      return null;\n    }\n\n    mouseActive = false; // not in state because it doesn't affect rendering\n\n    constructor(props) {\n      super(props);\n      this.state = {\n        focus: false,\n        wrappedRef: React.createRef(),\n      };\n    }\n\n    componentDidMount = () => {\n      const { wrappedRef } = this.state;\n\n      // components such as anchors and buttons should not retain focus after\n      // being clicked while text-based components should\n      if (!focusWithMouse) {\n        window.addEventListener('mousedown', this.handleActiveMouse);\n      }\n\n      // we could be using onFocus in the wrapper node itself\n      // but react does not invoke it if you programically\n      // call wrapperNode.focus() inside componentWillUnmount\n      // see Drop \"this.originalFocusedElement.focus();\" for reference\n      const wrapperNode = wrappedRef.current;\n      if (wrapperNode && wrapperNode.addEventListener) {\n        wrapperNode.addEventListener('focus', this.setFocus);\n      }\n    };\n\n    componentWillUnmount = () => {\n      const { wrappedRef } = this.state;\n      window.removeEventListener('mousedown', this.handleActiveMouse);\n      const wrapperNode = wrappedRef.current;\n      if (wrapperNode && wrapperNode.addEventListener) {\n        wrapperNode.removeEventListener('focus', this.setFocus);\n      }\n      clearTimeout(this.focusTimer);\n      clearTimeout(this.mouseTimer);\n    };\n\n    handleActiveMouse = () => {\n      // from https://marcysutton.com/button-focus-hell/\n      this.mouseActive = true;\n      // this avoids showing focus when clicking around\n      clearTimeout(this.mouseTimer);\n      // empirical number to reset mouseActive after\n      // some time has passed without mousedown\n      this.mouseTimer = setTimeout(() => {\n        this.mouseActive = false;\n      }, 150);\n    };\n\n    setFocus = () => {\n      // delay setting focus to avoid interupting events,\n      // 1ms was chosen empirically based on ie11 using Select and TextInput\n      // with and without a FormField.\n      clearTimeout(this.focusTimer);\n      this.focusTimer = setTimeout(() => {\n        const { focus } = this.state;\n        if (!focus && !this.mouseActive) {\n          this.setState({ focus: true });\n        }\n      }, 1);\n    };\n\n    resetFocus = () => {\n      clearTimeout(this.focusTimer);\n      this.focusTimer = setTimeout(() => {\n        const { focus } = this.state;\n        if (focus) {\n          this.setState({ focus: false });\n        }\n      }, 1);\n    };\n\n    render() {\n      const { onFocus, onBlur, withFocusRef, ...rest } = this.props;\n      const { focus, wrappedRef } = this.state;\n      return (\n        <WrappedComponent\n          ref={wrappedRef}\n          focus={focus}\n          {...rest}\n          onFocus={event => {\n            this.setFocus();\n            if (onFocus) {\n              onFocus(event);\n            }\n          }}\n          onBlur={event => {\n            this.resetFocus();\n            if (onBlur) {\n              onBlur(event);\n            }\n          }}\n        />\n      );\n    }\n  }\n\n  const ForwardRef = React.forwardRef((props, ref) => (\n    <FocusableComponent {...props} withFocusRef={ref} />\n  ));\n\n  ForwardRef.displayName = getDisplayName(WrappedComponent);\n  ForwardRef.name = ForwardRef.displayName;\n  ForwardRef.defaultProps = WrappedComponent.defaultProps;\n  hoistNonReactStatics(ForwardRef, WrappedComponent);\n\n  return ForwardRef;\n};\n\nexport const withForwardRef = WrappedComponent => {\n  const ForwardRefComponent = React.forwardRef((props, ref) => (\n    <WrappedComponent forwardRef={ref} {...props} />\n  ));\n\n  ForwardRefComponent.displayName = getDisplayName(WrappedComponent);\n  ForwardRefComponent.name = ForwardRefComponent.displayName;\n  ForwardRefComponent.defaultProps = WrappedComponent.defaultProps;\n  hoistNonReactStatics(ForwardRefComponent, WrappedComponent);\n\n  return ForwardRefComponent;\n};\n\nexport const withAnnounce = WrappedComponent => {\n  const ForwardRef = React.forwardRef((props, ref) => (\n    <AnnounceContext.Consumer>\n      {announce => (\n        <WrappedComponent {...props} announce={announce} ref={ref} />\n      )}\n    </AnnounceContext.Consumer>\n  ));\n\n  ForwardRef.displayName = getDisplayName(WrappedComponent);\n  ForwardRef.name = ForwardRef.displayName;\n  ForwardRef.defaultProps = WrappedComponent.defaultProps;\n  hoistNonReactStatics(ForwardRef, WrappedComponent);\n\n  return ForwardRef;\n};\n\nexport { withTheme };\n","export { TableCell } from './TableCell';\n","// Returns the specific color that should be used according to the theme.\n// If 'dark' is supplied, it takes precedence over 'theme.dark'.\nexport const normalizeColor = (color, theme, dark) => {\n  const colorSpec =\n    theme.global && theme.global.colors[color] !== undefined\n      ? theme.global.colors[color]\n      : color;\n  // If the color has a light or dark object, use that\n  let result = colorSpec;\n  if (colorSpec) {\n    if (\n      (dark === true || (dark === undefined && theme.dark)) &&\n      colorSpec.dark !== undefined\n    ) {\n      result = colorSpec.dark;\n    } else if (\n      (dark === false || !theme.dark) &&\n      colorSpec.light !== undefined\n    ) {\n      result = colorSpec.light;\n    }\n  }\n  // allow one level of indirection in color names\n  if (result && theme.global && theme.global.colors[result] !== undefined) {\n    result = normalizeColor(result, theme);\n  }\n\n  return result;\n};\n\nconst parseHexToRGB = color =>\n  color.length < 7 // 7 is what's needed for '#RRGGBB'\n    ? color.match(/[A-Za-z0-9]{1}/g).map(v => parseInt(`${v}${v}`, 16))\n    : // https://stackoverflow.com/a/42429333\n      color.match(/[A-Za-z0-9]{2}/g).map(v => parseInt(v, 16));\n\n// From: https://stackoverflow.com/a/9493060/8513067\n// Converts an HSL color value to RGB. Conversion formula\n// adapted from http://en.wikipedia.org/wiki/HSL_color_space.\n// Assumes h, s, and l are contained in the set [0, 1] and\n// returns r, g, and b in the set [0, 255].\nconst hslToRGB = (h, s, l) => {\n  let r;\n  let g;\n  let b;\n\n  if (s === 0 || s === '0') {\n    // achromatic\n    r = l;\n    g = l;\n    b = l;\n  } else {\n    const hue2rgb = (p, q, inT) => {\n      let t = inT;\n      if (t < 0) t += 1;\n      if (t > 1) t -= 1;\n      if (t < 0.16666667) return p + (q - p) * 6 * t;\n      if (t < 1 / 2) return q;\n      if (t < 0.66666667) return p + (q - p) * (0.66666667 - t) * 6;\n      return p;\n    };\n\n    const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n    const p = 2 * l - q;\n    r = hue2rgb(p, q, h + 0.33333333);\n    g = hue2rgb(p, q, h);\n    b = hue2rgb(p, q, h - 0.33333333);\n  }\n\n  return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];\n};\n\n// allow for alpha: #RGB, #RGBA, #RRGGBB, or #RRGGBBAA\nconst hexExp = /^#[A-Za-z0-9]{3,4}$|^#[A-Za-z0-9]{6,8}$/;\nconst rgbExp = /rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?\\)/;\nconst rgbaExp = /rgba?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([0-9]*)\\s?,\\s?([.0-9]*)\\s?\\)/;\n// e.g. hsl(240, 60%, 50%)\nconst hslExp = /hsla?\\(\\s?([0-9]*)\\s?,\\s?([0-9]*)%?\\s?,\\s?([0-9]*)%?\\s?.*?\\)/;\n\nconst canExtractRGBArray = color =>\n  hexExp.test(color) ||\n  rgbExp.test(color) ||\n  rgbaExp.test(color) ||\n  hslExp.test(color);\n\nconst getRGBArray = color => {\n  if (hexExp.test(color)) {\n    const [red, green, blue, alpha] = parseHexToRGB(color);\n    return [red, green, blue, alpha !== undefined ? alpha / 255.0 : undefined];\n  }\n  let match = color.match(rgbExp);\n  if (match) {\n    return match.splice(1).map(v => parseInt(v, 10));\n  }\n  match = color.match(rgbaExp);\n  if (match) {\n    return match.splice(1).map(v => parseFloat(v, 10));\n  }\n  match = color.match(hslExp);\n  if (match) {\n    const [h, s, l] = match.splice(1).map(v => parseInt(v, 10));\n    return hslToRGB(h / 360.0, s / 100.0, l / 100.0);\n  }\n  return color;\n};\n\nexport const colorIsDark = color => {\n  const [red, green, blue, alpha] = getRGBArray(color);\n  // if there is an alpha and it's greater than 50%, we can't really tell\n  if (alpha < 0.5) return undefined;\n  const brightness = (299 * red + 587 * green + 114 * blue) / 1000;\n  // From: http://www.had2know.com/technology/color-contrast-calculator-web-design.html\n  // Above domain is no longer registered.\n  return brightness < 125;\n};\n\nexport const getRGBA = (color, opacity) => {\n  if (color && canExtractRGBArray(color)) {\n    const [red, green, blue, alpha] = getRGBArray(color);\n    let normalizedAlpha;\n    if (opacity !== undefined) {\n      normalizedAlpha = opacity;\n    } else if (alpha !== undefined) {\n      normalizedAlpha = alpha;\n    } else {\n      normalizedAlpha = 1;\n    }\n    return `rgba(${red}, ${green}, ${blue}, ${normalizedAlpha})`;\n  }\n  return undefined;\n};\n","import styled, { css } from 'styled-components';\n\nimport {\n  backgroundStyle,\n  borderStyle,\n  edgeStyle,\n  genericStyles,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst SIZE_MAP = {\n  '1/2': '50%',\n  '1/4': '25%',\n  '2/4': '50%',\n  '3/4': '75%',\n  '1/3': '33.33%',\n  '2/3': '66.66%',\n};\n\nconst sizeStyle = css`\n  width: ${props =>\n    SIZE_MAP[props.size] || props.theme.global.size[props.size]};\n  max-width: ${props =>\n    SIZE_MAP[props.size] || props.theme.global.size[props.size]};\n  overflow: hidden;\n`;\n\nconst StyledTableCell = styled.td`\n  margin: 0;\n  padding: 0;\n  font-weight: inherit;\n  text-align: inherit;\n  height: 100%;\n\n  ${props => props.size && sizeStyle}\n  ${props => props.verticalAlign && `vertical-align: ${props.verticalAlign};`}\n  ${props => props.align && `text-align: ${props.align};`}\n  ${props => props.background && backgroundStyle(props.background, props.theme)}\n  ${props =>\n    props.border && borderStyle(props.border, props.responsive, props.theme)}\n  ${props =>\n    props.pad &&\n    edgeStyle(\n      'padding',\n      props.pad,\n      props.responsive,\n      props.theme.box.responsiveBreakpoint,\n      props.theme,\n    )}\n  ${props => props.tableContextTheme && props.tableContextTheme.extend}\n`;\n\nStyledTableCell.defaultProps = {};\nObject.setPrototypeOf(StyledTableCell.defaultProps, defaultProps);\n\nconst StyledTableDataCaption = styled.caption`\n  margin-bottom: ${props => props.theme.global.edgeSize.xxsmall};\n`;\n\nStyledTableDataCaption.defaultProps = {};\nObject.setPrototypeOf(StyledTableDataCaption.defaultProps, defaultProps);\n\nconst StyledTableRow = styled.tr`\n  height: 100%;\n`;\n\nStyledTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledTableRow.defaultProps, defaultProps);\n\nconst StyledTableBody = styled.tbody``;\n\nStyledTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledTableBody.defaultProps, defaultProps);\n\nconst StyledTableHeader = styled.thead``;\n\nStyledTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledTableHeader.defaultProps, defaultProps);\n\nconst StyledTableFooter = styled.tfoot``;\n\nStyledTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledTableFooter.defaultProps, defaultProps);\n\nconst StyledTable = styled.table`\n  border-spacing: 0;\n  border-collapse: collapse;\n  width: inherit;\n  @media all and (min--moz-device-pixel-ratio: 0) {\n    table-layout: fixed;\n  }\n  ${genericStyles} ${props => props.theme.table && props.theme.table.extend};\n`;\n\nStyledTable.defaultProps = {};\nObject.setPrototypeOf(StyledTable.defaultProps, defaultProps);\n\nexport {\n  StyledTableCell,\n  StyledTableDataCaption,\n  StyledTableRow,\n  StyledTableBody,\n  StyledTableHeader,\n  StyledTableFooter,\n  StyledTable,\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n  var ReactIs = require('react-is');\n\n  // By explicitly using `prop-types` you are opting into new development behavior.\n  // http://fb.me/prop-types-in-prod\n  var throwOnDirectAccess = true;\n  module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n  // By explicitly using `prop-types` you are opting into new production behavior.\n  // http://fb.me/prop-types-in-prod\n  module.exports = require('./factoryWithThrowingShims')();\n}\n","export const isObject = item =>\n  item && typeof item === 'object' && !Array.isArray(item);\n\nexport const deepFreeze = obj => {\n  Object.keys(obj).forEach(\n    key => key && isObject(obj[key]) && Object.freeze(obj[key]),\n  );\n  return Object.freeze(obj);\n};\n\nexport const deepMerge = (target, ...sources) => {\n  if (!sources.length) {\n    return target;\n  }\n  // making sure to not change target (immutable)\n  const output = { ...target };\n  sources.forEach(source => {\n    if (isObject(source)) {\n      Object.keys(source).forEach(key => {\n        if (isObject(source[key])) {\n          if (!output[key]) {\n            output[key] = { ...source[key] };\n          } else {\n            output[key] = deepMerge(output[key], source[key]);\n          }\n        } else {\n          output[key] = source[key];\n        }\n      });\n    }\n  });\n  return output;\n};\n\nexport const removeUndefined = obj => {\n  const result = {};\n  Object.keys(obj).forEach(key => {\n    if (obj[key] !== undefined) {\n      result[key] = obj[key];\n    }\n  });\n  return result;\n};\n","export { Heading } from './Heading';\n","export { Anchor } from './Anchor';\n","export * from './AnnounceContext';\nexport * from './ResponsiveContext';\nexport * from './ThemeContext';\n","export { TextInput } from './TextInput';\n","export { InfiniteScroll } from './InfiniteScroll';\n","import styled, { css } from 'styled-components';\n\nimport {\n  backgroundStyle,\n  focusStyle,\n  genericStyles,\n  normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { TableRow } from '../TableRow';\nimport { Table } from '../Table';\nimport { TableBody } from '../TableBody';\nimport { TableHeader } from '../TableHeader';\nimport { TableFooter } from '../TableFooter';\n\nconst StyledDataTable = styled(Table)`\n  border-spacing: 0;\n  border-collapse: collapse;\n  height: auto; /* helps Firefox to get table contents to not overflow */\n\n  ${genericStyles};\n`;\n\nStyledDataTable.defaultProps = {};\nObject.setPrototypeOf(StyledDataTable.defaultProps, defaultProps);\n\nconst hoverStyle = css`\n  ${props =>\n    backgroundStyle(\n      normalizeColor(\n        (props.theme.table &&\n          props.theme.table.row &&\n          props.theme.table.row.hover &&\n          props.theme.table.row.hover.background) ||\n          props.theme.global.hover.background,\n        props.theme,\n      ),\n      props.theme,\n    )}\n  color: ${props =>\n    normalizeColor(\n      (props.theme.table &&\n        props.theme.table.row &&\n        props.theme.table.row.hover &&\n        props.theme.table.row.hover.color) ||\n        props.theme.global.hover.color,\n      props.theme,\n    )};\n`;\n\nconst StyledDataTableRow = styled(TableRow)`\n  ${props =>\n    props.size &&\n    `\n    display: table;\n    width: 100%;\n    table-layout: fixed;\n  `}\n  ${props =>\n    props.onClick &&\n    `\n    cursor: pointer;\n  `}\n  &:hover {\n    ${props => props.onClickRow && !props.active && hoverStyle}\n  }\n  ${props => props.active && hoverStyle}\n`;\n\nStyledDataTableRow.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableRow.defaultProps, defaultProps);\n\nconst StyledDataTableBody = styled(TableBody)`\n  ${props =>\n    props.size &&\n    `\n    display: block;\n    width: 100%;\n    max-height: ${props.theme.global.size[props.size]};\n    overflow: auto;\n  `}\n  ${props => props.focus && focusStyle}\n`;\n\nStyledDataTableBody.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableBody.defaultProps, defaultProps);\n\nconst StyledDataTableHeader = styled(TableHeader)`\n  ${props =>\n    props.size &&\n    `\n    display: table;\n    width: 100%;\n    table-layout: fixed;\n  `}\n`;\n\nStyledDataTableHeader.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableHeader.defaultProps, defaultProps);\n\nconst StyledDataTableFooter = styled(TableFooter)`\n  ${props =>\n    props.size &&\n    `\n    display: table;\n    width: 100%;\n    table-layout: fixed;\n  `}\n`;\n\nStyledDataTableFooter.defaultProps = {};\nObject.setPrototypeOf(StyledDataTableFooter.defaultProps, defaultProps);\n\nexport {\n  StyledDataTable,\n  StyledDataTableRow,\n  StyledDataTableBody,\n  StyledDataTableHeader,\n  StyledDataTableFooter,\n};\n","export { TableRow } from './TableRow';\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n  // SameValue algorithm\n  if (x === y) {\n    // Steps 1-5, 7-10\n    // Steps 6.b-6.e: +0 != -0\n    // Added the nonzero y check to make Flow happy, but it is redundant\n    return x !== 0 || y !== 0 || 1 / x === 1 / y;\n  } else {\n    // Step 6.a: NaN == NaN\n    return x !== x && y !== y;\n  }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n  if (is(objA, objB)) {\n    return true;\n  }\n\n  if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n    return false;\n  }\n\n  var keysA = Object.keys(objA);\n  var keysB = Object.keys(objB);\n\n  if (keysA.length !== keysB.length) {\n    return false;\n  }\n\n  // Test for A's keys different from B.\n  for (var i = 0; i < keysA.length; i++) {\n    if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nmodule.exports = shallowEqual;","import React from 'react';\n\nexport const TableContext = React.createContext(undefined);\n","export { Drop } from './Drop';\n","/* global window */\nimport ponyfill from './ponyfill.js';\n\nvar root;\n\nif (typeof self !== 'undefined') {\n  root = self;\n} else if (typeof window !== 'undefined') {\n  root = window;\n} else if (typeof global !== 'undefined') {\n  root = global;\n} else if (typeof module !== 'undefined') {\n  root = module;\n} else {\n  root = Function('return this')();\n}\n\nvar result = ponyfill(root);\nexport default result;\n","import { css } from 'styled-components';\n\nexport const parseMetricToNum = fontAsString => {\n  if (fontAsString.match(/\\s/) && process.env.NODE_ENV !== 'production') {\n    console.warn(`Invalid single measurement value: \"${fontAsString}\"`);\n  }\n  return parseFloat(fontAsString.match(/\\d+(\\.\\d+)?/), 10);\n};\n\nexport const fontSize = (size, lineHeight) => css`\n  font-size: ${props =>\n    `${(parseMetricToNum(size) /\n      parseMetricToNum(props.theme.global.font.size)) *\n      1}rem`};\n  line-height: ${props =>\n    lineHeight ||\n    `${Math.ceil(\n      parseMetricToNum(size) / parseMetricToNum(props.theme.global.lineHeight),\n    ) *\n      (parseMetricToNum(props.theme.global.lineHeight) /\n        parseMetricToNum(size))}px`};\n`;\n\nexport const breakpointStyle = (breakpoint, content) => css`\n  @media only screen ${breakpoint.value &&\n      `and (max-width: ${breakpoint.value}px)`} {\n    ${content};\n  }\n`;\n\nexport const findAllByType = (component, type) => {\n  let matches = [];\n\n  if (component.type === type) {\n    matches.push(component);\n  }\n\n  if (component.children) {\n    component.children.forEach(child => {\n      matches = matches.concat(findAllByType(child, type));\n    });\n  }\n\n  return matches;\n};\n\nexport const getAvailableAtBadge = availableAt => [\n  {\n    url: `https://storybook.grommet.io/?selectedKind=${availableAt}&full=0&addons=0&stories=1&panelRight=0`,\n    badge:\n      'https://cdn-images-1.medium.com/fit/c/120/120/1*TD1P0HtIH9zF0UEH28zYtw.png',\n    label: 'Storybook',\n  },\n  {\n    url: `https://codesandbox.io/s/github/grommet/grommet-sandbox?initialpath=${availableAt.toLowerCase()}&module=%2Fsrc%2F${availableAt}.js`,\n    badge: 'https://codesandbox.io/static/img/play-codesandbox.svg',\n    label: 'CodeSandbox',\n  },\n];\n","import { css } from 'styled-components';\n\nimport { colorIsDark, getRGBA, normalizeColor } from './colors';\n\n// evalStyle() converts a styled-components item into a string\nconst evalStyle = (arg, theme) => {\n  if (arg && Array.isArray(arg) && typeof arg[0] === 'function') {\n    return arg[0]({ theme });\n  }\n  return arg;\n};\n\nexport const normalizeBackground = (background, theme) => {\n  // If the background has a light or dark object, use that\n  let result = background;\n  if (background) {\n    if (theme.dark && background.dark && typeof background.dark !== 'boolean') {\n      result = background.dark;\n    } else if (\n      !theme.dark &&\n      background.light &&\n      typeof background.light !== 'boolean'\n    ) {\n      result = background.light;\n    }\n    result = evalStyle(result, theme);\n  }\n  return result;\n};\n\nexport const backgroundIsDark = (backgroundArg, theme) => {\n  const background = normalizeBackground(backgroundArg, theme);\n  let result;\n  if (background) {\n    if (typeof background === 'object') {\n      const { color, dark, opacity } = background;\n      if (typeof dark === 'boolean') {\n        result = dark;\n      } else if (\n        color &&\n        // weak opacity means we keep the existing darkness\n        (!opacity || opacity !== 'weak')\n      ) {\n        const backgroundColor = normalizeColor(background.color, theme);\n        if (backgroundColor) {\n          result = colorIsDark(backgroundColor);\n        }\n      }\n    } else {\n      const color = normalizeColor(background, theme);\n      if (color) {\n        result = colorIsDark(color);\n      }\n    }\n  }\n  return result;\n};\n\nexport const backgroundStyle = (backgroundArg, theme, textColorArg) => {\n  // for Grommet component, if the background isn't defined, don't set it\n  if (backgroundArg === undefined) {\n    return undefined;\n  }\n\n  // If the background has a light or dark object, use that\n  const background = normalizeBackground(backgroundArg, theme);\n  const textColor = textColorArg || theme.global.colors.text;\n\n  if (typeof background === 'object') {\n    const styles = [];\n    if (background.image) {\n      let color;\n      if (background.dark === false) {\n        color = normalizeColor(textColor.light || textColor, theme);\n      } else if (background.dark) {\n        color = normalizeColor(textColor.dark || textColor, theme);\n      } else if (!textColorArg) {\n        color = 'inherit';\n      }\n      styles.push(css`\n        background-image: ${background.image};\n        background-repeat: ${background.repeat || 'no-repeat'};\n        background-position: ${background.position || 'center center'};\n        background-size: ${background.size || 'cover'};\n        color: ${color};\n      `);\n    }\n    if (background.color) {\n      const color = normalizeColor(background.color, theme, background.dark);\n      const backgroundColor =\n        getRGBA(\n          color,\n          background.opacity === true\n            ? theme.global.opacity.medium\n            : theme.global.opacity[background.opacity] || background.opacity,\n        ) || color;\n      styles.push(css`\n        background-color: ${backgroundColor};\n        ${(!background.opacity || background.opacity !== 'weak') &&\n          `color: ${normalizeColor(\n            textColor[\n              background.dark || colorIsDark(backgroundColor) ? 'dark' : 'light'\n            ] || textColor,\n            theme,\n          )};`}\n      `);\n    }\n    if (background.dark === false) {\n      styles.push(css`\n        color: ${textColor.light || textColor};\n      `);\n    } else if (background.dark) {\n      styles.push(css`\n        color: ${textColor.dark || textColor};\n      `);\n    }\n    return styles;\n  }\n\n  if (background) {\n    if (background.lastIndexOf('url', 0) === 0) {\n      return css`\n        background: ${background} no-repeat center center;\n        background-size: cover;\n      `;\n    }\n    const backgroundColor = normalizeColor(background, theme);\n    if (backgroundColor) {\n      const backgroundDark = colorIsDark(backgroundColor);\n      return css`\n        background: ${backgroundColor};\n        color: ${normalizeColor(\n          textColor[\n            backgroundDark || (backgroundDark === undefined && theme.dark)\n              ? 'dark'\n              : 'light'\n          ] || textColor,\n          theme,\n        )};\n      `;\n    }\n  }\n\n  return undefined;\n};\n\nexport const activeStyle = css`\n  ${props =>\n    backgroundStyle(\n      normalizeColor(props.theme.global.active.background, props.theme),\n      props.theme,\n      props.theme.global.active.color,\n    )}\n`;\n\nexport const selectedStyle = css`\n  ${props =>\n    backgroundStyle(\n      normalizeColor(props.theme.global.selected.background, props.theme),\n      props.theme,\n      props.theme.global.selected.color,\n    )}\n`;\n\nexport const getHoverIndicatorStyle = (hoverIndicator, theme) => {\n  let background;\n  if (hoverIndicator === true || hoverIndicator === 'background') {\n    ({ background } = theme.global.hover);\n  } else {\n    background = hoverIndicator;\n  }\n  return css`\n    ${backgroundStyle(background, theme, theme.global.hover.color)}\n  `;\n};\n","export { Stack } from './Stack';\n","module.exports = ReactDOM;","export { Table } from './Table';\n","export { TableBody } from './TableBody';\n","export { TableHeader } from './TableHeader';\n","export { TableFooter } from './TableFooter';\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { TableCell } from '../TableCell';\nimport { Text } from '../Text';\nimport { datumValue } from './buildState';\n\nconst normalizeProp = (name, rowProp, prop) => {\n  if (rowProp && rowProp[name]) return rowProp[name];\n  return prop;\n};\n\nconst Cell = ({\n  background,\n  border,\n  column: { align, property, render, verticalAlign },\n  context,\n  datum,\n  index,\n  pad,\n  primaryProperty,\n  rowProp,\n  scope,\n  theme,\n}) => {\n  const value = datumValue(datum, property);\n  let content;\n  if (render) {\n    content = render(datum);\n  } else if (value !== undefined) {\n    content = value;\n  }\n\n  if (typeof content === 'string' || typeof content === 'number') {\n    const textProps =\n      property === primaryProperty ? theme.dataTable.primary : {};\n    content = <Text {...textProps}>{content}</Text>;\n  }\n\n  return (\n    <TableCell\n      scope={scope}\n      {...theme.dataTable[context]}\n      align={align}\n      verticalAlign={verticalAlign}\n      background={normalizeProp(\n        'background',\n        rowProp,\n        Array.isArray(background)\n          ? background[index % background.length]\n          : background,\n      )}\n      border={normalizeProp('border', rowProp, border)}\n      pad={normalizeProp('pad', rowProp, pad)}\n    >\n      {content}\n    </TableCell>\n  );\n};\n\nCell.defaultProps = {};\nObject.setPrototypeOf(Cell.defaultProps, defaultProps);\n\nconst CellWrapper = compose(withTheme)(Cell);\n\nexport { CellWrapper as Cell };\n","// This file contains helper functions for DataTable, to keep the component\n// files simpler.\n\n// get the value for the property in the datum object\nexport const datumValue = (datum, property) => {\n  if (!property) return undefined;\n  const parts = property.split('.');\n  if (parts.length === 1) {\n    return datum[property];\n  }\n  if (!datum[parts[0]]) {\n    return undefined;\n  }\n  return datumValue(datum[parts[0]], parts.slice(1).join('.'));\n};\n\n// get the primary property name\nexport const normalizePrimaryProperty = (columns, primaryKey) => {\n  let result;\n  columns.forEach(column => {\n    // remember the first key property\n    if (column.primary && !result) {\n      result = column.property;\n    }\n  });\n  if (!result) {\n    if (primaryKey === false) result = undefined;\n    else if (primaryKey) result = primaryKey;\n    else if (columns.length > 0) result = columns[0].property;\n  }\n  return result;\n};\n\n// initialize filters with empty strings\nexport const initializeFilters = columns => {\n  const result = {};\n  columns.forEach(column => {\n    if (column.search) {\n      result[column.property] = '';\n    }\n  });\n  return result;\n};\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping\nconst escapeRegExp = input => input.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\n// filter data based on filters then sort\nexport const filterAndSortData = (data, filters, onSearch, sort) => {\n  let result = data;\n  if (!onSearch) {\n    const regexps = {};\n    Object.keys(filters)\n      .filter(n => filters[n])\n      .forEach(n => {\n        regexps[n] = new RegExp(escapeRegExp(filters[n]), 'i');\n      });\n    if (Object.keys(regexps).length > 0) {\n      result = data.filter(\n        datum =>\n          !Object.keys(regexps).some(\n            property => !regexps[property].test(datumValue(datum, property)),\n          ),\n      );\n    }\n  }\n\n  if (sort) {\n    const { property, direction } = sort;\n    result = result === data ? [...data] : result; // don't sort caller's data\n    const before = direction === 'asc' ? 1 : -1;\n    const after = direction === 'asc' ? -1 : 1;\n    result.sort((d1, d2) => {\n      if (d1[property] > d2[property]) return before;\n      if (d1[property] < d2[property]) return after;\n      return 0;\n    });\n  }\n\n  return result;\n};\n\n// aggregate reducers\nconst sumReducer = (accumulated, next) => accumulated + next;\nconst minReducer = (accumulated, next) =>\n  accumulated === undefined ? next : Math.min(accumulated, next);\nconst maxReducer = (accumulated, next) =>\n  accumulated === undefined ? next : Math.max(accumulated, next);\n\nconst reducers = {\n  max: maxReducer,\n  min: minReducer,\n  sum: sumReducer,\n};\n\n// aggregate a single column\nconst aggregateColumn = (column, data) => {\n  let value;\n  if (column.aggregate === 'avg') {\n    value = data.map(d => datumValue(d, column.property)).reduce(sumReducer);\n    value /= data.length;\n  } else {\n    value = data\n      .map(d => datumValue(d, column.property))\n      .reduce(reducers[column.aggregate], 0);\n  }\n  return value;\n};\n\n// aggregate all columns that can\nconst aggregate = (columns, data) => {\n  const result = {};\n  columns.forEach(column => {\n    if (column.aggregate) {\n      result[column.property] = aggregateColumn(column, data);\n    }\n  });\n  return result;\n};\n\n// build the values for the footer cells\nexport const buildFooterValues = (columns, data) => {\n  const aggregateValues = aggregate(columns, data);\n\n  const result = {};\n  columns.forEach(column => {\n    if (column.footer) {\n      if (typeof column.footer === 'string') {\n        result[column.property] = column.footer;\n      } else if (column.footer.aggregate) {\n        result[column.property] = aggregateValues[column.property];\n      }\n    }\n  });\n\n  return result;\n};\n\n// looks at the groupBy property of each data object and returns an\n// array with one item for each unique value of that property.\nexport const buildGroups = (columns, data, groupBy) => {\n  let result;\n  if (groupBy) {\n    result = [];\n    const groupMap = {};\n    data.forEach(datum => {\n      const groupByProperty = groupBy.property ? groupBy.property : groupBy;\n      const groupValue = datumValue(datum, groupByProperty);\n      if (!groupMap[groupValue]) {\n        const group = { data: [], datum: {}, key: groupValue };\n        group.datum[groupByProperty] = groupValue;\n        result.push(group);\n        groupMap[groupValue] = group;\n      }\n      groupMap[groupValue].data.push(datum);\n    });\n\n    // include any aggregate column values across the data for each group\n    columns.forEach(column => {\n      if (column.aggregate) {\n        result.forEach(group => {\n          const { datum } = group;\n          datum[column.property] = aggregateColumn(column, group.data);\n        });\n      }\n    });\n  }\n\n  return result;\n};\n\n// build group expanded state, expanding any in groupBy.expand\nexport const buildGroupState = (groups, groupBy) => {\n  const result = {};\n  if (groups) {\n    groups.forEach(({ key }) => {\n      result[key] = { expanded: false };\n    });\n  }\n  if (groupBy && groupBy.expand) {\n    groupBy.expand.forEach(value => {\n      result[value] = { expanded: true };\n    });\n  }\n  return result;\n};\n","export { DropButton } from './DropButton';\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nvar createChangeEmitter = exports.createChangeEmitter = function createChangeEmitter() {\n  var currentListeners = [];\n  var nextListeners = currentListeners;\n\n  function ensureCanMutateNextListeners() {\n    if (nextListeners === currentListeners) {\n      nextListeners = currentListeners.slice();\n    }\n  }\n\n  function listen(listener) {\n    if (typeof listener !== 'function') {\n      throw new Error('Expected listener to be a function.');\n    }\n\n    var isSubscribed = true;\n\n    ensureCanMutateNextListeners();\n    nextListeners.push(listener);\n\n    return function () {\n      if (!isSubscribed) {\n        return;\n      }\n\n      isSubscribed = false;\n\n      ensureCanMutateNextListeners();\n      var index = nextListeners.indexOf(listener);\n      nextListeners.splice(index, 1);\n    };\n  }\n\n  function emit() {\n    currentListeners = nextListeners;\n    var listeners = currentListeners;\n    for (var i = 0; i < listeners.length; i++) {\n      listeners[i].apply(listeners, arguments);\n    }\n  }\n\n  return {\n    listen: listen,\n    emit: emit\n  };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _PropTypes = require('./PropTypes');\n\nvar _PropTypes2 = _interopRequireDefault(_PropTypes);\n\nvar _describe = require('./describe');\n\nvar _describe2 = _interopRequireDefault(_describe);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.PropTypes = _PropTypes2.default;\nexports.describe = _describe2.default;\n\nexports.default = {\n  describe: _describe2.default,\n  PropTypes: _PropTypes2.default\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\n// array function should not be used here so that we can the local this\nvar addPropTypeDocumentationField = function addPropTypeDocumentationField(fieldName) {\n  return function addFieldToReactDesc(value) {\n    if (!this.reactDesc) {\n      this.reactDesc = {};\n    }\n    this.reactDesc[fieldName] = value;\n    return this;\n  };\n};\n\nvar documentedPropType = {\n  defaultValue: addPropTypeDocumentationField('defaultValue'),\n  description: addPropTypeDocumentationField('description'),\n  deprecated: addPropTypeDocumentationField('deprecated'),\n  format: addPropTypeDocumentationField('format')\n};\n\nvar createPropType = function createPropType(type) {\n  var propTypeObj = _extends({\n    type: type\n  }, documentedPropType);\n  Object.defineProperty(propTypeObj, 'isRequired', {\n    get: function getRequired() {\n      if (!this.reactDesc) {\n        this.reactDesc = {};\n      }\n      this.reactDesc.required = true;\n      return this;\n    },\n    enumerable: true,\n    configurable: true\n  });\n  return propTypeObj;\n};\n\nvar createPropTypeWithArgs = function createPropTypeWithArgs(type) {\n  return function (args) {\n    var propTypeObj = _extends({\n      args: args,\n      type: type\n    }, documentedPropType);\n    Object.defineProperty(propTypeObj, 'isRequired', {\n      get: function getRequired() {\n        if (!this.reactDesc) {\n          this.reactDesc = {};\n        }\n        this.reactDesc.required = true;\n        return this;\n      },\n      enumerable: true,\n      configurable: true\n    });\n    return propTypeObj;\n  };\n};\n\nvar PropTypes = {\n  custom: function custom(callback) {\n    var target = callback.bind(null);\n    target.type = 'func';\n    Object.keys(documentedPropType).forEach(function (fieldName) {\n      target[fieldName] = documentedPropType[fieldName];\n    });\n    return target;\n  }\n};\n\nfunction definePropType(type) {\n  Object.defineProperty(PropTypes, type, {\n    get: function getPropType() {\n      return createPropType(type);\n    },\n    enumerable: true,\n    configurable: true\n  });\n}\n\nfunction definePropTypeWithArgs(type) {\n  Object.defineProperty(PropTypes, type, {\n    get: function getPropType() {\n      return createPropTypeWithArgs(type);\n    },\n    enumerable: true,\n    configurable: true\n  });\n}\n\ndefinePropType('any');\ndefinePropType('array');\ndefinePropType('bool');\ndefinePropType('element');\ndefinePropType('func');\ndefinePropType('node');\ndefinePropType('number');\ndefinePropType('object');\ndefinePropType('symbol');\ndefinePropType('string');\n\ndefinePropTypeWithArgs('arrayOf');\ndefinePropTypeWithArgs('instanceOf');\ndefinePropTypeWithArgs('objectOf');\ndefinePropTypeWithArgs('oneOfType');\ndefinePropTypeWithArgs('oneOf');\ndefinePropTypeWithArgs('shape');\n\nexports.default = PropTypes;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = descToJSON;\n\nvar arrayFormat = function arrayFormat(array, prefix) {\n  return array.map(function (propType) {\n    return propTypeFormat(propType, prefix);\n  });\n};\n\nvar shapeFormat = function shapeFormat(shape, prefix) {\n  var props = Object.keys(shape).map(function (key) {\n    var value = shape[key];\n    var valueFormat = void 0;\n    if (value.type && (value.type === 'arrayOf' || value.type === 'oneOfType' || value.type === 'oneOf') && Array.isArray(value.args)) {\n      valueFormat = '\\n' + propTypeFormat(value, prefix + '    ');\n    } else if (value.type === 'shape') {\n      valueFormat = '\\n' + propTypeFormat(value, prefix + '    ');\n    } else {\n      valueFormat = propTypeFormat(value);\n    }\n    return prefix + '  ' + key + ': ' + valueFormat;\n  });\n  return prefix + '{\\n' + props.join(',\\n') + '\\n' + prefix + '}';\n};\n\nvar propTypeFormat = function propTypeFormat(propType) {\n  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n  var result = void 0;\n  if (propType.type) {\n    switch (propType.type) {\n      case 'arrayOf':\n        if (Array.isArray(propType.args)) {\n          result = prefix + '[\\n' + arrayFormat(propType.args, prefix + '  ').join('\\n') + '\\n' + prefix + ']';\n        } else if (propType.args.type === 'oneOfType') {\n          result = prefix + '[\\n' + propTypeFormat(propType.args, prefix + '  ') + '\\n' + prefix + ']';\n        } else {\n          result = prefix + '[' + propTypeFormat(propType.args) + ']';\n        }\n        break;\n      case 'bool':\n        result = prefix + 'boolean';\n        break;\n      case 'func':\n        result = prefix + 'function';\n        break;\n      case 'instanceOf':\n        result = prefix + 'new ' + propType.args.name + '(...)';\n        break;\n      case 'objectOf':\n        result = prefix + '{ test: ' + propType.args.type + ', ... }';\n        break;\n      case 'oneOf':\n        result = propType.args.map(function (a) {\n          return '' + prefix + a;\n        }).join('\\n');\n        break;\n      case 'oneOfType':\n        if (Array.isArray(propType.args)) {\n          result = arrayFormat(propType.args, prefix).join('\\n');\n        } else {\n          result = '' + prefix + propTypeFormat(propType.args);\n        }\n        break;\n      case 'shape':\n        result = '' + shapeFormat(propType.args, prefix);\n        break;\n      default:\n        result = '' + prefix + propType.type;\n        break;\n    }\n  } else {\n    result = prefix + 'custom';\n  }\n  return result;\n};\n\nvar propTypeAsJson = function propTypeAsJson(propType, propName, defaultValue) {\n  var documentation = _extends({}, propType.reactDesc, {\n    name: propName\n  });\n\n  if (defaultValue) {\n    documentation.defaultValue = defaultValue;\n  }\n\n  documentation.format = documentation.format || propTypeFormat(propType);\n\n  return documentation;\n};\n\nfunction descToJSON(component) {\n  var reactDesc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  if (!component) {\n    throw new Error('react-desc: component is required');\n  }\n\n  var documentation = _extends({\n    name: component.displayName || component.name\n  }, reactDesc);\n  if (reactDesc) {\n    delete documentation.propTypes;\n\n    if (reactDesc.propTypes) {\n      var propTypes = [];\n      Object.keys(reactDesc.propTypes).forEach(function (propName) {\n        var propType = reactDesc.propTypes[propName];\n        propTypes.push(propTypeAsJson(propType, propName, (component.defaultProps || {})[propName]));\n      });\n      if (propTypes.length > 0) {\n        documentation.properties = propTypes;\n      }\n    }\n  }\n  return documentation;\n}","import { rgba } from 'polished';\nimport { css } from 'styled-components';\n\nimport { Actions } from 'grommet-icons/icons/Actions';\nimport { ClosedCaption } from 'grommet-icons/icons/ClosedCaption';\nimport { Expand } from 'grommet-icons/icons/Expand';\nimport { FormDown } from 'grommet-icons/icons/FormDown';\nimport { FormNext } from 'grommet-icons/icons/FormNext';\nimport { FormPrevious } from 'grommet-icons/icons/FormPrevious';\nimport { FormUp } from 'grommet-icons/icons/FormUp';\nimport { Next } from 'grommet-icons/icons/Next';\nimport { Pause } from 'grommet-icons/icons/Pause';\nimport { Play } from 'grommet-icons/icons/Play';\nimport { Previous } from 'grommet-icons/icons/Previous';\nimport { Subtract } from 'grommet-icons/icons/Subtract';\nimport { Volume } from 'grommet-icons/icons/Volume';\nimport { VolumeLow } from 'grommet-icons/icons/VolumeLow';\nimport { base as iconBase } from 'grommet-icons/themes/base';\n\nimport { deepFreeze, deepMerge } from '../utils/object';\nimport { normalizeColor } from '../utils/colors';\n\nconst brandColor = '#7D4CDB';\nconst accentColors = ['#6FFFB0', '#FD6FFF', '#81FCED', '#FFCA58'];\nconst neutralColors = ['#00873D', '#3D138D', '#00739D', '#A2423D'];\nconst statusColors = {\n  critical: '#FF4040',\n  error: '#FF4040',\n  warning: '#FFAA15',\n  ok: '#00C781',\n  unknown: '#CCCCCC',\n  disabled: '#CCCCCC',\n};\nconst darkColors = [\n  '#333333',\n  '#555555',\n  '#777777',\n  '#999999',\n  '#999999',\n  '#999999',\n];\nconst lightColors = [\n  '#F8F8F8',\n  '#F2F2F2',\n  '#EDEDED',\n  '#DADADA',\n  '#DADADA',\n  '#DADADA',\n];\nconst focusColor = accentColors[0];\n\nconst colors = {\n  active: rgba(221, 221, 221, 0.5),\n  'background-back': {\n    dark: '#33333308',\n    light: '#EDEDED',\n  },\n  'background-front': {\n    dark: '#444444',\n    light: '#FFFFFF',\n  },\n  'background-contrast': {\n    dark: '#33333308',\n    light: '#FFFFFF08',\n  },\n  'active-background': 'background-contrast',\n  'active-text': 'text-strong',\n  black: '#000000',\n  border: {\n    dark: rgba(255, 255, 255, 0.33),\n    light: rgba(0, 0, 0, 0.33),\n  },\n  brand: brandColor,\n  control: {\n    dark: 'accent-1',\n    light: 'brand',\n  },\n  focus: focusColor,\n  'graph-0': 'accent-1',\n  'graph-1': 'neutral-1',\n  'graph-2': 'neutral-2',\n  'graph-3': 'neutral-3',\n  'graph-4': 'neutral-4',\n  placeholder: '#AAAAAA',\n  selected: 'brand',\n  text: {\n    dark: '#f8f8f8',\n    light: '#444444',\n  },\n  'text-strong': {\n    dark: '#FFFFFF',\n    light: '#000000',\n  },\n  'text-weak': {\n    dark: '#CCCCCC',\n    light: '#555555',\n  },\n  'text-xweak': {\n    dark: '#BBBBBB',\n    light: '#666666',\n  },\n  icon: {\n    dark: '#f8f8f8',\n    light: '#666666',\n  },\n  'selected-background': 'brand',\n  'selected-text': 'text-strong',\n  white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n  array.forEach((color, index) => {\n    colors[`${prefix}-${index + 1}`] = color;\n  });\n\ncolorArray(accentColors, 'accent');\ncolorArray(darkColors, 'dark');\ncolorArray(lightColors, 'light');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach(color => {\n  colors[`status-${color}`] = statusColors[color];\n});\n\nexport const generate = (baseSpacing = 24, scale = 6) => {\n  // 24\n  const baseFontSize = baseSpacing * 0.75; // 18\n  const fontScale = baseSpacing / scale; // 4\n\n  const fontSizing = factor => ({\n    size: `${baseFontSize + factor * fontScale}px`,\n    height: `${baseSpacing + factor * fontScale}px`,\n    // maxWidth chosen to be ~50 characters wide\n    // see: https://ux.stackexchange.com/a/34125\n    maxWidth: `${baseSpacing * (baseFontSize + factor * fontScale)}px`,\n  });\n\n  const borderWidth = 2;\n\n  const result = deepMerge(iconBase, {\n    global: {\n      active: {\n        background: {\n          color: 'active',\n          opacity: 'medium',\n        },\n        color: {\n          dark: 'white',\n          light: 'black',\n        },\n      },\n      animation: {\n        duration: '1s',\n        jiggle: {\n          duration: '0.1s',\n        },\n      },\n      borderSize: {\n        xsmall: '1px',\n        small: '2px',\n        medium: `${baseSpacing / 6}px`, // 4\n        large: `${baseSpacing / 2}px`, // 12\n        xlarge: `${baseSpacing}px`, // 24\n      },\n      breakpoints: {\n        small: {\n          value: baseSpacing * 32, // 768\n          borderSize: {\n            xsmall: '1px',\n            small: '2px',\n            medium: `${baseSpacing / 6}px`, // 4\n            large: `${baseSpacing / 4}px`, // 6\n            xlarge: `${baseSpacing / 2}px`, // 12\n          },\n          edgeSize: {\n            none: '0px',\n            hair: '1px', // for Chart\n            xxsmall: '2px',\n            xsmall: `${baseSpacing / 8}px`, // 3\n            small: `${baseSpacing / 4}px`, // 6\n            medium: `${baseSpacing / 2}px`, // 12\n            large: `${baseSpacing}px`, // 24\n            xlarge: `${baseSpacing * 2}px`, // 48\n          },\n          size: {\n            xxsmall: `${baseSpacing}px`, // 24\n            xsmall: `${baseSpacing * 2}px`, // 48\n            small: `${baseSpacing * 4}px`, // 96\n            medium: `${baseSpacing * 8}px`, // 192\n            large: `${baseSpacing * 16}px`, // 384\n            xlarge: `${baseSpacing * 32}px`, // 768\n            full: '100%',\n          },\n        },\n        medium: {\n          value: baseSpacing * 64, // 1536\n        },\n        large: {}, // anything above 'medium'\n      },\n      // Breakpoints used at Server Side Rendering for the initial rendering\n      // These values correspond to the theme breakpoints\n      deviceBreakpoints: {\n        phone: 'small',\n        tablet: 'medium',\n        computer: 'large',\n      },\n      colors,\n      control: {\n        border: {\n          width: '1px',\n          radius: '4px',\n          color: 'border',\n        },\n        disabled: {\n          opacity: 0.3,\n        },\n      },\n      // The time to wait after the user stopped typing, measured in ms.\n      debounceDelay: 300,\n      drop: {\n        background: '#ffffff',\n        border: {\n          radius: '0px',\n        },\n        shadowSize: 'small',\n        zIndex: '20',\n      },\n      edgeSize: {\n        none: '0px',\n        hair: '1px', // for Chart\n        xxsmall: `${baseSpacing / 8}px`, // 3\n        xsmall: `${baseSpacing / 4}px`, // 6\n        small: `${baseSpacing / 2}px`, // 12\n        medium: `${baseSpacing}px`, // 24\n        large: `${baseSpacing * 2}px`, // 48\n        xlarge: `${baseSpacing * 4}px`, // 96\n        responsiveBreakpoint: 'small',\n      },\n      elevation: {\n        light: {\n          none: 'none',\n          xsmall: '0px 1px 2px rgba(0, 0, 0, 0.20)',\n          small: '0px 2px 4px rgba(0, 0, 0, 0.20)',\n          medium: '0px 4px 8px rgba(0, 0, 0, 0.20)',\n          large: '0px 8px 16px rgba(0, 0, 0, 0.20)',\n          xlarge: '0px 12px 24px rgba(0, 0, 0, 0.20)',\n        },\n        dark: {\n          none: 'none',\n          xsmall: '0px 2px 2px rgba(255, 255, 255, 0.40)',\n          small: '0px 4px 4px rgba(255, 255, 255, 0.40)',\n          medium: '0px 6px 8px rgba(255, 255, 255, 0.40)',\n          large: '0px 8px 16px rgba(255, 255, 255, 0.40)',\n          xlarge: '0px 12px 24px rgba(255, 255, 255, 0.40)',\n        },\n      },\n      focus: {\n        border: {\n          color: 'focus',\n        },\n      },\n      font: {\n        ...fontSizing(0),\n        // face: undefined,\n        // family: undefined,\n      },\n      hover: {\n        background: {\n          color: 'active',\n          opacity: 'medium',\n        },\n        color: {\n          dark: 'white',\n          light: 'black',\n        },\n      },\n      input: {\n        padding: `${baseSpacing / 2}px`,\n        weight: 600,\n      },\n      opacity: {\n        strong: 0.8,\n        medium: 0.4,\n        weak: 0.1,\n      },\n      selected: {\n        background: 'selected',\n        color: 'white',\n      },\n      spacing: `${baseSpacing}px`,\n      size: {\n        xxsmall: `${baseSpacing * 2}px`, // 48\n        xsmall: `${baseSpacing * 4}px`, // 96\n        small: `${baseSpacing * 8}px`, // 192\n        medium: `${baseSpacing * 16}px`, // 384\n        large: `${baseSpacing * 32}px`, // 768\n        xlarge: `${baseSpacing * 48}px`, // 1152\n        xxlarge: `${baseSpacing * 64}px`, // 1536\n        full: '100%',\n      },\n    },\n    accordion: {\n      border: {\n        side: 'bottom',\n        color: 'border',\n      },\n      heading: { level: '4' }, // level ranges from 1-6\n      icons: {\n        collapse: FormUp,\n        expand: FormDown,\n        // color: { dark: undefined, light: undefined },\n      },\n    },\n    anchor: {\n      textDecoration: 'none',\n      fontWeight: 600,\n      color: {\n        dark: 'accent-1',\n        light: 'brand',\n      },\n      hover: {\n        textDecoration: 'underline',\n        // fontWeight: undefined,\n        // extend: undefined,\n      },\n      // extend: undefined,\n    },\n    avatar: {\n      // extend: undefined,\n      size: {\n        xsmall: `${baseSpacing * 0.75}px`,\n        small: `${baseSpacing}px`,\n        medium: `${baseSpacing * 2}px`, // default 48\n        large: `${baseSpacing * 3}px`,\n        xlarge: `${baseSpacing * 4}px`,\n      },\n      text: {\n        // fontWeight: undefined,\n        // extend: undefined\n      },\n    },\n    box: {\n      responsiveBreakpoint: 'small', // when we switch rows to columns\n      // extend: undefined,\n    },\n    button: {\n      size: {\n        small: {\n          border: {\n            radius: `${baseSpacing * 0.75}px`,\n          },\n          pad: {\n            vertical: `${baseSpacing / 4 - borderWidth}px`, // 4px\n            horizontal: `${baseSpacing - borderWidth * 2}px`, // 20px,\n          },\n        },\n        medium: {\n          border: {\n            radius: `${baseSpacing * 0.75}px`, // 18px\n          },\n          pad: {\n            vertical: `${baseSpacing / 4 - borderWidth}px`, // 4px\n            horizontal: `${baseSpacing - borderWidth}px`, // 22px\n          },\n        },\n        large: {\n          border: {\n            radius: `${baseSpacing}px`, // 24px\n          },\n          pad: {\n            vertical: `${baseSpacing / 4 + borderWidth}px`, // 8px\n            horizontal: `${baseSpacing + borderWidth * 4}px`, // 32px,\n          },\n        },\n      },\n      border: {\n        // color: { dark: undefined, light: undefined }\n        width: `${borderWidth}px`,\n        radius: `${baseSpacing * 0.75}px`,\n      },\n      // color: { dark: undefined, light: undefined }\n      primary: {\n        // color: { dark: undefined, light: undefined }\n      },\n      // disabled: { opacity: undefined },\n      padding: {\n        vertical: `${baseSpacing / 4 - borderWidth}px`,\n        horizontal: `${baseSpacing - borderWidth}px`,\n      },\n      transition: {\n        timing: 'ease-in-out',\n        duration: 0.1,\n        properties: ['color', 'background-color', 'border-color', 'box-shadow'],\n      },\n    },\n    calendar: {\n      // daySize must align with global.size\n      small: {\n        fontSize: `${baseFontSize - fontScale}px`,\n        lineHeight: 1.375,\n        daySize: `${(baseSpacing * 8) / 7}px`,\n        slideDuration: '0.2s',\n      },\n      medium: {\n        fontSize: `${baseFontSize}px`,\n        lineHeight: 1.45,\n        daySize: `${(baseSpacing * 16) / 7}px`,\n        slideDuration: '0.5s',\n      },\n      large: {\n        fontSize: `${baseFontSize + 3 * fontScale}px`,\n        lineHeight: 1.11,\n        daySize: `${(baseSpacing * 32) / 7}px`,\n        slideDuration: '0.8s',\n      },\n      icons: {\n        previous: Previous,\n        next: Next,\n        small: {\n          previous: FormPrevious,\n          next: FormNext,\n        },\n      },\n      heading: { level: '4' }, // level ranges from 1-6\n    },\n    carousel: {\n      icons: {\n        current: Subtract,\n        next: Next,\n        previous: Previous,\n        // color: { dark: undefined, light: undefined },\n      },\n      animation: {\n        duration: 1000,\n      },\n      disabled: {\n        icons: {\n          // color: { dark: undefined, light: undefined },\n        },\n      },\n    },\n    chart: {\n      color: 'graph-0',\n      // extend: undefined,\n    },\n    checkBox: {\n      border: {\n        color: {\n          dark: 'rgba(255, 255, 255, 0.5)',\n          light: 'rgba(0, 0, 0, 0.15)',\n        },\n        width: '2px',\n      },\n      check: {\n        // extend: undefined,\n        radius: '4px',\n        thickness: '4px',\n      },\n      // color: { dark: undefined, light: undefined },\n      // extend: undefined,\n      // gap: undefined\n      hover: {\n        border: {\n          color: {\n            dark: 'white',\n            light: 'black',\n          },\n        },\n      },\n      icon: {\n        // size: undefined,\n        // extend: undefined,\n      },\n      icons: {\n        // checked: undefined,\n        // indeterminate: undefined,\n      },\n      size: `${baseSpacing}px`,\n      toggle: {\n        // background: undefined\n        color: {\n          dark: '#d9d9d9',\n          light: '#d9d9d9',\n        },\n        knob: {\n          // extend: undefined,\n        },\n        radius: `${baseSpacing}px`,\n        size: `${baseSpacing * 2}px`,\n        // extend: undefined,\n      },\n    },\n    clock: {\n      analog: {\n        // extend: undefined,\n        hour: {\n          color: {\n            dark: 'light-2',\n            light: 'dark-3',\n          },\n          width: `${baseSpacing / 3}px`,\n          size: `${baseSpacing}px`,\n          shape: 'round',\n        },\n        minute: {\n          color: {\n            dark: 'light-4',\n            light: 'dark-3',\n          },\n          width: `${baseSpacing / 6}px`,\n          size: `${Math.round(baseSpacing / 2)}px`,\n          shape: 'round',\n        },\n        second: {\n          color: {\n            dark: 'accent-1',\n            light: 'accent-1',\n          },\n          width: `${baseSpacing / 8}px`,\n          size: `${Math.round(baseSpacing / 2.666)}px`,\n          shape: 'round',\n        },\n        size: {\n          small: `${baseSpacing * 3}px`,\n          medium: `${baseSpacing * 4}px`,\n          large: `${baseSpacing * 6}px`,\n          xlarge: `${baseSpacing * 9}px`,\n          huge: `${baseSpacing * 12}px`,\n        },\n      },\n      digital: {\n        text: {\n          xsmall: { size: `${baseFontSize - 2 * fontScale}px`, height: 1.5 },\n          small: { size: `${baseFontSize - fontScale}px`, height: 1.43 },\n          medium: { size: `${baseFontSize}px`, height: 1.375 },\n          large: { size: `${baseFontSize + fontScale}px`, height: 1.167 },\n          xlarge: { size: `${baseFontSize + 2 * fontScale}px`, height: 1.1875 },\n          xxlarge: { size: `${baseFontSize + 4 * fontScale}px`, height: 1.125 },\n        },\n      },\n    },\n    collapsible: {\n      minSpeed: 200,\n      baseline: 500,\n    },\n    dataTable: {\n      groupHeader: {\n        background: {\n          dark: 'dark-2',\n          light: 'light-2',\n        },\n        border: { side: 'bottom', size: 'xsmall' },\n        pad: { horizontal: 'small', vertical: 'xsmall' },\n      },\n      groupEnd: {\n        border: { side: 'bottom', size: 'xsmall' },\n      },\n      header: {},\n      icons: {\n        ascending: FormDown,\n        contract: FormUp,\n        descending: FormUp,\n        expand: FormDown,\n      },\n      primary: {\n        weight: 'bold',\n      },\n      resize: {\n        border: {\n          color: 'border',\n          side: 'end',\n        },\n      },\n    },\n    diagram: {\n      // extend: undefined,\n      line: {\n        color: 'graph-0',\n      },\n    },\n    // drop: {\n    //   extend: undefined,\n    //   maxHeight: undefined,\n    // },\n    formField: {\n      border: {\n        color: 'border',\n        error: {\n          color: {\n            dark: 'white',\n            light: 'status-critical',\n          },\n        },\n        position: 'inner',\n        side: 'bottom',\n      },\n      content: {\n        pad: 'small',\n      },\n      disabled: {\n        background: {\n          color: 'status-disabled',\n          opacity: 'medium',\n        },\n      },\n      error: {\n        color: 'status-critical',\n        margin: { vertical: 'xsmall', horizontal: 'small' },\n        // background: undefined,\n      },\n      // extend: undefined,\n      help: {\n        color: 'dark-3',\n        margin: {\n          start: 'small',\n        },\n      },\n      info: {\n        color: 'text-xweak',\n        margin: { vertical: 'xsmall', horizontal: 'small' },\n      },\n      label: {\n        margin: { vertical: 'xsmall', horizontal: 'small' },\n      },\n      margin: { bottom: 'small' },\n      // round: undefined,\n    },\n    grommet: {\n      // extend: undefined\n    },\n    heading: {\n      font: {\n        // family: undefined\n      },\n      level: {\n        1: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(4) },\n          medium: { ...fontSizing(8) },\n          large: { ...fontSizing(16) },\n          xlarge: { ...fontSizing(24) },\n        },\n        2: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(2) },\n          medium: { ...fontSizing(4) },\n          large: { ...fontSizing(8) },\n          xlarge: { ...fontSizing(12) },\n        },\n        3: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(1) },\n          medium: { ...fontSizing(2) },\n          large: { ...fontSizing(4) },\n          xlarge: { ...fontSizing(6) },\n        },\n        4: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(0) },\n          medium: { ...fontSizing(0) },\n          large: { ...fontSizing(0) },\n          xlarge: { ...fontSizing(0) },\n        },\n        5: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(-0.5) },\n          medium: { ...fontSizing(-0.5) },\n          large: { ...fontSizing(-0.5) },\n          xlarge: { ...fontSizing(-0.5) },\n        },\n        6: {\n          font: {\n            // family: undefined,\n            // weight: undefined,\n          },\n          small: { ...fontSizing(-1) },\n          medium: { ...fontSizing(-1) },\n          large: { ...fontSizing(-1) },\n          xlarge: { ...fontSizing(-1) },\n        },\n      },\n      responsiveBreakpoint: 'small', // when we scale the font size down\n      weight: 600,\n    },\n    layer: {\n      background: 'white',\n      border: {\n        radius: '4px',\n      },\n      container: {\n        zIndex: '15',\n      },\n      // extend: undefined,\n      overlay: {\n        background: 'rgba(0, 0, 0, 0.5)',\n      },\n      responsiveBreakpoint: 'small', // when Layer takes over the full screen\n      zIndex: '10',\n    },\n    list: {\n      item: {\n        // background: undefined,\n        border: 'horizontal',\n        pad: { horizontal: 'medium', vertical: 'small' },\n        // extend: undefined,\n      },\n      // extend: undefined,\n    },\n    maskedInput: {\n      // extend: undefined,\n    },\n    menu: {\n      // background: undefined,\n      // extend: undefined,\n      icons: {\n        down: FormDown,\n      },\n    },\n    meter: {\n      color: 'graph-0',\n      // colors: [] || colors: ['graph-0', 'graph-1', 'graph-2', 'graph-3'],\n      // extend: undefined,\n    },\n    paragraph: {\n      small: { ...fontSizing(-1) },\n      medium: { ...fontSizing(0) },\n      large: { ...fontSizing(1) },\n      xlarge: { ...fontSizing(2) },\n      xxlarge: { ...fontSizing(4) },\n    },\n    radioButton: {\n      border: {\n        color: {\n          dark: 'rgba(255, 255, 255, 0.5)',\n          light: 'rgba(0, 0, 0, 0.15)',\n        },\n        width: '2px',\n      },\n      check: {\n        radius: '100%',\n        // color: { dark: undefined, light: undefined },\n        // extend: undefined,\n      },\n      hover: {\n        border: {\n          color: {\n            dark: 'white',\n            light: 'black',\n          },\n        },\n      },\n      icon: {\n        // size: undefined,\n        // extend: undefined,\n      },\n      icons: {\n        // circle: undefined,\n      },\n      gap: 'small',\n      size: `${baseSpacing}px`,\n    },\n    rangeInput: {\n      track: {\n        height: '4px',\n        color: css`\n          ${props => rgba(normalizeColor('border', props.theme), 0.2)};\n        `,\n      },\n      thumb: {\n        // color: { dark: undefined, light: undefined },\n      },\n    },\n    rangeSelector: {\n      background: {\n        invert: {\n          color: 'light-4',\n        },\n      },\n      // edge: {\n      //   type: undefined,\n      // },\n    },\n    select: {\n      // background: undefined,\n      container: {\n        // extend: undefined,\n      },\n      control: {\n        // extend: undefined,\n        // open: undefined,\n      },\n      icons: {\n        // color: { dark: undefined, light: undefined },\n        margin: { horizontal: 'small' },\n        down: FormDown,\n      },\n      options: {\n        container: {\n          align: 'start',\n          pad: 'small',\n        },\n        text: {\n          margin: 'none',\n        },\n      },\n      // searchInput: undefined,\n      step: 20,\n    },\n    tab: {\n      active: {\n        color: 'text',\n        // background: undefined,\n      },\n      // background: undefined,\n      border: {\n        side: 'bottom',\n        size: 'small',\n        color: {\n          dark: 'accent-1',\n          light: 'brand',\n        },\n        active: {\n          color: {\n            dark: 'white',\n            light: 'black',\n          },\n        },\n        hover: {\n          color: {\n            dark: 'white',\n            light: 'black',\n          },\n          // extend: undefined,\n        },\n      },\n      color: 'control',\n      // extend: undefined,\n      hover: {\n        // background: undefined,\n        // extend: undefined,\n        color: {\n          dark: 'white',\n          light: 'black',\n        },\n      },\n      margin: {\n        vertical: 'xxsmall',\n        horizontal: 'small',\n      },\n      pad: {\n        bottom: 'xsmall',\n      },\n    },\n    tabs: {\n      // background: undefined,\n      // extend: undefined,\n      // gap: undefined,\n      header: {\n        // background: undefined,\n        // extend: undefined,\n      },\n      panel: {\n        // extend: undefined,\n      },\n    },\n    table: {\n      header: {\n        align: 'start',\n        pad: { horizontal: 'small', vertical: 'xsmall' },\n        border: 'bottom',\n        // verticalAlign: undefined,\n        // background: undefined,\n        // extend: undefined,\n      },\n      body: {\n        align: 'start',\n        pad: { horizontal: 'small', vertical: 'xsmall' },\n        // background: undefined,\n        // border: undefined,\n        // extend: undefined,\n      },\n      // row: {\n      //   hover: {\n      //     background: undefined,\n      //     color: undefined,\n      //   },\n      // },\n      footer: {\n        align: 'start',\n        pad: { horizontal: 'small', vertical: 'xsmall' },\n        border: 'top',\n        // verticalAlign: undefined,\n        // background: undefined,\n        // extend: undefined,\n      },\n    },\n    text: {\n      xsmall: { ...fontSizing(-1.5) },\n      small: { ...fontSizing(-1) },\n      medium: { ...fontSizing(0) }, // 18px\n      large: { ...fontSizing(1) }, // 22px\n      xlarge: { ...fontSizing(2) },\n      xxlarge: { ...fontSizing(4) },\n    },\n    textArea: {\n      // extend: undefined,\n      // disabled: { opacity: undefined },\n    },\n    textInput: {\n      // extend: undefined,\n      // disabled: { opacity: undefined },\n    },\n    video: {\n      captions: {\n        background: 'rgba(0, 0, 0, 0.7)',\n      },\n      // controls: { background: undefined },\n      icons: {\n        closedCaption: ClosedCaption,\n        configure: Actions,\n        fullScreen: Expand,\n        pause: Pause,\n        play: Play,\n        reduceVolume: VolumeLow,\n        volume: Volume,\n        // color: { dark: undefined, light: undefined },\n      },\n      // scrubber: { track: { color: undefined } },\n      scrubber: {\n        color: 'light-4',\n      },\n    },\n    worldMap: {\n      color: 'light-3',\n      continent: {\n        active: '8px',\n        base: '6px',\n      },\n      hover: {\n        color: 'light-4',\n      },\n      place: {\n        active: '20px',\n        base: '8px',\n      },\n    },\n  });\n\n  return deepFreeze(result);\n};\n\nexport const base = generate(24);\n","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\nvar base = {\n  global: {\n    colors: {\n      icon: '#666666'\n    }\n  },\n  icon: {\n    size: {\n      small: '12px',\n      medium: '24px',\n      large: '48px',\n      xlarge: '96px'\n    }\n  }\n};\nexports.base = base;","export { Collapsible } from './Collapsible';\n","export const normalizeValues = values =>\n  (values || []).map((value, index) => {\n    if (Array.isArray(value)) {\n      return { value };\n    }\n    if (typeof value === 'number') {\n      return { value: [index, value] };\n    }\n    return value;\n  });\n\nexport const normalizeBounds = (bounds, values) => {\n  let result = bounds;\n  if (!result) {\n    result = [[0, 1], [0, 1]];\n    (values || []).forEach(value => {\n      result[0][0] = Math.min(result[0][0], value.value[0]);\n      result[0][1] = Math.max(result[0][1], value.value[0]);\n      result[1][0] = Math.min(result[1][0], value.value[1]);\n      result[1][1] = Math.max(result[1][1], value.value[1]);\n    });\n  }\n  return result;\n};\n\nexport const areNormalizedValuesEquals = (valuesX, valuesY) => {\n  if (!valuesX || !valuesY) return false;\n\n  if (valuesX.length !== valuesY.length) return false;\n\n  if (valuesX.length === 0) return true;\n\n  if (!valuesX[0].value || !valuesY[0].value) return false;\n\n  return valuesX.every((_, i) =>\n    valuesX[i].value.every((value, index) => value === valuesY[i].value[index]),\n  );\n};\n\nexport const areNormalizedBoundsEquals = (boundsX, boundsY) => {\n  if (!boundsX || !boundsY) return false;\n\n  if (boundsX.length !== boundsY.length || !(boundsX.length > 0)) return false;\n\n  return boundsX.every((_, i) =>\n    boundsX[i].every((value, index) => value === boundsY[i][index]),\n  );\n};\n","export { CheckBox } from './CheckBox';\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { normalizeColor, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledHour = styled.line`\n  stroke-width: ${props => props.theme.clock.analog.hour.width};\n  stroke: ${props =>\n    normalizeColor(props.theme.clock.analog.hour.color, props.theme)};\n  transition: stroke 1s ease-out;\n`;\n\nStyledHour.defaultProps = {};\nObject.setPrototypeOf(StyledHour.defaultProps, defaultProps);\n\nconst StyledMinute = styled.line`\n  stroke-width: ${props => props.theme.clock.analog.minute.width};\n  stroke: ${props =>\n    normalizeColor(props.theme.clock.analog.minute.color, props.theme)};\n  transition: stroke 1s ease-out;\n`;\n\nStyledMinute.defaultProps = {};\nObject.setPrototypeOf(StyledMinute.defaultProps, defaultProps);\n\nconst StyledSecond = styled.line`\n  stroke-width: ${props => props.theme.clock.analog.second.width};\n  stroke: ${props =>\n    normalizeColor(props.theme.clock.analog.second.color, props.theme)};\n  transition: stroke 1s ease-out;\n`;\n\nStyledSecond.defaultProps = {};\nObject.setPrototypeOf(StyledSecond.defaultProps, defaultProps);\n\nconst StyledAnalog = styled.svg`\n  width: ${props => props.theme.clock.analog.size[props.size]};\n  height: ${props => props.theme.clock.analog.size[props.size]};\n\n  ${genericStyles} ${props =>\n    props.theme.clock.analog && props.theme.clock.analog.extend};\n`;\n\nStyledAnalog.defaultProps = {};\nObject.setPrototypeOf(StyledAnalog.defaultProps, defaultProps);\n\nconst sizeStyle = props => {\n  // size is a combination of the level and size properties\n  const size = props.size || 'medium';\n  const data = props.theme.clock.digital.text[size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n  `;\n};\n\nconst StyledDigitalDigit = styled.div`\n  position: relative;\n  width: 0.8em;\n  text-align: center;\n  overflow: hidden;\n  ${props => sizeStyle(props)};\n`;\n\nStyledDigitalDigit.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalDigit.defaultProps, defaultProps);\n\nconst previousUp = keyframes`\n  0% { transform: translateY(0); }\n  100% { transform: translateY(-100%); }\n`;\n\nconst previousDown = keyframes`\n  0% { transform: translateY(0); }\n  100% { transform: translateY(100%); }\n`;\n\nconst StyledDigitalPrevious = styled.div`\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 0.8em;\n  text-align: center;\n  animation: ${props =>\n      props.direction === 'down' ? previousDown : previousUp}\n    0.5s forwards;\n`;\n\nStyledDigitalPrevious.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalPrevious.defaultProps, defaultProps);\n\nconst nextUp = keyframes`\n  0% { transform: translateY(100%); }\n  100% { transform: translateY(0); }\n`;\n\nconst nextDown = keyframes`\n  0% { transform: translateY(-100%); }\n  100% { transform: translateY(0); }\n`;\n\nconst StyledDigitalNext = styled.div`\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 0.8em;\n  text-align: center;\n  animation: ${props => (props.direction === 'down' ? nextDown : nextUp)} 0.5s\n    forwards;\n`;\n\nStyledDigitalNext.defaultProps = {};\nObject.setPrototypeOf(StyledDigitalNext.defaultProps, defaultProps);\n\nexport {\n  StyledHour,\n  StyledMinute,\n  StyledSecond,\n  StyledAnalog,\n  StyledDigitalDigit,\n  StyledDigitalPrevious,\n  StyledDigitalNext,\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport {\n  getBodyChildElements,\n  makeNodeFocusable,\n  makeNodeUnfocusable,\n} from '../utils';\n\nconst isNotAncestorOf = child => parent => !parent.contains(child);\n\nexport const FocusedContainer = ({\n  hidden = false,\n  restrictScroll = false,\n  children,\n  ...rest\n}) => {\n  const [bodyOverflowStyle, setBodyOverflowStyle] = useState('');\n  const ref = useRef(null);\n\n  useEffect(() => {\n    const removeTrap = () => {\n      const child = ref.current;\n      getBodyChildElements()\n        .filter(isNotAncestorOf(child))\n        .forEach(makeNodeFocusable);\n      if (restrictScroll) {\n        document.body.style.overflow = bodyOverflowStyle;\n      }\n    };\n\n    const trapFocus = () => {\n      const child = ref.current;\n      getBodyChildElements()\n        .filter(isNotAncestorOf(child))\n        .forEach(makeNodeUnfocusable);\n\n      if (restrictScroll) {\n        setBodyOverflowStyle(document.body.style.overflow);\n        document.body.style.overflow = 'hidden';\n      }\n    };\n\n    const timer = setTimeout(() => {\n      if (!hidden) {\n        trapFocus();\n      }\n    }, 0);\n\n    return () => {\n      removeTrap();\n      clearTimeout(timer);\n    };\n  }, [hidden, bodyOverflowStyle, restrictScroll]);\n\n  return (\n    <div ref={ref} aria-hidden={hidden} {...rest}>\n      {children}\n    </div>\n  );\n};\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { TableCell } from '../TableCell';\nimport { normalizeColor } from '../../utils';\n\nconst ExpanderCell = ({ context, expanded, onToggle, theme, ...rest }) => {\n  let content;\n  if (onToggle) {\n    const ExpandIcon = theme.dataTable.icons[expanded ? 'contract' : 'expand'];\n    content = <ExpandIcon color={normalizeColor('border', theme)} />;\n  }\n  const normalizedThemeProps = {\n    ...theme.table[context],\n    ...theme.dataTable[context],\n  };\n  delete normalizedThemeProps.background;\n  delete normalizedThemeProps.border;\n  delete normalizedThemeProps.pad;\n  content = (\n    <Box {...normalizedThemeProps} {...rest} align=\"center\" pad=\"xsmall\">\n      {content}\n    </Box>\n  );\n  if (onToggle) {\n    content = (\n      <Button\n        fill\n        a11yTitle={expanded ? 'collapse' : 'expand'}\n        hoverIndicator\n        disabled={!onToggle}\n        onClick={onToggle}\n      >\n        {content}\n      </Button>\n    );\n  }\n  return (\n    <TableCell\n      size=\"xxsmall\"\n      plain\n      verticalAlign={context === 'groupEnd' ? 'bottom' : 'top'}\n      pad=\"none\"\n    >\n      {content}\n    </TableCell>\n  );\n};\n\nExpanderCell.defaultProps = {};\nObject.setPrototypeOf(ExpanderCell.defaultProps, defaultProps);\n\nconst ExpanderCellWrapper = compose(withTheme)(ExpanderCell);\n\nexport { ExpanderCellWrapper as ExpanderCell };\n","export { RadioButtonGroup } from './RadioButtonGroup';\n","export { RadioButton } from './RadioButton';\n","export { base, generate } from './base';\nexport { grommet } from './grommet';\nexport { dark } from './dark';\n","export { Image } from './Image';\n","export { Layer } from './Layer';\n","import styled, { css, keyframes } from 'styled-components';\n\nimport {\n  baseStyle,\n  backgroundStyle,\n  breakpointStyle,\n  parseMetricToNum,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst hiddenPositionStyle = css`\n  left: -100%;\n  right: 100%;\n  z-index: -1;\n  position: fixed;\n`;\n\nconst desktopLayerStyle = `\n  position: fixed;\n  top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n`;\n\nconst responsiveLayerStyle = `\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  min-height: 100vh;\n`;\n\nconst StyledLayer = styled.div`\n  ${baseStyle}\n  background: transparent;\n  position: relative;\n  z-index: ${props => props.theme.layer.zIndex};\n  pointer-events: none;\n  outline: none;\n\n  ${props => {\n    if (props.position === 'hidden') {\n      return hiddenPositionStyle;\n    }\n    const styles = [];\n    if (props.targetBounds) {\n      const { left, right, top, bottom } = props.targetBounds;\n      styles.push(`\n        position: fixed;\n        top: ${top}px;\n        left: ${left}px;\n        right: ${right}px;\n        bottom: ${bottom}px;\n      `);\n    } else {\n      styles.push(desktopLayerStyle);\n    }\n    if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n      const breakpoint =\n        props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n      styles.push(breakpointStyle(breakpoint, responsiveLayerStyle));\n    }\n    return styles;\n  }} ${props => props.theme.layer && props.theme.layer.extend};\n`;\n\nStyledLayer.defaultProps = {};\nObject.setPrototypeOf(StyledLayer.defaultProps, defaultProps);\n\nconst StyledOverlay = styled.div`\n  position: absolute;\n  ${props => {\n    if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n      const breakpoint =\n        props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n      return breakpointStyle(breakpoint, 'position: relative;');\n    }\n    return '';\n  }} top: 0px;\n  left: 0px;\n  right: 0px;\n  bottom: 0px;\n  ${props =>\n    !props.plain &&\n    props.theme.layer.overlay.background &&\n    backgroundStyle(\n      props.theme.layer.overlay.background,\n      props.theme,\n    )} pointer-events: all;\n`;\n\nconst getMargin = (margin, theme, position) => {\n  const axis =\n    position.indexOf('top') !== -1 || position.indexOf('bottom') !== -1\n      ? 'vertical'\n      : 'horizontal';\n  const marginValue = margin[position] || margin[axis] || margin;\n  const marginApplied = theme.global.edgeSize[marginValue] || marginValue;\n  const marginInTheme = !!theme.global.edgeSize[marginValue];\n\n  return !marginInTheme && typeof marginValue !== 'string'\n    ? 0\n    : parseMetricToNum(marginApplied);\n};\n\nconst getBounds = (bounds, margin, theme, position = undefined) => {\n  if (position) {\n    return bounds[position] + getMargin(margin, theme, position);\n  }\n  return {\n    bottom: bounds.bottom + getMargin(margin, theme, 'bottom'),\n    // 'bottom-left': getMargin(margin, theme, 'bottom-left'),\n    // 'bottom-right': getMargin(margin, theme, 'bottom-right'),\n    end: bounds.right + getMargin(margin, theme, 'end'),\n    left: bounds.left + getMargin(margin, theme, 'left'),\n    right: bounds.right + getMargin(margin, theme, 'right'),\n    start: bounds.left + getMargin(margin, theme, 'start'),\n    top: bounds.top + getMargin(margin, theme, 'top'),\n    // 'top-right': getMargin(margin, theme, 'top-right'),\n    // 'top-left': getMargin(margin, theme, 'top-left'),\n  };\n};\n\nconst KEYFRAMES = {\n  center: {\n    vertical: keyframes`\n      0% { transform: translateX(-50%) scale(0.8); }\n      100% { transform: translateX(-50%) scale(1); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translateY(-50%) scale(0.8); }\n      100% { transform: translateY(-50) scale(1); }\n    `,\n    true: keyframes`\n      0% { transform: scale(0.8); }\n      100% { transform: scale(1); }\n    `,\n    false: keyframes`\n      0% { transform: translate(-50%, -50%) scale(0.8); }\n      100% { transform: translate(-50%, -50%) scale(1); }\n    `,\n  },\n  top: {\n    vertical: keyframes`\n      0% { transform: translate(-50%, -100%); }\n      100% { transform: translate(-50%, 0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translateY(-100%); }\n      100% { transform: translateY(0); }\n    `,\n    true: keyframes`\n      0% { transform: translateY(-100%); }\n      100% { transform: translateY(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(-50%, -100%); }\n      100% { transform: translate(-50%, 0); }\n    `,\n  },\n  bottom: {\n    vertical: keyframes`\n      0% { transform: translate(-50%, 100%); }\n      100% { transform: translate(-50%, 0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translateY(100%); }\n      100% { transform: translateY(0); }\n    `,\n    true: keyframes`\n      0% { transform: translateY(100%); }\n      100% { transform: translateY(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(-50%, 100%); }\n      100% { transform: translate(-50%, 0); }\n    `,\n  },\n  left: {\n    vertical: keyframes`\n      0% { transform: translateX(-100%); }\n      100% { transform: translateX(0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translate(-100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n    true: keyframes`\n      0% { transform: translateX(-100%); }\n      100% { transform: translateX(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(-100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n  },\n  right: {\n    vertical: keyframes`\n      0% { transform: translateX(100%); }\n      100% { transform: translateX(0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translate(100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n    true: keyframes`\n      0% { transform: translateX(100%); }\n      100% { transform: translateX(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n  },\n  start: {\n    vertical: keyframes`\n      0% { transform: translateX(-100%); }\n      100% { transform: translateX(0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translate(-100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n    true: keyframes`\n      0% { transform: translateX(-100%); }\n      100% { transform: translateX(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(-100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n  },\n  end: {\n    vertical: keyframes`\n      0% { transform: translateX(100%); }\n      100% { transform: translateX(0); }\n    `,\n    horizontal: keyframes`\n      0% { transform: translate(100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n    true: keyframes`\n      0% { transform: translateX(100%); }\n      100% { transform: translateX(0); }\n    `,\n    false: keyframes`\n      0% { transform: translate(100%, -50%); }\n      100% { transform: translate(0, -50%); }\n    `,\n  },\n};\n\nconst animationDuration = 200;\n\nconst getAnimationStyle = (props, position, full) => {\n  let animation =\n    props.animation !== undefined ? props.animation : props.animate;\n  if (animation === undefined) animation = 'slide';\n  let keys;\n  if (animation === 'slide' || animation === true) {\n    keys = KEYFRAMES[position][full];\n  } else if (animation === 'fadeIn') {\n    keys = keyframes`0% { opacity: 0 } 100% { opacity: 1 }`;\n  }\n  return keys\n    ? css`\n        animation: ${keys} ${animationDuration / 1000.0}s ease-in-out forwards;\n      `\n    : '';\n};\n\n// POSITIONS combines 'position', 'full', and 'margin' properties, since\n// they are all interdependent.\n// Basically, non-full axes combine 50% position with -50% translation.\n// full axes pin to the window edges offset by any margin.\n// The keyframe animations are included as they are done via translations\n// as well so they must take into account the non-animated positioning.\nconst POSITIONS = {\n  center: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: 50%;\n      transform: translateX(-50%);\n      ${props => getAnimationStyle(props, 'center', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: 50%;\n      transform: translateY(-50%);\n      ${props => getAnimationStyle(props, 'center', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      ${props => getAnimationStyle(props, 'center', 'true')}\n    `,\n    false: () => css`\n      top: 50%;\n      left: 50%;\n      transform: translate(-50%, -50%);\n      ${props => getAnimationStyle(props, 'center', 'false')}\n    `,\n  },\n\n  top: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: 50%;\n      transform: translate(-50%, 0%);\n      ${props => getAnimationStyle(props, 'top', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: ${bounds.top}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'top', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'top', 'true')}\n    `,\n    false: bounds => css`\n      top: ${bounds.top}px;\n      left: 50%;\n      transform: translate(-50%, 0);\n      ${props => getAnimationStyle(props, 'top', 'false')}\n    `,\n  },\n\n  bottom: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: 50%;\n      transform: translate(-50%, 0);\n      ${props => getAnimationStyle(props, 'bottom', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    false: bounds => css`\n      bottom: ${bounds.bottom}px;\n      left: 50%;\n      transform: translate(-50%, 0);\n      ${props => getAnimationStyle(props, 'bottom', 'false')}\n    `,\n  },\n\n  left: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'left', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'left', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'left', 'true')}\n    `,\n    false: bounds => css`\n      left: ${bounds.left}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'left', 'false')}\n    `,\n  },\n\n  right: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'right', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'right', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'right', 'true')}\n    `,\n    false: bounds => css`\n      right: ${bounds.right}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'right', 'false')}\n    `,\n  },\n\n  start: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      inset-inline-start: ${bounds.start}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'start', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      inset-inline-start: ${bounds.start}px;\n      inset-inline-end: ${bounds.end}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'start', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      inset-inline-start: ${bounds.start}px;\n      inset-inline-end: ${bounds.end}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'start', 'true')}\n    `,\n    false: bounds => css`\n      inset-inline-start: ${bounds.start}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'start', 'false')}\n    `,\n  },\n\n  end: {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      inset-inline-end: ${bounds.end}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'end', 'vertical')}\n    `,\n    horizontal: bounds => css`\n      inset-inline-start: ${bounds.start}px;\n      inset-inline-end: ${bounds.end}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'end', 'horizontal')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      inset-inline-start: ${bounds.start}px;\n      inset-inline-end: ${bounds.end}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'end', 'true')}\n    `,\n    false: bounds => css`\n      inset-inline-end: ${bounds.end}px;\n      top: 50%;\n      transform: translate(0, -50%);\n      ${props => getAnimationStyle(props, 'end', 'false')}\n    `,\n  },\n\n  'top-right': {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')};\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: 0;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')};\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')};\n    `,\n    false: bounds => css`\n      top: ${bounds.top}px;\n      right: ${bounds.right}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'top', 'true')};\n    `,\n  },\n\n  'top-left': {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      top: 0;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'top', 'true')}\n    `,\n    false: bounds => css`\n      top: ${bounds.top}px;\n      left: ${bounds.left}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'top', 'true')}\n    `,\n  },\n\n  'bottom-right': {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      bottom: ${bounds.bottom}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    false: bounds => css`\n      bottom: ${bounds.bottom}px;\n      right: ${bounds.right}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n  },\n\n  'bottom-left': {\n    vertical: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    horizontal: bounds => css`\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      bottom: ${bounds.bottom}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    true: bounds => css`\n      top: ${bounds.top}px;\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      right: ${bounds.right}px;\n      transform: translateX(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n    false: bounds => css`\n      bottom: ${bounds.bottom}px;\n      left: ${bounds.left}px;\n      transform: translateY(0);\n      ${props => getAnimationStyle(props, 'bottom', 'true')}\n    `,\n  },\n};\n\nconst desktopContainerStyle = css`\n  position: ${props => (props.modal ? 'absolute' : 'fixed')};\n  max-height: ${props =>\n    `calc(100% - ${getBounds(\n      props.targetBounds,\n      props.margin,\n      props.theme,\n      'top',\n    )}px - ${getBounds(\n      props.targetBounds,\n      props.margin,\n      props.theme,\n      'bottom',\n    )}px)`};\n  max-width: ${props =>\n    `calc(100% - ${getBounds(\n      props.targetBounds,\n      props.margin,\n      props.theme,\n      'left',\n    )}px - ${getBounds(\n      props.targetBounds,\n      props.margin,\n      props.theme,\n      'right',\n    )}px)`};\n  border-radius: ${props =>\n    props.plain ? 0 : props.theme.layer.border.radius};\n  ${props =>\n    (props.position !== 'hidden' &&\n      POSITIONS[props.position][props.full](\n        getBounds(props.targetBounds, props.margin, props.theme),\n        props.targetBounds,\n      )) ||\n    ''};\n`;\n\nconst responsiveContainerStyle = css`\n  position: relative;\n  max-height: none;\n  max-width: none;\n  border-radius: 0;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  transform: none;\n  animation: none;\n  height: 100vh;\n  width: 100vw;\n`;\n\nconst StyledContainer = styled.div`\n  ${props => (!props.modal ? baseStyle : '')} display: flex;\n  flex-direction: column;\n  min-height: ${props => props.theme.global.size.xxsmall};\n  ${props =>\n    !props.plain &&\n    props.theme.layer.background &&\n    backgroundStyle(props.theme.layer.background, props.theme)} outline: none;\n  pointer-events: all;\n  z-index: ${props => props.theme.layer.container.zIndex};\n\n  ${desktopContainerStyle} ${props => {\n    if (props.responsive && props.theme.layer.responsiveBreakpoint) {\n      const breakpoint =\n        props.theme.global.breakpoints[props.theme.layer.responsiveBreakpoint];\n      if (breakpoint) {\n        return breakpointStyle(breakpoint, responsiveContainerStyle);\n      }\n    }\n    return '';\n  }};\n`;\n\nStyledContainer.defaultProps = {};\nObject.setPrototypeOf(StyledContainer.defaultProps, defaultProps);\n\nexport { animationDuration, StyledLayer, StyledOverlay, StyledContainer };\n","export { Paragraph } from './Paragraph';\n","export { Menu } from './Menu';\n","export { Meter } from './Meter';\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst roundStyle = css`\n  border-radius: ${props => props.theme.global.edgeSize[props.round.size]};\n`;\n\n// overflow: hidden is needed for ie11\nconst StyledMeter = styled.svg`\n  max-width: 100%;\n  overflow: hidden;\n\n  ${genericStyles} ${props => props.round && roundStyle}\n\n  path {\n    transition: stroke 0.3s, stroke-width 0.3s;\n  }\n\n  ${props => props.theme.meter && props.theme.meter.extend};\n`;\n\nStyledMeter.defaultProps = {};\nObject.setPrototypeOf(StyledMeter.defaultProps, defaultProps);\n\nexport { StyledMeter };\n","import { normalizeColor } from '../../utils';\n\nexport const strokeProps = (color, theme) => {\n  const result = {};\n  if (color) {\n    if (typeof color === 'object') {\n      result.stroke = normalizeColor(color.color, theme);\n      if (color.opacity) {\n        result.strokeOpacity = `${\n          color.opacity === true\n            ? theme.global.opacity.medium\n            : theme.global.opacity[color.opacity] || color.opacity\n        }`;\n      }\n    } else {\n      result.stroke = normalizeColor(color, theme);\n    }\n  }\n  return result;\n};\n\nconst neutralExp = /^neutral-\\d+/;\n\nexport const defaultColor = (index, theme, valuesLength) => {\n  if (index === valuesLength - 1 && theme.meter.color) {\n    return theme.meter.color;\n  }\n  // We want the last value to have the first color\n  const colorIndex = valuesLength - index - 1;\n  if (theme.meter && theme.meter.colors) {\n    const colors =\n      theme.meter.colors[theme.dark ? 'dark' : 'light'] || theme.meter.colors;\n    return colors[colorIndex % colors.length];\n  }\n  const colors = Object.keys(theme.global.colors).filter(n =>\n    n.match(/^graph-[0-9]$/),\n  );\n  if (colors.length > 0) {\n    return colors[colorIndex % colors.length];\n  }\n  // Deprecate using \"neutral-*\" color names. Remove eventually.\n  const neutralColors = Object.keys(theme.global.colors).filter(k =>\n    neutralExp.test(k),\n  );\n  return neutralColors[colorIndex % neutralColors.length];\n};\n","export default function _getPrototypeOf(o) {\n  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n    return o.__proto__ || Object.getPrototypeOf(o);\n  };\n  return _getPrototypeOf(o);\n}","export default function _setPrototypeOf(o, p) {\n  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n    o.__proto__ = p;\n    return o;\n  };\n\n  return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf\";\n\nfunction isNativeReflectConstruct() {\n  if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n  if (Reflect.construct.sham) return false;\n  if (typeof Proxy === \"function\") return true;\n\n  try {\n    Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n    return true;\n  } catch (e) {\n    return false;\n  }\n}\n\nexport default function _construct(Parent, args, Class) {\n  if (isNativeReflectConstruct()) {\n    _construct = Reflect.construct;\n  } else {\n    _construct = function _construct(Parent, args, Class) {\n      var a = [null];\n      a.push.apply(a, args);\n      var Constructor = Function.bind.apply(Parent, a);\n      var instance = new Constructor();\n      if (Class) setPrototypeOf(instance, Class.prototype);\n      return instance;\n    };\n  }\n\n  return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf\";\nimport setPrototypeOf from \"./setPrototypeOf\";\nimport isNativeFunction from \"./isNativeFunction\";\nimport construct from \"./construct\";\nexport default function _wrapNativeSuper(Class) {\n  var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n  _wrapNativeSuper = function _wrapNativeSuper(Class) {\n    if (Class === null || !isNativeFunction(Class)) return Class;\n\n    if (typeof Class !== \"function\") {\n      throw new TypeError(\"Super expression must either be null or a function\");\n    }\n\n    if (typeof _cache !== \"undefined\") {\n      if (_cache.has(Class)) return _cache.get(Class);\n\n      _cache.set(Class, Wrapper);\n    }\n\n    function Wrapper() {\n      return construct(Class, arguments, getPrototypeOf(this).constructor);\n    }\n\n    Wrapper.prototype = Object.create(Class.prototype, {\n      constructor: {\n        value: Wrapper,\n        enumerable: false,\n        writable: true,\n        configurable: true\n      }\n    });\n    return setPrototypeOf(Wrapper, Class);\n  };\n\n  return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n  return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}","export default function _taggedTemplateLiteralLoose(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n\n  strings.raw = raw;\n  return strings;\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';\nimport _taggedTemplateLiteralLoose from '@babel/runtime/helpers/esm/taggedTemplateLiteralLoose';\n\nfunction last() {\n  var _ref;\n\n  return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref];\n}\n\nfunction negation(a) {\n  return -a;\n}\n\nfunction addition(a, b) {\n  return a + b;\n}\n\nfunction subtraction(a, b) {\n  return a - b;\n}\n\nfunction multiplication(a, b) {\n  return a * b;\n}\n\nfunction division(a, b) {\n  return a / b;\n}\n\nfunction factorial(a) {\n  if (a % 1 || !(+a >= 0)) return NaN;\n  if (a > 170) return Infinity;else if (a === 0) return 1;else {\n    return a * factorial(a - 1);\n  }\n}\n\nfunction power(a, b) {\n  return Math.pow(a, b);\n}\n\nfunction sqrt(a) {\n  return Math.sqrt(a);\n}\n\nfunction max() {\n  return Math.max.apply(Math, arguments);\n}\n\nfunction min() {\n  return Math.min.apply(Math, arguments);\n}\n\nfunction comma() {\n  return Array.of.apply(Array, arguments);\n}\n\nvar defaultMathSymbols = {\n  symbols: {\n    '!': {\n      postfix: {\n        symbol: '!',\n        f: factorial,\n        notation: 'postfix',\n        precedence: 6,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '!',\n      regSymbol: '!'\n    },\n    '^': {\n      infix: {\n        symbol: '^',\n        f: power,\n        notation: 'infix',\n        precedence: 5,\n        rightToLeft: 1,\n        argCount: 2\n      },\n      symbol: '^',\n      regSymbol: '\\\\^'\n    },\n    '*': {\n      infix: {\n        symbol: '*',\n        f: multiplication,\n        notation: 'infix',\n        precedence: 4,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: '*',\n      regSymbol: '\\\\*'\n    },\n    '/': {\n      infix: {\n        symbol: '/',\n        f: division,\n        notation: 'infix',\n        precedence: 4,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: '/',\n      regSymbol: '/'\n    },\n    '+': {\n      infix: {\n        symbol: '+',\n        f: addition,\n        notation: 'infix',\n        precedence: 2,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      prefix: {\n        symbol: '+',\n        f: last,\n        notation: 'prefix',\n        precedence: 3,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '+',\n      regSymbol: '\\\\+'\n    },\n    '-': {\n      infix: {\n        symbol: '-',\n        f: subtraction,\n        notation: 'infix',\n        precedence: 2,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      prefix: {\n        symbol: '-',\n        f: negation,\n        notation: 'prefix',\n        precedence: 3,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '-',\n      regSymbol: '-'\n    },\n    ',': {\n      infix: {\n        symbol: ',',\n        f: comma,\n        notation: 'infix',\n        precedence: 1,\n        rightToLeft: 0,\n        argCount: 2\n      },\n      symbol: ',',\n      regSymbol: ','\n    },\n    '(': {\n      prefix: {\n        symbol: '(',\n        f: last,\n        notation: 'prefix',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: '(',\n      regSymbol: '\\\\('\n    },\n    ')': {\n      postfix: {\n        symbol: ')',\n        f: undefined,\n        notation: 'postfix',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: ')',\n      regSymbol: '\\\\)'\n    },\n    min: {\n      func: {\n        symbol: 'min',\n        f: min,\n        notation: 'func',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: 'min',\n      regSymbol: 'min\\\\b'\n    },\n    max: {\n      func: {\n        symbol: 'max',\n        f: max,\n        notation: 'func',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: 'max',\n      regSymbol: 'max\\\\b'\n    },\n    sqrt: {\n      func: {\n        symbol: 'sqrt',\n        f: sqrt,\n        notation: 'func',\n        precedence: 0,\n        rightToLeft: 0,\n        argCount: 1\n      },\n      symbol: 'sqrt',\n      regSymbol: 'sqrt\\\\b'\n    }\n  }\n};\n\n// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js\n\n/**\n * Parse errors.md and turn it into a simple hash of code: message\n * @private\n */\nvar ERRORS = {\n  \"1\": \"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\\n\\n\",\n  \"2\": \"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\\n\\n\",\n  \"3\": \"Passed an incorrect argument to a color function, please pass a string representation of a color.\\n\\n\",\n  \"4\": \"Couldn't generate valid rgb string from %s, it returned %s.\\n\\n\",\n  \"5\": \"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\\n\\n\",\n  \"6\": \"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\\n\\n\",\n  \"7\": \"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\\n\\n\",\n  \"8\": \"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\\n\\n\",\n  \"9\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n  \"10\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n  \"11\": \"Invalid value passed as base to modularScale, expected number or em string but got \\\"%s\\\"\\n\\n\",\n  \"12\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n  \"13\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n  \"14\": \"Passed invalid pixel value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"15\": \"Passed invalid base value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"16\": \"You must provide a template to this method.\\n\\n\",\n  \"17\": \"You passed an unsupported selector state to this method.\\n\\n\",\n  \"18\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n  \"19\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n  \"20\": \"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n  \"21\": \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n  \"22\": \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n  \"23\": \"fontFace expects a name of a font-family.\\n\\n\",\n  \"24\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n  \"25\": \"fontFace expects localFonts to be an array.\\n\\n\",\n  \"26\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n  \"27\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"28\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n  \"29\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n  \"30\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n  \"31\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\\n\\n\",\n  \"32\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\\n\\n\",\n  \"33\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\\n\\n\",\n  \"34\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n  \"35\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n  \"36\": \"Property must be a string value.\\n\\n\",\n  \"37\": \"Syntax Error at %s.\\n\\n\",\n  \"38\": \"Formula contains a function that needs parentheses at %s.\\n\\n\",\n  \"39\": \"Formula is missing closing parenthesis at %s.\\n\\n\",\n  \"40\": \"Formula has too many closing parentheses at %s.\\n\\n\",\n  \"41\": \"All values in a formula must have the same unit or be unitless.\\n\\n\",\n  \"42\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n  \"43\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n  \"44\": \"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\\n\\n\",\n  \"45\": \"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\\n\\n\",\n  \"46\": \"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\\n\\n\",\n  \"47\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n  \"48\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n  \"49\": \"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n  \"50\": \"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\\n\\n\",\n  \"51\": \"Expects the first argument object to have the properties prop, fromSize, and toSize.\\n\\n\",\n  \"52\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n  \"53\": \"fontFace expects localFonts to be an array.\\n\\n\",\n  \"54\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n  \"55\": \"fontFace expects a name of a font-family.\\n\\n\",\n  \"56\": \"linearGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"57\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n  \"58\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n  \"59\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n  \"60\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n  \"61\": \"Property must be a string value.\\n\\n\",\n  \"62\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n  \"63\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n  \"64\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n  \"65\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\\n\\n\",\n  \"66\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n  \"67\": \"You must provide a template to this method.\\n\\n\",\n  \"68\": \"You passed an unsupported selector state to this method.\\n\\n\",\n  \"69\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got %s instead.\\n\\n\",\n  \"70\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got %s instead.\\n\\n\",\n  \"71\": \"Passed invalid pixel value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n  \"72\": \"Passed invalid base value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\"\n};\n/**\n * super basic version of sprintf\n * @private\n */\n\nfunction format() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  var a = args[0];\n  var b = [];\n  var c;\n\n  for (c = 1; c < args.length; c += 1) {\n    b.push(args[c]);\n  }\n\n  b.forEach(function (d) {\n    a = a.replace(/%[a-z]/, d);\n  });\n  return a;\n}\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n * @private\n */\n\n\nvar PolishedError =\n/*#__PURE__*/\nfunction (_Error) {\n  _inheritsLoose(PolishedError, _Error);\n\n  function PolishedError(code) {\n    var _this;\n\n    if (process.env.NODE_ENV === 'production') {\n      _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#\" + code + \" for more information.\") || this;\n    } else {\n      for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n        args[_key2 - 1] = arguments[_key2];\n      }\n\n      _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n    }\n\n    return _assertThisInitialized(_this);\n  }\n\n  return PolishedError;\n}(\n/*#__PURE__*/\n_wrapNativeSuper(Error));\n\nvar unitRegExp = /((?!\\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\\D|$)|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults.\n\nfunction mergeSymbolMaps(additionalSymbols) {\n  var symbolMap = {};\n  symbolMap.symbols = additionalSymbols ? _extends({}, defaultMathSymbols.symbols, {}, additionalSymbols.symbols) : _extends({}, defaultMathSymbols.symbols);\n  return symbolMap;\n}\n\nfunction exec(operators, values) {\n  var _ref;\n\n  var op = operators.pop();\n  values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount))));\n  return op.precedence;\n}\n\nfunction calculate(expression, additionalSymbols) {\n  var symbolMap = mergeSymbolMaps(additionalSymbols);\n  var match;\n  var operators = [symbolMap.symbols['('].prefix];\n  var values = [];\n  var pattern = new RegExp( // Pattern for numbers\n  \"\\\\d+(?:\\\\.\\\\d+)?|\" + // ...and patterns for individual operators/function names\n  Object.keys(symbolMap.symbols).map(function (key) {\n    return symbolMap.symbols[key];\n  }) // longer symbols should be listed first\n  // $FlowFixMe\n  .sort(function (a, b) {\n    return b.symbol.length - a.symbol.length;\n  }) // $FlowFixMe\n  .map(function (val) {\n    return val.regSymbol;\n  }).join('|') + \"|(\\\\S)\", 'g');\n  pattern.lastIndex = 0; // Reset regular expression object\n\n  var afterValue = false;\n\n  do {\n    match = pattern.exec(expression);\n\n    var _ref2 = match || [')', undefined],\n        token = _ref2[0],\n        bad = _ref2[1];\n\n    var notNumber = symbolMap.symbols[token];\n    var notNewValue = notNumber && !notNumber.prefix && !notNumber.func;\n    var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; // Check for syntax errors:\n\n    if (bad || (afterValue ? notAfterValue : notNewValue)) {\n      throw new PolishedError(37, match ? match.index : expression.length, expression);\n    }\n\n    if (afterValue) {\n      // We either have an infix or postfix operator (they should be mutually exclusive)\n      var curr = notNumber.postfix || notNumber.infix;\n\n      do {\n        var prev = operators[operators.length - 1];\n        if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; // Apply previous operator, since it has precedence over current one\n      } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function\n\n\n      afterValue = curr.notation === 'postfix';\n\n      if (curr.symbol !== ')') {\n        operators.push(curr); // Postfix always has precedence over any operator that follows after it\n\n        if (afterValue) exec(operators, values);\n      }\n    } else if (notNumber) {\n      // prefix operator or function\n      operators.push(notNumber.prefix || notNumber.func);\n\n      if (notNumber.func) {\n        // Require an opening parenthesis\n        match = pattern.exec(expression);\n\n        if (!match || match[0] !== '(') {\n          throw new PolishedError(38, match ? match.index : expression.length, expression);\n        }\n      }\n    } else {\n      // number\n      values.push(+token);\n      afterValue = true;\n    }\n  } while (match && operators.length);\n\n  if (operators.length) {\n    throw new PolishedError(39, match ? match.index : expression.length, expression);\n  } else if (match) {\n    throw new PolishedError(40, match ? match.index : expression.length, expression);\n  } else {\n    return values.pop();\n  }\n}\n\nfunction reverseString(str) {\n  return str.split('').reverse().join('');\n}\n/**\n * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation.\n *\n *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc).\n *\n * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values.\n * @example\n * // Styles as object usage\n * const styles = {\n *   fontSize: math('12rem + 8rem'),\n *   fontSize: math('(12px + 2px) * 3'),\n *   fontSize: math('3px^2 + sqrt(4)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   fontSize: ${math('12rem + 8rem')};\n *   fontSize: ${math('(12px + 2px) * 3')};\n *   fontSize: ${math('3px^2 + sqrt(4)')};\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   fontSize: '20rem',\n *   fontSize: '42px',\n *   fontSize: '11px',\n * }\n */\n\n\nfunction math(formula, additionalSymbols) {\n  var reversedFormula = reverseString(formula);\n  var formulaMatch = reversedFormula.match(unitRegExp); // Check that all units are the same\n\n  if (formulaMatch && !formulaMatch.every(function (unit) {\n    return unit === formulaMatch[0];\n  })) {\n    throw new PolishedError(41);\n  }\n\n  var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, ''));\n  return \"\" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : '');\n}\n\n// @private\nfunction capitalizeString(string) {\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar positionMap = ['Top', 'Right', 'Bottom', 'Left'];\n\nfunction generateProperty(property, position) {\n  if (!property) return position.toLowerCase();\n  var splitProperty = property.split('-');\n\n  if (splitProperty.length > 1) {\n    splitProperty.splice(1, 0, position);\n    return splitProperty.reduce(function (acc, val) {\n      return \"\" + acc + capitalizeString(val);\n    });\n  }\n\n  var joinedProperty = property.replace(/([a-z])([A-Z])/g, \"$1\" + position + \"$2\");\n  return property === joinedProperty ? \"\" + property + position : joinedProperty;\n}\n\nfunction generateStyles(property, valuesWithDefaults) {\n  var styles = {};\n\n  for (var i = 0; i < valuesWithDefaults.length; i += 1) {\n    if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) {\n      styles[generateProperty(property, positionMap[i])] = valuesWithDefaults[i];\n    }\n  }\n\n  return styles;\n}\n/**\n * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...directionalProperty('padding', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${directionalProperty('padding', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'paddingTop': '12px',\n *   'paddingRight': '24px',\n *   'paddingBottom': '36px',\n *   'paddingLeft': '48px'\n * }\n */\n\n\nfunction directionalProperty(property) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  //  prettier-ignore\n  var firstValue = values[0],\n      _values$ = values[1],\n      secondValue = _values$ === void 0 ? firstValue : _values$,\n      _values$2 = values[2],\n      thirdValue = _values$2 === void 0 ? firstValue : _values$2,\n      _values$3 = values[3],\n      fourthValue = _values$3 === void 0 ? secondValue : _values$3;\n  var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue];\n  return generateStyles(property, valuesWithDefaults);\n}\n\n/**\n * Check if a string ends with something\n * @private\n */\nfunction endsWith (string, suffix) {\n  return string.substr(-suffix.length) === suffix;\n}\n\nvar cssRegex = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value minus its unit (or the original value if an invalid string is passed). Optionally returns an array containing the stripped value and the original unit of measure.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   '--dimension': stripUnit('100px'),\n *   '--unit': stripUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   --dimension: ${stripUnit('100px')};\n *   --unit: ${stripUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   '--dimension': 100,\n *   '--unit': 'px',\n * }\n */\n\nfunction stripUnit(value, unitReturn) {\n  if (typeof value !== 'string') return unitReturn ? [value, undefined] : value;\n  var matchedValue = value.match(cssRegex);\n\n  if (unitReturn) {\n    if (matchedValue) return [parseFloat(value), matchedValue[2]];\n    return [value, undefined];\n  }\n\n  if (matchedValue) return parseFloat(value);\n  return value;\n}\n\n/**\n * Factory function that creates pixel-to-x converters\n * @private\n */\n\nvar pxtoFactory = function pxtoFactory(to) {\n  return function (pxval, base) {\n    if (base === void 0) {\n      base = '16px';\n    }\n\n    var newPxval = pxval;\n    var newBase = base;\n\n    if (typeof pxval === 'string') {\n      if (!endsWith(pxval, 'px')) {\n        throw new PolishedError(69, to, pxval);\n      }\n\n      newPxval = stripUnit(pxval);\n    }\n\n    if (typeof base === 'string') {\n      if (!endsWith(base, 'px')) {\n        throw new PolishedError(70, to, base);\n      }\n\n      newBase = stripUnit(base);\n    }\n\n    if (typeof newPxval === 'string') {\n      throw new PolishedError(71, pxval, to);\n    }\n\n    if (typeof newBase === 'string') {\n      throw new PolishedError(72, base, to);\n    }\n\n    return \"\" + newPxval / newBase + to;\n  };\n};\n\n/**\n * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n *   'height': em('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   height: ${em('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'height': '1em'\n * }\n */\n\nvar em =\n/*#__PURE__*/\npxtoFactory('em');\n\nvar cssRegex$1 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value and its unit as elements of an array.\n *\n * @deprecated - getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   '--dimension': getValueAndUnit('100px')[0],\n *   '--unit': getValueAndUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   --dimension: ${getValueAndUnit('100px')[0]};\n *   --unit: ${getValueAndUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   '--dimension': 100,\n *   '--unit': 'px',\n * }\n */\n\nfunction getValueAndUnit(value) {\n  // eslint-disable-next-line no-console\n  console.warn(\"getValueAndUnit has been marked for deprecation in polished 3.0 and will be fully deprecated in 4.0. It's functionality has been been moved to stripUnit as an optional return.\");\n  if (typeof value !== 'string') return [value, ''];\n  var matchedValue = value.match(cssRegex$1);\n  if (matchedValue) return [parseFloat(value), matchedValue[2]];\n  return [value, undefined];\n}\n\nvar ratioNames = {\n  minorSecond: 1.067,\n  majorSecond: 1.125,\n  minorThird: 1.2,\n  majorThird: 1.25,\n  perfectFourth: 1.333,\n  augFourth: 1.414,\n  perfectFifth: 1.5,\n  minorSixth: 1.6,\n  goldenSection: 1.618,\n  majorSixth: 1.667,\n  minorSeventh: 1.778,\n  majorSeventh: 1.875,\n  octave: 2,\n  majorTenth: 2.5,\n  majorEleventh: 2.667,\n  majorTwelfth: 3,\n  doubleOctave: 4\n};\n\nfunction getRatio(ratioName) {\n  return ratioNames[ratioName];\n}\n/**\n * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables.\n * @example\n * // Styles as object usage\n * const styles = {\n *    // Increment two steps up the default scale\n *   'fontSize': modularScale(2)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *    // Increment two steps up the default scale\n *   fontSize: ${modularScale(2)}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'fontSize': '1.77689em'\n * }\n */\n\n\nfunction modularScale(steps, base, ratio) {\n  if (base === void 0) {\n    base = '1em';\n  }\n\n  if (ratio === void 0) {\n    ratio = 1.333;\n  }\n\n  if (typeof steps !== 'number') {\n    throw new PolishedError(42);\n  }\n\n  if (typeof ratio === 'string' && !ratioNames[ratio]) {\n    throw new PolishedError(43);\n  }\n\n  var _ref = typeof base === 'string' ? stripUnit(base, true) : [base, ''],\n      realBase = _ref[0],\n      unit = _ref[1];\n\n  var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio;\n\n  if (typeof realBase === 'string') {\n    throw new PolishedError(44, base);\n  }\n\n  return \"\" + realBase * Math.pow(realRatio, steps) + unit;\n}\n\n/**\n * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n *   'height': rem('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   height: ${rem('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   'height': '1rem'\n * }\n */\n\nvar rem =\n/*#__PURE__*/\npxtoFactory('rem');\n\n/**\n * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px').\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   fontSize: between('20px', '100px', '400px', '1000px'),\n *   fontSize: between('20px', '100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   fontSize: ${between('20px', '100px', '400px', '1000px')};\n *   fontSize: ${between('20px', '100px')}\n * `\n *\n * // CSS as JS Output\n *\n * h1: {\n *   'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)',\n *   'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)'\n * }\n */\n\nfunction between(fromSize, toSize, minScreen, maxScreen) {\n  if (minScreen === void 0) {\n    minScreen = '320px';\n  }\n\n  if (maxScreen === void 0) {\n    maxScreen = '1200px';\n  }\n\n  var _stripUnit = stripUnit(fromSize, true),\n      unitlessFromSize = _stripUnit[0],\n      fromSizeUnit = _stripUnit[1];\n\n  var _stripUnit2 = stripUnit(toSize, true),\n      unitlessToSize = _stripUnit2[0],\n      toSizeUnit = _stripUnit2[1];\n\n  var _stripUnit3 = stripUnit(minScreen, true),\n      unitlessMinScreen = _stripUnit3[0],\n      minScreenUnit = _stripUnit3[1];\n\n  var _stripUnit4 = stripUnit(maxScreen, true),\n      unitlessMaxScreen = _stripUnit4[0],\n      maxScreenUnit = _stripUnit4[1];\n\n  if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) {\n    throw new PolishedError(47);\n  }\n\n  if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {\n    throw new PolishedError(48);\n  }\n\n  var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen);\n  var base = unitlessToSize - slope * unitlessMaxScreen;\n  return \"calc(\" + base.toFixed(2) + (fromSizeUnit || '') + \" + \" + (100 * slope).toFixed(2) + \"vw)\";\n}\n\n/**\n * CSS to contain a float (credit to CSSMojo).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *    ...clearFix(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${clearFix()}\n * `\n *\n * // CSS as JS Output\n *\n * '&::after': {\n *   'clear': 'both',\n *   'content': '\"\"',\n *   'display': 'table'\n * }\n */\nfunction clearFix(parent) {\n  var _ref;\n\n  if (parent === void 0) {\n    parent = '&';\n  }\n\n  var pseudoSelector = parent + \"::after\";\n  return _ref = {}, _ref[pseudoSelector] = {\n    clear: 'both',\n    content: '\"\"',\n    display: 'table'\n  }, _ref;\n}\n\n/**\n * CSS to fully cover an area. Can optionally be passed an offset to act as a \"padding\".\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...cover()\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${cover()}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   'position': 'absolute',\n *   'top': '0',\n *   'right: '0',\n *   'bottom': '0',\n *   'left: '0'\n * }\n */\nfunction cover(offset) {\n  if (offset === void 0) {\n    offset = 0;\n  }\n\n  return {\n    position: 'absolute',\n    top: offset,\n    right: offset,\n    bottom: offset,\n    left: offset\n  };\n}\n\n/**\n * CSS to represent truncated text with an ellipsis.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...ellipsis('250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${ellipsis('250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   'display': 'inline-block',\n *   'maxWidth': '250px',\n *   'overflow': 'hidden',\n *   'textOverflow': 'ellipsis',\n *   'whiteSpace': 'nowrap',\n *   'wordWrap': 'normal'\n * }\n */\nfunction ellipsis(width) {\n  if (width === void 0) {\n    width = '100%';\n  }\n\n  return {\n    display: 'inline-block',\n    maxWidth: width,\n    overflow: 'hidden',\n    textOverflow: 'ellipsis',\n    whiteSpace: 'nowrap',\n    wordWrap: 'normal'\n  };\n}\n\n/**\n * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...fluidRange(\n *    {\n *        prop: 'padding',\n *        fromSize: '20px',\n *        toSize: '100px',\n *      },\n *      '400px',\n *      '1000px',\n *    )\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${fluidRange(\n *      {\n *        prop: 'padding',\n *        fromSize: '20px',\n *        toSize: '100px',\n *      },\n *      '400px',\n *      '1000px',\n *    )}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n *   \"@media (min-width: 1000px)\": Object {\n *     \"padding\": \"100px\",\n *   },\n *   \"@media (min-width: 400px)\": Object {\n *     \"padding\": \"calc(-33.33333333333334px + 13.333333333333334vw)\",\n *   },\n *   \"padding\": \"20px\",\n * }\n */\nfunction fluidRange(cssProp, minScreen, maxScreen) {\n  if (minScreen === void 0) {\n    minScreen = '320px';\n  }\n\n  if (maxScreen === void 0) {\n    maxScreen = '1200px';\n  }\n\n  if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) {\n    throw new PolishedError(49);\n  }\n\n  if (Array.isArray(cssProp)) {\n    var mediaQueries = {};\n    var fallbacks = {};\n\n    for (var _iterator = cssProp, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n      var _extends2, _extends3;\n\n      var _ref;\n\n      if (_isArray) {\n        if (_i >= _iterator.length) break;\n        _ref = _iterator[_i++];\n      } else {\n        _i = _iterator.next();\n        if (_i.done) break;\n        _ref = _i.value;\n      }\n\n      var obj = _ref;\n\n      if (!obj.prop || !obj.fromSize || !obj.toSize) {\n        throw new PolishedError(50);\n      }\n\n      fallbacks[obj.prop] = obj.fromSize;\n      mediaQueries[\"@media (min-width: \" + minScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + minScreen + \")\"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2));\n      mediaQueries[\"@media (min-width: \" + maxScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + maxScreen + \")\"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3));\n    }\n\n    return _extends({}, fallbacks, {}, mediaQueries);\n  } else {\n    var _ref2, _ref3, _ref4;\n\n    if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) {\n      throw new PolishedError(51);\n    }\n\n    return _ref4 = {}, _ref4[cssProp.prop] = cssProp.fromSize, _ref4[\"@media (min-width: \" + minScreen + \")\"] = (_ref2 = {}, _ref2[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref2), _ref4[\"@media (min-width: \" + maxScreen + \")\"] = (_ref3 = {}, _ref3[cssProp.prop] = cssProp.toSize, _ref3), _ref4;\n  }\n}\n\nvar dataURIRegex = /^\\s*data:([a-z]+\\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\nvar formatHintMap = {\n  woff: 'woff',\n  woff2: 'woff2',\n  ttf: 'truetype',\n  otf: 'opentype',\n  eot: 'embedded-opentype',\n  svg: 'svg',\n  svgz: 'svg'\n};\n\nfunction generateFormatHint(format, formatHint) {\n  if (!formatHint) return '';\n  return \" format(\\\"\" + formatHintMap[format] + \"\\\")\";\n}\n\nfunction isDataURI(fontFilePath) {\n  return !!fontFilePath.match(dataURIRegex);\n}\n\nfunction generateFileReferences(fontFilePath, fileFormats, formatHint) {\n  if (isDataURI(fontFilePath)) {\n    return \"url(\\\"\" + fontFilePath + \"\\\")\" + generateFormatHint(fileFormats[0], formatHint);\n  }\n\n  var fileFontReferences = fileFormats.map(function (format) {\n    return \"url(\\\"\" + fontFilePath + \".\" + format + \"\\\")\" + generateFormatHint(format, formatHint);\n  });\n  return fileFontReferences.join(', ');\n}\n\nfunction generateLocalReferences(localFonts) {\n  var localFontReferences = localFonts.map(function (font) {\n    return \"local(\\\"\" + font + \"\\\")\";\n  });\n  return localFontReferences.join(', ');\n}\n\nfunction generateSources(fontFilePath, localFonts, fileFormats, formatHint) {\n  var fontReferences = [];\n  if (localFonts) fontReferences.push(generateLocalReferences(localFonts));\n\n  if (fontFilePath) {\n    fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint));\n  }\n\n  return fontReferences.join(', ');\n}\n/**\n * CSS for a @font-face declaration.\n *\n * @example\n * // Styles as object basic usage\n * const styles = {\n *    ...fontFace({\n *      'fontFamily': 'Sans-Pro',\n *      'fontFilePath': 'path/to/file'\n *    })\n * }\n *\n * // styled-components basic usage\n * const GlobalStyle = createGlobalStyle`${\n *   fontFace({\n *     'fontFamily': 'Sans-Pro',\n *     'fontFilePath': 'path/to/file'\n *   }\n * )}`\n *\n * // CSS as JS Output\n *\n * '@font-face': {\n *   'fontFamily': 'Sans-Pro',\n *   'src': 'url(\"path/to/file.eot\"), url(\"path/to/file.woff2\"), url(\"path/to/file.woff\"), url(\"path/to/file.ttf\"), url(\"path/to/file.svg\")',\n * }\n */\n\n\nfunction fontFace(_ref) {\n  var fontFamily = _ref.fontFamily,\n      fontFilePath = _ref.fontFilePath,\n      fontStretch = _ref.fontStretch,\n      fontStyle = _ref.fontStyle,\n      fontVariant = _ref.fontVariant,\n      fontWeight = _ref.fontWeight,\n      _ref$fileFormats = _ref.fileFormats,\n      fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats,\n      _ref$formatHint = _ref.formatHint,\n      formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint,\n      localFonts = _ref.localFonts,\n      unicodeRange = _ref.unicodeRange,\n      fontDisplay = _ref.fontDisplay,\n      fontVariationSettings = _ref.fontVariationSettings,\n      fontFeatureSettings = _ref.fontFeatureSettings;\n  // Error Handling\n  if (!fontFamily) throw new PolishedError(55);\n\n  if (!fontFilePath && !localFonts) {\n    throw new PolishedError(52);\n  }\n\n  if (localFonts && !Array.isArray(localFonts)) {\n    throw new PolishedError(53);\n  }\n\n  if (!Array.isArray(fileFormats)) {\n    throw new PolishedError(54);\n  }\n\n  var fontFaceDeclaration = {\n    '@font-face': {\n      fontFamily: fontFamily,\n      src: generateSources(fontFilePath, localFonts, fileFormats, formatHint),\n      unicodeRange: unicodeRange,\n      fontStretch: fontStretch,\n      fontStyle: fontStyle,\n      fontVariant: fontVariant,\n      fontWeight: fontWeight,\n      fontDisplay: fontDisplay,\n      fontVariationSettings: fontVariationSettings,\n      fontFeatureSettings: fontFeatureSettings\n    }\n  }; // Removes undefined fields for cleaner css object.\n\n  return JSON.parse(JSON.stringify(fontFaceDeclaration));\n}\n\n/**\n * CSS to hide text to show a background image in a SEO-friendly way.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'backgroundImage': 'url(logo.png)',\n *   ...hideText(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   backgroundImage: url(logo.png);\n *   ${hideText()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'backgroundImage': 'url(logo.png)',\n *   'textIndent': '101%',\n *   'overflow': 'hidden',\n *   'whiteSpace': 'nowrap',\n * }\n */\nfunction hideText() {\n  return {\n    textIndent: '101%',\n    overflow: 'hidden',\n    whiteSpace: 'nowrap'\n  };\n}\n\n/**\n * CSS to hide content visually but remain accessible to screen readers.\n * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...hideVisually(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${hideVisually()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'border': '0',\n *   'clip': 'rect(0 0 0 0)',\n *   'height': '1px',\n *   'margin': '-1px',\n *   'overflow': 'hidden',\n *   'padding': '0',\n *   'position': 'absolute',\n *   'whiteSpace': 'nowrap',\n *   'width': '1px',\n * }\n */\nfunction hideVisually() {\n  return {\n    border: '0',\n    clip: 'rect(0 0 0 0)',\n    height: '1px',\n    margin: '-1px',\n    overflow: 'hidden',\n    padding: '0',\n    position: 'absolute',\n    whiteSpace: 'nowrap',\n    width: '1px'\n  };\n}\n\n/**\n * Generates a media query to target HiDPI devices.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *  [hiDPI(1.5)]: {\n *    width: 200px;\n *  }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${hiDPI(1.5)} {\n *     width: 200px;\n *   }\n * `\n *\n * // CSS as JS Output\n *\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\n *  only screen and (min--moz-device-pixel-ratio: 1.5),\n *  only screen and (-o-min-device-pixel-ratio: 1.5/1),\n *  only screen and (min-resolution: 144dpi),\n *  only screen and (min-resolution: 1.5dppx)': {\n *   'width': '200px',\n * }\n */\nfunction hiDPI(ratio) {\n  if (ratio === void 0) {\n    ratio = 1.3;\n  }\n\n  return \"\\n    @media only screen and (-webkit-min-device-pixel-ratio: \" + ratio + \"),\\n    only screen and (min--moz-device-pixel-ratio: \" + ratio + \"),\\n    only screen and (-o-min-device-pixel-ratio: \" + ratio + \"/1),\\n    only screen and (min-resolution: \" + Math.round(ratio * 96) + \"dpi),\\n    only screen and (min-resolution: \" + ratio + \"dppx)\\n  \";\n}\n\nfunction constructGradientValue(literals) {\n  var template = '';\n\n  for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    substitutions[_key - 1] = arguments[_key];\n  }\n\n  for (var i = 0; i < literals.length; i += 1) {\n    template += literals[i];\n\n    if (i === substitutions.length - 1 && substitutions[i]) {\n      var definedValues = substitutions.filter(function (substitute) {\n        return !!substitute;\n      }); // Adds leading coma if properties preceed color-stops\n\n      if (definedValues.length > 1) {\n        template = template.slice(0, -1);\n        template += \", \" + substitutions[i]; // No trailing space if color-stops is the only param provided\n      } else if (definedValues.length === 1) {\n        template += \"\" + substitutions[i];\n      }\n    } else if (substitutions[i]) {\n      template += substitutions[i] + \" \";\n    }\n  }\n\n  return template.trim();\n}\n\nfunction _templateObject() {\n  var data = _taggedTemplateLiteralLoose([\"linear-gradient(\", \"\", \")\"]);\n\n  _templateObject = function _templateObject() {\n    return data;\n  };\n\n  return data;\n}\n\n/**\n * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...linearGradient({\n        colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n        toDirection: 'to top right',\n        fallback: '#FFF',\n      })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${linearGradient({\n        colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n        toDirection: 'to top right',\n        fallback: '#FFF',\n      })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n *   'backgroundColor': '#FFF',\n *   'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction linearGradient(_ref) {\n  var colorStops = _ref.colorStops,\n      fallback = _ref.fallback,\n      _ref$toDirection = _ref.toDirection,\n      toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection;\n\n  if (!colorStops || colorStops.length < 2) {\n    throw new PolishedError(56);\n  }\n\n  return {\n    backgroundColor: fallback || colorStops[0].split(' ')[0],\n    backgroundImage: constructGradientValue(_templateObject(), toDirection, colorStops.join(', '))\n  };\n}\n\n/**\n * CSS to normalize abnormalities across browsers (normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *    ...normalize(),\n * }\n *\n * // styled-components usage\n * const GlobalStyle = createGlobalStyle`${normalize()}`\n *\n * // CSS as JS Output\n *\n * html {\n *   lineHeight: 1.15,\n *   textSizeAdjust: 100%,\n * } ...\n */\nfunction normalize() {\n  var _ref;\n\n  return [(_ref = {\n    html: {\n      lineHeight: '1.15',\n      textSizeAdjust: '100%'\n    },\n    body: {\n      margin: '0'\n    },\n    h1: {\n      fontSize: '2em',\n      margin: '0.67em 0'\n    },\n    hr: {\n      boxSizing: 'content-box',\n      height: '0',\n      overflow: 'visible'\n    },\n    pre: {\n      fontFamily: 'monospace, monospace',\n      fontSize: '1em'\n    },\n    a: {\n      backgroundColor: 'transparent'\n    },\n    'abbr[title]': {\n      borderBottom: 'none',\n      textDecoration: 'underline'\n    }\n  }, _ref[\"b,\\n    strong\"] = {\n    fontWeight: 'bolder'\n  }, _ref[\"code,\\n    kbd,\\n    samp\"] = {\n    fontFamily: 'monospace, monospace',\n    fontSize: '1em'\n  }, _ref.small = {\n    fontSize: '80%'\n  }, _ref[\"sub,\\n    sup\"] = {\n    fontSize: '75%',\n    lineHeight: '0',\n    position: 'relative',\n    verticalAlign: 'baseline'\n  }, _ref.sub = {\n    bottom: '-0.25em'\n  }, _ref.sup = {\n    top: '-0.5em'\n  }, _ref.img = {\n    borderStyle: 'none'\n  }, _ref[\"button,\\n    input,\\n    optgroup,\\n    select,\\n    textarea\"] = {\n    fontFamily: 'inherit',\n    fontSize: '100%',\n    lineHeight: '1.15',\n    margin: '0'\n  }, _ref[\"button,\\n    input\"] = {\n    overflow: 'visible'\n  }, _ref[\"button,\\n    select\"] = {\n    textTransform: 'none'\n  }, _ref[\"button,\\n    html [type=\\\"button\\\"],\\n    [type=\\\"reset\\\"],\\n    [type=\\\"submit\\\"]\"] = {\n    WebkitAppearance: 'button'\n  }, _ref[\"button::-moz-focus-inner,\\n    [type=\\\"button\\\"]::-moz-focus-inner,\\n    [type=\\\"reset\\\"]::-moz-focus-inner,\\n    [type=\\\"submit\\\"]::-moz-focus-inner\"] = {\n    borderStyle: 'none',\n    padding: '0'\n  }, _ref[\"button:-moz-focusring,\\n    [type=\\\"button\\\"]:-moz-focusring,\\n    [type=\\\"reset\\\"]:-moz-focusring,\\n    [type=\\\"submit\\\"]:-moz-focusring\"] = {\n    outline: '1px dotted ButtonText'\n  }, _ref.fieldset = {\n    padding: '0.35em 0.625em 0.75em'\n  }, _ref.legend = {\n    boxSizing: 'border-box',\n    color: 'inherit',\n    display: 'table',\n    maxWidth: '100%',\n    padding: '0',\n    whiteSpace: 'normal'\n  }, _ref.progress = {\n    verticalAlign: 'baseline'\n  }, _ref.textarea = {\n    overflow: 'auto'\n  }, _ref[\"[type=\\\"checkbox\\\"],\\n    [type=\\\"radio\\\"]\"] = {\n    boxSizing: 'border-box',\n    padding: '0'\n  }, _ref[\"[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n    [type=\\\"number\\\"]::-webkit-outer-spin-button\"] = {\n    height: 'auto'\n  }, _ref['[type=\"search\"]'] = {\n    WebkitAppearance: 'textfield',\n    outlineOffset: '-2px'\n  }, _ref['[type=\"search\"]::-webkit-search-decoration'] = {\n    WebkitAppearance: 'none'\n  }, _ref['::-webkit-file-upload-button'] = {\n    WebkitAppearance: 'button',\n    font: 'inherit'\n  }, _ref.details = {\n    display: 'block'\n  }, _ref.summary = {\n    display: 'list-item'\n  }, _ref.template = {\n    display: 'none'\n  }, _ref['[hidden]'] = {\n    display: 'none'\n  }, _ref), {\n    'abbr[title]': {\n      textDecoration: 'underline dotted'\n    }\n  }];\n}\n\nfunction _templateObject$1() {\n  var data = _taggedTemplateLiteralLoose([\"radial-gradient(\", \"\", \"\", \"\", \")\"]);\n\n  _templateObject$1 = function _templateObject() {\n    return data;\n  };\n\n  return data;\n}\n\n/**\n * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...radialGradient({\n *     colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n *     extent: 'farthest-corner at 45px 45px',\n *     position: 'center',\n *     shape: 'ellipse',\n *   })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${radialGradient({\n *     colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n *     extent: 'farthest-corner at 45px 45px',\n *     position: 'center',\n *     shape: 'ellipse',\n *   })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n *   'backgroundColor': '#00FFFF',\n *   'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction radialGradient(_ref) {\n  var colorStops = _ref.colorStops,\n      _ref$extent = _ref.extent,\n      extent = _ref$extent === void 0 ? '' : _ref$extent,\n      fallback = _ref.fallback,\n      _ref$position = _ref.position,\n      position = _ref$position === void 0 ? '' : _ref$position,\n      _ref$shape = _ref.shape,\n      shape = _ref$shape === void 0 ? '' : _ref$shape;\n\n  if (!colorStops || colorStops.length < 2) {\n    throw new PolishedError(57);\n  }\n\n  return {\n    backgroundColor: fallback || colorStops[0].split(' ')[0],\n    backgroundImage: constructGradientValue(_templateObject$1(), position, shape, extent, colorStops.join(', '))\n  };\n}\n\n/**\n * A helper to generate a retina background image and non-retina\n * background image. The retina background image will output to a HiDPI media query. The mixin uses\n * a _2x.png filename suffix by default.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *  ...retinaImage('my-img')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${retinaImage('my-img')}\n * `\n *\n * // CSS as JS Output\n * div {\n *   backgroundImage: 'url(my-img.png)',\n *   '@media only screen and (-webkit-min-device-pixel-ratio: 1.3),\n *    only screen and (min--moz-device-pixel-ratio: 1.3),\n *    only screen and (-o-min-device-pixel-ratio: 1.3/1),\n *    only screen and (min-resolution: 144dpi),\n *    only screen and (min-resolution: 1.5dppx)': {\n *     backgroundImage: 'url(my-img_2x.png)',\n *   }\n * }\n */\nfunction retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) {\n  var _ref;\n\n  if (extension === void 0) {\n    extension = 'png';\n  }\n\n  if (retinaSuffix === void 0) {\n    retinaSuffix = '_2x';\n  }\n\n  if (!filename) {\n    throw new PolishedError(58);\n  } // Replace the dot at the beginning of the passed extension if one exists\n\n\n  var ext = extension.replace(/^\\./, '');\n  var rFilename = retinaFilename ? retinaFilename + \".\" + ext : \"\" + filename + retinaSuffix + \".\" + ext;\n  return _ref = {\n    backgroundImage: \"url(\" + filename + \".\" + ext + \")\"\n  }, _ref[hiDPI()] = _extends({\n    backgroundImage: \"url(\" + rFilename + \")\"\n  }, backgroundSize ? {\n    backgroundSize: backgroundSize\n  } : {}), _ref;\n}\n\n/* eslint-disable key-spacing */\nvar functionsMap = {\n  easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n  easeInCirc: 'cubic-bezier(0.600,  0.040, 0.980, 0.335)',\n  easeInCubic: 'cubic-bezier(0.550,  0.055, 0.675, 0.190)',\n  easeInExpo: 'cubic-bezier(0.950,  0.050, 0.795, 0.035)',\n  easeInQuad: 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n  easeInQuart: 'cubic-bezier(0.895,  0.030, 0.685, 0.220)',\n  easeInQuint: 'cubic-bezier(0.755,  0.050, 0.855, 0.060)',\n  easeInSine: 'cubic-bezier(0.470,  0.000, 0.745, 0.715)',\n  easeOutBack: 'cubic-bezier(0.175,  0.885, 0.320, 1.275)',\n  easeOutCubic: 'cubic-bezier(0.215,  0.610, 0.355, 1.000)',\n  easeOutCirc: 'cubic-bezier(0.075,  0.820, 0.165, 1.000)',\n  easeOutExpo: 'cubic-bezier(0.190,  1.000, 0.220, 1.000)',\n  easeOutQuad: 'cubic-bezier(0.250,  0.460, 0.450, 0.940)',\n  easeOutQuart: 'cubic-bezier(0.165,  0.840, 0.440, 1.000)',\n  easeOutQuint: 'cubic-bezier(0.230,  1.000, 0.320, 1.000)',\n  easeOutSine: 'cubic-bezier(0.390,  0.575, 0.565, 1.000)',\n  easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n  easeInOutCirc: 'cubic-bezier(0.785,  0.135, 0.150, 0.860)',\n  easeInOutCubic: 'cubic-bezier(0.645,  0.045, 0.355, 1.000)',\n  easeInOutExpo: 'cubic-bezier(1.000,  0.000, 0.000, 1.000)',\n  easeInOutQuad: 'cubic-bezier(0.455,  0.030, 0.515, 0.955)',\n  easeInOutQuart: 'cubic-bezier(0.770,  0.000, 0.175, 1.000)',\n  easeInOutQuint: 'cubic-bezier(0.860,  0.000, 0.070, 1.000)',\n  easeInOutSine: 'cubic-bezier(0.445,  0.050, 0.550, 0.950)'\n};\n/* eslint-enable key-spacing */\n\nfunction getTimingFunction(functionName) {\n  return functionsMap[functionName];\n}\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   'transitionTimingFunction': timingFunctions('easeInQuad')\n * }\n *\n * // styled-components usage\n *  const div = styled.div`\n *   transitionTimingFunction: ${timingFunctions('easeInQuad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n *   'transitionTimingFunction': 'cubic-bezier(0.550,  0.085, 0.680, 0.530)',\n * }\n */\n\n\nfunction timingFunctions(timingFunction) {\n  return getTimingFunction(timingFunction);\n}\n\nvar getBorderWidth = function getBorderWidth(pointingDirection, height, width) {\n  var fullWidth = \"\" + width[0] + (width[1] || '');\n  var halfWidth = \"\" + width[0] / 2 + (width[1] || '');\n  var fullHeight = \"\" + height[0] + (height[1] || '');\n  var halfHeight = \"\" + height[0] / 2 + (height[1] || '');\n\n  switch (pointingDirection) {\n    case 'top':\n      return \"0 \" + halfWidth + \" \" + fullHeight + \" \" + halfWidth;\n\n    case 'topLeft':\n      return fullWidth + \" \" + fullHeight + \" 0 0\";\n\n    case 'left':\n      return halfHeight + \" \" + fullWidth + \" \" + halfHeight + \" 0\";\n\n    case 'bottomLeft':\n      return fullWidth + \" 0 0 \" + fullHeight;\n\n    case 'bottom':\n      return fullHeight + \" \" + halfWidth + \" 0 \" + halfWidth;\n\n    case 'bottomRight':\n      return \"0 0 \" + fullWidth + \" \" + fullHeight;\n\n    case 'right':\n      return halfHeight + \" 0 \" + halfHeight + \" \" + fullWidth;\n\n    case 'topRight':\n    default:\n      return \"0 \" + fullWidth + \" \" + fullHeight + \" 0\";\n  }\n};\n\nvar getBorderColor = function getBorderColor(pointingDirection, foregroundColor, backgroundColor) {\n  switch (pointingDirection) {\n    case 'top':\n    case 'bottomRight':\n      return backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor;\n\n    case 'right':\n    case 'bottomLeft':\n      return backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + foregroundColor;\n\n    case 'bottom':\n    case 'topLeft':\n      return foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\n\n    case 'left':\n    case 'topRight':\n      return backgroundColor + \" \" + foregroundColor + \" \" + backgroundColor + \" \" + backgroundColor;\n\n    default:\n      throw new PolishedError(59);\n  }\n};\n/**\n * CSS to represent triangle with any pointing direction with an optional background color.\n *\n * @example\n * // Styles as object usage\n *\n * const styles = {\n *   ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })\n * }\n *\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })}\n *\n *\n * // CSS as JS Output\n *\n * div: {\n *  'borderColor': 'transparent transparent transparent red',\n *  'borderStyle': 'solid',\n *  'borderWidth': '50px 0 50px 100px',\n *  'height': '0',\n *  'width': '0',\n * }\n */\n\n\nfunction triangle(_ref) {\n  var pointingDirection = _ref.pointingDirection,\n      height = _ref.height,\n      width = _ref.width,\n      foregroundColor = _ref.foregroundColor,\n      _ref$backgroundColor = _ref.backgroundColor,\n      backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor;\n  var widthAndUnit = stripUnit(width, true);\n  var heightAndUnit = stripUnit(height, true);\n\n  if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {\n    throw new PolishedError(60);\n  }\n\n  return {\n    width: '0',\n    height: '0',\n    borderColor: getBorderColor(pointingDirection, foregroundColor, backgroundColor),\n    borderStyle: 'solid',\n    borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit)\n  };\n}\n\n/**\n * Provides an easy way to change the `wordWrap` property.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...wordWrap('break-word')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${wordWrap('break-word')}\n * `\n *\n * // CSS as JS Output\n *\n * const styles = {\n *   overflowWrap: 'break-word',\n *   wordWrap: 'break-word',\n *   wordBreak: 'break-all',\n * }\n */\nfunction wordWrap(wrap) {\n  if (wrap === void 0) {\n    wrap = 'break-word';\n  }\n\n  var wordBreak = wrap === 'break-word' ? 'break-all' : wrap;\n  return {\n    overflowWrap: wrap,\n    wordWrap: wrap,\n    wordBreak: wordBreak\n  };\n}\n\nfunction colorToInt(color) {\n  return Math.round(color * 255);\n}\n\nfunction convertToInt(red, green, blue) {\n  return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\n\nfunction hslToRgb(hue, saturation, lightness, convert) {\n  if (convert === void 0) {\n    convert = convertToInt;\n  }\n\n  if (saturation === 0) {\n    // achromatic\n    return convert(lightness, lightness, lightness);\n  } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n  var huePrime = (hue % 360 + 360) % 360 / 60;\n  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;\n  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n  var red = 0;\n  var green = 0;\n  var blue = 0;\n\n  if (huePrime >= 0 && huePrime < 1) {\n    red = chroma;\n    green = secondComponent;\n  } else if (huePrime >= 1 && huePrime < 2) {\n    red = secondComponent;\n    green = chroma;\n  } else if (huePrime >= 2 && huePrime < 3) {\n    green = chroma;\n    blue = secondComponent;\n  } else if (huePrime >= 3 && huePrime < 4) {\n    green = secondComponent;\n    blue = chroma;\n  } else if (huePrime >= 4 && huePrime < 5) {\n    red = secondComponent;\n    blue = chroma;\n  } else if (huePrime >= 5 && huePrime < 6) {\n    red = chroma;\n    blue = secondComponent;\n  }\n\n  var lightnessModification = lightness - chroma / 2;\n  var finalRed = red + lightnessModification;\n  var finalGreen = green + lightnessModification;\n  var finalBlue = blue + lightnessModification;\n  return convert(finalRed, finalGreen, finalBlue);\n}\n\nvar namedColorMap = {\n  aliceblue: 'f0f8ff',\n  antiquewhite: 'faebd7',\n  aqua: '00ffff',\n  aquamarine: '7fffd4',\n  azure: 'f0ffff',\n  beige: 'f5f5dc',\n  bisque: 'ffe4c4',\n  black: '000',\n  blanchedalmond: 'ffebcd',\n  blue: '0000ff',\n  blueviolet: '8a2be2',\n  brown: 'a52a2a',\n  burlywood: 'deb887',\n  cadetblue: '5f9ea0',\n  chartreuse: '7fff00',\n  chocolate: 'd2691e',\n  coral: 'ff7f50',\n  cornflowerblue: '6495ed',\n  cornsilk: 'fff8dc',\n  crimson: 'dc143c',\n  cyan: '00ffff',\n  darkblue: '00008b',\n  darkcyan: '008b8b',\n  darkgoldenrod: 'b8860b',\n  darkgray: 'a9a9a9',\n  darkgreen: '006400',\n  darkgrey: 'a9a9a9',\n  darkkhaki: 'bdb76b',\n  darkmagenta: '8b008b',\n  darkolivegreen: '556b2f',\n  darkorange: 'ff8c00',\n  darkorchid: '9932cc',\n  darkred: '8b0000',\n  darksalmon: 'e9967a',\n  darkseagreen: '8fbc8f',\n  darkslateblue: '483d8b',\n  darkslategray: '2f4f4f',\n  darkslategrey: '2f4f4f',\n  darkturquoise: '00ced1',\n  darkviolet: '9400d3',\n  deeppink: 'ff1493',\n  deepskyblue: '00bfff',\n  dimgray: '696969',\n  dimgrey: '696969',\n  dodgerblue: '1e90ff',\n  firebrick: 'b22222',\n  floralwhite: 'fffaf0',\n  forestgreen: '228b22',\n  fuchsia: 'ff00ff',\n  gainsboro: 'dcdcdc',\n  ghostwhite: 'f8f8ff',\n  gold: 'ffd700',\n  goldenrod: 'daa520',\n  gray: '808080',\n  green: '008000',\n  greenyellow: 'adff2f',\n  grey: '808080',\n  honeydew: 'f0fff0',\n  hotpink: 'ff69b4',\n  indianred: 'cd5c5c',\n  indigo: '4b0082',\n  ivory: 'fffff0',\n  khaki: 'f0e68c',\n  lavender: 'e6e6fa',\n  lavenderblush: 'fff0f5',\n  lawngreen: '7cfc00',\n  lemonchiffon: 'fffacd',\n  lightblue: 'add8e6',\n  lightcoral: 'f08080',\n  lightcyan: 'e0ffff',\n  lightgoldenrodyellow: 'fafad2',\n  lightgray: 'd3d3d3',\n  lightgreen: '90ee90',\n  lightgrey: 'd3d3d3',\n  lightpink: 'ffb6c1',\n  lightsalmon: 'ffa07a',\n  lightseagreen: '20b2aa',\n  lightskyblue: '87cefa',\n  lightslategray: '789',\n  lightslategrey: '789',\n  lightsteelblue: 'b0c4de',\n  lightyellow: 'ffffe0',\n  lime: '0f0',\n  limegreen: '32cd32',\n  linen: 'faf0e6',\n  magenta: 'f0f',\n  maroon: '800000',\n  mediumaquamarine: '66cdaa',\n  mediumblue: '0000cd',\n  mediumorchid: 'ba55d3',\n  mediumpurple: '9370db',\n  mediumseagreen: '3cb371',\n  mediumslateblue: '7b68ee',\n  mediumspringgreen: '00fa9a',\n  mediumturquoise: '48d1cc',\n  mediumvioletred: 'c71585',\n  midnightblue: '191970',\n  mintcream: 'f5fffa',\n  mistyrose: 'ffe4e1',\n  moccasin: 'ffe4b5',\n  navajowhite: 'ffdead',\n  navy: '000080',\n  oldlace: 'fdf5e6',\n  olive: '808000',\n  olivedrab: '6b8e23',\n  orange: 'ffa500',\n  orangered: 'ff4500',\n  orchid: 'da70d6',\n  palegoldenrod: 'eee8aa',\n  palegreen: '98fb98',\n  paleturquoise: 'afeeee',\n  palevioletred: 'db7093',\n  papayawhip: 'ffefd5',\n  peachpuff: 'ffdab9',\n  peru: 'cd853f',\n  pink: 'ffc0cb',\n  plum: 'dda0dd',\n  powderblue: 'b0e0e6',\n  purple: '800080',\n  rebeccapurple: '639',\n  red: 'f00',\n  rosybrown: 'bc8f8f',\n  royalblue: '4169e1',\n  saddlebrown: '8b4513',\n  salmon: 'fa8072',\n  sandybrown: 'f4a460',\n  seagreen: '2e8b57',\n  seashell: 'fff5ee',\n  sienna: 'a0522d',\n  silver: 'c0c0c0',\n  skyblue: '87ceeb',\n  slateblue: '6a5acd',\n  slategray: '708090',\n  slategrey: '708090',\n  snow: 'fffafa',\n  springgreen: '00ff7f',\n  steelblue: '4682b4',\n  tan: 'd2b48c',\n  teal: '008080',\n  thistle: 'd8bfd8',\n  tomato: 'ff6347',\n  turquoise: '40e0d0',\n  violet: 'ee82ee',\n  wheat: 'f5deb3',\n  white: 'fff',\n  whitesmoke: 'f5f5f5',\n  yellow: 'ff0',\n  yellowgreen: '9acd32'\n};\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n * @private\n */\n\nfunction nameToHex(color) {\n  if (typeof color !== 'string') return color;\n  var normalizedColorName = color.toLowerCase();\n  return namedColorMap[normalizedColorName] ? \"#\" + namedColorMap[normalizedColorName] : color;\n}\n\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;\nvar rgbRegex = /^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i;\nvar rgbaRegex = /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*([-+]?[0-9]*[.]?[0-9]+)\\s*\\)$/i;\nvar hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+)\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i;\nvar hslaRegex = /^hsla\\(\\s*(\\d{0,3}[.]?[0-9]+)\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*(\\d{1,3}[.]?[0-9]?)%\\s*,\\s*([-+]?[0-9]*[.]?[0-9]+)\\s*\\)$/i;\n/**\n * Returns an RgbColor or RgbaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a RgbColor or RgbaColor object back to a string.\n *\n * @example\n * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1\n * const color1 = parseToRgb('rgb(255, 0, 0)');\n * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2\n * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');\n */\n\nfunction parseToRgb(color) {\n  if (typeof color !== 'string') {\n    throw new PolishedError(3);\n  }\n\n  var normalizedColor = nameToHex(color);\n\n  if (normalizedColor.match(hexRegex)) {\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n      green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n      blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16)\n    };\n  }\n\n  if (normalizedColor.match(hexRgbaRegex)) {\n    var alpha = parseFloat((parseInt(\"\" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n      green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n      blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16),\n      alpha: alpha\n    };\n  }\n\n  if (normalizedColor.match(reducedHexRegex)) {\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n      green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n      blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16)\n    };\n  }\n\n  if (normalizedColor.match(reducedRgbaHexRegex)) {\n    var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\n\n    return {\n      red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n      green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n      blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16),\n      alpha: _alpha\n    };\n  }\n\n  var rgbMatched = rgbRegex.exec(normalizedColor);\n\n  if (rgbMatched) {\n    return {\n      red: parseInt(\"\" + rgbMatched[1], 10),\n      green: parseInt(\"\" + rgbMatched[2], 10),\n      blue: parseInt(\"\" + rgbMatched[3], 10)\n    };\n  }\n\n  var rgbaMatched = rgbaRegex.exec(normalizedColor);\n\n  if (rgbaMatched) {\n    return {\n      red: parseInt(\"\" + rgbaMatched[1], 10),\n      green: parseInt(\"\" + rgbaMatched[2], 10),\n      blue: parseInt(\"\" + rgbaMatched[3], 10),\n      alpha: parseFloat(\"\" + rgbaMatched[4])\n    };\n  }\n\n  var hslMatched = hslRegex.exec(normalizedColor);\n\n  if (hslMatched) {\n    var hue = parseInt(\"\" + hslMatched[1], 10);\n    var saturation = parseInt(\"\" + hslMatched[2], 10) / 100;\n    var lightness = parseInt(\"\" + hslMatched[3], 10) / 100;\n    var rgbColorString = \"rgb(\" + hslToRgb(hue, saturation, lightness) + \")\";\n    var hslRgbMatched = rgbRegex.exec(rgbColorString);\n\n    if (!hslRgbMatched) {\n      throw new PolishedError(4, normalizedColor, rgbColorString);\n    }\n\n    return {\n      red: parseInt(\"\" + hslRgbMatched[1], 10),\n      green: parseInt(\"\" + hslRgbMatched[2], 10),\n      blue: parseInt(\"\" + hslRgbMatched[3], 10)\n    };\n  }\n\n  var hslaMatched = hslaRegex.exec(normalizedColor);\n\n  if (hslaMatched) {\n    var _hue = parseInt(\"\" + hslaMatched[1], 10);\n\n    var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n\n    var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n\n    var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n\n    var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n\n    if (!_hslRgbMatched) {\n      throw new PolishedError(4, normalizedColor, _rgbColorString);\n    }\n\n    return {\n      red: parseInt(\"\" + _hslRgbMatched[1], 10),\n      green: parseInt(\"\" + _hslRgbMatched[2], 10),\n      blue: parseInt(\"\" + _hslRgbMatched[3], 10),\n      alpha: parseFloat(\"\" + hslaMatched[4])\n    };\n  }\n\n  throw new PolishedError(5);\n}\n\nfunction rgbToHsl(color) {\n  // make sure rgb are contained in a set of [0, 255]\n  var red = color.red / 255;\n  var green = color.green / 255;\n  var blue = color.blue / 255;\n  var max = Math.max(red, green, blue);\n  var min = Math.min(red, green, blue);\n  var lightness = (max + min) / 2;\n\n  if (max === min) {\n    // achromatic\n    if (color.alpha !== undefined) {\n      return {\n        hue: 0,\n        saturation: 0,\n        lightness: lightness,\n        alpha: color.alpha\n      };\n    } else {\n      return {\n        hue: 0,\n        saturation: 0,\n        lightness: lightness\n      };\n    }\n  }\n\n  var hue;\n  var delta = max - min;\n  var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n\n  switch (max) {\n    case red:\n      hue = (green - blue) / delta + (green < blue ? 6 : 0);\n      break;\n\n    case green:\n      hue = (blue - red) / delta + 2;\n      break;\n\n    default:\n      // blue case\n      hue = (red - green) / delta + 4;\n      break;\n  }\n\n  hue *= 60;\n\n  if (color.alpha !== undefined) {\n    return {\n      hue: hue,\n      saturation: saturation,\n      lightness: lightness,\n      alpha: color.alpha\n    };\n  }\n\n  return {\n    hue: hue,\n    saturation: saturation,\n    lightness: lightness\n  };\n}\n\n/**\n * Returns an HslColor or HslaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a HslColor or HslaColor object back to a string.\n *\n * @example\n * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1\n * const color1 = parseToHsl('rgb(255, 0, 0)');\n * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2\n * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');\n */\nfunction parseToHsl(color) {\n  // Note: At a later stage we can optimize this function as right now a hsl\n  // color would be parsed converted to rgb values and converted back to hsl.\n  return rgbToHsl(parseToRgb(color));\n}\n\n/**\n * Reduces hex values if possible e.g. #ff8866 to #f86\n * @private\n */\nvar reduceHexValue = function reduceHexValue(value) {\n  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {\n    return \"#\" + value[1] + value[3] + value[5];\n  }\n\n  return value;\n};\n\nfunction numberToHex(value) {\n  var hex = value.toString(16);\n  return hex.length === 1 ? \"0\" + hex : hex;\n}\n\nfunction colorToHex(color) {\n  return numberToHex(Math.round(color * 255));\n}\n\nfunction convertToHex(red, green, blue) {\n  return reduceHexValue(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n}\n\nfunction hslToHex(hue, saturation, lightness) {\n  return hslToRgb(hue, saturation, lightness, convertToHex);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hsl(359, 0.75, 0.4),\n *   background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hsl(359, 0.75, 0.4)};\n *   background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#b3191c\";\n *   background: \"#b3191c\";\n * }\n */\nfunction hsl(value, saturation, lightness) {\n  if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {\n    return hslToHex(value, saturation, lightness);\n  } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {\n    return hslToHex(value.hue, value.saturation, value.lightness);\n  }\n\n  throw new PolishedError(1);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hsla(359, 0.75, 0.4, 0.7),\n *   background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),\n *   background: hsla(359, 0.75, 0.4, 1),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hsla(359, 0.75, 0.4, 0.7)};\n *   background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};\n *   background: ${hsla(359, 0.75, 0.4, 1)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(179,25,28,0.7)\";\n *   background: \"rgba(179,25,28,0.7)\";\n *   background: \"#b3191c\";\n * }\n */\nfunction hsla(value, saturation, lightness, alpha) {\n  if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {\n    return alpha >= 1 ? hslToHex(value, saturation, lightness) : \"rgba(\" + hslToRgb(value, saturation, lightness) + \",\" + alpha + \")\";\n  } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {\n    return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : \"rgba(\" + hslToRgb(value.hue, value.saturation, value.lightness) + \",\" + value.alpha + \")\";\n  }\n\n  throw new PolishedError(2);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgb(255, 205, 100),\n *   background: rgb({ red: 255, green: 205, blue: 100 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgb(255, 205, 100)};\n *   background: ${rgb({ red: 255, green: 205, blue: 100 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#ffcd64\";\n *   background: \"#ffcd64\";\n * }\n */\nfunction rgb(value, green, blue) {\n  if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n    return reduceHexValue(\"#\" + numberToHex(value) + numberToHex(green) + numberToHex(blue));\n  } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n    return reduceHexValue(\"#\" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));\n  }\n\n  throw new PolishedError(6);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgba(255, 205, 100, 0.7),\n *   background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }),\n *   background: rgba(255, 205, 100, 1),\n *   background: rgba('#ffffff', 0.4),\n *   background: rgba('black', 0.7),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgba(255, 205, 100, 0.7)};\n *   background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })};\n *   background: ${rgba(255, 205, 100, 1)};\n *   background: ${rgba('#ffffff', 0.4)};\n *   background: ${rgba('black', 0.7)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(255,205,100,0.7)\";\n *   background: \"rgba(255,205,100,0.7)\";\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,255,255,0.4)\";\n *   background: \"rgba(0,0,0,0.7)\";\n * }\n */\nfunction rgba(firstValue, secondValue, thirdValue, fourthValue) {\n  if (typeof firstValue === 'string' && typeof secondValue === 'number') {\n    var rgbValue = parseToRgb(firstValue);\n    return \"rgba(\" + rgbValue.red + \",\" + rgbValue.green + \",\" + rgbValue.blue + \",\" + secondValue + \")\";\n  } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') {\n    return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : \"rgba(\" + firstValue + \",\" + secondValue + \",\" + thirdValue + \",\" + fourthValue + \")\";\n  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {\n    return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : \"rgba(\" + firstValue.red + \",\" + firstValue.green + \",\" + firstValue.blue + \",\" + firstValue.alpha + \")\";\n  }\n\n  throw new PolishedError(7);\n}\n\nvar isRgb = function isRgb(color) {\n  return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isRgba = function isRgba(color) {\n  return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\n};\n\nvar isHsl = function isHsl(color) {\n  return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isHsla = function isHsla(color) {\n  return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';\n};\n/**\n * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: toColorString({ red: 255, green: 205, blue: 100 }),\n *   background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n *   background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n *   background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${toColorString({ red: 255, green: 205, blue: 100 })};\n *   background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n *   background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n *   background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,205,100,0.72)\";\n *   background: \"#00f\";\n *   background: \"rgba(179,25,25,0.72)\";\n * }\n */\n\n\nfunction toColorString(color) {\n  if (typeof color !== 'object') throw new PolishedError(8);\n  if (isRgba(color)) return rgba(color);\n  if (isRgb(color)) return rgb(color);\n  if (isHsla(color)) return hsla(color);\n  if (isHsl(color)) return hsl(color);\n  throw new PolishedError(8);\n}\n\n// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-redeclare\nfunction curried(f, length, acc) {\n  return function fn() {\n    // eslint-disable-next-line prefer-rest-params\n    var combined = acc.concat(Array.prototype.slice.call(arguments));\n    return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);\n  };\n} // eslint-disable-next-line no-redeclare\n\n\nfunction curry(f) {\n  // eslint-disable-line no-redeclare\n  return curried(f, f.length, []);\n}\n\n/**\n * Changes the hue of the color. Hue is a number between 0 to 360. The first\n * argument for adjustHue is the amount of degrees the color is rotated around\n * the color wheel, always producing a positive hue value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: adjustHue(180, '#448'),\n *   background: adjustHue('180', 'rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${adjustHue(180, '#448')};\n *   background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#888844\";\n *   background: \"rgba(136,136,68,0.7)\";\n * }\n */\n\nfunction adjustHue(degree, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    hue: hslColor.hue + parseFloat(degree)\n  }));\n} // prettier-ignore\n\n\nvar curriedAdjustHue =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(adjustHue);\n\n/**\n * Returns the complement of the provided color. This is identical to adjustHue(180, <color>).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: complement('#448'),\n *   background: complement('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${complement('#448')};\n *   background: ${complement('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#884\";\n *   background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction complement(color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    hue: (hslColor.hue + 180) % 360\n  }));\n}\n\nfunction guard(lowerBoundary, upperBoundary, value) {\n  return Math.max(lowerBoundary, Math.min(upperBoundary, value));\n}\n\n/**\n * Returns a string value for the darkened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: darken(0.2, '#FFCD64'),\n *   background: darken('0.2', 'rgba(255,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${darken(0.2, '#FFCD64')};\n *   background: ${darken('0.2', 'rgba(255,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#ffbd31\";\n *   background: \"rgba(255,189,49,0.7)\";\n * }\n */\n\nfunction darken(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedDarken =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(darken);\n\n/**\n * Decreases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the desaturate function is the amount by how much the color\n * intensity should be decreased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: desaturate(0.2, '#CCCD64'),\n *   background: desaturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${desaturate(0.2, '#CCCD64')};\n *   background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#b8b979\";\n *   background: \"rgba(184,185,121,0.7)\";\n * }\n */\n\nfunction desaturate(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedDesaturate =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(desaturate);\n\n/**\n * Returns a number (float) representing the luminance of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff',\n *   background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n *                             'rgba(58, 133, 255, 1)' :\n *                             'rgba(255, 57, 149, 1)',\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'};\n *   background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n *                             'rgba(58, 133, 255, 1)' :\n *                             'rgba(255, 57, 149, 1)'};\n *\n * // CSS in JS Output\n *\n * div {\n *   background: \"#CCCD64\";\n *   background: \"rgba(58, 133, 255, 1)\";\n * }\n */\n\nfunction getLuminance(color) {\n  if (color === 'transparent') return 0;\n  var rgbColor = parseToRgb(color);\n\n  var _Object$keys$map = Object.keys(rgbColor).map(function (key) {\n    var channel = rgbColor[key] / 255;\n    return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n  }),\n      r = _Object$keys$map[0],\n      g = _Object$keys$map[1],\n      b = _Object$keys$map[2];\n\n  return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3));\n}\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n *\n * @example\n * const contrastRatio = getContrast('#444', '#fff');\n */\n\nfunction getContrast(color1, color2) {\n  var luminance1 = getLuminance(color1);\n  var luminance2 = getLuminance(color2);\n  return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2));\n}\n\n/**\n * Converts the color to a grayscale, by reducing its saturation to 0.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: grayscale('#CCCD64'),\n *   background: grayscale('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${grayscale('#CCCD64')};\n *   background: ${grayscale('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#999\";\n *   background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction grayscale(color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends({}, parseToHsl(color), {\n    saturation: 0\n  }));\n}\n\n/**\n * Converts a HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n *   background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n *   background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#00f\";\n *   background: \"rgba(179,25,25,0.72)\";\n * }\n */\nfunction hslToColorString(color) {\n  if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') {\n    if (color.alpha && typeof color.alpha === 'number') {\n      return hsla({\n        hue: color.hue,\n        saturation: color.saturation,\n        lightness: color.lightness,\n        alpha: color.alpha\n      });\n    }\n\n    return hsl({\n      hue: color.hue,\n      saturation: color.saturation,\n      lightness: color.lightness\n    });\n  }\n\n  throw new PolishedError(45);\n}\n\n/**\n * Inverts the red, green and blue values of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: invert('#CCCD64'),\n *   background: invert('rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${invert('#CCCD64')};\n *   background: ${invert('rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#33329b\";\n *   background: \"rgba(154,155,50,0.7)\";\n * }\n */\n\nfunction invert(color) {\n  if (color === 'transparent') return color; // parse color string to rgb\n\n  var value = parseToRgb(color);\n  return toColorString(_extends({}, value, {\n    red: 255 - value.red,\n    green: 255 - value.green,\n    blue: 255 - value.blue\n  }));\n}\n\n/**\n * Returns a string value for the lightened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: lighten(0.2, '#CCCD64'),\n *   background: lighten('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${lighten(0.2, '#FFCD64')};\n *   background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#e5e6b1\";\n *   background: \"rgba(229,230,177,0.7)\";\n * }\n */\n\nfunction lighten(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedLighten =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(lighten);\n\n/**\n * Determines which contrast guidelines have been met for two colors.\n * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html).\n *\n * @example\n * const scores = meetsContrastGuidelines('#444', '#fff');\n */\nfunction meetsContrastGuidelines(color1, color2) {\n  var contrastRatio = getContrast(color1, color2);\n  return {\n    AA: contrastRatio >= 4.5,\n    AALarge: contrastRatio >= 3,\n    AAA: contrastRatio >= 7,\n    AAALarge: contrastRatio >= 4.5\n  };\n}\n\n/**\n * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: mix(0.5, '#f00', '#00f')\n *   background: mix(0.25, '#f00', '#00f')\n *   background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${mix(0.5, '#f00', '#00f')};\n *   background: ${mix(0.25, '#f00', '#00f')};\n *   background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#7f007f\";\n *   background: \"#3f00bf\";\n *   background: \"rgba(63, 0, 191, 0.75)\";\n * }\n */\n\nfunction mix(weight, color, otherColor) {\n  if (color === 'transparent') return otherColor;\n  if (otherColor === 'transparent') return color;\n  var parsedColor1 = parseToRgb(color);\n\n  var color1 = _extends({}, parsedColor1, {\n    alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1\n  });\n\n  var parsedColor2 = parseToRgb(otherColor);\n\n  var color2 = _extends({}, parsedColor2, {\n    alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1\n  }); // The formular is copied from the original Sass implementation:\n  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n\n  var alphaDelta = color1.alpha - color2.alpha;\n  var x = parseFloat(weight) * 2 - 1;\n  var y = x * alphaDelta === -1 ? x : x + alphaDelta;\n  var z = 1 + x * alphaDelta;\n  var weight1 = (y / z + 1) / 2.0;\n  var weight2 = 1 - weight1;\n  var mixedColor = {\n    red: Math.floor(color1.red * weight1 + color2.red * weight2),\n    green: Math.floor(color1.green * weight1 + color2.green * weight2),\n    blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),\n    alpha: color1.alpha + (color2.alpha - color1.alpha) * (parseFloat(weight) / 1.0)\n  };\n  return rgba(mixedColor);\n} // prettier-ignore\n\n\nvar curriedMix =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string, string> */\n(mix);\n\n/**\n * Increases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');\n *   background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),\n *   background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};\n *   background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},\n *   background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#fff\";\n *   background: \"rgba(255,255,255,0.7)\";\n *   background: \"rgba(255,0,0,0.7)\";\n * }\n */\n\nfunction opacify(amount, color) {\n  if (color === 'transparent') return color;\n  var parsedColor = parseToRgb(color);\n  var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n  var colorWithAlpha = _extends({}, parsedColor, {\n    alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)\n  });\n\n  return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedOpacify =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(opacify);\n\n/**\n * Returns black or white (or optional light and dark return colors) for best contrast depending on the luminosity of the given color.\n * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   color: readableColor('#000'),\n *   color: readableColor('black', '#001', '#ff8'),\n *   color: readableColor('white', '#001', '#ff8'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   color: ${readableColor('#000')};\n *   color: ${readableColor('black', '#001', '#ff8')};\n *   color: ${readableColor('white', '#001', '#ff8')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   color: \"#fff\";\n *   color: \"#ff8\";\n *   color: \"#001\";\n * }\n */\n\nfunction readableColor(color, lightReturnColor, darkReturnColor) {\n  if (lightReturnColor === void 0) {\n    lightReturnColor = '#000';\n  }\n\n  if (darkReturnColor === void 0) {\n    darkReturnColor = '#fff';\n  }\n\n  return getLuminance(color) > 0.179 ? lightReturnColor : darkReturnColor;\n}\n\n/**\n * Converts a RgbColor or RgbaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb` or `rgba`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: rgbToColorString({ red: 255, green: 205, blue: 100 }),\n *   background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })};\n *   background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#ffcd64\";\n *   background: \"rgba(255,205,100,0.72)\";\n * }\n */\nfunction rgbToColorString(color) {\n  if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {\n    if (color.alpha && typeof color.alpha === 'number') {\n      return rgba({\n        red: color.red,\n        green: color.green,\n        blue: color.blue,\n        alpha: color.alpha\n      });\n    }\n\n    return rgb({\n      red: color.red,\n      green: color.green,\n      blue: color.blue\n    });\n  }\n\n  throw new PolishedError(46);\n}\n\n/**\n * Increases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the saturate function is the amount by how much the color\n * intensity should be increased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: saturate(0.2, '#CCCD64'),\n *   background: saturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${saturate(0.2, '#FFCD64')};\n *   background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#e0e250\";\n *   background: \"rgba(224,226,80,0.7)\";\n * }\n */\n\nfunction saturate(amount, color) {\n  if (color === 'transparent') return color;\n  var hslColor = parseToHsl(color);\n  return toColorString(_extends({}, hslColor, {\n    saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))\n  }));\n} // prettier-ignore\n\n\nvar curriedSaturate =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(saturate);\n\n/**\n * Sets the hue of a color to the provided value. The hue range can be\n * from 0 and 359.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setHue(42, '#CCCD64'),\n *   background: setHue('244', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setHue(42, '#CCCD64')};\n *   background: ${setHue('244', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#cdae64\";\n *   background: \"rgba(107,100,205,0.7)\";\n * }\n */\n\nfunction setHue(hue, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends({}, parseToHsl(color), {\n    hue: parseFloat(hue)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetHue =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setHue);\n\n/**\n * Sets the lightness of a color to the provided value. The lightness range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setLightness(0.2, '#CCCD64'),\n *   background: setLightness('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setLightness(0.2, '#CCCD64')};\n *   background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#4d4d19\";\n *   background: \"rgba(223,224,159,0.7)\";\n * }\n */\n\nfunction setLightness(lightness, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends({}, parseToHsl(color), {\n    lightness: parseFloat(lightness)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetLightness =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setLightness);\n\n/**\n * Sets the saturation of a color to the provided value. The saturation range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: setSaturation(0.2, '#CCCD64'),\n *   background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${setSaturation(0.2, '#CCCD64')};\n *   background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n *   background: \"#adad84\";\n *   background: \"rgba(228,229,76,0.7)\";\n * }\n */\n\nfunction setSaturation(saturation, color) {\n  if (color === 'transparent') return color;\n  return toColorString(_extends({}, parseToHsl(color), {\n    saturation: parseFloat(saturation)\n  }));\n} // prettier-ignore\n\n\nvar curriedSetSaturation =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(setSaturation);\n\n/**\n * Shades a color by mixing it with black. `shade` can produce\n * hue shifts, where as `darken` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: shade(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${shade(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#00003f\";\n * }\n */\n\nfunction shade(percentage, color) {\n  if (color === 'transparent') return color;\n  return curriedMix(parseFloat(percentage), 'rgb(0, 0, 0)', color);\n} // prettier-ignore\n\n\nvar curriedShade =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(shade);\n\n/**\n * Tints a color by mixing it with white. `tint` can produce\n * hue shifts, where as `lighten` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: tint(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${tint(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"#bfbfff\";\n * }\n */\n\nfunction tint(percentage, color) {\n  if (color === 'transparent') return color;\n  return curriedMix(parseFloat(percentage), 'rgb(255, 255, 255)', color);\n} // prettier-ignore\n\n\nvar curriedTint =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(tint);\n\n/**\n * Decreases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   background: transparentize(0.1, '#fff');\n *   background: transparentize(0.2, 'hsl(0, 0%, 100%)'),\n *   background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   background: ${transparentize(0.1, '#fff')};\n *   background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')},\n *   background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n *   background: \"rgba(255,255,255,0.9)\";\n *   background: \"rgba(255,255,255,0.8)\";\n *   background: \"rgba(255,0,0,0.3)\";\n * }\n */\n\nfunction transparentize(amount, color) {\n  if (color === 'transparent') return color;\n  var parsedColor = parseToRgb(color);\n  var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n  var colorWithAlpha = _extends({}, parsedColor, {\n    alpha: guard(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)\n  });\n\n  return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedTransparentize =\n/*#__PURE__*/\ncurry\n/* ::<number | string, string, string> */\n(transparentize);\n\n/**\n * Shorthand for easily setting the animation property. Allows either multiple arrays with animations\n * or a single animation spread over the arguments.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'animation': 'rotate 1s ease-in-out, colorchange 2s'\n * }\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...animation('rotate', '1s', 'ease-in-out')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${animation('rotate', '1s', 'ease-in-out')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'animation': 'rotate 1s ease-in-out'\n * }\n */\nfunction animation() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  // Allow single or multiple animations passed\n  var multiMode = Array.isArray(args[0]);\n\n  if (!multiMode && args.length > 8) {\n    throw new PolishedError(64);\n  }\n\n  var code = args.map(function (arg) {\n    if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) {\n      throw new PolishedError(65);\n    }\n\n    if (Array.isArray(arg) && arg.length > 8) {\n      throw new PolishedError(66);\n    }\n\n    return Array.isArray(arg) ? arg.join(' ') : arg;\n  }).join(', ');\n  return {\n    animation: code\n  };\n}\n\n/**\n * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'backgroundImage': 'url(\"/image/background.jpg\"), linear-gradient(red, green)'\n * }\n */\nfunction backgroundImages() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  return {\n    backgroundImage: properties.join(', ')\n  };\n}\n\n/**\n * Shorthand that accepts any number of background values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'background': 'url(\"/image/background.jpg\"), linear-gradient(red, green), center no-repeat'\n * }\n */\nfunction backgrounds() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  return {\n    background: properties.join(', ')\n  };\n}\n\nvar sideMap = ['top', 'right', 'bottom', 'left'];\n/**\n * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...border('1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${border('1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderColor': 'red',\n *   'borderStyle': 'solid',\n *   'borderWidth': `1px`,\n * }\n *\n * // Styles as object usage\n * const styles = {\n *   ...border('top', '1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${border('top', '1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopColor': 'red',\n *   'borderTopStyle': 'solid',\n *   'borderTopWidth': `1px`,\n * }\n */\n\nfunction border(sideKeyword) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) {\n    var _ref;\n\n    return _ref = {}, _ref[\"border\" + capitalizeString(sideKeyword) + \"Width\"] = values[0], _ref[\"border\" + capitalizeString(sideKeyword) + \"Style\"] = values[1], _ref[\"border\" + capitalizeString(sideKeyword) + \"Color\"] = values[2], _ref;\n  } else {\n    values.unshift(sideKeyword);\n    return {\n      borderWidth: values[0],\n      borderStyle: values[1],\n      borderColor: values[2]\n    };\n  }\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderColor('red', 'green', 'blue', 'yellow')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderColor('red', 'green', 'blue', 'yellow')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopColor': 'red',\n *   'borderRightColor': 'green',\n *   'borderBottomColor': 'blue',\n *   'borderLeftColor': 'yellow'\n * }\n */\nfunction borderColor() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderColor'].concat(values));\n}\n\n/**\n * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderRadius('top', '5px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderRadius('top', '5px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopRightRadius': '5px',\n *   'borderTopLeftRadius': '5px',\n * }\n */\nfunction borderRadius(side, radius) {\n  var uppercaseSide = capitalizeString(side);\n\n  if (!radius && radius !== 0) {\n    throw new PolishedError(62);\n  }\n\n  if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') {\n    var _ref;\n\n    return _ref = {}, _ref[\"border\" + uppercaseSide + \"RightRadius\"] = radius, _ref[\"border\" + uppercaseSide + \"LeftRadius\"] = radius, _ref;\n  }\n\n  if (uppercaseSide === 'Left' || uppercaseSide === 'Right') {\n    var _ref2;\n\n    return _ref2 = {}, _ref2[\"borderTop\" + uppercaseSide + \"Radius\"] = radius, _ref2[\"borderBottom\" + uppercaseSide + \"Radius\"] = radius, _ref2;\n  }\n\n  throw new PolishedError(63);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderStyle('solid', 'dashed', 'dotted', 'double')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderStyle('solid', 'dashed', 'dotted', 'double')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopStyle': 'solid',\n *   'borderRightStyle': 'dashed',\n *   'borderBottomStyle': 'dotted',\n *   'borderLeftStyle': 'double'\n * }\n */\nfunction borderStyle() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderStyle'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...borderWidth('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${borderWidth('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'borderTopWidth': '12px',\n *   'borderRightWidth': '24px',\n *   'borderBottomWidth': '36px',\n *   'borderLeftWidth': '48px'\n * }\n */\nfunction borderWidth() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['borderWidth'].concat(values));\n}\n\nfunction generateSelectors(template, state) {\n  var stateSuffix = state ? \":\" + state : '';\n  return template(stateSuffix);\n}\n/**\n * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons.\n * @private\n */\n\n\nfunction statefulSelectors(states, template, stateMap) {\n  if (!template) throw new PolishedError(67);\n  if (states.length === 0) return generateSelectors(template, null);\n  var selectors = [];\n\n  for (var i = 0; i < states.length; i += 1) {\n    if (stateMap && stateMap.indexOf(states[i]) < 0) {\n      throw new PolishedError(68);\n    }\n\n    selectors.push(generateSelectors(template, states[i]));\n  }\n\n  selectors = selectors.join(',');\n  return selectors;\n}\n\nvar stateMap = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template(state) {\n  return \"button\" + state + \",\\n  input[type=\\\"button\\\"]\" + state + \",\\n  input[type=\\\"reset\\\"]\" + state + \",\\n  input[type=\\\"submit\\\"]\" + state;\n}\n/**\n * Populates selectors that target all buttons. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n *   [buttons('active')]: {\n *     'border': 'none'\n *   }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   > ${buttons('active')} {\n *     border: none;\n *   }\n * `\n *\n * // CSS in JS Output\n *\n *  'button:active,\n *  'input[type=\"button\"]:active,\n *  'input[type=\\\"reset\\\"]:active,\n *  'input[type=\\\"submit\\\"]:active: {\n *   'border': 'none'\n * }\n */\n\n\nfunction buttons() {\n  for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n    states[_key] = arguments[_key];\n  }\n\n  return statefulSelectors(states, template, stateMap);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...margin('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${margin('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'marginTop': '12px',\n *   'marginRight': '24px',\n *   'marginBottom': '36px',\n *   'marginLeft': '48px'\n * }\n */\nfunction margin() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['margin'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...padding('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${padding('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'paddingTop': '12px',\n *   'paddingRight': '24px',\n *   'paddingBottom': '36px',\n *   'paddingLeft': '48px'\n * }\n */\nfunction padding() {\n  for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n    values[_key] = arguments[_key];\n  }\n\n  return directionalProperty.apply(void 0, ['padding'].concat(values));\n}\n\nvar positionMap$1 = ['absolute', 'fixed', 'relative', 'static', 'sticky'];\n/**\n * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...position('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${position('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'top': '12px',\n *   'right': '24px',\n *   'bottom': '36px',\n *   'left': '48px'\n * }\n *\n * // Styles as object usage\n * const styles = {\n *   ...position('absolute', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${position('absolute', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'position': 'absolute',\n *   'top': '12px',\n *   'right': '24px',\n *   'bottom': '36px',\n *   'left': '48px'\n * }\n */\n\nfunction position(firstValue) {\n  for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    values[_key - 1] = arguments[_key];\n  }\n\n  if (positionMap$1.indexOf(firstValue) >= 0 && firstValue) {\n    return _extends({}, directionalProperty.apply(void 0, [''].concat(values)), {\n      position: firstValue\n    });\n  } else {\n    return directionalProperty.apply(void 0, ['', firstValue].concat(values));\n  }\n}\n\n/**\n * Shorthand to set the height and width properties in a single statement.\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...size('300px', '250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${size('300px', '250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'height': '300px',\n *   'width': '250px',\n * }\n */\nfunction size(height, width) {\n  if (width === void 0) {\n    width = height;\n  }\n\n  return {\n    height: height,\n    width: width\n  };\n}\n\nvar stateMap$1 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template$1(state) {\n  return \"input[type=\\\"color\\\"]\" + state + \",\\n    input[type=\\\"date\\\"]\" + state + \",\\n    input[type=\\\"datetime\\\"]\" + state + \",\\n    input[type=\\\"datetime-local\\\"]\" + state + \",\\n    input[type=\\\"email\\\"]\" + state + \",\\n    input[type=\\\"month\\\"]\" + state + \",\\n    input[type=\\\"number\\\"]\" + state + \",\\n    input[type=\\\"password\\\"]\" + state + \",\\n    input[type=\\\"search\\\"]\" + state + \",\\n    input[type=\\\"tel\\\"]\" + state + \",\\n    input[type=\\\"text\\\"]\" + state + \",\\n    input[type=\\\"time\\\"]\" + state + \",\\n    input[type=\\\"url\\\"]\" + state + \",\\n    input[type=\\\"week\\\"]\" + state + \",\\n    input:not([type])\" + state + \",\\n    textarea\" + state;\n}\n/**\n * Populates selectors that target all text inputs. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n *   [textInputs('active')]: {\n *     'border': 'none'\n *   }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   > ${textInputs('active')} {\n *     border: none;\n *   }\n * `\n *\n * // CSS in JS Output\n *\n *  'input[type=\"color\"]:active,\n *  input[type=\"date\"]:active,\n *  input[type=\"datetime\"]:active,\n *  input[type=\"datetime-local\"]:active,\n *  input[type=\"email\"]:active,\n *  input[type=\"month\"]:active,\n *  input[type=\"number\"]:active,\n *  input[type=\"password\"]:active,\n *  input[type=\"search\"]:active,\n *  input[type=\"tel\"]:active,\n *  input[type=\"text\"]:active,\n *  input[type=\"time\"]:active,\n *  input[type=\"url\"]:active,\n *  input[type=\"week\"]:active,\n *  input:not([type]):active,\n *  textarea:active': {\n *   'border': 'none'\n * }\n */\n\n\nfunction textInputs() {\n  for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n    states[_key] = arguments[_key];\n  }\n\n  return statefulSelectors(states, template$1, stateMap$1);\n}\n\n/**\n * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter).\n * @example\n * // Styles as object usage\n * const styles = {\n *   ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'),\n *   ...transitions(['color', 'background-color'], '2.0s ease-in 2s')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n *   ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')};\n *   ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),};\n * `\n *\n * // CSS as JS Output\n *\n * div {\n *   'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s'\n *   'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s',\n * }\n */\n\nfunction transitions() {\n  for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n    properties[_key] = arguments[_key];\n  }\n\n  if (Array.isArray(properties[0]) && properties.length === 2) {\n    var value = properties[1];\n\n    if (typeof value !== 'string') {\n      throw new PolishedError(61);\n    }\n\n    var transitionsString = properties[0].map(function (property) {\n      return property + \" \" + value;\n    }).join(', ');\n    return {\n      transition: transitionsString\n    };\n  } else {\n    return {\n      transition: properties.join(', ')\n    };\n  }\n}\n\nexport { curriedAdjustHue as adjustHue, animation, backgroundImages, backgrounds, between, border, borderColor, borderRadius, borderStyle, borderWidth, buttons, clearFix, complement, cover, curriedDarken as darken, curriedDesaturate as desaturate, directionalProperty, ellipsis, em, fluidRange, fontFace, getContrast, getLuminance, getValueAndUnit, grayscale, hiDPI, hideText, hideVisually, hsl, hslToColorString, hsla, invert, curriedLighten as lighten, linearGradient, margin, math, meetsContrastGuidelines, curriedMix as mix, modularScale, normalize, curriedOpacify as opacify, padding, parseToHsl, parseToRgb, position, radialGradient, readableColor, rem, retinaImage, rgb, rgbToColorString, rgba, curriedSaturate as saturate, curriedSetHue as setHue, curriedSetLightness as setLightness, curriedSetSaturation as setSaturation, curriedShade as shade, size, stripUnit, textInputs, timingFunctions, curriedTint as tint, toColorString, transitions, curriedTransparentize as transparentize, triangle, wordWrap };\n","export default function _assertThisInitialized(self) {\n  if (self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return self;\n}","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n    childContextTypes: true,\n    contextTypes: true,\n    defaultProps: true,\n    displayName: true,\n    getDefaultProps: true,\n    getDerivedStateFromProps: true,\n    mixins: true,\n    propTypes: true,\n    type: true\n};\n\nvar KNOWN_STATICS = {\n    name: true,\n    length: true,\n    prototype: true,\n    caller: true,\n    callee: true,\n    arguments: true,\n    arity: true\n};\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n    if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n\n        if (objectPrototype) {\n            var inheritedComponent = getPrototypeOf(sourceComponent);\n            if (inheritedComponent && inheritedComponent !== objectPrototype) {\n                hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n            }\n        }\n\n        var keys = getOwnPropertyNames(sourceComponent);\n\n        if (getOwnPropertySymbols) {\n            keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n        }\n\n        for (var i = 0; i < keys.length; ++i) {\n            var key = keys[i];\n            if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n                var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n                try { // Avoid failures from read-only properties\n                    defineProperty(targetComponent, key, descriptor);\n                } catch (e) {}\n            }\n        }\n\n        return targetComponent;\n    }\n\n    return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","export default function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","var reg = /[\\'\\\"]/\n\nmodule.exports = function unquote(str) {\n  if (!str) {\n    return ''\n  }\n  if (reg.test(str.charAt(0))) {\n    str = str.substr(1)\n  }\n  if (reg.test(str.charAt(str.length - 1))) {\n    str = str.substr(0, str.length - 1)\n  }\n  return str\n}\n","export * from './components';\nexport * from './contexts';\nexport * from './default-props';\nexport * from './themes';\n","export * from './Accordion';\nexport * from './AccordionPanel';\nexport * from './Anchor';\nexport * from './Avatar';\nexport * from './Box';\nexport * from './Button';\nexport * from './Calendar';\nexport * from './Carousel';\nexport * from './Chart';\nexport * from './CheckBox';\nexport * from './Clock';\nexport * from './Collapsible';\nexport * from './DataTable';\nexport * from './Diagram';\nexport * from './Distribution';\nexport * from './Drop';\nexport * from './DropButton';\nexport * from './Footer';\nexport * from './Form';\nexport * from './FormField';\nexport * from './Grid';\nexport * from './Grommet';\nexport * from './Header';\nexport * from './Heading';\nexport * from './Image';\nexport * from './InfiniteScroll';\nexport * from './Keyboard';\nexport * from './Layer';\nexport * from './List';\nexport * from './Main';\nexport * from './Markdown';\nexport * from './MaskedInput';\nexport * from './Menu';\nexport * from './Meter';\nexport * from './Paragraph';\nexport * from './Nav';\nexport * from './RadioButton';\nexport * from './RadioButtonGroup';\nexport * from './RangeInput';\nexport * from './RangeSelector';\nexport * from './RoutedAnchor';\nexport * from './RoutedButton';\nexport * from './Select';\nexport * from './SkipLink';\nexport * from './SkipLinks';\nexport * from './SkipLinkTarget';\nexport * from './Stack';\nexport * from './Table';\nexport * from './TableBody';\nexport * from './TableCell';\nexport * from './TableFooter';\nexport * from './TableHeader';\nexport * from './TableRow';\nexport * from './Tab';\nexport * from './Tabs';\nexport * from './Text';\nexport * from './TextArea';\nexport * from './TextInput';\nexport * from './Video';\nexport * from './WorldMap';\n","export { Accordion } from './Accordion';\n","import React, { Children, cloneElement, useState } from 'react';\n\nimport { Box } from '../Box';\n\nconst activeAsArray = active =>\n  typeof active === 'number' ? [active] : active;\n\nconst Accordion = ({\n  activeIndex,\n  animate = true,\n  children,\n  multiple,\n  onActive,\n  ...rest\n}) => {\n  const [activeIndexes, setActiveIndexes] = useState([]);\n  const [stateActiveIndex, setStateActiveIndex] = useState();\n\n  // Derived state from props\n  // https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops\n  const derivedActiveIndexes = activeAsArray(activeIndex) || [];\n  if (\n    (typeof activeIndex !== 'undefined' || activeIndex !== stateActiveIndex) &&\n    derivedActiveIndexes.join() !== activeIndexes.join()\n  ) {\n    setActiveIndexes(derivedActiveIndexes);\n    setStateActiveIndex(activeIndex);\n  }\n\n  const onPanelChange = index => {\n    let nextActiveIndexes = [...(activeIndexes || [])];\n\n    const nextActiveIndex = nextActiveIndexes.indexOf(index);\n    if (nextActiveIndex > -1) {\n      nextActiveIndexes.splice(nextActiveIndex, 1);\n    } else if (multiple) {\n      nextActiveIndexes.push(index);\n    } else {\n      nextActiveIndexes = [index];\n    }\n\n    setActiveIndexes(nextActiveIndexes);\n    if (onActive) {\n      onActive(nextActiveIndexes);\n    }\n  };\n\n  return (\n    <Box role=\"tablist\" {...rest}>\n      {Children.toArray(children)\n        .filter(child => child)\n        .map((child, index) => {\n          if (child) {\n            return cloneElement(child, {\n              active: activeIndexes.indexOf(index) > -1,\n              animate,\n              onPanelChange: () => onPanelChange(index),\n            });\n          }\n          return child;\n        })}\n    </Box>\n  );\n};\n\nlet AccordionDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  AccordionDoc = require('./doc').doc(Accordion);\n}\nconst AccordionWrapper = AccordionDoc || Accordion;\n\nexport { AccordionWrapper as Accordion };\n","import React, {\n  Children,\n  forwardRef,\n  useContext,\n  useMemo,\n  useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\nimport { backgroundIsDark } from '../../utils';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledBox, StyledBoxGap } from './StyledBox';\n\nconst Box = forwardRef(\n  (\n    {\n      a11yTitle,\n      background,\n      border,\n      children,\n      direction = 'column',\n      elevation, // munged to avoid styled-components putting it in the DOM\n      fill, // munged to avoid styled-components putting it in the DOM\n      gap,\n      onBlur,\n      onClick,\n      onFocus,\n      overflow, // munged to avoid styled-components putting it in the DOM\n      responsive = true,\n      tag,\n      as,\n      wrap, // munged to avoid styled-components putting it in the DOM,\n      width, // munged to avoid styled-components putting it in the DOM\n      height, // munged to avoid styled-components putting it in the DOM\n      tabIndex,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n\n    const focusable = useMemo(() => onClick && !(tabIndex < 0), [\n      onClick,\n      tabIndex,\n    ]);\n\n    const [focus, setFocus] = useState();\n\n    const clickProps = useMemo(() => {\n      if (focusable) {\n        return {\n          onClick,\n          onFocus: event => {\n            setFocus(true);\n            if (onFocus) onFocus(event);\n          },\n          onBlur: event => {\n            setFocus(false);\n            if (onBlur) onBlur(event);\n          },\n        };\n      }\n      const result = {};\n      if (onBlur) result.onBlur = onBlur;\n      if (onClick) result.onClick = onClick;\n      if (onFocus) result.onFocus = onFocus;\n      return result;\n    }, [focusable, onClick, onFocus, onBlur]);\n\n    const adjustedTabIndex = useMemo(() => {\n      if (tabIndex !== undefined) return tabIndex;\n      if (focusable) return 0;\n      return undefined;\n    }, [focusable, tabIndex]);\n\n    if (\n      (border === 'between' || (border && border.side === 'between')) &&\n      !gap\n    ) {\n      console.warn('Box must have a gap to use border between');\n    }\n\n    let contents = children;\n    if (gap) {\n      contents = [];\n      let firstIndex;\n      Children.forEach(children, (child, index) => {\n        if (child) {\n          if (firstIndex === undefined) {\n            firstIndex = index;\n          } else {\n            contents.push(\n              <StyledBoxGap\n                // eslint-disable-next-line react/no-array-index-key\n                key={`gap-${index}`}\n                gap={gap}\n                directionProp={direction}\n                responsive={responsive}\n                border={border}\n              />,\n            );\n          }\n        }\n        contents.push(child);\n      });\n    }\n\n    if (background || theme.darkChanged) {\n      let dark = backgroundIsDark(background, theme);\n      const darkChanged = dark !== undefined && dark !== theme.dark;\n      if (darkChanged || theme.darkChanged) {\n        dark = dark === undefined ? theme.dark : dark;\n        contents = (\n          <ThemeContext.Provider value={{ ...theme, dark }}>\n            {contents}\n          </ThemeContext.Provider>\n        );\n      }\n    }\n\n    let content = (\n      <StyledBox\n        as={!as && tag ? tag : as}\n        aria-label={a11yTitle}\n        background={background}\n        border={border}\n        ref={ref}\n        directionProp={direction}\n        elevationProp={elevation}\n        fillProp={fill}\n        focus={focus}\n        overflowProp={overflow}\n        wrapProp={wrap}\n        widthProp={width}\n        heightProp={height}\n        responsive={responsive}\n        tabIndex={adjustedTabIndex}\n        {...clickProps}\n        {...rest}\n      >\n        {contents}\n      </StyledBox>\n    );\n\n    if (onClick) {\n      content = <Keyboard onEnter={onClick}>{content}</Keyboard>;\n    }\n\n    return content;\n  },\n);\n\nBox.displayName = 'Box';\n\nlet BoxDoc;\nif (process.env.NODE_ENV !== 'production') {\n  BoxDoc = require('./doc').doc(Box); // eslint-disable-line global-require\n}\nconst BoxWrapper = BoxDoc || Box;\n\nexport { BoxWrapper as Box };\n","import { css } from 'styled-components';\nimport { normalizeColor } from './colors';\nimport { breakpointStyle } from './mixins';\n\nexport const borderStyle = (data, responsive, theme) => {\n  const styles = [];\n  const color = normalizeColor(data.color || 'border', theme);\n  const borderSize = data.size || 'xsmall';\n  const style = data.style || 'solid';\n  const side = typeof data === 'string' ? data : data.side || 'all';\n  const value = `${style} ${theme.global.borderSize[borderSize] ||\n    borderSize} ${color}`;\n  const breakpoint =\n    theme.box.responsiveBreakpoint &&\n    theme.global.breakpoints[theme.box.responsiveBreakpoint];\n  const responsiveValue =\n    responsive &&\n    breakpoint &&\n    (breakpoint.borderSize[borderSize] || borderSize) &&\n    `${style} ${breakpoint.borderSize[borderSize] || borderSize} ${color}`;\n  if (\n    side === 'top' ||\n    side === 'bottom' ||\n    side === 'left' ||\n    side === 'right'\n  ) {\n    styles.push(`border-${side}: ${value};`);\n    if (responsiveValue) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        border-${side}: ${responsiveValue};\n      `,\n        ),\n      );\n    }\n  } else if (side === 'end' || side === 'start') {\n    styles.push(css`border-inline-${side}: ${value};`);\n    if (responsiveValue) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        border-inline-${side}: ${responsiveValue};\n      `,\n        ),\n      );\n    }\n  } else if (side === 'vertical') {\n    styles.push(css`\n      border-left: ${value};\n      border-right: ${value};\n    `);\n    if (responsiveValue) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        border-left: ${responsiveValue};\n        border-right: ${responsiveValue};\n      `,\n        ),\n      );\n    }\n  } else if (side === 'horizontal') {\n    styles.push(css`\n      border-top: ${value};\n      border-bottom: ${value};\n    `);\n    if (responsiveValue) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        border-top: ${responsiveValue};\n        border-bottom: ${responsiveValue};\n      `,\n        ),\n      );\n    }\n  } else if (side === 'between') {\n    // no-op\n  } else {\n    styles.push(\n      css`\n        border: ${value};\n      `,\n    );\n    if (responsiveValue) {\n      styles.push(breakpointStyle(breakpoint, `border: ${responsiveValue};`));\n    }\n  }\n  return styles;\n};\n","export const debounce = (cb, timer) => {\n  let timeout;\n  return (...args) => {\n    const context = this;\n    clearTimeout(timeout);\n    timeout = setTimeout(() => cb.apply(context, args), timer);\n  };\n};\n\nexport const debounceDelay = ({ theme }) => theme.global.debounceDelay;\n","export const findScrollParents = (element, horizontal) => {\n  const result = [];\n  if (element) {\n    let parent = element.parentNode;\n    while (parent && parent.getBoundingClientRect) {\n      const rect = parent.getBoundingClientRect();\n      // 10px is to account for borders and scrollbars in a lazy way\n      if (horizontal) {\n        if (rect.width && parent.scrollWidth > rect.width + 10) {\n          result.push(parent);\n        }\n      } else if (rect.height && parent.scrollHeight > rect.height + 10) {\n        result.push(parent);\n      }\n      parent = parent.parentNode;\n    }\n    // last scrollable element will be the document\n    // if nothing else is scrollable in the page\n    if (result.length === 0) {\n      result.push(document);\n    } else if (result[0].tagName.toLowerCase() === 'body') {\n      result.length = 0;\n      result.push(document);\n    }\n  }\n  return result;\n};\n\nexport const getFirstFocusableDescendant = element => {\n  const children = element.getElementsByTagName('*');\n  for (let i = 0; i < children.length; i += 1) {\n    const child = children[i];\n    const tagName = child.tagName.toLowerCase();\n    if (tagName === 'input' || tagName === 'select') {\n      return child;\n    }\n  }\n  return undefined;\n};\n\nexport const getBodyChildElements = () => {\n  const excludeMatch = /^(script|link)$/i;\n  const children = [];\n  [].forEach.call(document.body.children, node => {\n    if (!excludeMatch.test(node.tagName)) {\n      children.push(node);\n    }\n  });\n  return children;\n};\n\nexport const getNewContainer = () => {\n  // setup DOM\n  const container = document.createElement('div');\n  document.body.appendChild(container);\n  return container;\n};\n\nexport const setFocusWithoutScroll = element => {\n  const x = window.scrollX;\n  const y = window.scrollY;\n  element.focus();\n  window.scrollTo(x, y);\n};\n\nconst TABINDEX = 'tabindex';\nconst TABINDEX_STATE = 'data-g-tabindex';\n\nexport const makeNodeFocusable = node => {\n  // do not touch aria live containers so that announcements work\n  if (!node.hasAttribute('aria-live')) {\n    node.setAttribute('aria-hidden', false);\n    // allow children to receive focus again\n    const elements = node.getElementsByTagName('*');\n    // only reset elements we've changed in makeNodeUnfocusable()\n    Array.prototype.filter\n      .call(elements || [], element => element.hasAttribute(TABINDEX_STATE))\n      .forEach(element => {\n        const prior = element.getAttribute(TABINDEX_STATE);\n        if (prior >= 0) {\n          element.setAttribute(TABINDEX, element.getAttribute(TABINDEX_STATE));\n        } else if (prior === 'none') {\n          element.removeAttribute(TABINDEX);\n        }\n        element.removeAttribute(TABINDEX_STATE);\n      });\n  }\n};\n\nconst autoFocusingTags = /(a|area|input|select|textarea|button|iframe)$/;\n\nexport const makeNodeUnfocusable = node => {\n  // do not touch aria live containers so that announcements work\n  if (!node.hasAttribute('aria-live')) {\n    node.setAttribute('aria-hidden', true);\n    // prevent children to receive focus\n    const elements = node.getElementsByTagName('*');\n    // first, save off the tabindex of any element with one\n    Array.prototype.filter\n      .call(elements || [], element => element.getAttribute(TABINDEX) !== null)\n      .forEach(element => {\n        element.setAttribute(TABINDEX_STATE, element.getAttribute(TABINDEX));\n        element.setAttribute(TABINDEX, -1);\n      });\n    // then, if any element is inherently focusable and not handled above,\n    // give it a tabindex of -1 so it can't receive focus\n    Array.prototype.filter\n      .call(elements || [], element => {\n        const currentTag = element.tagName.toLowerCase();\n        return (\n          currentTag.match(autoFocusingTags) &&\n          element.focus &&\n          element.getAttribute(TABINDEX_STATE) === null\n        );\n      })\n      .forEach(element => {\n        element.setAttribute(TABINDEX_STATE, 'none');\n        element.setAttribute(TABINDEX, -1);\n      });\n  }\n};\n\nexport const findVisibleParent = element => {\n  if (element) {\n    return element.offsetParent\n      ? element\n      : findVisibleParent(element.parentElement) || element;\n  }\n  return undefined;\n};\n\nexport const isNodeAfterScroll = (node, target = window) => {\n  const { bottom } = node.getBoundingClientRect();\n  const { height, top } = target.getBoundingClientRect();\n  return bottom >= top + height;\n};\n\nexport const isNodeBeforeScroll = (node, target = window) => {\n  const { top } = node.getBoundingClientRect();\n  const { top: targetTop } = target.getBoundingClientRect();\n  return top <= targetTop;\n};\n","const POST_DECIMAL_DIGITS = 10;\n\nexport const baseUnit = 24;\n\nexport const polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {\n  const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;\n  return {\n    x: centerX + radius * Math.cos(angleInRadians),\n    y: centerY + radius * Math.sin(angleInRadians),\n  };\n};\n\nexport const arcCommands = (centerX, centerY, radius, startAngle, endAngle) => {\n  // handle that we can't draw a complete circle\n  let normalizedEndAngle = endAngle;\n  if (endAngle - startAngle >= 360) {\n    normalizedEndAngle = startAngle + 359.99;\n  }\n  const start = polarToCartesian(centerX, centerY, radius, normalizedEndAngle);\n  const end = polarToCartesian(centerX, centerY, radius, startAngle);\n  const arcSweep = normalizedEndAngle - startAngle <= 180 ? '0' : '1';\n  const d = [\n    'M',\n    start.x.toFixed(POST_DECIMAL_DIGITS),\n    start.y.toFixed(POST_DECIMAL_DIGITS),\n    'A',\n    radius.toFixed(POST_DECIMAL_DIGITS),\n    radius.toFixed(POST_DECIMAL_DIGITS),\n    0,\n    arcSweep,\n    0,\n    end.x.toFixed(POST_DECIMAL_DIGITS),\n    end.y.toFixed(POST_DECIMAL_DIGITS),\n  ].join(' ');\n  return d;\n};\n\nexport const translateEndAngle = (startAngle, anglePer, value) =>\n  Math.min(360, Math.max(0, startAngle + anglePer * value));\n","import { PropTypes } from 'react-desc';\n\nexport const a11yTitlePropType = PropTypes.string.description(\n  `Custom label to be used by screen readers. When provided, an aria-label will\n   be added to the element.`,\n);\n\nexport const backgroundDoc = PropTypes.oneOfType([\n  PropTypes.string,\n  PropTypes.shape({\n    color: PropTypes.string,\n    dark: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n    image: PropTypes.string,\n    position: PropTypes.string,\n    opacity: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.bool,\n      PropTypes.number,\n      PropTypes.oneOf(['weak', 'medium', 'strong']),\n    ]),\n    repeat: PropTypes.oneOfType([\n      PropTypes.oneOf(['no-repeat', 'repeat']),\n      PropTypes.string,\n    ]),\n    size: PropTypes.oneOfType([\n      PropTypes.oneOf(['cover', 'contain']),\n      PropTypes.string,\n    ]),\n    light: PropTypes.string,\n  }),\n]).description(`Either a color \nidentifier to use for the background color. For example: 'neutral-1'. Or, a \n'url()' for an image. Dark is not needed if color is provided.`);\n\nexport const colorPropType = PropTypes.oneOfType([\n  PropTypes.string,\n  PropTypes.shape({ dark: PropTypes.string, light: PropTypes.string }),\n]);\n\nconst MARGIN_SIZES = [\n  'xxsmall',\n  'xsmall',\n  'small',\n  'medium',\n  'large',\n  'xlarge',\n];\n\nexport const marginProp = PropTypes.oneOfType([\n  PropTypes.oneOf(['none', ...MARGIN_SIZES]),\n  PropTypes.shape({\n    bottom: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n    end: PropTypes.oneOfType([PropTypes.oneOf(MARGIN_SIZES), PropTypes.string]),\n    horizontal: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n    left: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n    right: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n    start: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n    top: PropTypes.oneOfType([PropTypes.oneOf(MARGIN_SIZES), PropTypes.string]),\n    vertical: PropTypes.oneOfType([\n      PropTypes.oneOf(MARGIN_SIZES),\n      PropTypes.string,\n    ]),\n  }),\n  PropTypes.string,\n]).description(`The amount of margin around the component. An object can\n    be specified to distinguish horizontal margin, vertical margin, and\n    margin on a particular side.`);\n\nconst PAD_SIZES = ['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge'];\n\nexport const padPropType = PropTypes.oneOfType([\n  PropTypes.oneOf(['none', ...PAD_SIZES]),\n  PropTypes.shape({\n    bottom: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    end: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    horizontal: PropTypes.oneOfType([\n      PropTypes.oneOf(PAD_SIZES),\n      PropTypes.string,\n    ]),\n    left: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    right: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    start: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    top: PropTypes.oneOfType([PropTypes.oneOf(PAD_SIZES), PropTypes.string]),\n    vertical: PropTypes.oneOfType([\n      PropTypes.oneOf(PAD_SIZES),\n      PropTypes.string,\n    ]),\n  }),\n  PropTypes.string,\n])\n  .description(\n    `The amount of padding around the box contents. An\n    object can be specified to distinguish horizontal padding, vertical\n    padding, and padding on a particular side of the box`,\n  )\n  .defaultValue('none');\n\nexport const genericProps = {\n  a11yTitle: a11yTitlePropType,\n  alignSelf: PropTypes.oneOf(['start', 'center', 'end', 'stretch'])\n    .description(`How to align along the cross axis when contained in\n      a Box or along the column axis when contained in a Grid.`),\n  gridArea: PropTypes.string.description(`The name of the area to place\n    this inside a parent Grid.`),\n  margin: marginProp,\n};\n\nexport const hoverIndicatorPropType = PropTypes.oneOfType([\n  PropTypes.bool,\n  PropTypes.string,\n  PropTypes.oneOf(['background']),\n  PropTypes.shape({\n    color: PropTypes.string,\n    dark: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n    image: PropTypes.string,\n    light: PropTypes.string,\n    position: PropTypes.string,\n    opacity: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.bool,\n      PropTypes.number,\n      PropTypes.oneOf(['weak', 'medium', 'strong']),\n    ]),\n    repeat: PropTypes.oneOfType([\n      PropTypes.oneOf(['no-repeat', 'repeat']),\n      PropTypes.string,\n    ]),\n    size: PropTypes.oneOfType([\n      PropTypes.oneOf(['cover', 'contain']),\n      PropTypes.string,\n    ]),\n  }),\n]);\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = describe;\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _descToJSON = require('./descToJSON');\n\nvar _descToJSON2 = _interopRequireDefault(_descToJSON);\n\nvar _descToMarkdown = require('./descToMarkdown');\n\nvar _descToMarkdown2 = _interopRequireDefault(_descToMarkdown);\n\nvar _descToTypescript = require('./descToTypescript');\n\nvar _descToTypescript2 = _interopRequireDefault(_descToTypescript);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar convertArray = function convertArray(array) {\n  return array.map(function (type) {\n    return convertPropType(type);\n  });\n};\n\nvar convertShape = function convertShape(shape) {\n  var result = {};\n  Object.keys(shape).forEach(function (key) {\n    result[key] = convertPropType(shape[key]);\n  });\n  return result;\n};\n\nvar convertPropType = function convertPropType(propType) {\n  var result = void 0;\n  if (propType && propType.type) {\n    if (!_propTypes2.default[propType.type]) {\n      throw new Error('react-desc: unknown type ' + propType.type);\n    }\n    if (propType.args) {\n      if (propType.type === 'oneOfType' || propType.type === 'arrayOf') {\n        if (Array.isArray(propType.args)) {\n          result = _propTypes2.default[propType.type](convertArray(propType.args));\n        } else {\n          result = _propTypes2.default[propType.type](convertPropType(propType.args));\n        }\n      } else if (propType.type === 'shape') {\n        result = _propTypes2.default[propType.type](convertShape(propType.args));\n      } else {\n        result = _propTypes2.default[propType.type](propType.args);\n      }\n    } else {\n      result = _propTypes2.default[propType.type];\n    }\n  } else {\n    result = propType;\n  }\n  return result;\n};\n\nfunction describe(ComponentInstance) {\n  if (!ComponentInstance) {\n    throw new Error('react-desc: component is required');\n  }\n\n  var documentation = {\n    propTypes: {}\n  };\n\n  var DocumentedComponent = ComponentInstance;\n\n  var addDocumentationProp = function addDocumentationProp(propName) {\n    return function (value) {\n      documentation[propName] = value;\n      return DocumentedComponent;\n    };\n  };\n\n  DocumentedComponent.availableAt = addDocumentationProp('availableAt');\n  DocumentedComponent.description = addDocumentationProp('description');\n  DocumentedComponent.details = addDocumentationProp('details');\n  DocumentedComponent.deprecated = addDocumentationProp('deprecated');\n  DocumentedComponent.usage = addDocumentationProp('usage');\n  DocumentedComponent.intrinsicElement = addDocumentationProp('intrinsicElement');\n\n  DocumentedComponent.toJSON = _descToJSON2.default.bind(null, ComponentInstance, documentation);\n  DocumentedComponent.toTypescript = _descToTypescript2.default.bind(null, ComponentInstance, documentation);\n  DocumentedComponent.toMarkdown = _descToMarkdown2.default.bind(null, ComponentInstance, documentation);\n\n  Object.defineProperty(DocumentedComponent, 'propTypes', {\n    get: function get() {\n      return DocumentedComponent.propTypesValue;\n    },\n    set: function set(value) {\n      if (!DocumentedComponent.propTypesValue) {\n        DocumentedComponent.propTypesValue = {};\n      }\n      Object.keys(value).forEach(function (name) {\n        var propType = value[name];\n        if (propType.type) {\n          documentation.propTypes[name] = propType;\n          propType = convertPropType(propType);\n          if (value[name].reactDesc.required) {\n            propType = propType.isRequired;\n          }\n        }\n        DocumentedComponent.propTypesValue[name] = propType;\n        return propType;\n      });\n    },\n    enumerable: true,\n    configurable: true\n  });\n\n  return DocumentedComponent;\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n  function shim(props, propName, componentName, location, propFullName, secret) {\n    if (secret === ReactPropTypesSecret) {\n      // It is still safe when called from React.\n      return;\n    }\n    var err = new Error(\n      'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n      'Use PropTypes.checkPropTypes() to call them. ' +\n      'Read more at http://fb.me/use-check-prop-types'\n    );\n    err.name = 'Invariant Violation';\n    throw err;\n  };\n  shim.isRequired = shim;\n  function getShim() {\n    return shim;\n  };\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n  var ReactPropTypes = {\n    array: shim,\n    bool: shim,\n    func: shim,\n    number: shim,\n    object: shim,\n    string: shim,\n    symbol: shim,\n\n    any: shim,\n    arrayOf: getShim,\n    element: shim,\n    elementType: shim,\n    instanceOf: getShim,\n    node: shim,\n    objectOf: getShim,\n    oneOf: getShim,\n    oneOfType: getShim,\n    shape: getShim,\n    exact: getShim,\n\n    checkPropTypes: emptyFunctionWithReset,\n    resetWarningCache: emptyFunction\n  };\n\n  ReactPropTypes.PropTypes = ReactPropTypes;\n\n  return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = descToMarkdown;\n\nvar _descToJSON = require('./descToJSON');\n\nvar _descToJSON2 = _interopRequireDefault(_descToJSON);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar code = '```';\n\nfunction parseAvailableAt(_ref) {\n  var badge = _ref.badge,\n      url = _ref.url;\n\n  return '[![](' + badge + ')](' + url + ')';\n}\n\nfunction getAvailableAt(_ref2) {\n  var availableAt = _ref2.availableAt;\n\n  if (!availableAt) {\n    return '';\n  }\n  var availableAtStr = void 0;\n  if (Array.isArray(availableAt)) {\n    availableAtStr = availableAt.map(function (currentAvailable) {\n      return parseAvailableAt(currentAvailable);\n    }).join(' ');\n  } else {\n    availableAtStr = parseAvailableAt(availableAt);\n  }\n  return '\\n' + availableAtStr;\n}\n\nfunction getHeader(_ref3) {\n  var description = _ref3.description,\n      details = _ref3.details,\n      deprecated = _ref3.deprecated,\n      name = _ref3.name;\n\n  return '## ' + (deprecated ? '~~' + name + '~~' : name) + (deprecated ? ' (' + deprecated + ')' : '') + '\\n' + description + (details ? '\\n\\n' + details : '') + '\\n';\n}\n\nfunction getUsage(_ref4) {\n  var usage = _ref4.usage;\n\n  return usage ? '\\n## Usage\\n\\n' + code + 'javascript\\n' + usage + '\\n' + code : '';\n}\n\nfunction getDefaultValue(defaultValue) {\n  var defaultValueString = (typeof defaultValue === 'undefined' ? 'undefined' : _typeof(defaultValue)) === 'object' ? JSON.stringify(defaultValue, undefined, 2) : defaultValue;\n\n  return ' Defaults to `' + defaultValueString + '`.';\n}\n\nfunction getProperties(_ref5) {\n  var _ref5$properties = _ref5.properties,\n      properties = _ref5$properties === undefined ? [] : _ref5$properties;\n\n  var props = properties.map(function (_ref6) {\n    var defaultValue = _ref6.defaultValue,\n        deprecated = _ref6.deprecated,\n        description = _ref6.description,\n        format = _ref6.format,\n        name = _ref6.name,\n        required = _ref6.required;\n    return '\\n' + (deprecated ? '**~~' + name + '~~**' : '**' + name + '**') + (deprecated ? ' (' + deprecated + ')' : '') + '\\n\\n' + (required ? 'Required. ' : '') + description + (defaultValue ? getDefaultValue(defaultValue) : '') + '\\n\\n' + code + '\\n' + format + '\\n' + code;\n  });\n  return '\\n\\n## Properties\\n' + props.join('\\n') + '\\n  ';\n}\n\nfunction getIntrinsicElement(_ref7) {\n  var intrinsicElement = _ref7.intrinsicElement;\n\n  return intrinsicElement ? '\\n## Intrinsic element\\n\\n' + code + '\\n' + intrinsicElement + '\\n' + code : '';\n}\n\nfunction descToMarkdown(component, reactDesc) {\n  if (!component) {\n    throw new Error('react-desc: component is required');\n  }\n\n  var documentation = (0, _descToJSON2.default)(component, reactDesc);\n  var availableAt = getAvailableAt(documentation);\n  var header = getHeader(documentation);\n  var usage = getUsage(documentation);\n  var properties = getProperties(documentation);\n  var intrinsicElement = getIntrinsicElement(documentation);\n  return '' + header + availableAt + usage + properties + intrinsicElement;\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nexports.default = descToTypescript;\n\nvar arrayFormat = function arrayFormat(array) {\n  return array.map(function (propType) {\n    return propTypeFormat(propType);\n  });\n};\n\nvar shapeFormat = function shapeFormat(shape) {\n  var props = Object.keys(shape).map(function (key) {\n    var value = shape[key];\n    var valueFormat = void 0;\n    if (value.type && (value.type === 'arrayOf' || value.type === 'oneOfType' || value.type === 'oneOf') && Array.isArray(value.args)) {\n      valueFormat = '' + propTypeFormat(value);\n    } else if (value.type === 'shape') {\n      valueFormat = '' + propTypeFormat(value);\n    } else {\n      valueFormat = propTypeFormat(value);\n    }\n    return '' + key + (value.reactDesc && value.reactDesc.required ? '' : '?') + ': ' + valueFormat;\n  });\n  return '{' + props.join(',') + '}';\n};\n\nvar propTypeFormat = function propTypeFormat(propType, joinWith) {\n  var result = void 0;\n  if (Array.isArray(propType)) {\n    result = arrayFormat(propType).join(joinWith);\n  } else if (typeof propType !== 'function' && propType.type) {\n    switch (propType.type) {\n      case 'array':\n        result = 'any[]';\n        break;\n      case 'arrayOf':\n        if (propType.args.type === 'oneOfType') {\n          result = '(' + propTypeFormat(propType.args, ' | ') + ')[]';\n        } else {\n          result = propTypeFormat(propType.args, '\\n') + '[]';\n        }\n        break;\n      case 'bool':\n        result = 'boolean';\n        break;\n      case 'func':\n        result = '((...args: any[]) => any)';\n        break;\n      case 'node':\n        result = 'React.ReactNode';\n        break;\n      case 'element':\n        result = 'JSX.Element';\n        break;\n      case 'instanceOf':\n        result = 'any';\n        break;\n      case 'symbol':\n        result = 'any';\n        break;\n      case 'objectOf':\n        result = '{ [key: string]: ' + propTypeFormat(propType.args) + ' }';\n        break;\n      case 'oneOf':\n        result = propType.args.map(function (a) {\n          return '\"' + a + '\"';\n        }).join(' | ');\n        break;\n      case 'oneOfType':\n        result = '' + propTypeFormat(propType.args, ' | ');\n        break;\n      case 'shape':\n        result = '' + shapeFormat(propType.args);\n        break;\n      default:\n        result = '' + propType.type;\n        break;\n    }\n  } else {\n    result = 'any';\n  }\n  return result;\n};\n\nvar propTypeAsTypescript = function propTypeAsTypescript(propType, propName) {\n  var documentation = _extends({}, propType.reactDesc, {\n    name: propName\n  });\n\n  documentation.format = propTypeFormat(propType);\n\n  return documentation;\n};\n\nfunction descToTypescript(component) {\n  var reactDesc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n  if (!component) {\n    throw new Error('react-desc: component is required');\n  }\n\n  var documentation = _extends({\n    name: component.displayName || component.name\n  }, reactDesc);\n  if (reactDesc) {\n    delete documentation.propTypes;\n\n    if (reactDesc.propTypes) {\n      var propTypes = [];\n      Object.keys(reactDesc.propTypes).forEach(function (propName) {\n        var propType = reactDesc.propTypes[propName];\n        propTypes.push(propTypeAsTypescript(propType, propName));\n      });\n      if (propTypes.length > 0) {\n        documentation.properties = propTypes;\n      }\n    }\n  }\n  return documentation;\n}","import { css } from 'styled-components';\nimport { backgroundStyle } from './background';\nimport { normalizeColor } from './colors';\nimport { breakpointStyle, parseMetricToNum } from './mixins';\n\nexport const baseStyle = css`\n  font-family: ${props => props.theme.global.font.family};\n  font-size: ${props => props.theme.global.font.size};\n  line-height: ${props => props.theme.global.font.height};\n  font-weight: ${props => props.theme.global.font.weight};\n  ${props =>\n    !props.plain && backgroundStyle(props.theme.baseBackground, props.theme)}\n  box-sizing: border-box;\n  -webkit-text-size-adjust: 100%;\n  -ms-text-size-adjust: 100%;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-font-smoothing: antialiased;\n`;\n\nexport const controlBorderStyle = css`\n  border: ${props => props.theme.global.control.border.width} solid\n    ${props =>\n      normalizeColor(\n        props.theme.global.control.border.color || 'border',\n        props.theme,\n      )};\n  border-radius: ${props => props.theme.global.control.border.radius};\n`;\n\nexport const edgeStyle = (\n  kind,\n  data,\n  responsive,\n  responsiveBreakpoint,\n  theme,\n) => {\n  const breakpoint =\n    responsiveBreakpoint && theme.global.breakpoints[responsiveBreakpoint];\n\n  if (typeof data === 'string') {\n    return css`\n      ${kind}: ${theme.global.edgeSize[data] || data};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}: ${breakpoint.edgeSize[data] || data};\n      `,\n          )\n        : ''};\n    `;\n  }\n  const result = [];\n  if (data.horizontal) {\n    result.push(css`\n      ${kind}-left: ${theme.global.edgeSize[data.horizontal] ||\n        data.horizontal};\n      ${kind}-right: ${theme.global.edgeSize[data.horizontal] ||\n        data.horizontal};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-left: ${breakpoint.edgeSize[data.horizontal] ||\n              data.horizontal};\n        ${kind}-right: ${breakpoint.edgeSize[data.horizontal] ||\n              data.horizontal};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.vertical) {\n    result.push(css`\n      ${kind}-top: ${theme.global.edgeSize[data.vertical] || data.vertical};\n      ${kind}-bottom: ${theme.global.edgeSize[data.vertical] || data.vertical};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-top: ${breakpoint.edgeSize[data.vertical] || data.vertical};\n        ${kind}-bottom: ${breakpoint.edgeSize[data.vertical] || data.vertical};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.top) {\n    result.push(css`\n      ${kind}-top: ${theme.global.edgeSize[data.top] || data.top};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-top: ${breakpoint.edgeSize[data.top] || data.top};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.bottom) {\n    result.push(css`\n      ${kind}-bottom: ${theme.global.edgeSize[data.bottom] || data.bottom};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-bottom: ${breakpoint.edgeSize[data.bottom] || data.bottom};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.left) {\n    result.push(css`\n      ${kind}-left: ${theme.global.edgeSize[data.left] || data.left};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-left: ${breakpoint.edgeSize[data.left] || data.left};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.right) {\n    result.push(css`\n      ${kind}-right: ${theme.global.edgeSize[data.right] || data.right};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-right: ${breakpoint.edgeSize[data.right] || data.right};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.start) {\n    result.push(css`\n      ${kind}-inline-start: ${theme.global.edgeSize[data.start] || data.start};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-inline-start: ${breakpoint.edgeSize[data.start] || data.start};\n      `,\n          )\n        : ''};\n    `);\n  }\n  if (data.end) {\n    result.push(css`\n      ${kind}-inline-end: ${theme.global.edgeSize[data.end] || data.end};\n      ${responsive && breakpoint\n        ? breakpointStyle(\n            breakpoint,\n            `\n        ${kind}-inline-end: ${breakpoint.edgeSize[data.end] || data.end};\n      `,\n          )\n        : ''};\n    `);\n  }\n  return result;\n};\n\nexport const fillStyle = fillProp => {\n  if (fillProp === 'horizontal') {\n    return 'width: 100%;';\n  }\n  if (fillProp === 'vertical') {\n    return 'height: 100%;';\n  }\n  if (fillProp) {\n    return `\n      width: 100%;\n      height: 100%;\n    `;\n  }\n  return undefined;\n};\n\n// focus also supports clickable elements inside svg\nexport const focusStyle = css`\n  > circle,\n  > ellipse,\n  > line,\n  > path,\n  > polygon,\n  > polyline,\n  > rect {\n    outline: ${props =>\n        normalizeColor(props.theme.global.focus.border.color, props.theme)}\n      solid 2px;\n  }\n  outline-color: ${props =>\n    normalizeColor(props.theme.global.focus.border.color, props.theme)};\n  border-color: ${props =>\n    normalizeColor(props.theme.global.focus.border.color, props.theme)};\n  box-shadow: 0 0 2px 2px\n    ${props =>\n      normalizeColor(props.theme.global.focus.border.color, props.theme)};\n\n  ::-moz-focus-inner {\n    border: 0;\n  }\n`;\n\nexport const inputStyle = css`\n  box-sizing: border-box;\n  font-size: inherit;\n  font-family: inherit;\n  border: none;\n  -webkit-appearance: none;\n  padding: ${props =>\n    parseMetricToNum(props.theme.global.input.padding) -\n    parseMetricToNum(props.theme.global.control.border.width)}px;\n  outline: none;\n  background: transparent;\n  color: inherit;\n  ${props =>\n    props.theme.global.input.weight &&\n    css`\n      font-weight: ${props.theme.global.input.weight};\n    `} margin: 0;\n\n  ${props =>\n    props.focus &&\n    (!props.plain || props.focusIndicator) &&\n    focusStyle} ${controlBorderStyle}\n\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n`;\n\nexport const overflowStyle = overflowProp => {\n  if (typeof overflowProp === 'string') {\n    return css`\n      overflow: ${overflowProp};\n    `;\n  }\n\n  return css`\n    ${overflowProp.horizontal &&\n      `overflow-x: ${overflowProp.horizontal};`} ${overflowProp.vertical &&\n      `overflow-y: ${overflowProp.vertical};`};\n  `;\n};\n\nconst placeholderColor = css`\n  color: ${props => props.theme.global.colors.placeholder};\n`;\n\nexport const placeholderStyle = css`\n  &::-webkit-input-placeholder {\n    ${placeholderColor};\n  }\n\n  &::-moz-placeholder {\n    ${placeholderColor};\n  }\n\n  &:-ms-input-placeholder {\n    ${placeholderColor};\n  }\n`;\n\nconst ALIGN_SELF_MAP = {\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nexport const genericStyles = css`\n  ${props =>\n    props.alignSelf && `align-self: ${ALIGN_SELF_MAP[props.alignSelf]};`}\n  ${props => props.gridArea && `grid-area: ${props.gridArea};`}\n  ${props =>\n    props.margin &&\n    props.theme.global &&\n    edgeStyle(\n      'margin',\n      props.margin,\n      props.responsive,\n      props.theme.global.edgeSize.responsiveBreakpoint,\n      props.theme,\n    )}\n`;\n\nexport const disabledStyle = componentStyle => css`\n  opacity: ${props =>\n    componentStyle || props.theme.global.control.disabled.opacity};\n  cursor: default;\n`;\n\nexport const sizeStyle = (name, value, theme) => css`\n  ${name}: ${theme.global.size[value] || value};\n`;\n","export const getBreakpoint = (windowWidth, theme) => {\n  let result;\n  Object.keys(theme.global.breakpoints)\n    .sort((a, b) => {\n      const first = theme.global.breakpoints[a];\n      const second = theme.global.breakpoints[b];\n      if (!first) return 1;\n      if (!second) return -1;\n      if (!first.value) return 1;\n      if (!second.value) return -1;\n      return first.value - second.value;\n    })\n    .some(name => {\n      const breakpoint = theme.global.breakpoints[name];\n      if (breakpoint) {\n        if (!breakpoint.value || breakpoint.value >= windowWidth) {\n          result = name;\n          return true;\n        }\n      }\n      return false;\n    });\n  return result;\n};\n\nexport const getDeviceBreakpoint = (type, theme) =>\n  theme.global.deviceBreakpoints[type];\n","import { PropTypes } from 'react-desc';\n\nexport const ROUTER_PROPS = {\n  path: PropTypes.string.description(\n    'Indicates the path to be used for react-router link.',\n  ).isRequired,\n  method: PropTypes.oneOf(['push', 'replace'])\n    .description(\n      `Indicates whether the browser history should be appended to or \n      replaced.`,\n    )\n    .defaultValue('push'),\n};\n","// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP\n\nexport const throttle = (fn, threshhold = 250, scope = this) => {\n  let last;\n  let deferTimer;\n\n  return (...args) => {\n    const now = Date.now();\n    if (last && now < last + threshhold) {\n      clearTimeout(deferTimer);\n      deferTimer = setTimeout(() => {\n        last = now;\n        fn.apply(scope, args);\n      }, threshhold);\n    } else {\n      last = now;\n      fn.apply(scope, args);\n    }\n  };\n};\n","export const themeDocUtils = {\n  // 'The possible breakpoints that could affect border, direction, gap,\n  // margin, pad, and round.',\n  breakpointStyle: description => ({\n    'global.breakpoints': {\n      description,\n      type: 'object',\n      defaultValue: `{\n    small: {\n      value: '768px',\n      borderSize: {\n        xsmall: '1px',\n        small: '2px',\n        medium: '4px',\n        large: '6px',\n        xlarge: '12px',\n      },\n      edgeSize: {\n        none: '0px',\n        hair: '1px',\n        xxsmall: '2px',\n        xsmall: '3px',\n        small: '6px',\n        medium: '12px',\n        large: '24px',\n        xlarge: '48px',\n      },\n      size: {\n        xxsmall: '24px',\n        xsmall: '48px',\n        small: '96px',\n        medium: '192px',\n        large: '384px',\n        xlarge: '768px',\n        full: '100%',\n      },\n    },\n    medium: {\n      value: '1536px',\n    },\n    large: {},\n  }`,\n    },\n  }),\n  disabledStyle: {\n    'global.control.disabled.opacity': {\n      description: 'The opacity when a component is disabled.',\n      type: 'number',\n      defaultValue: 0.3,\n    },\n  },\n  edgeStyle: description => ({\n    'global.edgeSize': {\n      description,\n      type: 'object',\n      defaultValue: `{\n    edgeSize: {\n      none: '0px',\n      hair: '1px',\n      xxsmall: '3px',\n      xsmall: '6px',\n      small: '12px',\n      medium: '24px',\n      large: '48px',\n      xlarge: '96px',\n      responsiveBreakpoint: 'small',\n    },\n  }`,\n    },\n  }),\n  focusStyle: {\n    'global.focus.border.color': {\n      description: 'The color around the component when in focus.',\n      type: 'string | { dark: string, light: string }',\n      defaultValue: 'focus',\n    },\n  },\n  iconColor: {\n    'global.colors.icon': {\n      description: 'The color of a given icon.',\n      type: 'string | { dark: string, light: string }',\n      defaultValue: '{ dark: #f8f8f8, light: #666666 }',\n    },\n  },\n\n  inputStyle: {\n    'global.input.weight': {\n      description: 'The font weight of the text entered.',\n      type: 'number',\n      defaultValue: 600,\n    },\n    'global.input.padding': {\n      description: 'The padding of the text.',\n      type: 'string',\n      defaultValue: '12px',\n    },\n  },\n  placeholderStyle: {\n    'global.colors.placeholder': {\n      description: 'The placeholder color used for the component.',\n      type: 'string',\n      defaultValue: '#AAAAAA',\n    },\n  },\n  responsiveBreakpoint: description => ({\n    'global.edgeSize.responsiveBreakpoint': {\n      description,\n      type: 'string',\n      defaultValue: 'small',\n    },\n  }),\n};\n","\"use strict\";\n\nexports.__esModule = true;\nexports.Actions = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Actions = function Actions(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Actions\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M12,17.5 C15.0375661,17.5 17.5,15.0375661 17.5,12 C17.5,8.96243388 15.0375661,6.5 12,6.5 C8.96243388,6.5 6.5,8.96243388 6.5,12 C6.5,15.0375661 8.96243388,17.5 12,17.5 Z M12,6.5 L12,1 M12,23 L12,17.5 M1,12 L6.5,12 M17.5,12 L23,12 M4.4375,4.4375 L8.5625,8.5625 M15.4375,15.4375 L19.5625,19.5625 M19.5625,4.4375 L15.4375,8.5625 M8.5625,15.4375 L4.4375,19.5625\"\n  }));\n};\n\nexports.Actions = Actions;","\"use strict\";\n\nexports.__esModule = true;\nexports.extendDefaultTheme = exports.defaultProps = void 0;\n\nvar _utils = require(\"./utils\");\n\nvar _themes = require(\"./themes\");\n\nvar defaultProps = {\n  theme: _themes.base\n};\nexports.defaultProps = defaultProps;\n\nvar extendDefaultTheme = function extendDefaultTheme(theme) {\n  defaultProps.theme = (0, _utils.deepMerge)(_themes.base, theme);\n};\n\nexports.extendDefaultTheme = extendDefaultTheme;","\"use strict\";\n\nexports.__esModule = true;\nexports.isObject = isObject;\nexports.deepMerge = deepMerge;\nexports[\"default\"] = void 0;\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction isObject(item) {\n  return item && typeof item === 'object' && !Array.isArray(item);\n}\n\nfunction deepMerge(target) {\n  for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n    sources[_key - 1] = arguments[_key];\n  }\n\n  if (!sources.length) {\n    return target;\n  } // making sure to not change target (immutable)\n\n\n  var output = _extends({}, target);\n\n  sources.forEach(function (source) {\n    if (isObject(source)) {\n      Object.keys(source).forEach(function (key) {\n        if (isObject(source[key])) {\n          if (!output[key]) {\n            output[key] = _extends({}, source[key]);\n          } else {\n            output[key] = deepMerge(output[key], source[key]);\n          }\n        } else {\n          output[key] = source[key];\n        }\n      });\n    }\n  });\n  return output;\n}\n\nvar _default = {\n  deepMerge: deepMerge,\n  isObject: isObject\n};\nexports[\"default\"] = _default;","\"use strict\";\n\nexports.__esModule = true;\nexports.base = void 0;\n\nvar _base = require(\"./base\");\n\nexports.base = _base.base;","\"use strict\";\n\nexports.__esModule = true;\nexports.ClosedCaption = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar ClosedCaption = function ClosedCaption(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"ClosedCaption\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M1,12 C1,5 2.5,4 12,4 C21.5,4 23,5 23,12 C23,19 21.5,20 12,20 C2.5,20 1,19 1,12 Z M5.25,14 C5.25,15.5 6,16 7.75,16 C9.5,16 10.25,15.5 10.25,14 L9.97861679,14 C9.97861671,15.25 8.97905547,16 7.75,16 C6.52094453,16 5.52138329,15.25 5.52138321,14 L5.52138321,10 C5.5,8.75 6.5,8 7.75,8 C9,8 10,8.75 9.97861679,10 L10.25,10 C10.25,8.75 9.2286998,8 7.75,8 C6.2713002,8 5.25,8.75 5.25,10 L5.25,14 Z M13.25,14 C13.25,15.5 14,16 15.75,16 C17.5,16 18.25,15.5 18.25,14 L17.9786168,14 C17.9786167,15.25 16.9790555,16 15.75,16 C14.5209445,16 13.5213833,15.25 13.5213832,14 L13.5213832,10 C13.5,8.75 14.5,8 15.75,8 C17,8 18,8.75 17.9786168,10 L18.25,10 C18.25,8.75 17.2286998,8 15.75,8 C14.2713002,8 13.25,8.75 13.25,10 L13.25,14 Z\"\n  }));\n};\n\nexports.ClosedCaption = ClosedCaption;","\"use strict\";\n\nexports.__esModule = true;\nexports.Expand = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Expand = function Expand(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Expand\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M10,14 L2,22 M1,15 L1,23 L9,23 M22,2 L14,10 M15,1 L23,1 L23,9\"\n  }));\n};\n\nexports.Expand = Expand;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormDown = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar FormDown = function FormDown(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"FormDown\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"18 9 12 15 6 9\"\n  }));\n};\n\nexports.FormDown = FormDown;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormNext = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar FormNext = function FormNext(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"FormNext\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"9 6 15 12 9 18\"\n  }));\n};\n\nexports.FormNext = FormNext;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormPrevious = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar FormPrevious = function FormPrevious(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"FormPrevious\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"9 6 15 12 9 18\",\n    transform: \"matrix(-1 0 0 1 24 0)\"\n  }));\n};\n\nexports.FormPrevious = FormPrevious;","\"use strict\";\n\nexports.__esModule = true;\nexports.FormUp = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar FormUp = function FormUp(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"FormUp\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"18 9 12 15 6 9\",\n    transform: \"matrix(1 0 0 -1 0 24)\"\n  }));\n};\n\nexports.FormUp = FormUp;","\"use strict\";\n\nexports.__esModule = true;\nexports.Next = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Next = function Next(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Next\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"7 2 17 12 7 22\"\n  }));\n};\n\nexports.Next = Next;","\"use strict\";\n\nexports.__esModule = true;\nexports.Pause = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Pause = function Pause(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Pause\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M3,21 L9,21 L9,3 L3,3 L3,21 Z M15,21 L21,21 L21,3 L15,3 L15,21 Z\"\n  }));\n};\n\nexports.Pause = Pause;","\"use strict\";\n\nexports.__esModule = true;\nexports.Play = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Play = function Play(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Play\"\n  }, props), _react[\"default\"].createElement(\"polygon\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"3 22 21 12 3 2\"\n  }));\n};\n\nexports.Play = Play;","\"use strict\";\n\nexports.__esModule = true;\nexports.Previous = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Previous = function Previous(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Previous\"\n  }, props), _react[\"default\"].createElement(\"polyline\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    points: \"7 2 17 12 7 22\",\n    transform: \"matrix(-1 0 0 1 24 0)\"\n  }));\n};\n\nexports.Previous = Previous;","\"use strict\";\n\nexports.__esModule = true;\nexports.Subtract = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Subtract = function Subtract(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Subtract\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M2,12 L22,12\"\n  }));\n};\n\nexports.Subtract = Subtract;","\"use strict\";\n\nexports.__esModule = true;\nexports.Volume = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar Volume = function Volume(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"Volume\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M15,16 C17.209,16 19,14.209 19,12 C19,9.791 17.209,8 15,8 M15,20 C20,20 23,16.411 23,12 C23,7.589 19.411,4 15,4 M1,12 L1,8 L6,8 L12,3 L12,21 L6,16 L1,16 L1,12\"\n  }));\n};\n\nexports.Volume = Volume;","\"use strict\";\n\nexports.__esModule = true;\nexports.VolumeLow = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar VolumeLow = function VolumeLow(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"VolumeLow\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M1,8 L1,16 L6.09901951,16 L12,21 L12,3 L6,8 L1,8 Z M15,16 L15,16 C17.209139,16 19,14.209139 19,12 C19,9.790861 17.209139,8 15,8\"\n  }));\n};\n\nexports.VolumeLow = VolumeLow;","import { Children, cloneElement, useCallback, useEffect } from 'react';\n\nconst KEYS = {\n  8: 'onBackspace',\n  9: 'onTab',\n  13: 'onEnter',\n  27: 'onEsc',\n  32: 'onSpace',\n  37: 'onLeft',\n  38: 'onUp',\n  39: 'onRight',\n  40: 'onDown',\n  188: 'onComma',\n  16: 'onShift',\n};\n\nconst Keyboard = ({ target, children, onKeyDown, ...restProps }) => {\n  const onKeyDownHandler = useCallback(\n    (event, ...rest) => {\n      const key = event.keyCode ? event.keyCode : event.which;\n      const callbackName = KEYS[key];\n\n      if (callbackName && restProps[callbackName]) {\n        restProps[callbackName](event, ...rest);\n      }\n\n      if (onKeyDown) {\n        onKeyDown(event, ...rest);\n      }\n    },\n    [onKeyDown, restProps],\n  );\n\n  useEffect(() => {\n    if (target === 'document') {\n      document.addEventListener('keydown', onKeyDownHandler);\n    }\n\n    return () => {\n      if (target === 'document') {\n        document.removeEventListener('keydown', onKeyDownHandler);\n      }\n    };\n  }, [onKeyDownHandler, target]);\n\n  return target === 'document'\n    ? children\n    : cloneElement(Children.only(children), {\n        onKeyDown: onKeyDownHandler,\n      });\n};\n\nlet KeyboardDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  KeyboardDoc = require('./doc').doc(Keyboard);\n}\nconst KeyboardWrapper = KeyboardDoc || Keyboard;\n\nexport { KeyboardWrapper as Keyboard };\n","import styled, { css, keyframes } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport {\n  backgroundStyle,\n  borderStyle,\n  breakpointStyle,\n  edgeStyle,\n  fillStyle,\n  focusStyle,\n  genericStyles,\n  getHoverIndicatorStyle,\n  overflowStyle,\n  parseMetricToNum,\n} from '../../utils';\n\nconst ALIGN_MAP = {\n  baseline: 'baseline',\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst alignStyle = css`\n  align-items: ${props => ALIGN_MAP[props.align]};\n`;\n\nconst ALIGN_CONTENT_MAP = {\n  around: 'around',\n  between: 'between',\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst alignContentStyle = css`\n  align-content: ${props => ALIGN_CONTENT_MAP[props.alignContent]};\n`;\n\nconst BASIS_MAP = {\n  auto: 'auto',\n  full: '100%',\n  '1/2': '50%',\n  '1/4': '25%',\n  '2/4': '50%',\n  '3/4': '75%',\n  '1/3': '33.33%',\n  '2/3': '66.66%',\n};\n\nconst basisStyle = css`\n  flex-basis: ${props =>\n    BASIS_MAP[props.basis] ||\n    props.theme.global.size[props.basis] ||\n    props.basis};\n`;\n\n// min-width and min-height needed because of this\n// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size\n// we assume we are in the context of a Box going the other direction\n// TODO: revisit this\nconst directionStyle = (direction, theme) => {\n  const styles = [\n    css`\n      min-width: 0;\n      min-height: 0;\n      flex-direction: ${direction === 'row-responsive' ? 'row' : direction};\n    `,\n  ];\n  if (direction === 'row-responsive' && theme.box.responsiveBreakpoint) {\n    const breakpoint = theme.global.breakpoints[theme.box.responsiveBreakpoint];\n    if (breakpoint) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        flex-direction: column;\n        flex-basis: auto;\n        justify-content: flex-start;\n        align-items: stretch;\n      `,\n        ),\n      );\n    }\n  }\n  return styles;\n};\n\nconst elevationStyle = css`\n  box-shadow: ${props =>\n    props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][\n      props.elevationProp\n    ]};\n`;\n\nconst FLEX_MAP = {\n  [true]: '1 1',\n  [false]: '0 0',\n  grow: '1 0',\n  shrink: '0 1',\n};\n\nconst flexGrowShrinkProp = flex => {\n  if (typeof flex === 'boolean' || typeof flex === 'string') {\n    return FLEX_MAP[flex];\n  }\n\n  return `${flex.grow ? flex.grow : 0} ${flex.shrink ? flex.shrink : 0}`;\n};\n\nconst flexStyle = css`\n  flex: ${props =>\n    `${flexGrowShrinkProp(props.flex)}${\n      props.flex !== true && !props.basis ? ' auto' : ''\n    }`};\n`;\n\nconst JUSTIFY_MAP = {\n  around: 'space-around',\n  between: 'space-between',\n  center: 'center',\n  end: 'flex-end',\n  evenly: 'space-evenly',\n  start: 'flex-start',\n};\n\nconst justifyStyle = css`\n  justify-content: ${props => JUSTIFY_MAP[props.justify]};\n`;\n\nconst WRAP_MAP = {\n  true: 'wrap',\n  reverse: 'wrap-reverse',\n};\n\nconst wrapStyle = css`\n  flex-wrap: ${props => WRAP_MAP[props.wrapProp]};\n`;\n\nconst ROUND_MAP = {\n  full: '100%',\n};\n\nconst roundStyle = (data, responsive, theme) => {\n  const breakpoint =\n    theme.box.responsiveBreakpoint &&\n    theme.global.breakpoints[theme.box.responsiveBreakpoint];\n  const styles = [];\n  if (typeof data === 'object') {\n    const size =\n      ROUND_MAP[data.size] ||\n      theme.global.edgeSize[data.size || 'medium'] ||\n      data.size;\n    const responsiveSize =\n      responsive &&\n      breakpoint &&\n      breakpoint.edgeSize[data.size] &&\n      (breakpoint.edgeSize[data.size] || data.size);\n    if (data.corner === 'top') {\n      styles.push(css`\n        border-top-left-radius: ${size};\n        border-top-right-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-top-left-radius: ${responsiveSize};\n          border-top-right-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    } else if (data.corner === 'bottom') {\n      styles.push(css`\n        border-bottom-left-radius: ${size};\n        border-bottom-right-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-bottom-left-radius: ${responsiveSize};\n          border-bottom-right-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    } else if (data.corner === 'left') {\n      styles.push(css`\n        border-top-left-radius: ${size};\n        border-bottom-left-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-top-left-radius: ${responsiveSize};\n          border-bottom-left-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    } else if (data.corner === 'right') {\n      styles.push(css`\n        border-top-right-radius: ${size};\n        border-bottom-right-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-top-right-radius: ${responsiveSize};\n          border-bottom-right-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    } else if (data.corner) {\n      styles.push(css`\n        border-${data.corner}-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-${data.corner}-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    } else {\n      styles.push(css`\n        border-radius: ${size};\n      `);\n      if (responsiveSize) {\n        styles.push(\n          breakpointStyle(\n            breakpoint,\n            `\n          border-radius: ${responsiveSize};\n        `,\n          ),\n        );\n      }\n    }\n  } else {\n    const size = data === true ? 'medium' : data;\n    styles.push(css`\n      border-radius: ${ROUND_MAP[size] || theme.global.edgeSize[size] || size};\n    `);\n    const responsiveSize = breakpoint && breakpoint.edgeSize[size];\n    if (responsiveSize) {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        border-radius: ${responsiveSize};\n      `,\n        ),\n      );\n    }\n  }\n  return styles;\n};\n\nconst SLIDE_SIZES = {\n  xsmall: 1,\n  small: 5,\n  medium: 10,\n  large: 50,\n  xlarge: 200,\n};\n\nconst PULSE_SIZES = {\n  xsmall: 1.001,\n  small: 1.01,\n  medium: 1.1,\n  large: 1.5,\n  xlarge: 2,\n};\n\nconst JIGGLE_SIZES = {\n  xsmall: 0.1,\n  small: 1,\n  medium: 5,\n  large: 400,\n  xlarge: 1000,\n};\n\nconst ZOOM_SIZES = {\n  xsmall: 0.001,\n  small: 0.01,\n  medium: 0.05,\n  large: 0.1,\n  xlarge: 0.5,\n};\n\nconst animationBounds = (type, size = 'medium') => {\n  if (type === 'fadeIn') {\n    return ['opacity: 0;', 'opacity: 1;'];\n  }\n  if (type === 'fadeOut') {\n    return ['opacity: 1;', 'opacity: 0;'];\n  }\n  if (type === 'jiggle') {\n    const deg = JIGGLE_SIZES[size];\n    return [`transform: rotate(-${deg}deg);`, `transform: rotate(${deg}deg);`];\n  }\n  if (type === 'pulse') {\n    return ['transform: scale(1);', `transform: scale(${PULSE_SIZES[size]})`];\n  }\n  if (type === 'flipIn') {\n    return ['transform: rotateY(90deg);', 'transform: rotateY(0);'];\n  }\n  if (type === 'flipOut') {\n    return ['transform: rotateY(0);', 'transform: rotateY(90deg);'];\n  }\n  if (type === 'slideDown') {\n    return [\n      `transform: translateY(-${SLIDE_SIZES[size]}%);`,\n      'transform: none;',\n    ];\n  }\n  if (type === 'slideLeft') {\n    return [\n      `transform: translateX(${SLIDE_SIZES[size]}%);`,\n      'transform: none;',\n    ];\n  }\n  if (type === 'slideRight') {\n    return [\n      `transform: translateX(-${SLIDE_SIZES[size]}%);`,\n      'transform: none;',\n    ];\n  }\n  if (type === 'slideUp') {\n    return [\n      `transform: translateY(${SLIDE_SIZES[size]}%);`,\n      'transform: none;',\n    ];\n  }\n  if (type === 'zoomIn') {\n    return [`transform: scale(${1 - ZOOM_SIZES[size]});`, 'transform: none;'];\n  }\n  if (type === 'zoomOut') {\n    return [`transform: scale(${1 + ZOOM_SIZES[size]});`, 'transform: none;'];\n  }\n  return [];\n};\n\nconst normalizeTiming = (time, defaultTiming) =>\n  time ? `${time / 1000.0}s` : defaultTiming;\n\nconst animationEnding = type => {\n  if (type === 'jiggle') {\n    return 'alternate infinite';\n  }\n  if (type === 'pulse') {\n    return 'alternate infinite';\n  }\n  return 'forwards';\n};\n\nconst animationObjectStyle = (animation, theme) => {\n  const bounds = animationBounds(animation.type, animation.size);\n  if (bounds) {\n    const animationTransition = css`\n      from {\n        ${bounds[0]};\n      }\n      to {\n        ${bounds[1]};\n      }\n    `;\n    return css`${keyframes`${animationTransition}`}\n    ${normalizeTiming(\n      animation.duration,\n      (theme.global.animation[animation.type]\n        ? theme.global.animation[animation.type].duration\n        : undefined) || theme.global.animation.duration,\n    )}\n    ${normalizeTiming(animation.delay, '0s')}\n    ${animationEnding(animation.type)}`;\n  }\n  return '';\n};\n\nconst animationItemStyle = (item, theme) => {\n  if (typeof item === 'string') {\n    return animationObjectStyle({ type: item }, theme);\n  }\n  if (Array.isArray(item)) {\n    return item.reduce(\n      (style, a, index) =>\n        css`${style}${index > 0 ? ',' : ''} ${animationItemStyle(a, theme)}`,\n      '',\n    );\n  }\n  if (typeof item === 'object') {\n    return animationObjectStyle(item, theme);\n  }\n  return '';\n};\n\nconst animationAncilaries = animation => {\n  if (animation.type === 'flipIn' || animation.type === 'flipOut') {\n    return 'perspective: 1000px; transform-style: preserve-3d;';\n  }\n  return '';\n};\n\nconst animationObjectInitialStyle = animation => {\n  const bounds = animationBounds(animation.type, animation.size);\n  if (bounds) {\n    return `${bounds[0]} ${animationAncilaries(animation)}`;\n  }\n  return '';\n};\n\nconst animationInitialStyle = item => {\n  if (typeof item === 'string') {\n    return animationObjectInitialStyle({ type: item });\n  }\n  if (Array.isArray(item)) {\n    return item\n      .map(a =>\n        typeof a === 'string'\n          ? animationObjectInitialStyle({ type: a })\n          : animationObjectInitialStyle(a),\n      )\n      .join('');\n  }\n  if (typeof item === 'object') {\n    return animationObjectInitialStyle(item);\n  }\n  return '';\n};\n\nconst animationStyle = css`\n  ${props => css`\n    ${animationInitialStyle(props.animation)}\n    animation: ${animationItemStyle(props.animation, props.theme)};\n  `};\n`;\n\nconst interactiveStyle = css`\n  cursor: pointer;\n\n  &:hover {\n    ${props =>\n      props.hoverIndicator &&\n      getHoverIndicatorStyle(props.hoverIndicator, props.theme)}\n  }\n`;\n\nconst getSize = (props, size) => props.theme.global.size[size] || size;\n\nconst heightObjectStyle = css`\n  ${props =>\n    props.heightProp.max &&\n    css`\n      max-height: ${getSize(props, props.heightProp.max)};\n    `};\n  ${props =>\n    props.heightProp.min &&\n    css`\n      min-height: ${getSize(props, props.heightProp.min)};\n    `};\n`;\n\nconst heightStyle = css`\n  height: ${props => getSize(props, props.heightProp)};\n`;\n\nconst widthObjectStyle = css`\n  ${props =>\n    props.widthProp.max &&\n    css`\n      max-width: ${getSize(props, props.widthProp.max)};\n    `};\n  ${props =>\n    props.widthProp.min &&\n    css`\n      min-width: ${getSize(props, props.widthProp.min)};\n    `};\n`;\n\nconst widthStyle = css`\n  width: ${props => getSize(props, props.widthProp)};\n`;\n\n// NOTE: basis must be after flex! Otherwise, flex overrides basis\nconst StyledBox = styled.div`\n  display: flex;\n  box-sizing: border-box;\n  outline: none;\n  ${props => !props.basis && 'max-width: 100%;'};\n\n  ${genericStyles}\n  ${props => props.align && alignStyle}\n  ${props => props.alignContent && alignContentStyle}\n  ${props => props.background && backgroundStyle(props.background, props.theme)}\n  ${props =>\n    props.border &&\n    (Array.isArray(props.border)\n      ? props.border.map(border =>\n          borderStyle(border, props.responsive, props.theme),\n        )\n      : borderStyle(props.border, props.responsive, props.theme))}\n  ${props =>\n    props.directionProp && directionStyle(props.directionProp, props.theme)}\n  ${props =>\n    props.heightProp &&\n    (typeof props.heightProp === 'object' ? heightObjectStyle : heightStyle)}\n  ${props =>\n    props.widthProp &&\n    (typeof props.widthProp === 'object' ? widthObjectStyle : widthStyle)}\n  ${props => props.flex !== undefined && flexStyle}\n  ${props => props.basis && basisStyle}\n  ${props => props.fillProp && fillStyle(props.fillProp)}\n  ${props => props.justify && justifyStyle}\n  ${props =>\n    props.pad &&\n    edgeStyle(\n      'padding',\n      props.pad,\n      props.responsive,\n      props.theme.box.responsiveBreakpoint,\n      props.theme,\n    )}\n  ${props =>\n    props.round && roundStyle(props.round, props.responsive, props.theme)}\n  ${props => props.wrapProp && wrapStyle}\n  ${props => props.overflowProp && overflowStyle(props.overflowProp)}\n  ${props => props.elevationProp && elevationStyle}\n  ${props => props.animation && animationStyle}\n  ${props => props.onClick && interactiveStyle}\n  ${props =>\n    props.onClick &&\n    props.focus &&\n    props.focusIndicator !== false &&\n    focusStyle}\n  ${props => props.theme.box && props.theme.box.extend}\n`;\n\nconst gapStyle = (directionProp, gap, responsive, border, theme) => {\n  const breakpoint =\n    theme.box.responsiveBreakpoint &&\n    theme.global.breakpoints[theme.box.responsiveBreakpoint];\n  const responsiveSize =\n    breakpoint && breakpoint.edgeSize[gap] && breakpoint.edgeSize[gap];\n  const hasBetweenBorder =\n    border === 'between' || (border && border.side === 'between');\n  const styles = [];\n  if (directionProp === 'column' || directionProp === 'column-reverse') {\n    const height = theme.global.edgeSize[gap] || gap;\n    styles.push(\n      css`\n        height: ${height};\n      `,\n    );\n    if (responsiveSize) {\n      styles.push(breakpointStyle(breakpoint, `height: ${responsiveSize};`));\n    }\n    if (hasBetweenBorder) {\n      const adjustedBorder =\n        typeof border === 'string' ? 'top' : { ...border, side: 'top' };\n      const borderSize = border.size || 'xsmall';\n      const borderHeight = theme.global.borderSize[borderSize] || borderSize;\n      styles.push(css`\n        position: relative;\n        &:after {\n          content: '';\n          position: absolute;\n          width: 100%;\n          top: ${parseMetricToNum(height) / 2 -\n            parseMetricToNum(borderHeight) / 2}px;\n          ${borderStyle(adjustedBorder, responsive, theme)}\n        }\n      `);\n    }\n  } else {\n    const width = theme.global.edgeSize[gap] || gap;\n    styles.push(`width: ${width};`);\n    if (responsive && directionProp === 'row-responsive') {\n      styles.push(\n        breakpointStyle(\n          breakpoint,\n          `\n        width: auto;\n        height: ${responsiveSize};\n      `,\n        ),\n      );\n    }\n    if (hasBetweenBorder) {\n      const adjustedBorder =\n        typeof border === 'string' ? 'left' : { ...border, side: 'left' };\n      const borderSize = border.size || 'xsmall';\n      const borderWidth = theme.global.borderSize[borderSize] || borderSize;\n      styles.push(css`\n        position: relative;\n        &:after {\n          content: '';\n          position: absolute;\n          height: 100%;\n          left: ${parseMetricToNum(width) / 2 -\n            parseMetricToNum(borderWidth) / 2}px;\n          ${borderStyle(adjustedBorder, responsive, theme)}\n        }\n      `);\n    }\n  }\n  return styles;\n};\n\nStyledBox.defaultProps = {};\nObject.setPrototypeOf(StyledBox.defaultProps, defaultProps);\n\nconst StyledBoxGap = styled.div`\n  flex: 0 0 auto;\n  align-self: stretch;\n  ${props =>\n    props.gap &&\n    gapStyle(\n      props.directionProp,\n      props.gap,\n      props.responsive,\n      props.border,\n      props.theme,\n    )};\n`;\n\nStyledBoxGap.defaultProps = {};\nObject.setPrototypeOf(StyledBoxGap.defaultProps, defaultProps);\n\nexport { StyledBox, StyledBoxGap };\n","export { AccordionPanel } from './AccordionPanel';\n","import React, { forwardRef, useContext, useMemo, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { normalizeColor } from '../../utils';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Collapsible } from '../Collapsible';\nimport { Heading } from '../Heading';\n\nconst AccordionPanel = forwardRef(\n  (\n    {\n      active,\n      animate,\n      children,\n      header,\n      label,\n      onClick,\n      onMouseOut,\n      onMouseOver,\n      onPanelChange,\n      onFocus,\n      onBlur,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext);\n    const [hover, setHover] = useState(undefined);\n\n    const iconColor = useMemo(\n      () => normalizeColor(theme.accordion.icons.color || 'control', theme),\n      [theme],\n    );\n\n    const AccordionIcon = useMemo(\n      () =>\n        active ? theme.accordion.icons.collapse : theme.accordion.icons.expand,\n      [active, theme.accordion.icons],\n    );\n\n    return (\n      <Box ref={ref} flex={false} onClick={onClick}>\n        <Button\n          role=\"tab\"\n          aria-selected={active}\n          aria-expanded={active}\n          onClick={onPanelChange}\n          onMouseOver={event => {\n            setHover(theme.dark ? 'light-4' : 'dark-3');\n            if (onMouseOver) onMouseOver(event);\n          }}\n          onMouseOut={event => {\n            setHover(undefined);\n            if (onMouseOut) onMouseOut(event);\n          }}\n          onFocus={event => {\n            setHover(theme.dark ? 'light-4' : 'dark-3');\n            if (onFocus) onFocus(event);\n          }}\n          onBlur={event => {\n            setHover(undefined);\n            if (onBlur) onBlur(event);\n          }}\n        >\n          {header || (\n            <Box align=\"center\" direction=\"row\" justify=\"between\" {...rest}>\n              {typeof label === 'string' ? (\n                <Box pad={{ horizontal: 'xsmall' }}>\n                  <Heading\n                    level={\n                      (theme.accordion.heading &&\n                        theme.accordion.heading.level) ||\n                      4\n                    }\n                    color={hover}\n                  >\n                    {label}\n                  </Heading>\n                </Box>\n              ) : (\n                label\n              )}\n              {AccordionIcon && (\n                <Box pad={{ horizontal: 'small' }}>\n                  <AccordionIcon color={iconColor} />\n                </Box>\n              )}\n            </Box>\n          )}\n        </Button>\n        <Box border={theme.accordion.border}>\n          {animate ? (\n            <Collapsible open={active}>{children}</Collapsible>\n          ) : (\n            active && children\n          )}\n        </Box>\n      </Box>\n    );\n  },\n);\n\nAccordionPanel.displayName = 'AccordionPanel';\n\nlet AccordionPanelDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  AccordionPanelDoc = require('./doc').doc(AccordionPanel);\n}\nconst AccordionPanelWrapper = AccordionPanelDoc || AccordionPanel;\n\nexport { AccordionPanelWrapper as AccordionPanel };\n","import React, {\n  cloneElement,\n  Children,\n  forwardRef,\n  useContext,\n  useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { colorIsDark, normalizeBackground, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { StyledButton } from './StyledButton';\n\nconst Button = forwardRef(\n  (\n    {\n      a11yTitle,\n      color, // munged to avoid styled-components putting it in the DOM\n      children,\n      disabled,\n      icon,\n      focusIndicator = true,\n      gap = 'small',\n      fill, // munged to avoid styled-components putting it in the DOM\n      href,\n      label,\n      onBlur,\n      onClick,\n      onFocus,\n      onMouseOut,\n      onMouseOver,\n      plain,\n      primary,\n      reverse,\n      size,\n      type = 'button',\n      as,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const [focus, setFocus] = useState();\n\n    if ((icon || label) && children) {\n      console.warn(\n        'Button should not have children if icon or label is provided',\n      );\n    }\n\n    const isDarkBackground = () => {\n      const backgroundColor = normalizeBackground(\n        normalizeColor(\n          color ||\n            theme.button.primary.color ||\n            theme.global.colors.control ||\n            'brand',\n          theme,\n        ),\n        theme,\n      );\n\n      return colorIsDark(backgroundColor, theme);\n    };\n\n    const [hover, setHover] = useState(false);\n\n    const onMouseOverButton = event => {\n      setHover(true);\n      if (onMouseOver) {\n        onMouseOver(event);\n      }\n    };\n\n    const onMouseOutButton = event => {\n      setHover(false);\n      if (onMouseOut) {\n        onMouseOut(event);\n      }\n    };\n\n    let buttonIcon = icon;\n    // only change color if user did not specify the color themselves...\n    if (primary && icon && !icon.props.color) {\n      buttonIcon = cloneElement(icon, {\n        color: theme.global.colors.text[isDarkBackground() ? 'dark' : 'light'],\n      });\n    }\n\n    const domTag = !as && href ? 'a' : as;\n    const first = reverse ? label : buttonIcon;\n    const second = reverse ? buttonIcon : label;\n\n    let contents;\n    if (first && second) {\n      contents = (\n        <Box direction=\"row\" align=\"center\" justify=\"center\" gap={gap}>\n          {first}\n          {second}\n        </Box>\n      );\n    } else if (typeof children === 'function') {\n      contents = children({ hover, focus });\n    } else {\n      contents = first || second || children;\n    }\n    return (\n      <StyledButton\n        {...rest}\n        as={domTag}\n        ref={ref}\n        aria-label={a11yTitle}\n        colorValue={color}\n        disabled={disabled}\n        hasIcon={!!icon}\n        gap={gap}\n        hasLabel={!!label}\n        fillContainer={fill}\n        focus={focus}\n        focusIndicator={focusIndicator}\n        href={href}\n        onClick={onClick}\n        onFocus={event => {\n          setFocus(true);\n          if (onFocus) onFocus(event);\n        }}\n        onBlur={event => {\n          setFocus(false);\n          if (onBlur) onBlur(event);\n        }}\n        onMouseOver={onMouseOverButton}\n        onMouseOut={onMouseOutButton}\n        pad={!plain}\n        plain={\n          typeof plain !== 'undefined'\n            ? plain\n            : Children.count(children) > 0 || (icon && !label)\n        }\n        primary={primary}\n        sizeProp={size}\n        type={!href ? type : undefined}\n      >\n        {contents}\n      </StyledButton>\n    );\n  },\n);\n\nButton.displayName = 'Button';\n\nlet ButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  ButtonDoc = require('./doc').doc(Button);\n}\nconst ButtonWrapper = ButtonDoc || Button;\n\nexport { ButtonWrapper as Button };\n","import styled, { css } from 'styled-components';\n\nimport {\n  activeStyle,\n  backgroundStyle,\n  disabledStyle,\n  focusStyle,\n  genericStyles,\n  getHoverIndicatorStyle,\n  normalizeColor,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst radiusStyle = props => {\n  // border.radius shouldn't impact an only-icon rendering.\n  const isIconOnly = props.hasIcon && !props.hasLabel;\n  const size = props.sizeProp;\n\n  if (\n    !isIconOnly &&\n    size &&\n    props.theme.button.size &&\n    props.theme.button.size[size]\n  ) {\n    return props.theme.button.size[size].border.radius;\n  }\n  return props.theme.button.border.radius;\n};\n\nconst fontStyle = props => {\n  const size = props.sizeProp || 'medium';\n  const data = props.theme.text[size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n  `;\n};\n\nconst padStyle = props => {\n  const size = props.sizeProp;\n\n  if (size && props.theme.button.size && props.theme.button.size[size]) {\n    return css`\n      ${props.theme.button.size[size].pad.vertical}\n      ${props.theme.button.size[size].pad.horizontal}\n    `;\n  }\n  return css`\n    ${props.theme.button.padding.vertical}\n    ${props.theme.button.padding.horizontal}\n  `;\n};\n\nconst basicStyle = props => css`\n  border: ${props.theme.button.border.width} solid\n    ${normalizeColor(\n      props.colorValue || props.theme.button.border.color || 'control',\n      props.theme,\n    )};\n  border-radius: ${radiusStyle(props)};\n  color: ${normalizeColor(props.theme.button.color || 'text', props.theme)};\n  padding: ${padStyle(props)};\n  ${fontStyle(props)}\n`;\n\nconst primaryStyle = props => css`\n  ${backgroundStyle(\n    normalizeColor(\n      props.colorValue || props.theme.button.primary.color || 'control',\n      props.theme,\n    ),\n    props.theme,\n    props.theme.button.color,\n  )}\n  border-radius: ${radiusStyle(props)};\n`;\n\nfunction getHoverColor(props) {\n  if (props.colorValue) {\n    return normalizeColor(props.colorValue, props.theme);\n  }\n  return normalizeColor(\n    props.theme.button.border.color || 'control',\n    props.theme,\n  );\n}\n\nconst hoverStyle = css`\n  &:hover {\n    ${props =>\n      props.hoverIndicator &&\n      getHoverIndicatorStyle(props.hoverIndicator, props.theme)} ${props =>\n      !props.plain &&\n      css`\n        box-shadow: 0px 0px 0px 2px ${getHoverColor(props)};\n      `};\n  }\n`;\n\nconst fillStyle = fillContainer => {\n  if (fillContainer === 'horizontal') {\n    return 'width: 100%;';\n  }\n  if (fillContainer === 'vertical') {\n    return 'height: 100%;';\n  }\n  if (fillContainer) {\n    return `\n      width: 100%;\n      height: 100%;\n      max-width: none;\n      flex: 1 0 auto;\n    `;\n  }\n  return undefined;\n};\n\nconst plainStyle = props => css`\n  color: ${normalizeColor(props.colorValue || 'inherit', props.theme)};\n  border: none;\n  padding: 0;\n  text-align: inherit;\n`;\n\n// Deprecate props.theme.button.disabled.opacity in V3\nconst StyledButton = styled.button`\n  display: inline-block;\n  box-sizing: border-box;\n  cursor: pointer;\n  outline: none;\n  font: inherit;\n  text-decoration: none;\n  margin: 0;\n  background: transparent;\n  overflow: visible;\n  text-transform: none;\n\n  ${genericStyles}\n  ${props => props.plain && plainStyle(props)}\n  ${props => !props.plain && basicStyle(props)}\n  ${props => props.primary && primaryStyle(props)}\n\n  ${props => !props.disabled && !props.focus && hoverStyle}\n\n  ${props => !props.disabled && props.active && activeStyle}\n  ${props =>\n    props.disabled &&\n    props.theme.button &&\n    disabledStyle(\n      props.theme.button.disabled && props.theme.button.disabled.opacity,\n    )}\n  ${props =>\n    props.focus && (!props.plain || props.focusIndicator) && focusStyle}\n  ${props =>\n    !props.plain &&\n    props.theme.button.transition &&\n    `\n    transition-property: ${props.theme.button.transition.properties.join(',')};\n    transition-duration: ${props.theme.button.transition.duration}s;\n    transition-timing-function: ${props.theme.button.transition.timing};\n  `}\n  ${props => props.fillContainer && fillStyle(props.fillContainer)}\n  ${props =>\n    props.hasIcon &&\n    !props.hasLabel &&\n    `\n    line-height: 0;\n  `}\n  ${props =>\n    props.pad &&\n    props.hasIcon &&\n    !props.hasLabel &&\n    `\n    padding: ${props.theme.global.edgeSize.small};\n  `}\n  ${props => props.theme.button && props.theme.button.extend}\n`;\n\nStyledButton.defaultProps = {};\nObject.setPrototypeOf(StyledButton.defaultProps, defaultProps);\n\nexport { StyledButton };\n","import React, { createRef, Component } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nconst animatedBoxProperty = direction =>\n  direction === 'horizontal' ? 'width' : 'height';\n\nconst AnimatedBox = styled(Box)`\n  ${props =>\n    !props.animate &&\n    (props.open\n      ? `\n    max-${animatedBoxProperty(props.collapsibleDirection)}: unset;\n    visibility: visible;\n  `\n      : `\n    max-${animatedBoxProperty(props.collapsibleDirection)}: 0;\n    visibility: hidden;\n    overflow: hidden;\n  `)};\n`;\n\nclass Collapsible extends Component {\n  ref = createRef();\n\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { open } = nextProps;\n    if (open !== prevState.open) {\n      return {\n        animate: true,\n        open,\n      };\n    }\n    return null;\n  }\n\n  constructor(props, context) {\n    super(props, context);\n\n    /* eslint-disable-next-line react/prop-types */\n    this.state = { open: props.open, animate: false };\n  }\n\n  componentDidUpdate(prevProps, prevState, snapshot) {\n    const {\n      /* eslint-disable-next-line react/prop-types */\n      direction,\n      theme: {\n        collapsible: { minSpeed, baseline },\n      },\n    } = this.props;\n    const { animate, open } = this.state;\n\n    const container = this.ref.current;\n    if (container) {\n      const dimension = animatedBoxProperty(direction);\n      const boudingClientRect = container.getBoundingClientRect();\n      const dimensionSize = boudingClientRect[dimension];\n\n      let shouldAnimate = animate && prevState.open !== open;\n\n      if (\n        open &&\n        snapshot[dimension] &&\n        dimensionSize !== snapshot[dimension]\n      ) {\n        shouldAnimate = true;\n      }\n\n      if (shouldAnimate) {\n        if (this.animationTimeout) {\n          clearTimeout(this.animationTimeout);\n        }\n\n        const speed = Math.max((dimensionSize / baseline) * minSpeed, minSpeed);\n\n        container.style[`max-${dimension}`] = `${snapshot[dimension]}px`;\n        container.style.overflow = 'hidden';\n\n        requestAnimationFrame(() => {\n          requestAnimationFrame(() => {\n            // eslint-disable-next-line max-len\n            container.style.transition = `max-${dimension} ${speed}ms, visibility 50ms`;\n            container.style[`max-${dimension}`] = open\n              ? `${dimensionSize}px`\n              : '0px';\n\n            this.animationTimeout = setTimeout(() => {\n              container.removeAttribute('style');\n              this.setState({\n                animate: false,\n              });\n            }, speed);\n          });\n        });\n      }\n    }\n  }\n\n  componentWillUnmount() {\n    if (this.animationTimeout) {\n      clearTimeout(this.animationTimeout);\n    }\n  }\n\n  getSnapshotBeforeUpdate = () =>\n    this.ref.current && this.ref.current.getBoundingClientRect();\n\n  render() {\n    /* eslint-disable-next-line react/prop-types */\n    const { children, direction } = this.props;\n    const { animate, open } = this.state;\n\n    return (\n      <AnimatedBox\n        aria-hidden={!open}\n        ref={this.ref}\n        open={open}\n        animate={animate}\n        collapsibleDirection={direction}\n      >\n        {children}\n      </AnimatedBox>\n    );\n  }\n}\n\nCollapsible.defaultProps = {};\nObject.setPrototypeOf(Collapsible.defaultProps, defaultProps);\n\nlet CollapsibleDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  CollapsibleDoc = require('./doc').doc(Collapsible);\n}\nconst CollapsibleWrapper = compose(withTheme)(CollapsibleDoc || Collapsible);\n\nexport { CollapsibleWrapper as Collapsible };\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(originalModule) {\n\tif (!originalModule.webpackPolyfill) {\n\t\tvar module = Object.create(originalModule);\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"exports\", {\n\t\t\tenumerable: true\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","import React from 'react';\n\nimport { StyledHeading } from './StyledHeading';\n\nconst Heading = props => {\n  const {\n    color, // munged to avoid styled-components putting it in the DOM\n    level,\n    ...rest\n  } = props;\n\n  // enforce level to be a number\n  return (\n    <StyledHeading\n      as={`h${level}`}\n      colorProp={color}\n      level={+level}\n      {...rest}\n    />\n  );\n};\n\nHeading.defaultProps = {\n  level: 1,\n  responsive: true,\n};\n\nlet HeadingDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  HeadingDoc = require('./doc').doc(Heading);\n}\nconst HeadingWrapper = HeadingDoc || Heading;\n\nexport { HeadingWrapper as Heading };\n","import styled, { css } from 'styled-components';\n\nimport { breakpointStyle, genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n  // size is a combination of the level and size properties\n  const size = props.size || 'medium';\n  const headingTheme = props.theme.heading;\n  const levelStyle = headingTheme.level[props.level];\n  if (levelStyle) {\n    const data = levelStyle[size];\n    const styles =  \n    [\n      css`\n        font-size: ${data ? data.size : size};\n        line-height: ${data ? data.height : 'normal'};\n        max-width: ${data ? data.maxWidth : levelStyle.medium.maxWidth};\n        font-weight: ${levelStyle.font.weight || headingTheme.weight};\n      `,\n    ];\n    if (props.responsive && headingTheme.responsiveBreakpoint) {\n      const breakpoint =\n        props.theme.global.breakpoints[headingTheme.responsiveBreakpoint];\n      if (breakpoint) {\n        const responsiveData =\n          headingTheme.level[Math.min(props.level + 1, 4)][size];\n        if(responsiveData) {\n          styles.push(\n            breakpointStyle(\n              breakpoint,\n              `\n            font-size: ${responsiveData.size};\n            line-height: ${responsiveData.height};\n            max-width: ${responsiveData.maxWidth};\n          `,\n            ),\n          );\n        }\n      }\n    }\n    return styles;\n  }\n  console.warn(`Heading level ${props.level} is not defined in your theme.`);\n\n  return '';\n};\n\nconst fontFamily = props => {\n  const { font } = props.theme.heading.level[props.level];\n  if (font && font.family) {\n    return css`\n      font-family: ${font.family};\n    `;\n  }\n  return props.theme.heading.font\n    ? css`\n        font-family: ${props.theme.heading.font.family};\n      `\n    : '';\n};\n\nconst TEXT_ALIGN_MAP = {\n  center: 'center',\n  end: 'right',\n  start: 'left',\n};\n\nconst textAlignStyle = css`\n  text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst truncateStyle = `\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n  color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst StyledHeading = styled.h1`\n  ${genericStyles}\n  ${props => fontFamily(props)}\n  ${props => sizeStyle(props)}\n  ${props => props.textAlign && textAlignStyle}\n  ${props => props.truncate && truncateStyle}\n  ${props => props.colorProp && colorStyle}\n  ${props => props.theme.heading && props.theme.heading.extend}\n`;\n\nStyledHeading.defaultProps = {};\nObject.setPrototypeOf(StyledHeading.defaultProps, defaultProps);\n\nexport { StyledHeading };\n","import React, {\n  cloneElement,\n  forwardRef,\n  useContext,\n  useEffect,\n  useState,\n} from 'react';\n\nimport { ThemeContext } from 'styled-components';\nimport { defaultProps } from '../../default-props';\n\nimport { normalizeColor } from '../../utils';\n\nimport { Box } from '../Box';\n\nimport { StyledAnchor } from './StyledAnchor';\n\nconst Anchor = forwardRef(\n  (\n    {\n      a11yTitle,\n      children,\n      color,\n      disabled,\n      href,\n      icon,\n      label,\n      onBlur,\n      onClick,\n      onFocus,\n      reverse,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const [focus, setFocus] = useState();\n\n    useEffect(() => {\n      if ((icon || label) && children) {\n        console.warn(\n          'Anchor should not have children if icon or label is provided',\n        );\n      }\n    }, [children, icon, label]);\n\n    let coloredIcon = icon;\n    if (icon && !icon.props.color) {\n      coloredIcon = cloneElement(icon, {\n        color: normalizeColor(color || theme.anchor.color, theme),\n      });\n    }\n\n    const first = reverse ? label : coloredIcon;\n    const second = reverse ? coloredIcon : label;\n\n    return (\n      <StyledAnchor\n        {...rest}\n        ref={ref}\n        aria-label={a11yTitle}\n        colorProp={color}\n        disabled={disabled}\n        hasIcon={!!icon}\n        focus={focus}\n        hasLabel={label}\n        reverse={reverse}\n        href={!disabled ? href : undefined}\n        onClick={!disabled ? onClick : undefined}\n        onFocus={event => {\n          setFocus(true);\n          if (onFocus) onFocus(event);\n        }}\n        onBlur={event => {\n          setFocus(false);\n          if (onBlur) onBlur(event);\n        }}\n      >\n        {first && second ? (\n          <Box\n            as=\"span\"\n            direction=\"row\"\n            align=\"center\"\n            gap=\"small\"\n            style={{ display: 'inline-flex' }}\n          >\n            {first}\n            {second}\n          </Box>\n        ) : (\n          first || second || children\n        )}\n      </StyledAnchor>\n    );\n  },\n);\n\nAnchor.displayName = 'Anchor';\n\nlet AnchorDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  AnchorDoc = require('./doc').doc(Anchor);\n}\nconst AnchorWrapper = AnchorDoc || Anchor;\n\nexport { AnchorWrapper as Anchor };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n  opacity: 0.3;\n  cursor: default;\n  text-decoration: none;\n`;\n\nconst sizeStyle = props => {\n  if (props.size) {\n    const size = props.size || 'medium';\n    const data = props.theme.text[size];\n    return css`\n      font-size: ${data.size};\n      line-height: ${data.height};\n    `;\n  }\n  return css`\n    font-size: inherit;\n    line-height: inherit;\n  `;\n};\n\nconst StyledAnchor = styled.a`\n  box-sizing: border-box;\n  ${props => sizeStyle(props)}\n  color: ${props =>\n    normalizeColor(props.colorProp || props.theme.anchor.color, props.theme)};\n  ${props =>\n    props.theme.anchor.fontWeight &&\n    `font-weight: ${props.theme.anchor.fontWeight};`}\n  text-decoration: ${props =>\n    props.hasIcon ? 'none' : props.theme.anchor.textDecoration};\n  cursor: pointer;\n  outline: none;\n  ${genericStyles}\n\n  ${props =>\n    !props.disabled &&\n    props.theme.anchor.hover &&\n    css`\n    &:hover {\n      ${props.theme.anchor.hover.textDecoration &&\n        `text-decoration: ${props.theme.anchor.hover.textDecoration};`}\n      ${props.theme.anchor.hover.fontWeight &&\n        `font-weight: ${props.theme.anchor.hover.fontWeight};`}\n      ${props.theme.anchor.hover.extend}\n    }\n  `}\n  ${props =>\n    props.hasIcon &&\n    !props.hasLabel &&\n    `\n    padding: ${props.theme.global.edgeSize.small};\n  `}\n  ${props => props.disabled && disabledStyle}\n  ${props => props.focus && focusStyle}\n  ${props => props.theme.anchor.extend}\n`;\n\nStyledAnchor.defaultProps = {};\nObject.setPrototypeOf(StyledAnchor.defaultProps, defaultProps);\n\nexport { StyledAnchor };\n","export { Avatar } from './Avatar';\n","import React, { useContext } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { StyledAvatar, StyledAvatarText } from './StyledAvatar';\n\nconst Avatar = ({\n  align = 'center',\n  children,\n  height, // for warning check and discarding the value\n  justify = 'center',\n  round = 'full',\n  size = 'medium',\n  src,\n  width, // for warning check and discarding the value\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext) || defaultProps.theme;\n  const avatarSize = theme.avatar.size[size] || size;\n\n  const avatarProps = {\n    align,\n    height: avatarSize,\n    justify,\n    overflow: 'hidden',\n    round,\n    width: avatarSize,\n  };\n\n  const AvatarChildren = () => (\n    <StyledAvatar {...avatarProps} {...rest}>\n      {children}\n    </StyledAvatar>\n  );\n\n  if (height || width) {\n    console.warn(\n      'Avatar should use `size` instead of `height` or `width` props',\n    );\n  }\n\n  if (typeof src === 'string') {\n    return (\n      <StyledAvatar {...avatarProps} {...rest} background={`url(${src})`} />\n    );\n  }\n  if (typeof children === 'string') {\n    return (\n      <StyledAvatar {...avatarProps} {...rest}>\n        <StyledAvatarText alignSelf=\"center\" size=\"large\">\n          {children}\n        </StyledAvatarText>\n      </StyledAvatar>\n    );\n  }\n  return <AvatarChildren />;\n};\n\nexport { Avatar };\n","import styled from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Text } from '../Text';\n\nconst StyledAvatarText = styled(Text)`\n  ${props =>\n    props.theme.avatar &&\n    props.theme.avatar.text &&\n    props.theme.avatar.text.fontWeight &&\n    `font-weight: ${props.theme.avatar.text.fontWeight};`}\n  ${props => props.theme.avatar.text && props.theme.avatar.text.extend}\n`;\n\nStyledAvatarText.defaultProps = {};\nObject.setPrototypeOf(StyledAvatarText.defaultProps, defaultProps);\n\nconst StyledAvatar = styled(Box)`\n  ${props => props.theme.avatar && props.theme.avatar.extend}\n`;\n\nStyledAvatar.defaultProps = {};\nObject.setPrototypeOf(StyledAvatar.defaultProps, defaultProps);\n\nexport { StyledAvatar, StyledAvatarText };\n","import React from 'react';\n\nimport { StyledText } from './StyledText';\n\nconst Text = ({ color, tag, as, ...rest }) => (\n  <StyledText as={!as && tag ? tag : as} colorProp={color} {...rest} />\n);\n\nText.defaultProps = {\n  level: 1,\n};\n\nlet TextDoc;\nif (process.env.NODE_ENV !== 'production') {\n  TextDoc = require('./doc').doc(Text); // eslint-disable-line global-require\n}\nconst TextWrapper = TextDoc || Text;\n\nexport { TextWrapper as Text };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n  const size = props.size || 'medium';\n  const data = props.theme.text[size];\n  if (data) {\n    return css`\n      font-size: ${data.size};\n      line-height: ${data.height};\n    `;\n  }\n  return css`\n    font-size: ${size};\n    line-height: normal;\n  `;\n};\n\nconst TEXT_ALIGN_MAP = {\n  center: 'center',\n  end: 'right',\n  start: 'left',\n};\n\nconst textAlignStyle = css`\n  text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst truncateStyle = `\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n`;\n\nconst colorStyle = css`\n  color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst weightStyle = css`\n  font-weight: ${props => props.weight};\n`;\n\nconst wordBreakStyle = css`\n  word-break: ${props => props.wordBreak};\n`;\n\nconst StyledText = styled.span`\n  ${genericStyles}\n  ${props => sizeStyle(props)}\n  ${props => props.textAlign && textAlignStyle}\n  ${props => props.truncate && truncateStyle}\n  ${props => props.colorProp && colorStyle}\n  ${props => props.weight && weightStyle}\n  ${props => props.wordBreak && wordBreakStyle}\n\n  ${props => props.theme.text && props.theme.text.extend}\n`;\n\nStyledText.defaultProps = {};\nObject.setPrototypeOf(StyledText.defaultProps, defaultProps);\n\nexport { StyledText };\n","export { Calendar } from './Calendar';\n","import React, {\n  forwardRef,\n  useCallback,\n  useContext,\n  useMemo,\n  useState,\n  useEffect,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Heading } from '../Heading';\nimport { Keyboard } from '../Keyboard';\n\nimport {\n  StyledCalendar,\n  StyledDay,\n  StyledDayContainer,\n  StyledWeek,\n  StyledWeeks,\n  StyledWeeksContainer,\n} from './StyledCalendar';\nimport {\n  addDays,\n  addMonths,\n  betweenDates,\n  daysApart,\n  endOfMonth,\n  startOfMonth,\n  subtractDays,\n  subtractMonths,\n  withinDates,\n} from './utils';\n\nconst headingPadMap = {\n  small: 'xsmall',\n  medium: 'small',\n  large: 'medium',\n};\n\nconst normalizeReference = (reference, date, dates) => {\n  let normalizedReference;\n  if (reference) {\n    normalizedReference = new Date(reference);\n  } else if (date) {\n    normalizedReference = new Date(date);\n  } else if (dates && dates.length > 0) {\n    if (typeof dates[0] === 'string') {\n      normalizedReference = new Date(dates[0]);\n    } else if (Array.isArray(dates[0])) {\n      normalizedReference = new Date(dates[0][0]);\n    } else {\n      normalizedReference = new Date();\n      normalizedReference.setHours(0, 0, 0, 0);\n    }\n  } else {\n    normalizedReference = new Date();\n    normalizedReference.setHours(0, 0, 0, 0);\n  }\n  return normalizedReference;\n};\n\nconst buildDisplayBounds = (reference, firstDayOfWeek) => {\n  let start = new Date(reference);\n  start.setDate(1); // first of month\n\n  // In case Sunday is the first day of the month, and the user asked for Monday\n  // to be the first day of the week, then we need to include Sunday and six\n  // days prior.\n  start =\n    start.getDay() === 0 && firstDayOfWeek === 1\n      ? (start = subtractDays(start, 6))\n      : // beginning of week\n        (start = subtractDays(start, start.getDay() - firstDayOfWeek));\n\n  const end = addDays(start, 7 * 5 + 7); // 5 weeks to end of week\n  return [start, end];\n};\n\nconst Calendar = forwardRef(\n  (\n    {\n      animate = true,\n      bounds: validBounds,\n      date: dateProp,\n      dates: datesProp,\n      daysOfWeek,\n      disabled,\n      firstDayOfWeek = 0,\n      header,\n      locale = 'en-US',\n      onReference,\n      onSelect,\n      range,\n      reference: referenceProp,\n      showAdjacentDays = true,\n      size = 'medium',\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext);\n\n    // set date when caller changes it, allows us to change it internally too\n    const [date, setDate] = useState(dateProp);\n    useEffect(() => setDate(dateProp), [dateProp]);\n\n    // set dates when caller changes it, allows us to change it internally too\n    const [dates, setDates] = useState(datesProp);\n    useEffect(() => setDates(datesProp), [datesProp]);\n\n    // set reference based on what the caller passed or date/dates.\n    const [reference, setReference] = useState(\n      normalizeReference(referenceProp, date, dates),\n    );\n    useEffect(\n      () =>\n        setReference(normalizeReference(referenceProp, dateProp, datesProp)),\n      [dateProp, datesProp, referenceProp],\n    );\n\n    // calculate the bounds we display based on the reference\n    const [displayBounds, setDisplayBounds] = useState(\n      buildDisplayBounds(reference, firstDayOfWeek),\n    );\n    const [targetDisplayBounds, setTargetDisplayBounds] = useState();\n    const [slide, setSlide] = useState();\n\n    // When the reference changes, we need to update the displayBounds.\n    // This is easy when we aren't animating. If we are animating,\n    // we temporarily increase the displayBounds to be the union of the old\n    // and new ones and set slide to drive the animation. We keep track\n    // of where we are heading via targetDisplayBounds. When the animation\n    // finishes, we prune displayBounds down to where we are headed and\n    // clear the slide and targetDisplayBounds.\n    useEffect(() => {\n      const nextDisplayBounds = buildDisplayBounds(reference, firstDayOfWeek);\n      if (!animate) {\n        setDisplayBounds(nextDisplayBounds);\n      } else {\n        setTargetDisplayBounds(nextDisplayBounds);\n      }\n    }, [animate, firstDayOfWeek, reference]);\n\n    useEffect(() => {\n      if (targetDisplayBounds) {\n        if (targetDisplayBounds[0].getTime() < displayBounds[0].getTime()) {\n          setDisplayBounds([targetDisplayBounds[0], displayBounds[1]]);\n          setSlide({\n            direction: 'down',\n            weeks: daysApart(displayBounds[0], targetDisplayBounds[0]) / 7,\n          });\n        } else if (\n          targetDisplayBounds[1].getTime() > displayBounds[1].getTime()\n        ) {\n          setDisplayBounds([displayBounds[0], targetDisplayBounds[1]]);\n          setSlide({\n            direction: 'up',\n            weeks: daysApart(targetDisplayBounds[1], displayBounds[1]) / 7,\n          });\n        }\n\n        // Wait for animation to finish before cleaning up.\n        const timer = setTimeout(\n          () => {\n            setDisplayBounds(targetDisplayBounds);\n            setTargetDisplayBounds(undefined);\n            setSlide(undefined);\n          },\n          400, // Empirically determined.\n        );\n        return () => clearTimeout(timer);\n      }\n\n      setSlide(undefined);\n      return undefined;\n    }, [displayBounds, targetDisplayBounds]);\n\n    // We have to deal with reference being the end of a month with more\n    // days than the month we are changing to. So, we always set reference\n    // to the first of the month before changing the month.\n    const previousMonth = useMemo(\n      () => endOfMonth(subtractMonths(startOfMonth(reference), 1)),\n      [reference],\n    );\n    const nextMonth = useMemo(\n      () => startOfMonth(addMonths(startOfMonth(reference), 1)),\n      [reference],\n    );\n\n    const [focus, setFocus] = useState();\n    const [active, setActive] = useState();\n    // when working on a range, remember the last selected date so we know\n    // how to handle subsequent date selection\n    const [lastSelectedDate, setLastSelectedDate] = useState();\n\n    const changeReference = useCallback(\n      nextReference => {\n        if (betweenDates(nextReference, validBounds)) {\n          setReference(nextReference);\n          if (onReference) onReference(nextReference.toISOString());\n        }\n      },\n      [onReference, validBounds],\n    );\n\n    const selectDate = useCallback(\n      selectedDate => {\n        let nextDates;\n        let nextDate;\n        if (!range) {\n          nextDate = selectedDate;\n        } else if (!dates) {\n          if (!date) {\n            nextDate = selectedDate;\n          } else {\n            const priorDate = new Date(date);\n            const selDate = new Date(selectedDate);\n            if (priorDate.getTime() < selDate.getTime()) {\n              nextDates = [[date, selectedDate]];\n              nextDate = undefined;\n            } else if (priorDate.getTime() > selDate.getTime()) {\n              nextDates = [[selectedDate, date]];\n              nextDate = undefined;\n            } else {\n              nextDate = undefined;\n            }\n          }\n        } else {\n          // have dates\n          const priorDates = dates[0].map(d => new Date(d));\n          const previousDate = new Date(lastSelectedDate || dates[0][0]);\n          const selDate = new Date(selectedDate);\n          if (selDate.getTime() === priorDates[0].getTime()) {\n            [[, nextDate]] = dates;\n            nextDates = undefined;\n          } else if (selDate.getTime() === priorDates[1].getTime()) {\n            [[nextDate]] = dates;\n            nextDates = undefined;\n          } else if (selDate.getTime() < previousDate.getTime()) {\n            if (selDate.getTime() < priorDates[0].getTime()) {\n              nextDates = [[selectedDate, dates[0][1]]];\n            } else if (selDate.getTime() > priorDates[0].getTime()) {\n              nextDates = [[dates[0][0], selectedDate]];\n            }\n          } else if (selDate.getTime() > previousDate.getTime()) {\n            if (selDate.getTime() > priorDates[1].getTime()) {\n              nextDates = [[dates[0][0], selectedDate]];\n            } else if (selDate.getTime() < priorDates[1].getTime()) {\n              nextDates = [[selectedDate, dates[0][1]]];\n            }\n          }\n        }\n\n        setDates(nextDates);\n        if (!dates) setDate(nextDate);\n        setActive(new Date(selectedDate));\n        setLastSelectedDate(selectedDate);\n        if (onSelect) onSelect(nextDates || nextDate);\n      },\n      [date, dates, lastSelectedDate, onSelect, range],\n    );\n\n    const renderCalendarHeader = () => {\n      const PreviousIcon =\n        size === 'small'\n          ? theme.calendar.icons.small.previous\n          : theme.calendar.icons.previous;\n\n      const NextIcon =\n        size === 'small'\n          ? theme.calendar.icons.small.next\n          : theme.calendar.icons.next;\n\n      return (\n        <Box direction=\"row\" justify=\"between\" align=\"center\">\n          <Box flex pad={{ horizontal: headingPadMap[size] || 'small' }}>\n            <Heading\n              level={\n                size === 'small'\n                  ? (theme.calendar.heading && theme.calendar.heading.level) ||\n                    4\n                  : ((theme.calendar.heading && theme.calendar.heading.level) ||\n                      4) - 1\n              }\n              size={size}\n              margin=\"none\"\n            >\n              {reference.toLocaleDateString(locale, {\n                month: 'long',\n                year: 'numeric',\n              })}\n            </Heading>\n          </Box>\n          <Box flex={false} direction=\"row\" align=\"center\">\n            <Button\n              a11yTitle={previousMonth.toLocaleDateString(locale, {\n                month: 'long',\n                year: 'numeric',\n              })}\n              icon={<PreviousIcon size={size !== 'small' ? size : undefined} />}\n              disabled={!betweenDates(previousMonth, validBounds)}\n              onClick={() => changeReference(previousMonth)}\n            />\n            <Button\n              a11yTitle={nextMonth.toLocaleDateString(locale, {\n                month: 'long',\n                year: 'numeric',\n              })}\n              icon={<NextIcon size={size !== 'small' ? size : undefined} />}\n              disabled={!betweenDates(nextMonth, validBounds)}\n              onClick={() => changeReference(nextMonth)}\n            />\n          </Box>\n        </Box>\n      );\n    };\n\n    const renderDaysOfWeek = () => {\n      let day = new Date(displayBounds[0]);\n      const days = [];\n      while (days.length < 7) {\n        days.push(\n          <StyledDayContainer key={days.length} sizeProp={size}>\n            <StyledDay otherMonth sizeProp={size}>\n              {day.toLocaleDateString(locale, { weekday: 'narrow' })}\n            </StyledDay>\n          </StyledDayContainer>,\n        );\n        day = addDays(day, 1);\n      }\n      return <StyledWeek>{days}</StyledWeek>;\n    };\n\n    const weeks = [];\n    let day = new Date(displayBounds[0]);\n    let days;\n    let firstDayInMonth;\n\n    while (day.getTime() < displayBounds[1].getTime()) {\n      if (day.getDay() === firstDayOfWeek) {\n        if (days) {\n          weeks.push(<StyledWeek key={day.getTime()}>{days}</StyledWeek>);\n        }\n        days = [];\n      }\n\n      const otherMonth = day.getMonth() !== reference.getMonth();\n      if (!showAdjacentDays && otherMonth) {\n        days.push(\n          <StyledDayContainer key={day.getTime()} sizeProp={size}>\n            <StyledDay sizeProp={size} />\n          </StyledDayContainer>,\n        );\n      } else {\n        const dateString = day.toISOString();\n        // this.dayRefs[dateString] = React.createRef();\n        let selected = false;\n        let inRange = false;\n\n        const selectedState = withinDates(day, date || dates);\n        if (selectedState === 2) {\n          selected = true;\n        } else if (selectedState === 1) {\n          inRange = true;\n        }\n        const dayDisabled =\n          withinDates(day, disabled) ||\n          (validBounds && !betweenDates(day, validBounds));\n        if (\n          !firstDayInMonth &&\n          !dayDisabled &&\n          day.getMonth() === reference.getMonth()\n        ) {\n          firstDayInMonth = dateString;\n        }\n\n        days.push(\n          <StyledDayContainer key={day.getTime()} sizeProp={size}>\n            <Button\n              a11yTitle={day.toDateString()}\n              plain\n              tabIndex={-1}\n              active={active && active.getTime() === day.getTime()}\n              disabled={dayDisabled}\n              onClick={() => selectDate(dateString)}\n              onMouseOver={() => setActive(new Date(dateString))}\n              onMouseOut={() => setActive(undefined)}\n              onFocus={() => {}}\n              onBlur={() => {}}\n            >\n              <StyledDay\n                inRange={inRange}\n                otherMonth={day.getMonth() !== reference.getMonth()}\n                isSelected={selected}\n                sizeProp={size}\n              >\n                {day.getDate()}\n              </StyledDay>\n            </Button>\n          </StyledDayContainer>,\n        );\n      }\n\n      day = addDays(day, 1);\n    }\n    weeks.push(<StyledWeek key={day.getTime()}>{days}</StyledWeek>);\n\n    return (\n      <StyledCalendar ref={ref} sizeProp={size} {...rest}>\n        <Box>\n          {header\n            ? header({\n                date: reference,\n                locale,\n                onPreviousMonth: () => changeReference(previousMonth),\n                onNextMonth: () => changeReference(nextMonth),\n                previousInBound: betweenDates(previousMonth, validBounds),\n                nextInBound: betweenDates(nextMonth, validBounds),\n              })\n            : renderCalendarHeader(previousMonth, nextMonth)}\n          {daysOfWeek && renderDaysOfWeek()}\n          <Keyboard\n            onEnter={() => selectDate(active.toISOString())}\n            onUp={event => {\n              event.preventDefault();\n              event.stopPropagation(); // so the page doesn't scroll\n              setActive(addDays(active, -7));\n            }}\n            onDown={event => {\n              event.preventDefault();\n              event.stopPropagation(); // so the page doesn't scroll\n              setActive(addDays(active, 7));\n            }}\n            onLeft={() => active && setActive(addDays(active, -1))}\n            onRight={() => active && setActive(addDays(active, 1))}\n          >\n            <StyledWeeksContainer\n              sizeProp={size}\n              tabIndex={0}\n              focus={focus}\n              onFocus={() => {\n                setFocus(true);\n                if (date && betweenDates(new Date(date), displayBounds)) {\n                  setActive(new Date(date));\n                } else {\n                  setActive(new Date(firstDayInMonth));\n                }\n              }}\n              onBlur={() => {\n                setFocus(false);\n                setActive(undefined);\n              }}\n            >\n              <StyledWeeks slide={slide} sizeProp={size}>\n                {weeks}\n              </StyledWeeks>\n            </StyledWeeksContainer>\n          </Keyboard>\n        </Box>\n      </StyledCalendar>\n    );\n  },\n);\n\nCalendar.displayName = 'Calendar';\n\nlet CalendarDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  CalendarDoc = require('./doc').doc(Calendar);\n}\nconst CalendarWrapper = CalendarDoc || Calendar;\n\nexport { CalendarWrapper as Calendar };\n","import styled, { css, keyframes } from 'styled-components';\nimport {\n  backgroundStyle,\n  focusStyle,\n  genericStyles,\n  parseMetricToNum,\n} from '../../utils';\n\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n  const data = props.theme.calendar[props.sizeProp];\n  return css`\n    font-size: ${data.fontSize};\n    line-height: ${data.lineHeight};\n    width: ${props.theme.global.size[props.sizeProp]};\n  `;\n};\n\nconst StyledCalendar = styled.div`\n  ${genericStyles}\n  ${props => sizeStyle(props)}\n  ${props => props.theme.calendar && props.theme.calendar.extend}\n`;\n\nStyledCalendar.defaultProps = {};\nObject.setPrototypeOf(StyledCalendar.defaultProps, defaultProps);\n\nconst StyledWeeksContainer = styled.div`\n  overflow: hidden;\n  ${props =>\n    `height: ${parseMetricToNum(props.theme.calendar[props.sizeProp].daySize) *\n      6}px;`};\n  outline: none;\n  ${props => props.focus && !props.plain && focusStyle};\n`;\n\nStyledWeeksContainer.defaultProps = {};\nObject.setPrototypeOf(StyledWeeksContainer.defaultProps, defaultProps);\n\nconst slideStyle = props => {\n  const {\n    slide: { direction, weeks },\n    sizeProp,\n    theme,\n  } = props;\n  const { daySize, slideDuration } = theme.calendar[sizeProp];\n  const amount = parseMetricToNum(daySize) * weeks;\n\n  const translateYFrom = direction === 'down' ? `-${amount}px` : '0';\n  const translateYTo = direction === 'up' ? `-${amount}px` : '0';\n  const slideTransition = css`\n    0% {\n      transform: translateY(${translateYFrom});\n    }\n    100% {\n      transform: translateY(${translateYTo});\n    }\n  `;\n  return css`\n    animation: ${keyframes`${slideTransition}`} ${slideDuration} forwards;\n  `;\n};\n\nconst StyledWeeks = styled.div`\n  position: relative;\n  ${props => props.slide && slideStyle(props)};\n`;\n\nStyledWeeks.defaultProps = {};\nObject.setPrototypeOf(StyledWeeks.defaultProps, defaultProps);\n\nconst StyledWeek = styled.div`\n  display: flex;\n  flex-direction: row;\n  flex-justify: between;\n`;\n\nStyledWeek.defaultProps = {};\nObject.setPrototypeOf(StyledWeek.defaultProps, defaultProps);\n\nconst StyledDayContainer = styled.div`\n  flex: 0 0 auto;\n`;\n\nStyledDayContainer.defaultProps = {};\nObject.setPrototypeOf(StyledDayContainer.defaultProps, defaultProps);\n\nconst daySizeStyle = props => {\n  const data = props.theme.calendar[props.sizeProp];\n  return css`\n    width: ${data.daySize};\n    height: ${data.daySize};\n  `;\n};\n\nconst StyledDay = styled.div`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  ${props => daySizeStyle(props)}\n  ${props =>\n    (props.isSelected && backgroundStyle('control', props.theme)) ||\n    (props.inRange &&\n      backgroundStyle({ color: 'control', opacity: 'weak' }, props.theme))}\n  ${props => props.otherMonth && 'opacity: 0.5;'}\n  ${props => props.isSelected && 'font-weight: bold;'}\n  ${props =>\n    props.theme.calendar &&\n    props.theme.calendar.day &&\n    props.theme.calendar.day.extend}\n`;\n\nStyledDay.defaultProps = {};\nObject.setPrototypeOf(StyledDay.defaultProps, defaultProps);\n\nexport {\n  StyledCalendar,\n  StyledWeeksContainer,\n  StyledWeeks,\n  StyledWeek,\n  StyledDayContainer,\n  StyledDay,\n};\n","// Utility functions for the Calendar.\n// Just what's needed to avoid having to include a dependency like momentjs.\n\nconst DAY_MILLISECONDS = 24 * 60 * 60 * 1000;\n\nexport const addDays = (date, days) => {\n  const result = new Date(date.getTime() + DAY_MILLISECONDS * days);\n  // Deal with crossing the daylight savings time boundary,\n  // where adding a day's worth when the time is midnight results in\n  // being a day off.\n  let hourDelta = result.getHours() - date.getHours();\n  // At this point, hourDelta is typically 0 (normal day),\n  // +23 (November daylight saving), or -23 (March Daylight saving)\n  // depending on which side of the switch we are on.\n  // Convert so that hourDelta is either +1 or -1.\n  if (hourDelta === 23) {\n    hourDelta -= 24;\n  } else if (hourDelta === -23) {\n    hourDelta += 24;\n  }\n  result.setHours(result.getHours() - hourDelta);\n  return result;\n};\n\nexport const subtractDays = (date, days) => addDays(date, -days);\n\nexport const addMonths = (date, months) => {\n  const result = new Date(date);\n  const years = Math.floor((date.getMonth() + months) / 12);\n  result.setFullYear(date.getFullYear() + years);\n  const targetMonth = (date.getMonth() + months) % 12;\n  result.setMonth(targetMonth < 0 ? 12 + targetMonth : targetMonth);\n  return result;\n};\n\nexport const subtractMonths = (date, months) => addMonths(date, -months);\n\nexport const startOfMonth = date => {\n  const result = new Date(date);\n  result.setDate(1);\n  return result;\n};\n\nexport const endOfMonth = date => {\n  const result = addMonths(date, 1);\n  result.setDate(0);\n  return result;\n};\n\nexport const sameDay = (date1, date2) =>\n  date1.getFullYear() === date2.getFullYear() &&\n  date1.getMonth() === date2.getMonth() &&\n  date1.getDate() === date2.getDate();\n\nexport const sameDayOrAfter = (date1, date2) =>\n  date1.getFullYear() > date2.getFullYear() ||\n  (date1.getFullYear() === date2.getFullYear() &&\n    (date1.getMonth() > date2.getMonth() ||\n      (date1.getMonth() === date2.getMonth() &&\n        date1.getDate() >= date2.getDate())));\n\nexport const sameDayOrBefore = (date1, date2) =>\n  date1.getFullYear() < date2.getFullYear() ||\n  (date1.getFullYear() === date2.getFullYear() &&\n    (date1.getMonth() < date2.getMonth() ||\n      (date1.getMonth() === date2.getMonth() &&\n        date1.getDate() <= date2.getDate())));\n\nexport const daysApart = (date1, date2) =>\n  Math.floor((date1.getTime() - date2.getTime()) / DAY_MILLISECONDS);\n\n// betweenDates takes an array of two elements and checks if the\n// supplied date lies between them, inclusive.\n// returns 2 if exact match to one end, 1 if between, undefined otherwise\nexport const betweenDates = (date, dates) => {\n  let result;\n  if (dates) {\n    const [from, to] = dates.map(d => new Date(d));\n    if (sameDay(date, from) || sameDay(date, to)) {\n      result = 2;\n    } else if (sameDayOrAfter(date, from) && sameDayOrBefore(date, to)) {\n      result = 1;\n    }\n  } else {\n    result = 1;\n  }\n  return result;\n};\n\n// withinDates takes an array of string dates or 2 element arrays and\n// checks whether the supplied date matches any string or is between\n// any dates in arrays.\n// returns 2 if exact match, 1 if between, undefined otherwise\nexport const withinDates = (date, dates) => {\n  let result;\n  if (dates) {\n    if (Array.isArray(dates)) {\n      dates.some(d => {\n        if (typeof d === 'string') {\n          if (sameDay(date, new Date(d))) {\n            result = 2;\n          }\n        } else {\n          result = betweenDates(date, d);\n        }\n        return result;\n      });\n    } else if (sameDay(date, new Date(dates))) {\n      result = 2;\n    }\n  }\n  return result;\n};\n","export { Carousel } from './Carousel';\n","import React, {\n  Children,\n  useContext,\n  useEffect,\n  useState,\n  useRef,\n} from 'react';\n\nimport { normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { ThemeContext } from '../../contexts';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Keyboard } from '../Keyboard';\nimport { Stack } from '../Stack';\n\nconst Carousel = ({\n  initialChild,\n  play,\n  children,\n  controls,\n  fill,\n  onFocus,\n  onBlur,\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext) || defaultProps.theme;\n  const [focus, setFocus] = useState();\n\n  const timerRef = useRef();\n\n  const [indexes, setIndexes] = useState({\n    activeIndex: initialChild,\n  });\n\n  const { activeIndex, priorActiveIndex } = indexes;\n  const lastIndex = Children.count(children) - 1;\n\n  useEffect(() => {\n    if (play) {\n      const timer = setInterval(() => {\n        if (activeIndex < lastIndex) {\n          setIndexes({\n            activeIndex: activeIndex + 1,\n            priorActiveIndex: activeIndex,\n          });\n        } else {\n          setIndexes({\n            activeIndex: 0,\n            priorActiveIndex: activeIndex,\n          });\n        }\n      }, play);\n\n      timerRef.current = timer;\n\n      return () => {\n        clearTimeout(timer);\n      };\n    }\n    return () => {};\n  }, [activeIndex, play, children, lastIndex]);\n\n  const onRight = () => {\n    if (activeIndex >= lastIndex) {\n      return;\n    }\n    clearInterval(timerRef.current);\n    setIndexes({\n      activeIndex: activeIndex + 1,\n      priorActiveIndex: activeIndex,\n    });\n  };\n\n  const onLeft = () => {\n    if (activeIndex <= 0) {\n      return;\n    }\n    clearInterval(timerRef.current);\n    setIndexes({\n      activeIndex: activeIndex - 1,\n      priorActiveIndex: activeIndex,\n    });\n  };\n\n  const onSelect = index => () => {\n    clearInterval(timerRef.current);\n    setIndexes({ activeIndex: index, priorActiveIndex: activeIndex });\n  };\n\n  const showArrows = controls && controls !== 'selectors';\n  const showSelectors = controls && controls !== 'arrows';\n\n  const CurrentIcon = theme.carousel.icons.current;\n  const iconColor = normalizeColor(\n    theme.carousel.icons.color || 'control',\n    theme,\n  );\n\n  const selectors = [];\n  const wrappedChildren = Children.map(children, (child, index) => {\n    selectors.push(\n      <Button\n        // eslint-disable-next-line react/no-array-index-key\n        key={index}\n        icon={\n          <CurrentIcon color={activeIndex === index ? iconColor : undefined} />\n        }\n        onClick={onSelect(index)}\n      />,\n    );\n\n    let animation;\n    if (index === activeIndex) {\n      if (priorActiveIndex !== undefined) {\n        animation = {\n          type: priorActiveIndex < activeIndex ? 'slideLeft' : 'slideRight',\n          size: 'xlarge',\n          duration: theme.carousel.animation.duration,\n        };\n      }\n    } else if (index === priorActiveIndex) {\n      animation = {\n        type: 'fadeOut',\n        duration: theme.carousel.animation.duration,\n      };\n    } else {\n      animation = { type: 'fadeOut', duration: 0 };\n    }\n\n    return (\n      <Box fill={fill} overflow=\"hidden\">\n        <Box fill={fill} animation={animation}>\n          {child}\n        </Box>\n      </Box>\n    );\n  });\n\n  const NextIcon = theme.carousel.icons.next;\n  const PreviousIcon = theme.carousel.icons.previous;\n  const nextIconDisabled = activeIndex >= lastIndex;\n  const previousIconDisabled = activeIndex <= 0;\n\n  return (\n    <Keyboard onLeft={onLeft} onRight={onRight}>\n      <Stack guidingChild={activeIndex} fill={fill} {...rest}>\n        {wrappedChildren}\n        <Box\n          tabIndex=\"0\"\n          focus={focus}\n          onFocus={event => {\n            setFocus(true);\n            if (onFocus) onFocus(event);\n          }}\n          onBlur={event => {\n            setFocus(false);\n            if (onBlur) onBlur(event);\n          }}\n          fill\n          direction=\"row\"\n          justify=\"between\"\n        >\n          {showArrows && (\n            <Button\n              fill=\"vertical\"\n              icon={\n                <PreviousIcon\n                  color={normalizeColor(\n                    previousIconDisabled\n                      ? theme.carousel.disabled.icons.color\n                      : theme.carousel.icons.color,\n                    theme,\n                  )}\n                />\n              }\n              plain\n              disabled={previousIconDisabled}\n              onClick={onLeft}\n              hoverIndicator\n            />\n          )}\n          {showSelectors && (\n            <Box justify=\"end\" fill={!showArrows && 'horizontal'}>\n              <Box direction=\"row\" justify=\"center\">\n                {selectors}\n              </Box>\n            </Box>\n          )}\n          {showArrows && (\n            <Button\n              fill=\"vertical\"\n              icon={\n                <NextIcon\n                  color={normalizeColor(\n                    nextIconDisabled\n                      ? theme.carousel.disabled.icons.color\n                      : theme.carousel.icons.color,\n                    theme,\n                  )}\n                />\n              }\n              plain\n              disabled={nextIconDisabled}\n              onClick={onRight}\n              hoverIndicator\n            />\n          )}\n        </Box>\n      </Stack>\n    </Keyboard>\n  );\n};\n\nCarousel.defaultProps = {\n  initialChild: 0,\n  controls: true,\n};\nObject.setPrototypeOf(Carousel.defaultProps, defaultProps);\nCarousel.displayName = 'Carousel';\n\nlet CarouselDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  CarouselDoc = require('./doc').doc(Carousel);\n}\nconst CarouselWrapper = CarouselDoc || Carousel;\n\nexport { CarouselWrapper as Carousel };\n","export { AnnounceContext } from './AnnounceContext';\n","import React from 'react';\n\nconst createAnnouncer = () => {\n  const announcer = document.createElement('div');\n  announcer.style.left = '-100%';\n  announcer.style.right = '100%';\n  announcer.style.position = 'fixed';\n  announcer.style['z-index'] = '-1';\n\n  document.body.insertBefore(announcer, document.body.firstChild);\n\n  return announcer;\n};\n\nexport const AnnounceContext = React.createContext(\n  (message, mode = 'polite', timeout = 500) => {\n    // we only create a new container if we don't have one already\n    // we create a separate node so that grommet does not set aria-hidden to it\n    const announcer =\n      document.body.querySelector('[aria-live]') || createAnnouncer();\n\n    announcer.setAttribute('aria-live', 'off');\n    announcer.innerHTML = message;\n    announcer.setAttribute('aria-live', mode);\n    setTimeout(() => {\n      announcer.innerHTML = '';\n    }, timeout);\n  },\n);\n","export { ResponsiveContext } from './ResponsiveContext';\n","import React from 'react';\n\nexport const ResponsiveContext = React.createContext(undefined);\n","export { ThemeContext } from './ThemeContext';\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { ThemeContext } from 'styled-components';\n\nimport { deepMerge } from '../../utils';\n\nThemeContext.Extend = ({ children, value }) => (\n  <ThemeContext.Consumer>\n    {theme => (\n      <ThemeContext.Provider value={deepMerge(theme, value)}>\n        {children}\n      </ThemeContext.Provider>\n    )}\n  </ThemeContext.Consumer>\n);\n\nThemeContext.Extend.propTypes = {\n  children: PropTypes.node.isRequired,\n  value: PropTypes.shape({}).isRequired,\n};\n\nexport { ThemeContext };\n","import React, { Children } from 'react';\n\nimport { StyledStack, StyledStackLayer } from './StyledStack';\n\nconst buildStyledChildren = ({\n  anchor,\n  fill,\n  guidingIndex,\n  interactiveChild,\n  interactiveIndex,\n}) => {\n  let childIndex = 0;\n\n  return child => {\n    if (child) {\n      const interactive =\n        interactiveChild === undefined || interactiveIndex === childIndex;\n\n      const isGuidingIndex = childIndex === guidingIndex;\n      childIndex += 1;\n\n      const props = isGuidingIndex\n        ? {\n            guiding: true,\n            fillContainer: fill,\n          }\n        : {\n            anchor,\n          };\n\n      return (\n        <StyledStackLayer interactive={interactive} {...props}>\n          {child}\n        </StyledStackLayer>\n      );\n    }\n\n    return child;\n  };\n};\n\nconst Stack = ({\n  anchor,\n  children,\n  fill,\n  guidingChild,\n  interactiveChild,\n  ...rest\n}) => {\n  const toChildIndex = child => {\n    let index = child;\n\n    if (index === 'first' || !index) index = 0;\n    else if (index === 'last') index = React.Children.count(children) - 1;\n\n    return index;\n  };\n\n  const guidingIndex = toChildIndex(guidingChild);\n  const interactiveIndex = interactiveChild && toChildIndex(interactiveChild);\n\n  const styledChildren = Children.map(\n    children,\n    buildStyledChildren({\n      anchor,\n      fill,\n      guidingIndex,\n      interactiveChild,\n      interactiveIndex,\n    }),\n  );\n\n  return (\n    <StyledStack fillContainer={fill} {...rest}>\n      {styledChildren}\n    </StyledStack>\n  );\n};\n\nlet StackDoc;\nif (process.env.NODE_ENV !== 'production') {\n  StackDoc = require('./doc').doc(Stack); // eslint-disable-line global-require\n}\nconst StackWrapper = StackDoc || Stack;\n\nexport { StackWrapper as Stack };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = `\n  width: 100%;\n  height: 100%;\n  max-width: none;\n  flex-grow: 1;\n  display: flex;\n`;\n\nconst StyledStack = styled.div`\n  position: relative;\n  ${genericStyles}\n  ${props => props.fillContainer && fillStyle}\n  ${props => props.theme.stack && props.theme.stack.extend}\n`;\n\nStyledStack.defaultProps = {};\nObject.setPrototypeOf(StyledStack.defaultProps, defaultProps);\n\nconst styleMap = {\n  fill: `\n    top: 0;\n    left: 0;\n    bottom: 0;\n    right: 0;\n  `,\n  center: `\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n  `,\n  left: `\n    top: 50%;\n    left: 0;\n    transform: translateY(-50%);\n  `,\n  right: `\n    top: 50%;\n    right: 0;\n    transform: translateY(-50%);\n  `,\n  top: `\n    top: 0;\n    left: 50%;\n    transform: translateX(-50%);\n  `,\n  bottom: `\n    bottom: 0;\n    left: 50%;\n    transform: translateX(-50%);\n  `,\n  'top-left': `\n    top: 0;\n    left: 0;\n  `,\n  'bottom-left': `\n    bottom: 0;\n    left: 0;\n  `,\n  'top-right': `\n    top: 0;\n    right: 0;\n  `,\n  'bottom-right': `\n    bottom: 0;\n    right: 0;\n  `,\n};\n\nconst StyledStackLayer = styled.div`\n  position: ${props => (props.guiding ? 'relative' : 'absolute')};\n  ${props => props.guiding && 'display: block;'}\n  ${props => !props.guiding && `${styleMap[props.anchor || 'fill']};`}\n  ${props =>\n    props.fillContainer &&\n    `\n    width: 100%;\n    height: 100%;\n  `}\n  ${props => !props.interactive && `pointer-events: none;`}\n`;\n\nStyledStackLayer.defaultProps = {};\nObject.setPrototypeOf(StyledStackLayer.defaultProps, defaultProps);\n\nexport { StyledStack, StyledStackLayer };\n","export { Chart } from './Chart';\nexport { calcs } from './calcs';\n","import React, { useContext, useEffect, useRef, useState } from 'react';\n\nimport { ThemeContext } from 'styled-components';\n\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledChart } from './StyledChart';\nimport { normalizeBounds, normalizeValues } from './utils';\n\nconst gradientMaskColor = '#ffffff';\n\n// use constants so re-renders don't re-trigger effects\nconst defaultSize = { height: 'small', width: 'medium' };\nconst defaultValues = [];\n\nconst Chart = React.forwardRef(\n  (\n    {\n      bounds: propsBounds,\n      color,\n      dash,\n      gap,\n      id,\n      onClick,\n      onHover,\n      overflow = false,\n      round,\n      size: propsSize = defaultSize,\n      thickness = 'medium',\n      type = 'bar',\n      values: propsValues = defaultValues,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext);\n    const [values, setValues] = useState([]);\n    const [bounds, setBounds] = useState([\n      [0, 0],\n      [0, 0],\n    ]);\n    const [containerSize, setContainerSize] = useState([0, 0]);\n    const [size, setSize] = useState([0, 0]);\n    const [scale, setScale] = useState([1, 1]);\n    const [strokeWidth, setStrokeWidth] = useState(0);\n    const containerRef = ref || useRef();\n\n    // calculations\n    useEffect(() => {\n      const nextValues = normalizeValues(propsValues);\n      setValues(nextValues);\n\n      const nextBounds = normalizeBounds(propsBounds, nextValues);\n      setBounds(nextBounds);\n\n      const nextStrokeWidth = parseMetricToNum(\n        theme.global.edgeSize[thickness] || thickness,\n      );\n      setStrokeWidth(nextStrokeWidth);\n\n      const gapWidth = gap\n        ? parseMetricToNum(theme.global.edgeSize[gap] || gap)\n        : nextStrokeWidth;\n\n      // autoWidth is how wide we'd pefer\n      const autoWidth =\n        nextStrokeWidth * nextValues.length +\n        (nextValues.length - 1) * gapWidth;\n\n      const sizeWidth =\n        typeof propsSize === 'string'\n          ? propsSize\n          : propsSize.width || defaultSize.width;\n      let width;\n      if (sizeWidth === 'full') {\n        [width] = containerSize;\n      } else if (sizeWidth === 'auto') {\n        width = autoWidth;\n      } else {\n        width = parseMetricToNum(theme.global.size[sizeWidth] || sizeWidth);\n      }\n\n      const sizeHeight =\n        typeof propsSize === 'string'\n          ? propsSize\n          : propsSize.height || defaultSize.height;\n      let height;\n      if (sizeHeight === 'full') {\n        [, height] = containerSize;\n      } else {\n        height = parseMetricToNum(theme.global.size[sizeHeight] || sizeHeight);\n      }\n\n      setSize([width, height]);\n\n      const nextScale = [\n        (sizeWidth === 'auto' ? autoWidth : width) /\n          (nextBounds[0][1] - nextBounds[0][0]),\n        height / (nextBounds[1][1] - nextBounds[1][0]),\n      ];\n      setScale(nextScale);\n    }, [\n      containerSize,\n      gap,\n      propsBounds,\n      propsSize,\n      propsValues,\n      theme.global.edgeSize,\n      theme.global.size,\n      thickness,\n    ]);\n\n    // set container size when we get ref or when size changes\n    if (\n      containerRef.current &&\n      propsSize &&\n      (propsSize === 'full' ||\n        propsSize.height === 'full' ||\n        propsSize.width === 'full')\n    ) {\n      const containerNode = containerRef.current;\n      if (containerNode) {\n        const { parentNode } = containerNode;\n        if (parentNode) {\n          const rect = parentNode.getBoundingClientRect();\n          if (\n            rect.width !== containerSize[0] ||\n            rect.height !== containerSize[1]\n          ) {\n            setContainerSize([rect.width, rect.height]);\n          }\n        }\n      }\n    }\n\n    // container size, if needed\n    useEffect(() => {\n      const onResize = () => {\n        const { parentNode } = containerRef.current;\n        const rect = parentNode.getBoundingClientRect();\n        setContainerSize([rect.width, rect.height]);\n      };\n\n      if (\n        propsSize &&\n        (propsSize === 'full' ||\n          propsSize.width === 'full' ||\n          propsSize.height === 'full')\n      ) {\n        window.addEventListener('resize', onResize);\n        return () => window.removeEventListener('resize', onResize);\n      }\n      return undefined;\n    }, [containerRef, propsSize]);\n\n    const useGradient = color && Array.isArray(color);\n\n    let strokeDasharray;\n    if (dash) {\n      if (round) {\n        strokeDasharray = `${strokeWidth} ${strokeWidth * 1.5}`;\n      } else {\n        strokeDasharray = `${strokeWidth * 2} ${strokeWidth / 2}`;\n      }\n    }\n\n    const renderBars = () =>\n      (values || []).map((valueArg, index) => {\n        const { label, onHover: valueOnHover, value, ...valueRest } = valueArg;\n\n        const key = `p-${index}`;\n        const bottom = value.length === 2 ? bounds[1][0] : value[1];\n        const top = value.length === 2 ? value[1] : value[2];\n        if (top !== 0) {\n          const d =\n            `M ${(value[0] - bounds[0][0]) * scale[0]},` +\n            `${size[1] - (bottom - bounds[1][0]) * scale[1]}` +\n            ` L ${(value[0] - bounds[0][0]) * scale[0]},` +\n            `${size[1] - (top - bounds[1][0]) * scale[1]}`;\n\n          let hoverProps;\n          if (valueOnHover) {\n            hoverProps = {\n              onMouseOver: () => valueOnHover(true),\n              onMouseLeave: () => valueOnHover(false),\n            };\n          }\n          let clickProps;\n          if (onClick) {\n            clickProps = { onClick };\n          }\n\n          return (\n            <g key={key} fill=\"none\">\n              <title>{label}</title>\n              <path\n                d={d}\n                {...hoverProps}\n                {...clickProps}\n                {...valueRest}\n                strokeDasharray={strokeDasharray}\n              />\n            </g>\n          );\n        }\n        return undefined;\n      });\n\n    const renderLine = () => {\n      let d = '';\n      (values || []).forEach(({ value }, index) => {\n        d +=\n          `${index ? ' L' : 'M'} ${(value[0] - bounds[0][0]) * scale[0]},` +\n          `${size[1] - (value[1] - bounds[1][0]) * scale[1]}`;\n      });\n\n      let hoverProps;\n      if (onHover) {\n        hoverProps = {\n          onMouseOver: () => onHover(true),\n          onMouseLeave: () => onHover(false),\n        };\n      }\n      let clickProps;\n      if (onClick) {\n        clickProps = { onClick };\n      }\n\n      return (\n        <g fill=\"none\">\n          <path\n            d={d}\n            {...hoverProps}\n            {...clickProps}\n            strokeDasharray={strokeDasharray}\n          />\n        </g>\n      );\n    };\n\n    const renderArea = () => {\n      let d = '';\n      (values || []).forEach(({ value }, index) => {\n        const top = value.length === 2 ? value[1] : value[2];\n        d +=\n          `${!index ? 'M' : ' L'} ${(value[0] - bounds[0][0]) * scale[0]},` +\n          `${size[1] - (top - bounds[1][0]) * scale[1]}`;\n      });\n      (values || []).reverse().forEach(({ value }) => {\n        const bottom = value.length === 2 ? bounds[1][0] : value[1];\n        d +=\n          ` L ${(value[0] - bounds[0][0]) * scale[0]},` +\n          `${size[1] - (bottom - bounds[1][0]) * scale[1]}`;\n      });\n      if (d.length > 0) {\n        d += ' Z';\n      }\n\n      let hoverProps;\n      if (onHover) {\n        hoverProps = {\n          onMouseOver: () => onHover(true),\n          onMouseLeave: () => onHover(false),\n        };\n      }\n      let clickProps;\n      if (onClick) {\n        clickProps = { onClick };\n      }\n\n      return (\n        <g>\n          <path d={d} {...hoverProps} {...clickProps} />\n        </g>\n      );\n    };\n\n    const renderPoints = () =>\n      (values || []).map((valueArg, index) => {\n        const { label, onHover: valueOnHover, value, ...valueRest } = valueArg;\n\n        const key = `p-${index}`;\n\n        let hoverProps;\n        if (valueOnHover) {\n          hoverProps = {\n            onMouseOver: () => valueOnHover(true),\n            onMouseLeave: () => valueOnHover(false),\n          };\n        }\n        let clickProps;\n        if (onClick) {\n          clickProps = { onClick };\n        }\n\n        const center = value.length === 2 ? value[1] : value[2];\n        let shape;\n        if (round) {\n          const cx = (value[0] - bounds[0][0]) * scale[0];\n          const cy = size[1] - (center - bounds[1][0]) * scale[1];\n          shape = (\n            <circle\n              cx={cx}\n              cy={cy}\n              r={strokeWidth / 2}\n              {...hoverProps}\n              {...clickProps}\n              {...valueRest}\n            />\n          );\n        } else {\n          const x = (value[0] - bounds[0][0]) * scale[0] - strokeWidth / 2;\n          const y =\n            size[1] - (center - bounds[1][0]) * scale[1] - strokeWidth / 2;\n          shape = (\n            <rect\n              x={x}\n              y={y}\n              width={strokeWidth}\n              height={strokeWidth}\n              {...hoverProps}\n              {...clickProps}\n              {...valueRest}\n            />\n          );\n        }\n\n        return (\n          <g key={key} stroke=\"none\">\n            <title>{label}</title>\n            {shape}\n          </g>\n        );\n      });\n\n    let contents;\n    if (type === 'bar') {\n      contents = renderBars();\n    } else if (type === 'line') {\n      contents = renderLine();\n    } else if (type === 'area') {\n      contents = renderArea();\n    } else if (type === 'point') {\n      contents = renderPoints();\n    }\n\n    const viewBounds = overflow\n      ? [0, 0, size[0], size[1]]\n      : [\n          -(strokeWidth / 2),\n          -(strokeWidth / 2),\n          size[0] + strokeWidth,\n          size[1] + strokeWidth,\n        ];\n    const viewBox = viewBounds.join(' ');\n    let colorName;\n    if (!useGradient) {\n      if (color && color.color) colorName = color.color;\n      else if (color) colorName = color;\n      else if (theme.chart && theme.chart.color) colorName = theme.chart.color;\n    }\n    const opacity =\n      color && color.opacity ? theme.global.opacity[color.opacity] : undefined;\n\n    let stroke;\n    if (type !== 'point') {\n      if (useGradient) stroke = gradientMaskColor;\n      else stroke = normalizeColor(colorName, theme);\n    } else stroke = 'none';\n\n    let fill;\n    if (type === 'point' || type === 'area') {\n      if (useGradient) fill = gradientMaskColor;\n      else fill = normalizeColor(colorName, theme);\n    } else fill = 'none';\n\n    const drawing = (\n      <g\n        stroke={stroke}\n        strokeWidth={type !== 'point' ? strokeWidth : undefined}\n        fill={fill}\n        strokeLinecap={round ? 'round' : 'butt'}\n        strokeLinejoin={round ? 'round' : 'miter'}\n        opacity={opacity}\n      >\n        {contents}\n      </g>\n    );\n\n    let defs;\n    let gradientRect;\n    if (useGradient && size[1]) {\n      const gradientId = `${id}-gradient`;\n      const maskId = `${id}-mask`;\n      defs = (\n        <defs>\n          <linearGradient id={gradientId} x1={0} y1={0} x2={0} y2={1}>\n            {color\n              .sort((c1, c2) => c2.value - c1.value)\n              .map(({ value, color: gradientColor }) => (\n                <stop\n                  key={value}\n                  offset={\n                    (size[1] - (value - bounds[1][0]) * scale[1]) / size[1]\n                  }\n                  stopColor={normalizeColor(gradientColor, theme)}\n                />\n              ))}\n          </linearGradient>\n          <mask id={maskId}>{drawing}</mask>\n        </defs>\n      );\n\n      gradientRect = (\n        <rect\n          x={viewBounds[0]}\n          y={viewBounds[1]}\n          width={viewBounds[2]}\n          height={viewBounds[3]}\n          fill={`url(#${gradientId})`}\n          mask={`url(#${maskId})`}\n        />\n      );\n    }\n\n    return (\n      <StyledChart\n        ref={containerRef}\n        id={id}\n        viewBox={viewBox}\n        preserveAspectRatio=\"none\"\n        width={size === 'full' ? '100%' : size[0]}\n        height={size === 'full' ? '100%' : size[1]}\n        {...rest}\n      >\n        {defs}\n        {useGradient ? gradientRect : drawing}\n      </StyledChart>\n    );\n  },\n);\n\nChart.displayName = 'Chart';\n\nlet ChartDoc;\nif (process.env.NODE_ENV !== 'production') {\n  ChartDoc = require('./doc').doc(Chart); // eslint-disable-line global-require\n}\nconst ChartWrapper = ChartDoc || Chart;\n\nexport { ChartWrapper as Chart };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledChart = styled.svg`\n  display: block;\n  max-width: 100%;\n  overflow: visible;\n\n  ${genericStyles} ${props => props.theme.chart && props.theme.chart.extend};\n`;\n\nStyledChart.defaultProps = {};\nObject.setPrototypeOf(StyledChart.defaultProps, defaultProps);\n\nexport { StyledChart };\n","import { normalizeValues } from './utils';\n\nexport const calcs = (values, options = {}) => {\n  const coarseness = options.coarseness || 5;\n  const steps = options.steps || [1, 1];\n  const calcValues = normalizeValues(values || []);\n\n  let min;\n  let max;\n  if (options.min !== undefined && options.max !== undefined) {\n    ({ min, max } = options);\n  } else if (calcValues.length) {\n    // Calculate the max and min y values.\n    min = calcValues[0].value[1] || 0;\n    max = min;\n    calcValues.forEach(value => {\n      const y = value.value[1];\n      min = Math.min(min, y);\n      max = Math.max(max, y);\n      // handle ranges of values\n      if (value.value[2] !== undefined) {\n        const y2 = value.value[2];\n        min = Math.min(min, y2);\n        max = Math.max(max, y2);\n      }\n    });\n    min = options.min !== undefined ? options.min : min;\n    max = options.max !== undefined ? options.max : max;\n\n    // Calculate some reasonable y bounds based on the max and min y values.\n    // This is so values like 87342.12 don't end up being displayed as the\n    // graph axis edge label.\n    const delta = max - min;\n    const interval = Number.parseFloat((delta / coarseness).toPrecision(1));\n    max = max - (max % interval) + interval;\n    min -= min % interval;\n  }\n\n  const bounds = calcValues.length\n    ? [\n        [calcValues[0].value[0], calcValues[calcValues.length - 1].value[0]],\n        [min, max],\n      ]\n    : [[], []];\n  const dimensions = [bounds[0][1] - bounds[0][0], bounds[1][1] - bounds[1][0]];\n\n  // Calculate x and y axis values across the specfied number of steps.\n  const yAxis = [];\n  let y = bounds[1][1];\n  const yStepInterval = dimensions[1] / steps[1];\n  while (y >= bounds[1][0]) {\n    yAxis.push(y);\n    y -= yStepInterval;\n  }\n\n  const xAxis = [];\n  let x = bounds[0][0];\n  const xStepInterval = dimensions[0] / steps[0];\n  while (\n    (xStepInterval > 0 && x <= bounds[0][1]) ||\n    (xStepInterval < 0 && x >= bounds[0][1])\n  ) {\n    xAxis.push(x);\n    x += xStepInterval;\n  }\n\n  // Set bar thickness based on number of values being rendered.\n  // Someday, it would be better to include the actual rendered size.\n  // These values were emirically determined, trying to balance visibility\n  // and overlap across resolutions.\n  let thickness;\n  let pad;\n  if (calcValues.length < 5) {\n    thickness = 'xlarge';\n    pad = 'large';\n  } else if (calcValues.length < 11) {\n    thickness = 'large';\n    pad = 'medium';\n  } else if (calcValues.length < 21) {\n    thickness = 'medium';\n    pad = 'small';\n  } else if (calcValues.length < 61) {\n    thickness = 'small';\n    pad = 'xsmall';\n  } else if (calcValues.length < 121) {\n    thickness = 'xsmall';\n    pad = 'xxsmall';\n  } else {\n    thickness = 'hair';\n  }\n\n  return { axis: [xAxis, yAxis], bounds, dimensions, pad, thickness };\n};\n","import React, { forwardRef, useContext, useEffect, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { removeUndefined } from '../../utils/object';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { FormContext } from '../Form/FormContext';\n\nimport {\n  StyledCheckBox,\n  StyledCheckBoxBox,\n  StyledCheckBoxIcon,\n  StyledCheckBoxContainer,\n  StyledCheckBoxInput,\n  StyledCheckBoxToggle,\n  StyledCheckBoxKnob,\n} from './StyledCheckBox';\n\nimport { normalizeColor } from '../../utils';\n\nconst stopLabelClick = event => {\n  // prevents clicking on the label trigging the event twice\n  // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n  if (event.target.type !== 'checkbox') {\n    event.stopPropagation();\n  }\n};\n\nconst CheckBox = forwardRef(\n  (\n    {\n      checked: checkedProp,\n      disabled,\n      focus: focusProp,\n      id,\n      label,\n      name,\n      onBlur,\n      onChange,\n      onFocus,\n      reverse,\n      toggle,\n      indeterminate,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const formContext = useContext(FormContext);\n\n    const [checked, setChecked] = formContext.useFormContext(\n      name,\n      checkedProp,\n      false,\n    );\n\n    const [focus, setFocus] = useState(focusProp);\n    useEffect(() => setFocus(focusProp), [focusProp]);\n\n    useEffect(() => {\n      if (checkedProp && indeterminate) {\n        console.warn(\n          'Checkbox cannot be \"checked\" and \"indeterminate\" at the same time.',\n        );\n      }\n\n      if (toggle && indeterminate) {\n        console.warn(\n          'Checkbox of type toggle does not have \"indeterminate\" state.',\n        );\n      }\n    }, [checkedProp, toggle, indeterminate]);\n\n    const themeableProps = {\n      checked,\n      disabled,\n      focus,\n      reverse,\n      toggle,\n      indeterminate,\n    };\n\n    let hidden;\n    if (disabled && checked) {\n      hidden = <input name={name} type=\"hidden\" value=\"true\" />;\n    }\n\n    const {\n      checked: CheckedIcon,\n      indeterminate: IndeterminateIcon,\n    } = theme.checkBox.icons;\n\n    let borderColor = normalizeColor(theme.checkBox.border.color, theme);\n    if (checked) {\n      borderColor = normalizeColor(theme.checkBox.color || 'control', theme);\n    }\n\n    const visual = toggle ? (\n      <StyledCheckBoxToggle {...themeableProps}>\n        <StyledCheckBoxKnob {...themeableProps} />\n      </StyledCheckBoxToggle>\n    ) : (\n      <StyledCheckBoxBox\n        as={Box}\n        align=\"center\"\n        justify=\"center\"\n        width={theme.checkBox.size}\n        height={theme.checkBox.size}\n        border={{\n          size: theme.checkBox.border.width,\n          color: borderColor,\n        }}\n        round={theme.checkBox.check.radius}\n        {...themeableProps}\n      >\n        {!indeterminate &&\n          checked &&\n          (CheckedIcon ? (\n            <CheckedIcon theme={theme} as={StyledCheckBoxIcon} />\n          ) : (\n            <StyledCheckBoxIcon\n              theme={theme}\n              viewBox=\"0 0 24 24\"\n              preserveAspectRatio=\"xMidYMid meet\"\n              {...themeableProps}\n            >\n              <path fill=\"none\" d=\"M6,11.3 L10.3,16 L18,6.2\" />\n            </StyledCheckBoxIcon>\n          ))}\n        {!checked &&\n          indeterminate &&\n          (IndeterminateIcon ? (\n            <IndeterminateIcon theme={theme} as={StyledCheckBoxIcon} />\n          ) : (\n            <StyledCheckBoxIcon\n              theme={theme}\n              viewBox=\"0 0 24 24\"\n              preserveAspectRatio=\"xMidYMid meet\"\n              {...themeableProps}\n            >\n              <path fill=\"none\" d=\"M6,12 L18,12\" />\n            </StyledCheckBoxIcon>\n          ))}\n      </StyledCheckBoxBox>\n    );\n\n    const side = reverse ? 'left' : 'right';\n    const checkBoxNode = (\n      <StyledCheckBox\n        as={Box}\n        align=\"center\"\n        justify=\"center\"\n        margin={label && { [side]: theme.checkBox.gap || 'small' }}\n        {...themeableProps}\n      >\n        <StyledCheckBoxInput\n          {...rest}\n          ref={ref}\n          type=\"checkbox\"\n          {...removeUndefined({\n            id,\n            name,\n            checked,\n            disabled,\n          })}\n          {...themeableProps}\n          onFocus={event => {\n            setFocus(true);\n            if (onFocus) onFocus(event);\n          }}\n          onBlur={event => {\n            setFocus(false);\n            if (onBlur) onBlur(event);\n          }}\n          onChange={event => {\n            setChecked(event.target.checked);\n            if (onChange) onChange(event);\n          }}\n        />\n        {visual}\n        {hidden}\n      </StyledCheckBox>\n    );\n\n    const normalizedLabel =\n      typeof label === 'string' ? <span>{label}</span> : label;\n\n    const first = reverse ? normalizedLabel : checkBoxNode;\n    const second = reverse ? checkBoxNode : normalizedLabel;\n\n    return (\n      <StyledCheckBoxContainer\n        reverse={reverse}\n        {...removeUndefined({ htmlFor: id, disabled })}\n        checked={checked}\n        onClick={stopLabelClick}\n        {...themeableProps}\n      >\n        {first}\n        {second}\n      </StyledCheckBoxContainer>\n    );\n  },\n);\n\nCheckBox.displayName = 'CheckBox';\n\nlet CheckBoxDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  CheckBoxDoc = require('./doc').doc(CheckBox);\n}\nconst CheckBoxWrapper = CheckBoxDoc || CheckBox;\n\nexport { CheckBoxWrapper as CheckBox };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n  opacity: 0.5;\n  cursor: default;\n`;\n\nconst hoverStyle = css`\n  :hover input:not([disabled]) + div,\n  :hover input:not([disabled]) + span {\n    border-color: ${props =>\n      normalizeColor(props.theme.checkBox.hover.border.color, props.theme)};\n  }\n`;\n\nconst StyledCheckBoxIcon = styled.svg`\n  box-sizing: border-box;\n  stroke-width: ${props => props.theme.checkBox.check.thickness};\n  stroke: ${props =>\n    normalizeColor(props.theme.checkBox.color || 'control', props.theme)};\n  width: ${props =>\n    props.theme.checkBox.icon.size || props.theme.checkBox.size};\n  height: ${props =>\n    props.theme.checkBox.icon.size || props.theme.checkBox.size};\n  ${props => props.theme.checkBox.icon.extend};\n`;\n\nStyledCheckBoxIcon.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxIcon.defaultProps, defaultProps);\n\nconst StyledCheckBoxContainer = styled.label`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  user-select: none;\n  width: fit-content;\n  ${props => props.disabled && disabledStyle}\n  ${props => !props.disabled && 'cursor: pointer;'}\n  ${props => props.theme.checkBox.hover.border.color && hoverStyle}\n  ${props => props.theme.checkBox.extend}\n`;\n\nStyledCheckBoxContainer.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxContainer.defaultProps, defaultProps);\n\nconst StyledCheckBoxInput = styled.input`\n  opacity: 0;\n  -moz-appearance: none;\n  width: 0;\n  height: 0;\n  margin: 0;\n\n  ${props => !props.disabled && 'cursor: pointer;'} :checked + span > span {\n    left: calc(\n      ${props => props.theme.checkBox.toggle.size} -\n        ${props => props.theme.checkBox.size}\n    );\n    background: ${props =>\n      normalizeColor(props.theme.checkBox.color || 'control', props.theme)};\n  }\n`;\n\nStyledCheckBoxInput.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxInput.defaultProps, defaultProps);\n\nconst StyledCheckBoxBox = styled.div`\n  ${props => props.focus && focusStyle};\n  ${props => props.theme.checkBox.check.extend};\n`;\n\nStyledCheckBoxBox.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxBox.defaultProps, defaultProps);\n\nconst StyledCheckBoxToggle = styled.span`\n  box-sizing: border-box;\n  vertical-align: middle;\n  display: inline-block;\n  width: ${props => props.theme.checkBox.toggle.size};\n  height: ${props => props.theme.checkBox.size};\n  border: ${props => props.theme.checkBox.border.width} solid;\n  border-color: ${props =>\n    normalizeColor(props.theme.checkBox.border.color, props.theme)};\n  border-radius: ${props => props.theme.checkBox.toggle.radius};\n  background-color: ${props =>\n    props.theme.checkBox.toggle.background\n      ? normalizeColor(props.theme.checkBox.toggle.background, props.theme)\n      : 'transparent'};\n\n  ${props => props.focus && focusStyle};\n  ${props => props.theme.checkBox.toggle.extend};\n`;\n\nStyledCheckBoxToggle.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxToggle.defaultProps, defaultProps);\n\nconst StyledCheckBoxKnob = styled.span`\n  box-sizing: border-box;\n  position: relative;\n  display: inherit;\n  top: -${props => props.theme.checkBox.border.width};\n  left: -${props => props.theme.checkBox.border.width};\n  transition: all 0.3s;\n  width: ${props => props.theme.checkBox.size};\n  height: ${props => props.theme.checkBox.size};\n  background: ${props =>\n    normalizeColor(\n      props.theme.checkBox.toggle.color[props.theme.dark ? 'dark' : 'light'],\n      props.theme,\n    )};\n  border-radius: ${props => props.theme.checkBox.toggle.radius};\n  ${props => props.theme.checkBox.toggle.knob.extend};\n`;\n\nStyledCheckBoxKnob.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBoxKnob.defaultProps, defaultProps);\n\nconst StyledCheckBox = styled.div`\n  flex-shrink: 0;\n`;\n\nStyledCheckBox.defaultProps = {};\nObject.setPrototypeOf(StyledCheckBox.defaultProps, defaultProps);\n\nexport {\n  StyledCheckBoxIcon,\n  StyledCheckBoxContainer,\n  StyledCheckBoxInput,\n  StyledCheckBoxBox,\n  StyledCheckBoxToggle,\n  StyledCheckBoxKnob,\n  StyledCheckBox,\n};\n","export { Clock } from './Clock';\n","import React, { Component } from 'react';\n\nimport { Analog } from './Analog';\nimport { Digital } from './Digital';\n\nconst TIME_REGEXP = /T([0-9]{2}):([0-9]{2})(?::([0-9.,]{2,}))?/;\nconst DURATION_REGEXP = /^(-|\\+)?P.*T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?$/;\n\nconst parseTime = (time, hourLimit) => {\n  const result = {};\n  if (time) {\n    let match = DURATION_REGEXP.exec(time);\n    if (match) {\n      result.hours = parseFloat(match[2]);\n      if (hourLimit === 12) {\n        result.hours12 = result.hours > 12 ? result.hours - 12 : result.hours;\n      }\n      result.minutes = parseFloat(match[3]) || 0;\n      result.seconds = parseFloat(match[4]) || 0;\n      result.duration = true;\n    } else {\n      match = TIME_REGEXP.exec(time);\n      if (match) {\n        result.hours = parseFloat(match[1]);\n        if (hourLimit === 12) {\n          result.hours12 = result.hours > 12 ? result.hours - 12 : result.hours;\n        }\n        result.minutes = parseFloat(match[2]) || 0;\n        result.seconds = parseFloat(match[3]) || 0;\n      } else {\n        console.error(`Grommet Clock cannot parse '${time}'`);\n      }\n    }\n  } else {\n    const date = new Date();\n    result.hours = date.getHours();\n    result.minutes = date.getMinutes();\n    result.seconds = date.getSeconds();\n  }\n  return result;\n};\n\nclass Clock extends Component {\n  static defaultProps = {\n    hourLimit: 24,\n    precision: 'seconds',\n    run: 'forward',\n    size: 'medium',\n    type: 'analog',\n  };\n\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { hourLimit, time } = nextProps;\n    const { elements } = prevState;\n    if (!elements || time) {\n      const nextElements = parseTime(time, hourLimit);\n      if (!elements) {\n        return { elements: nextElements };\n      }\n      if (\n        Object.keys(nextElements).some(k => elements[k] !== nextElements[k])\n      ) {\n        return { elements: nextElements };\n      }\n    }\n    return null;\n  }\n\n  state = {};\n\n  componentDidMount() {\n    const { run } = this.props;\n    if (run) {\n      this.run();\n    }\n  }\n\n  componentDidUpdate(prevProps) {\n    const { run } = this.props;\n    if (run && !prevProps.run) {\n      this.run();\n    } else if (!run && prevProps.run) {\n      clearInterval(this.timer);\n    }\n  }\n\n  componentWillUnmount() {\n    clearInterval(this.timer);\n  }\n\n  run() {\n    const { hourLimit, onChange, precision, run } = this.props;\n    const { elements } = this.state;\n\n    // set the interval time based on the precision\n    let interval = 1000;\n    let increment = 'seconds';\n    if (precision !== 'seconds' && elements.seconds === 0) {\n      interval *= 60;\n      increment = 'minutes';\n      if (precision !== 'minutes' && elements.minutes === 0) {\n        interval *= 60;\n        increment = 'hours';\n      }\n    }\n\n    clearInterval(this.timer);\n    this.timer = setInterval(() => {\n      const { elements: previousElements } = this.state;\n      const nextElements = { ...previousElements };\n\n      // adjust time based on precision\n      if (increment === 'seconds') {\n        if (run === 'backward') {\n          nextElements.seconds -= 1;\n        } else {\n          nextElements.seconds += 1;\n        }\n      } else if (increment === 'minutes') {\n        if (run === 'backward') {\n          nextElements.minutes -= 1;\n        } else {\n          nextElements.minutes += 1;\n        }\n      } else if (increment === 'hours') {\n        if (run === 'backward') {\n          nextElements.hours -= 1;\n        } else {\n          nextElements.hours += 1;\n        }\n      }\n\n      // deal with overflows\n      if (nextElements.seconds >= 60) {\n        nextElements.minutes += Math.floor(nextElements.seconds / 60);\n        nextElements.seconds = 0;\n      } else if (nextElements.seconds < 0) {\n        nextElements.minutes += Math.floor(nextElements.seconds / 60);\n        nextElements.seconds = 59;\n      }\n      if (nextElements.minutes >= 60) {\n        nextElements.hours += Math.floor(nextElements.minutes / 60);\n        nextElements.minutes = 0;\n      } else if (nextElements.minutes < 0) {\n        nextElements.hours += Math.floor(nextElements.minutes / 60);\n        nextElements.minutes = 59;\n      }\n      if (nextElements.hours >= 24 || nextElements.hours < 0) {\n        nextElements.hours = 0;\n      }\n      if (hourLimit === 12) {\n        nextElements.hours12 =\n          nextElements.hours > 12\n            ? nextElements.hours - 12\n            : nextElements.hours;\n      }\n\n      this.setState({ elements: nextElements }, () => {\n        if (onChange) {\n          const { elements: e2 } = this.state;\n          if (elements.duration) {\n            onChange(`P${e2.hours}H${e2.minutes}M${e2.seconds}S`);\n          } else {\n            onChange(`T${e2.hours}:${e2.minutes}:${e2.seconds}`);\n          }\n        }\n      });\n    }, interval);\n  }\n\n  render() {\n    const { type, ...rest } = this.props;\n    const { elements } = this.state;\n    let content;\n    if (type === 'analog') {\n      content = <Analog elements={elements} {...rest} />;\n    } else if (type === 'digital') {\n      content = <Digital elements={elements} {...rest} />;\n    }\n\n    return content;\n  }\n}\n\nlet ClockDoc;\nif (process.env.NODE_ENV !== 'production') {\n  ClockDoc = require('./doc').doc(Clock); // eslint-disable-line global-require\n}\nconst ClockWrapper = ClockDoc || Clock;\n\nexport { ClockWrapper as Clock };\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { parseMetricToNum } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport {\n  StyledAnalog,\n  StyledHour,\n  StyledMinute,\n  StyledSecond,\n} from './StyledClock';\n\n// this will serve both minutes and hours (360 / 6)\nconst ANGLE_UNIT = 6;\n// 360 / 12\nconst HOUR_ANGLE_UNIT = 30;\n\nconst getClockDimensions = theme => ({\n  size: parseMetricToNum(theme.clock.analog.size.medium),\n  secondSize: parseMetricToNum(theme.clock.analog.second.size),\n  minuteSize: parseMetricToNum(theme.clock.analog.minute.size),\n  hourSize: parseMetricToNum(theme.clock.analog.hour.size),\n});\n\nconst getClockState = ({ hours, minutes, seconds }) => {\n  const hour12 = hours > 12 ? hours - 12 : hours;\n  const minuteAngle = minutes * ANGLE_UNIT;\n\n  return {\n    // offset hour angle by half of the minute angle so that it gets closer\n    // to the next hour\n    hourAngle: hour12 * HOUR_ANGLE_UNIT + minutes / 2,\n    minuteAngle,\n    secondAngle: seconds * ANGLE_UNIT,\n  };\n};\n\nclass Analog extends Component {\n  static defaultProps = {\n    size: 'medium',\n  };\n\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { elements } = nextProps;\n    const nextState = getClockState(elements);\n    if (\n      prevState.hourAngle === undefined ||\n      Object.keys(nextState).some(k => prevState[k] !== nextState[k])\n    ) {\n      return nextState;\n    }\n    return null;\n  }\n\n  state = {};\n\n  render() {\n    const { precision, theme, ...rest } = this.props;\n    const { hourAngle, minuteAngle, secondAngle } = this.state;\n    const { size, secondSize, minuteSize, hourSize } = getClockDimensions(\n      theme,\n    );\n    const halfSize = size / 2;\n\n    let secondHand;\n    if (precision === 'seconds') {\n      secondHand = (\n        <StyledSecond\n          x1={halfSize}\n          y1={halfSize}\n          x2={halfSize}\n          y2={secondSize}\n          stroke=\"#000000\"\n          strokeLinecap={theme.clock.analog.second.shape}\n          style={{\n            transform: `rotate(${secondAngle}deg)`,\n            transformOrigin: `${halfSize}px ${halfSize}px`,\n          }}\n        />\n      );\n    }\n\n    let minuteHand;\n    if (precision === 'seconds' || precision === 'minutes') {\n      minuteHand = (\n        <StyledMinute\n          x1={halfSize}\n          y1={halfSize}\n          x2={halfSize}\n          y2={minuteSize}\n          stroke=\"#000000\"\n          strokeLinecap={theme.clock.analog.minute.shape}\n          style={{\n            transform: `rotate(${minuteAngle}deg)`,\n            transformOrigin: `${halfSize}px ${halfSize}px`,\n          }}\n        />\n      );\n    }\n\n    return (\n      <StyledAnalog\n        version=\"1.1\"\n        width={size}\n        height={size}\n        preserveAspectRatio=\"xMidYMid meet\"\n        viewBox={`0 0 ${size} ${size}`}\n        {...rest}\n      >\n        {secondHand}\n        {minuteHand}\n        <StyledHour\n          x1={halfSize}\n          y1={halfSize}\n          x2={halfSize}\n          y2={hourSize}\n          stroke=\"#000000\"\n          strokeLinecap={theme.clock.analog.hour.shape}\n          style={{\n            transform: `rotate(${hourAngle}deg)`,\n            transformOrigin: `${halfSize}px ${halfSize}px`,\n          }}\n        />\n      </StyledAnalog>\n    );\n  }\n}\n\nObject.setPrototypeOf(Analog.defaultProps, defaultProps);\n\nconst AnalogWrapper = compose(withTheme)(Analog);\n\nexport { AnalogWrapper as Analog };\n","import React, { Component } from 'react';\n\nimport { Box } from '../Box';\n\nimport {\n  StyledDigitalDigit,\n  StyledDigitalNext,\n  StyledDigitalPrevious,\n} from './StyledClock';\n\nclass Digit extends Component {\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { number } = nextProps;\n    if (number !== prevState.number) {\n      return { previous: prevState.number, number };\n    }\n    return null;\n  }\n\n  state = {};\n\n  componentDidUpdate(prevProps, prevState) {\n    const { previous } = this.state;\n    if (prevState.previous === undefined && previous !== undefined) {\n      clearTimeout(this.timer);\n      this.timer = setTimeout(() => {\n        this.setState({ previous: undefined });\n      }, 900);\n    }\n  }\n\n  componentWillUnmount() {\n    clearTimeout(this.timer);\n  }\n\n  render() {\n    /* eslint-disable-next-line react/prop-types */\n    const { run, size } = this.props;\n    const { number, previous } = this.state;\n    if (previous !== undefined) {\n      const direction = run === 'backward' ? 'down' : 'up';\n      return (\n        <StyledDigitalDigit size={size}>\n          <StyledDigitalPrevious direction={direction}>\n            {Math.floor(previous)}\n          </StyledDigitalPrevious>\n          <StyledDigitalNext direction={direction}>\n            {Math.floor(number)}\n          </StyledDigitalNext>\n        </StyledDigitalDigit>\n      );\n    }\n    return (\n      <StyledDigitalDigit size={size}>{Math.floor(number)}</StyledDigitalDigit>\n    );\n  }\n}\n\nconst Element = ({ number, run, sep, size }) => {\n  const tens = Math.floor(number / 10);\n  const ones = number % 10;\n  const result = [\n    <Digit key=\"tens\" run={run} size={size} number={tens} />,\n    <Digit key=\"ones\" run={run} size={size} number={ones} />,\n  ];\n  if (sep) {\n    result.unshift(\n      <StyledDigitalDigit key=\"sep\" size={size}>\n        :\n      </StyledDigitalDigit>,\n    );\n  }\n  return result;\n};\n\nexport const Digital = props => {\n  const { elements, precision, run, size, ...rest } = props;\n  let seconds;\n  if (precision === 'seconds') {\n    seconds = <Element number={elements.seconds} run={run} size={size} sep />;\n  }\n  let minutes;\n  if (precision === 'minutes' || precision === 'seconds') {\n    minutes = <Element number={elements.minutes} run={run} size={size} sep />;\n  }\n  return (\n    <Box direction=\"row\" {...rest}>\n      <Element\n        number={elements.hours12 || elements.hours}\n        run={run}\n        size={size}\n      />\n      {minutes}\n      {seconds}\n    </Box>\n  );\n};\n","export { DataTable } from './DataTable';\n","import React, { useCallback, useMemo, useState } from 'react';\n\nimport { Header } from './Header';\nimport { Footer } from './Footer';\nimport { Body } from './Body';\nimport { GroupedBody } from './GroupedBody';\nimport {\n  buildFooterValues,\n  buildGroups,\n  buildGroupState,\n  filterAndSortData,\n  initializeFilters,\n  normalizePrimaryProperty,\n} from './buildState';\nimport { StyledDataTable } from './StyledDataTable';\n\nconst contexts = ['header', 'body', 'footer'];\n\nconst normalizeProp = (prop, context) => {\n  if (prop) {\n    if (prop[context]) return prop[context];\n    if (contexts.some(c => prop[c])) return undefined;\n    return prop;\n  }\n  return undefined;\n};\n\nconst DataTable = ({\n  background,\n  border,\n  columns = [],\n  data = [],\n  groupBy,\n  onClickRow, // removing unknown DOM attributes\n  onMore,\n  onSearch, // removing unknown DOM attributes\n  onSort: onSortProp,\n  replace,\n  pad,\n  primaryKey,\n  resizeable,\n  rowProps,\n  size,\n  sort: sortProp,\n  sortable,\n  step = 50,\n  ...rest\n}) => {\n  // property name of the primary property\n  const primaryProperty = useMemo(\n    () => normalizePrimaryProperty(columns, primaryKey),\n    [columns, primaryKey],\n  );\n\n  // whether or not we should show a footer\n  const showFooter = useMemo(() => columns.filter(c => c.footer).length > 0, [\n    columns,\n  ]);\n\n  // what column we are actively capturing filter input on\n  const [filtering, setFiltering] = useState();\n\n  // the currently active filters\n  const [filters, setFilters] = useState(initializeFilters(columns));\n\n  // which column we are sorting on, with direction\n  const [sort, setSort] = useState(sortProp || {});\n\n  // the data filtered and sorted, if needed\n  const adjustedData = useMemo(\n    () => filterAndSortData(data, filters, onSearch, sort),\n    [data, filters, onSearch, sort],\n  );\n\n  // the values to put in the footer cells\n  const footerValues = useMemo(() => buildFooterValues(columns, adjustedData), [\n    adjustedData,\n    columns,\n  ]);\n\n  // if groupBy, an array with one item per unique groupBy key value\n  const groups = useMemo(() => buildGroups(columns, adjustedData, groupBy), [\n    adjustedData,\n    columns,\n    groupBy,\n  ]);\n\n  // an object indicating which group values are expanded\n  const [groupState, setGroupState] = useState(\n    buildGroupState(groups, groupBy),\n  );\n\n  // any customized column widths\n  const [widths, setWidths] = useState({});\n\n  // remember that we are filtering on this property\n  const onFiltering = property => setFiltering(property);\n\n  // remember the search text we should filter this property by\n  const onFilter = (property, value) => {\n    const nextFilters = { ...filters };\n    nextFilters[property] = value;\n    setFilters(nextFilters);\n    // Let caller know about search, if interested\n    if (onSearch) onSearch(nextFilters);\n  };\n\n  // toggle the sort direction on this property\n  const onSort = property => () => {\n    let direction;\n    if (!sort || property !== sort.property) direction = 'asc';\n    else if (sort.direction === 'asc') direction = 'desc';\n    else direction = 'asc';\n    const nextSort = { property, direction };\n    setSort(nextSort);\n    if (onSortProp) onSortProp(nextSort);\n  };\n\n  // toggle whether the group is expanded\n  const onToggleGroup = groupValue => () => {\n    const nextGroupState = { ...groupState };\n    nextGroupState[groupValue] = {\n      ...nextGroupState[groupValue],\n      expanded: !nextGroupState[groupValue].expanded,\n    };\n    setGroupState(nextGroupState);\n    if (groupBy.onExpand) {\n      const expandedKeys = Object.keys(nextGroupState).filter(\n        k => nextGroupState[k].expanded,\n      );\n      groupBy.onExpand(expandedKeys);\n    }\n  };\n\n  // toggle whether all groups are expanded\n  const onToggleGroups = () => {\n    const expanded =\n      Object.keys(groupState).filter(k => !groupState[k].expanded).length === 0;\n    const nextGroupState = {};\n    Object.keys(groupState).forEach(k => {\n      nextGroupState[k] = { ...groupState[k], expanded: !expanded };\n    });\n    setGroupState(nextGroupState);\n    if (groupBy.onExpand) {\n      const expandedKeys = Object.keys(nextGroupState).filter(\n        k => nextGroupState[k].expanded,\n      );\n      groupBy.onExpand(expandedKeys);\n    }\n  };\n\n  // remember the width this property's column should be\n  const onResize = useCallback(\n    (property, width) => {\n      if (widths[property] !== width) {\n        const nextWidths = { ...widths };\n        nextWidths[property] = width;\n        setWidths(nextWidths);\n      }\n    },\n    [widths],\n  );\n\n  if (size && resizeable) {\n    console.warn('DataTable cannot combine \"size\" and \"resizeble\".');\n  }\n\n  return (\n    <StyledDataTable {...rest}>\n      <Header\n        background={normalizeProp(background, 'header')}\n        border={normalizeProp(border, 'header')}\n        columns={columns}\n        filtering={filtering}\n        filters={filters}\n        groups={groups}\n        groupState={groupState}\n        pad={normalizeProp(pad, 'header')}\n        size={size}\n        sort={sort}\n        widths={widths}\n        onFiltering={onFiltering}\n        onFilter={onFilter}\n        onResize={resizeable ? onResize : undefined}\n        onSort={sortable || sortProp || onSortProp ? onSort : undefined}\n        onToggle={onToggleGroups}\n      />\n      {groups ? (\n        <GroupedBody\n          background={normalizeProp(background, 'body')}\n          border={normalizeProp(border, 'body')}\n          columns={columns}\n          groupBy={groupBy.property ? groupBy.property : groupBy}\n          groups={groups}\n          groupState={groupState}\n          pad={normalizeProp(pad, 'body')}\n          primaryProperty={primaryProperty}\n          onToggle={onToggleGroup}\n          size={size}\n        />\n      ) : (\n        <Body\n          background={normalizeProp(background, 'body')}\n          border={normalizeProp(border, 'body')}\n          columns={columns}\n          data={adjustedData}\n          onMore={onMore}\n          replace={replace}\n          onClickRow={onClickRow}\n          pad={normalizeProp(pad, 'body')}\n          primaryProperty={primaryProperty}\n          rowProps={rowProps}\n          size={size}\n          step={step}\n        />\n      )}\n      {showFooter && (\n        <Footer\n          background={normalizeProp(background, 'footer')}\n          border={normalizeProp(border, 'footer')}\n          columns={columns}\n          footerValues={footerValues}\n          groups={groups}\n          pad={normalizeProp(pad, 'footer')}\n          primaryProperty={primaryProperty}\n          size={size}\n        />\n      )}\n    </StyledDataTable>\n  );\n};\n\nlet DataTableDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  DataTableDoc = require('./doc').doc(DataTable);\n}\nconst DataTableWrapper = DataTableDoc || DataTable;\n\nexport { DataTableWrapper as DataTable };\n","import React from 'react';\nimport { compose } from 'recompose';\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { TableCell } from '../TableCell';\nimport { Text } from '../Text';\n\nimport { Resizer } from './Resizer';\nimport { Searcher } from './Searcher';\nimport { ExpanderCell } from './ExpanderCell';\nimport { StyledDataTableHeader, StyledDataTableRow } from './StyledDataTable';\n\nconst Header = ({\n  background,\n  border,\n  columns,\n  filtering,\n  filters,\n  groups,\n  groupState,\n  onFilter,\n  onFiltering,\n  onResize,\n  onSort,\n  onToggle,\n  pad,\n  sort,\n  theme,\n  widths,\n  ...rest\n}) => {\n  return (\n    <StyledDataTableHeader {...rest}>\n      <StyledDataTableRow>\n        {groups && (\n          <ExpanderCell\n            context=\"header\"\n            expanded={\n              Object.keys(groupState).filter(k => !groupState[k].expanded)\n                .length === 0\n            }\n            onToggle={onToggle}\n          />\n        )}\n\n        {columns.map(\n          ({ property, header, align, search, sortable, verticalAlign }) => {\n            let content =\n              typeof header === 'string' ? <Text>{header}</Text> : header;\n\n            if (onSort && sortable !== false) {\n              const Icon =\n                onSort &&\n                sortable !== false &&\n                sort &&\n                sort.property === property &&\n                theme.dataTable.icons[\n                  sort.ascending ? 'ascending' : 'descending'\n                ];\n              content = (\n                <Button plain fill=\"vertical\" onClick={onSort(property)}>\n                  <Box direction=\"row\" align=\"center\" gap=\"xsmall\">\n                    {content}\n                    {Icon && <Icon />}\n                  </Box>\n                </Button>\n              );\n            }\n\n            if (search || onResize) {\n              const resizer = onResize ? (\n                <Resizer property={property} onResize={onResize} />\n              ) : null;\n              const searcher =\n                search && filters ? (\n                  <Searcher\n                    filtering={filtering}\n                    filters={filters}\n                    property={property}\n                    onFilter={onFilter}\n                    onFiltering={onFiltering}\n                  />\n                ) : null;\n              content = (\n                <Box\n                  direction=\"row\"\n                  align=\"center\"\n                  justify={!align || align === 'start' ? 'between' : align}\n                  gap=\"small\"\n                  fill=\"vertical\"\n                  style={onResize ? { position: 'relative' } : undefined}\n                >\n                  {content}\n                  {searcher && resizer ? (\n                    <Box\n                      flex=\"shrink\"\n                      direction=\"row\"\n                      align=\"center\"\n                      gap=\"small\"\n                    >\n                      {searcher}\n                      {resizer}\n                    </Box>\n                  ) : (\n                    searcher || resizer\n                  )}\n                </Box>\n              );\n            }\n\n            return (\n              <TableCell\n                key={property}\n                align={align}\n                verticalAlign={verticalAlign}\n                background={background}\n                border={border}\n                pad={pad}\n                plain\n                scope=\"col\"\n                style={\n                  widths && widths[property]\n                    ? { width: widths[property] }\n                    : undefined\n                }\n              >\n                {content}\n              </TableCell>\n            );\n          },\n        )}\n      </StyledDataTableRow>\n    </StyledDataTableHeader>\n  );\n};\n\nHeader.defaultProps = {};\nObject.setPrototypeOf(Header.defaultProps, defaultProps);\n\nconst HeaderWrapper = compose(withTheme)(Header);\n\nexport { HeaderWrapper as Header };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableCell } from '../Table/StyledTable';\n\nconst verticalAlignToJustify = {\n  middle: 'center',\n  top: 'start',\n  bottom: 'end',\n};\n\nconst TableCell = ({\n  align,\n  background,\n  border,\n  children,\n  colSpan,\n  pad,\n  plain,\n  scope,\n  size,\n  theme,\n  verticalAlign,\n  ...rest\n}) => (\n  <TableContext.Consumer>\n    {tableContext => {\n      let tableContextTheme;\n      if (tableContext === 'header') {\n        tableContextTheme = theme.table && theme.table.header;\n      } else if (tableContext === 'footer') {\n        tableContextTheme = theme.table && theme.table.footer;\n      } else {\n        tableContextTheme = theme.table && theme.table.body;\n      }\n      // merge tabelContextTheme and rest\n      const mergedProps = { ...tableContextTheme, ...rest };\n      Object.keys(mergedProps).forEach(key => {\n        if (rest[key] === undefined) mergedProps[key] = tableContextTheme[key];\n      });\n      // split out background, border, and pad\n      const cellProps = {\n        align: align || mergedProps.align || undefined,\n        background: background || mergedProps.background || undefined,\n        border: border || mergedProps.border || undefined,\n        pad: pad || mergedProps.pad || undefined,\n        verticalAlign: verticalAlign || mergedProps.verticalAlign || undefined,\n      };\n      delete mergedProps.align;\n      delete mergedProps.background;\n      delete mergedProps.border;\n      delete mergedProps.pad;\n      delete mergedProps.verticalAlign;\n\n      return (\n        <StyledTableCell\n          as={scope ? 'th' : undefined}\n          scope={scope}\n          size={size}\n          colSpan={colSpan}\n          tableContext={tableContext}\n          tableContextTheme={tableContextTheme}\n          {...(plain ? mergedProps : {})}\n          {...cellProps}\n        >\n          {plain || !Object.keys(mergedProps).length ? (\n            children\n          ) : (\n            <Box\n              {...mergedProps}\n              align={align}\n              justify={verticalAlignToJustify[verticalAlign]}\n            >\n              {children}\n            </Box>\n          )}\n        </StyledTableCell>\n      );\n    }}\n  </TableContext.Consumer>\n);\n\nTableCell.defaultProps = {};\nObject.setPrototypeOf(TableCell.defaultProps, defaultProps);\n\nlet TableCellDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TableCellDoc = require('./doc').doc(TableCell);\n}\nconst TableCellWrapper = compose(withTheme)(TableCellDoc || TableCell);\n\nexport { TableCellWrapper as TableCell };\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\n\nconst ResizerBox = styled(Box)`\n  cursor: col-resize;\n`;\n\nconst Resizer = ({ onResize, property, theme }) => {\n  const [active, setActive] = useState(false);\n  const [start, setStart] = useState();\n  const [width, setWidth] = useState();\n  const ref = useRef();\n\n  const onMouseDown = useCallback(event => {\n    if (ref.current) {\n      let element = ref.current;\n      // find TH parent\n      while (element && element.nodeName !== 'TH') element = element.parentNode;\n      const rect = element.getBoundingClientRect();\n      setStart(event.clientX);\n      setWidth(rect.width);\n      setActive(true);\n    }\n  }, []);\n\n  const onMouseMove = useCallback(\n    event => {\n      // We determined 12 empirically as being wide enough to hit but\n      // not too wide to cause false hits.\n      const nextWidth = Math.max(12, width + (event.clientX - start));\n      onResize(property, nextWidth);\n    },\n    [onResize, property, start, width],\n  );\n\n  const onMouseUp = useCallback(() => {\n    setActive(false);\n    setStart(undefined);\n    setWidth(undefined);\n  }, []);\n\n  useEffect(() => {\n    const remove = () => {\n      document.removeEventListener('mouseup', onMouseUp);\n      document.removeEventListener('mousemove', onMouseMove);\n    };\n\n    if (active) {\n      document.addEventListener('mouseup', onMouseUp);\n      document.addEventListener('mousemove', onMouseMove);\n      return remove;\n    }\n    remove();\n    return undefined;\n  }, [active, onMouseMove, onMouseUp]);\n\n  return (\n    <ResizerBox\n      ref={ref}\n      flex={false}\n      responsive={false}\n      pad={{ vertical: 'small' }}\n      {...theme.dataTable.resize}\n      onMouseDown={onMouseDown}\n      onMouseMove={start !== undefined ? onMouseMove : undefined}\n      onMouseUp={start !== undefined ? onMouseUp : undefined}\n    />\n  );\n};\n\nResizer.defaultProps = {};\nObject.setPrototypeOf(Resizer.defaultProps, defaultProps);\n\nconst ResizerWrapper = compose(withTheme)(Resizer);\n\nexport { ResizerWrapper as Resizer };\n","import React, { useEffect, useRef } from 'react';\n\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { FormSearch } from 'grommet-icons/icons/FormSearch';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { normalizeColor } from '../../utils';\n\nconst Searcher = ({\n  filtering,\n  filters,\n  onFilter,\n  onFiltering,\n  property,\n  theme,\n}) => {\n  const inputRef = useRef();\n  const needsFocus = filtering === property;\n\n  useEffect(() => {\n    if (inputRef && needsFocus) {\n      inputRef.current.focus();\n    }\n  }, [needsFocus, inputRef]);\n\n  return filtering === property ? (\n    <Keyboard onEsc={() => onFiltering(undefined)}>\n      <Box flex pad={{ horizontal: 'small' }}>\n        <TextInput\n          name={`search-${property}`}\n          ref={inputRef}\n          value={filters[property]}\n          onChange={event => onFilter(property, event.target.value)}\n          onBlur={() => onFiltering(undefined)}\n        />\n      </Box>\n    </Keyboard>\n  ) : (\n    <>\n      {filters[property] ? (\n        <Box\n          flex={false}\n          pad={{ horizontal: 'small' }}\n          direction=\"row\"\n          align=\"center\"\n        >\n          <Text>{filters[property]}</Text>\n        </Box>\n      ) : null}\n      <Button\n        a11yTitle={`focus-search-${property}`}\n        icon={\n          <FormSearch\n            color={normalizeColor(\n              filtering === property ? 'brand' : 'border',\n              theme,\n            )}\n          />\n        }\n        hoverIndicator\n        onClick={() =>\n          onFiltering(filtering === property ? undefined : property)\n        }\n      />\n    </>\n  );\n};\n\nSearcher.defaultProps = {};\nObject.setPrototypeOf(Searcher.defaultProps, defaultProps);\n\nconst SearcherWrapper = compose(withTheme)(Searcher);\n\nexport { SearcherWrapper as Searcher };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.FormSearch = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _StyledIcon = require(\"../StyledIcon\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nvar FormSearch = function FormSearch(props) {\n  return _react[\"default\"].createElement(_StyledIcon.StyledIcon, _extends({\n    viewBox: \"0 0 24 24\",\n    a11yTitle: \"FormSearch\"\n  }, props), _react[\"default\"].createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"2\",\n    d: \"M13.8,13.8 L18,18 L13.8,13.8 Z M10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 Z\"\n  }));\n};\n\nexports.FormSearch = FormSearch;","import React, {\n  forwardRef,\n  isValidElement,\n  useContext,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { FormContext } from '../Form/FormContext';\nimport { AnnounceContext } from '../../contexts';\nimport { isNodeAfterScroll, isNodeBeforeScroll, sizeStyle } from '../../utils';\n\nimport {\n  StyledTextInput,\n  StyledTextInputContainer,\n  StyledPlaceholder,\n  StyledIcon,\n  StyledSuggestions,\n} from './StyledTextInput';\n\nconst renderLabel = suggestion => {\n  if (suggestion && typeof suggestion === 'object') {\n    return suggestion.label || suggestion.value;\n  }\n  return suggestion;\n};\n\nconst stringLabel = suggestion => {\n  if (suggestion && typeof suggestion === 'object') {\n    if (suggestion.label && typeof suggestion.label === 'string') {\n      return suggestion.label;\n    }\n    return suggestion.value;\n  }\n  return suggestion;\n};\n\nconst ContainerBox = styled(Box)`\n  ${props =>\n    props.dropHeight\n      ? sizeStyle('max-height', props.dropHeight, props.theme)\n      : 'max-height: inherit;'};\n\n  /* IE11 hack to get drop contents to not overflow */\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    width: 100%;\n  }\n`;\n\nconst TextInput = forwardRef(\n  (\n    {\n      defaultValue,\n      dropAlign = { top: 'bottom', left: 'left' },\n      dropHeight,\n      dropTarget,\n      dropProps,\n      icon,\n      id,\n      messages = {\n        enterSelect: '(Press Enter to Select)',\n        suggestionsCount: 'suggestions available',\n        suggestionsExist:\n          'This input has suggestions use arrow keys to navigate',\n        suggestionIsOpen:\n          'Suggestions drop is open, continue to use arrow keys to navigate',\n      },\n      name,\n      onBlur,\n      onChange,\n      onFocus,\n      onKeyDown,\n      onSelect,\n      onSuggestionsClose,\n      onSuggestionsOpen,\n      placeholder,\n      plain,\n      readOnly,\n      reverse,\n      suggestions,\n      value: valueProp,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const announce = useContext(AnnounceContext);\n    const formContext = useContext(FormContext);\n    const inputRef = useRef();\n    const dropRef = useRef();\n    const suggestionsRef = useRef();\n    const suggestionRefs = {};\n\n    // if this is a readOnly property, don't set a name with the form context\n    // this allows Select to control the form context for the name.\n    const [value, setValue] = formContext.useFormContext(\n      readOnly ? undefined : name,\n      valueProp,\n      '',\n    );\n\n    const [focus, setFocus] = useState();\n    const [showDrop, setShowDrop] = useState();\n\n    // if we have no suggestions, close drop if it's open\n    useEffect(() => {\n      if (showDrop && (!suggestions || !suggestions.length)) {\n        setShowDrop(false);\n        if (onSuggestionsClose) onSuggestionsClose();\n      }\n    }, [onSuggestionsClose, showDrop, suggestions]);\n\n    // If we have suggestions and focus, open drop if it's closed.\n    // This can occur when suggestions are tied to the value.\n    // We don't want focus or showDrop in the dependencies because we\n    // don't want to open the drop just because Esc close it.\n    /* eslint-disable react-hooks/exhaustive-deps */\n    useEffect(() => {\n      if (focus && !showDrop && suggestions && suggestions.length) {\n        setShowDrop(true);\n        if (onSuggestionsOpen) onSuggestionsOpen();\n      }\n    }, [onSuggestionsOpen, suggestions]);\n    /* eslint-enable react-hooks/exhaustive-deps */\n\n    const [activeSuggestionIndex, setActiveSuggestionIndex] = useState(-1);\n\n    // reset activeSuggestionIndex when the drop is closed\n    useEffect(() => {\n      if (activeSuggestionIndex !== -1 && !showDrop) {\n        setActiveSuggestionIndex(-1);\n      }\n    }, [activeSuggestionIndex, showDrop]);\n\n    // announce active suggestion\n    useEffect(() => {\n      if (activeSuggestionIndex >= 0) {\n        const label = stringLabel(suggestions[activeSuggestionIndex]);\n        announce(`${label} ${messages.enterSelect}`);\n      }\n    }, [activeSuggestionIndex, announce, messages, suggestions]);\n\n    const [selectedSuggestionIndex, setSelectedSuggestionIndex] = useState(-1);\n\n    // set selectedSuggestionIndex based on value and current suggestions\n    useEffect(() => {\n      if (suggestions) {\n        const suggestionValues = suggestions.map(suggestion =>\n          typeof suggestion === 'object' ? suggestion.value : suggestion,\n        );\n        setSelectedSuggestionIndex(suggestionValues.indexOf(value));\n      } else setSelectedSuggestionIndex(-1);\n    }, [suggestions, value]);\n\n    // make sure activeSuggestion remains visible in scroll\n    useEffect(() => {\n      const buttonNode = suggestionRefs[activeSuggestionIndex];\n      const optionsNode = suggestionsRef.current;\n      if (\n        buttonNode &&\n        isNodeAfterScroll(buttonNode, optionsNode) &&\n        optionsNode.scrollTo\n      ) {\n        optionsNode.scrollTo(\n          0,\n          buttonNode.offsetTop -\n            (optionsNode.getBoundingClientRect().height -\n              buttonNode.getBoundingClientRect().height),\n        );\n      }\n      if (\n        buttonNode &&\n        isNodeBeforeScroll(buttonNode, optionsNode) &&\n        optionsNode.scrollTo\n      ) {\n        optionsNode.scrollTo(0, buttonNode.offsetTop);\n      }\n    }, [activeSuggestionIndex, suggestionRefs]);\n\n    const openDrop = () => {\n      setShowDrop(true);\n      announce(messages.suggestionIsOpen);\n      announce(`${suggestions.length} ${messages.suggestionsCount}`);\n      if (onSuggestionsOpen) onSuggestionsOpen();\n    };\n\n    const closeDrop = () => {\n      setShowDrop(false);\n      if (messages.onSuggestionsClose) onSuggestionsClose();\n      if (onSuggestionsClose) onSuggestionsClose();\n    };\n\n    const onNextSuggestion = event => {\n      event.preventDefault();\n      const nextActiveIndex = Math.min(\n        activeSuggestionIndex + 1,\n        suggestions.length - 1,\n      );\n      setActiveSuggestionIndex(nextActiveIndex);\n    };\n\n    const onPreviousSuggestion = event => {\n      event.preventDefault();\n      const nextActiveIndex = Math.max(activeSuggestionIndex - 1, 0);\n      setActiveSuggestionIndex(nextActiveIndex);\n    };\n\n    const showStyledPlaceholder =\n      placeholder && typeof placeholder !== 'string' && !value;\n\n    let drop;\n    if (showDrop) {\n      drop = (\n        // keyboard access needed here in case user clicks\n        // and drags on scroll bar and focus shifts to drop\n        <Keyboard\n          onDown={event => onNextSuggestion(event)}\n          onUp={event => onPreviousSuggestion(event)}\n          onEnter={event => {\n            // we stole the focus, give it back\n            (ref || inputRef).current.focus();\n            closeDrop();\n            if (onSelect) {\n              const adjustedEvent = event;\n              adjustedEvent.suggestion = suggestions[activeSuggestionIndex];\n              onSelect(adjustedEvent);\n            }\n            setValue(suggestions[activeSuggestionIndex]);\n          }}\n        >\n          <Drop\n            ref={dropRef}\n            id={id ? `text-input-drop__${id}` : undefined}\n            align={dropAlign}\n            responsive={false}\n            target={dropTarget || (ref || inputRef).current}\n            onClickOutside={closeDrop}\n            onEsc={closeDrop}\n            {...dropProps}\n          >\n            <ContainerBox\n              ref={suggestionsRef}\n              overflow=\"auto\"\n              dropHeight={dropHeight}\n            >\n              <StyledSuggestions>\n                <InfiniteScroll items={suggestions} step={theme.select.step}>\n                  {(suggestion, index) => {\n                    const plainLabel =\n                      typeof suggestion === 'object' &&\n                      typeof isValidElement(suggestion.label);\n                    return (\n                      <li key={`${stringLabel(suggestion)}-${index}`}>\n                        <Button\n                          active={\n                            activeSuggestionIndex === index ||\n                            selectedSuggestionIndex === index\n                          }\n                          ref={r => {\n                            suggestionRefs[index] = r;\n                          }}\n                          fill\n                          hoverIndicator=\"background\"\n                          onClick={event => {\n                            // we stole the focus, give it back\n                            (ref || inputRef).current.focus();\n                            closeDrop();\n                            if (onSelect) {\n                              event.persist();\n                              const adjustedEvent = event;\n                              adjustedEvent.suggestion = suggestion;\n                              adjustedEvent.target = (ref || inputRef).current;\n                              onSelect(adjustedEvent);\n                            }\n                            setValue(suggestion);\n                          }}\n                          onMouseOver={() => setActiveSuggestionIndex(index)}\n                          onFocus={() => setActiveSuggestionIndex(index)}\n                        >\n                          {plainLabel ? (\n                            renderLabel(suggestion)\n                          ) : (\n                            <Box align=\"start\" pad=\"small\">\n                              {renderLabel(suggestion)}\n                            </Box>\n                          )}\n                        </Button>\n                      </li>\n                    );\n                  }}\n                </InfiniteScroll>\n              </StyledSuggestions>\n            </ContainerBox>\n          </Drop>\n        </Keyboard>\n      );\n    }\n\n    return (\n      <StyledTextInputContainer plain={plain}>\n        {showStyledPlaceholder && (\n          <StyledPlaceholder>{placeholder}</StyledPlaceholder>\n        )}\n        {icon && (\n          <StyledIcon reverse={reverse} theme={theme}>\n            {icon}\n          </StyledIcon>\n        )}\n        <Keyboard\n          onEnter={event => {\n            closeDrop();\n            if (activeSuggestionIndex >= 0 && onSelect) {\n              // prevent submitting forms when choosing a suggestion\n              event.preventDefault();\n              event.persist();\n              const adjustedEvent = event;\n              adjustedEvent.suggestion = suggestions[activeSuggestionIndex];\n              adjustedEvent.target = (ref || inputRef).current;\n              onSelect(adjustedEvent);\n            }\n          }}\n          onEsc={\n            showDrop\n              ? event => {\n                  closeDrop();\n                  // we have to stop both synthetic events and native events\n                  // drop and layer should not close by pressing esc on this\n                  // input\n                  event.stopPropagation();\n                  event.nativeEvent.stopImmediatePropagation();\n                }\n              : undefined\n          }\n          onTab={showDrop ? closeDrop : undefined}\n          onUp={\n            showDrop &&\n            suggestions &&\n            suggestions.length > 0 &&\n            activeSuggestionIndex\n              ? event => {\n                  onPreviousSuggestion(event);\n                }\n              : undefined\n          }\n          onDown={\n            suggestions && suggestions.length > 0\n              ? event => {\n                  if (!showDrop) {\n                    openDrop();\n                  } else {\n                    onNextSuggestion(event);\n                  }\n                }\n              : undefined\n          }\n          onKeyDown={onKeyDown}\n        >\n          <StyledTextInput\n            ref={ref || inputRef}\n            id={id}\n            name={name}\n            autoComplete=\"off\"\n            plain={plain}\n            placeholder={\n              typeof placeholder === 'string' ? placeholder : undefined\n            }\n            icon={icon}\n            reverse={reverse}\n            focus={focus}\n            {...rest}\n            defaultValue={renderLabel(defaultValue)}\n            value={renderLabel(value)}\n            readOnly={readOnly}\n            onFocus={event => {\n              setFocus(true);\n              if (suggestions && suggestions.length > 0) {\n                announce(messages.suggestionsExist);\n                openDrop();\n              }\n              if (onFocus) onFocus(event);\n            }}\n            onBlur={event => {\n              setFocus(false);\n              if (onBlur) onBlur(event);\n            }}\n            onChange={\n              readOnly\n                ? undefined\n                : event => {\n                    setValue(event.target.value);\n                    if (onChange) onChange(event);\n                  }\n            }\n          />\n        </Keyboard>\n        {drop}\n      </StyledTextInputContainer>\n    );\n  },\n);\n\nTextInput.displayName = 'TextInput';\n\nlet TextInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TextInputDoc = require('./doc').doc(TextInput);\n}\nconst TextInputWrapper = TextInputDoc || TextInput;\n\nexport { TextInputWrapper as TextInput };\n","import React, { forwardRef, useEffect, useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { getNewContainer, setFocusWithoutScroll } from '../../utils';\n\nimport { DropContainer } from './DropContainer';\n\nconst Drop = forwardRef(\n  (\n    {\n      restrictFocus,\n      target: dropTarget, // avoid DOM leakage\n      ...rest\n    },\n    ref,\n  ) => {\n    const [originalFocusedElement, setOriginalFocusedElement] = useState();\n    useEffect(() => setOriginalFocusedElement(document.activeElement), []);\n    const [dropContainer, setDropContainer] = useState();\n    useEffect(() => setDropContainer(getNewContainer()), []);\n\n    // just a few things to clean up when the Drop is unmounted\n    useEffect(\n      () => () => {\n        if (restrictFocus && originalFocusedElement) {\n          if (originalFocusedElement.focus) {\n            setFocusWithoutScroll(originalFocusedElement);\n          } else if (\n            originalFocusedElement.parentNode &&\n            originalFocusedElement.parentNode.focus\n          ) {\n            // required for IE11 and Edge\n            setFocusWithoutScroll(originalFocusedElement.parentNode);\n          }\n        }\n        if (dropContainer) {\n          document.body.removeChild(dropContainer);\n        }\n      },\n      [dropContainer, originalFocusedElement, restrictFocus],\n    );\n\n    return dropContainer\n      ? createPortal(\n          <DropContainer\n            ref={ref}\n            dropTarget={dropTarget}\n            restrictFocus={restrictFocus}\n            {...rest}\n          />,\n          dropContainer,\n        )\n      : null;\n  },\n);\n\nDrop.displayName = 'Drop';\n\nlet DropDoc;\nif (process.env.NODE_ENV !== 'production') {\n  DropDoc = require('./doc').doc(Drop); // eslint-disable-line global-require\n}\nconst DropWrapper = DropDoc || Drop;\n\nexport { DropWrapper as Drop };\n","import React, {\n  forwardRef,\n  useContext,\n  useEffect,\n  useMemo,\n  useRef,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { FocusedContainer } from '../FocusedContainer';\nimport {\n  backgroundIsDark,\n  findScrollParents,\n  findVisibleParent,\n  parseMetricToNum,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\n\nimport { PortalContext } from './PortalContext';\nimport { StyledDrop } from './StyledDrop';\n\n// using react synthetic event to be able to stop propagation that\n// would otherwise close the layer on ESC.\nconst preventLayerClose = event => {\n  const key = event.keyCode ? event.keyCode : event.which;\n\n  if (key === 27) {\n    event.stopPropagation();\n  }\n};\n\nconst DropContainer = forwardRef(\n  (\n    {\n      align = {\n        top: 'top',\n        left: 'left',\n      },\n      children,\n      dropTarget,\n      elevation,\n      onClickOutside,\n      onEsc,\n      onKeyDown,\n      overflow = 'auto',\n      plain,\n      responsive,\n      restrictFocus,\n      stretch = 'width',\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const portalContext = useContext(PortalContext) || [];\n    const portalId = useMemo(() => portalContext.length, [portalContext]);\n    const nextPortalContext = useMemo(() => [...portalContext, portalId], [\n      portalContext,\n      portalId,\n    ]);\n    const dropRef = useRef();\n\n    useEffect(() => {\n      // We try to preserve the maxHeight as changing it causes any scroll\n      // position to be lost. We set the maxHeight on mount and if the window\n      // is resized.\n      const place = preserveHeight => {\n        const windowWidth = window.innerWidth;\n        const windowHeight = window.innerHeight;\n        const target = dropTarget;\n        const container = (ref || dropRef).current;\n        if (container && target) {\n          // clear prior styling\n          container.style.left = '';\n          container.style.top = '';\n          container.style.bottom = '';\n          container.style.width = '';\n          if (!preserveHeight) {\n            container.style.maxHeight = '';\n          }\n          // get bounds\n          const targetRect = findVisibleParent(target).getBoundingClientRect();\n          const containerRect = container.getBoundingClientRect();\n          // determine width\n          const width = Math.min(\n            stretch\n              ? Math.max(targetRect.width, containerRect.width)\n              : containerRect.width,\n            windowWidth,\n          );\n          // set left position\n          let left;\n          if (align.left) {\n            if (align.left === 'left') {\n              ({ left } = targetRect);\n            } else if (align.left === 'right') {\n              left = targetRect.left + targetRect.width;\n            }\n          } else if (align.right) {\n            if (align.right === 'left') {\n              left = targetRect.left - width;\n            } else if (align.right === 'right') {\n              left = targetRect.left + targetRect.width - width;\n            }\n          } else {\n            left = targetRect.left + targetRect.width / 2 - width / 2;\n          }\n          if (left + width > windowWidth) {\n            left -= left + width - windowWidth;\n          } else if (left < 0) {\n            left = 0;\n          }\n          // set top or bottom position\n          let top;\n          let bottom;\n          let maxHeight = containerRect.height;\n          if (align.top) {\n            if (align.top === 'top') {\n              ({ top } = targetRect);\n            } else {\n              top = targetRect.bottom;\n            }\n\n            // Calculate visible area underneath the control w.r.t window height\n            const percentVisibleAreaBelow =\n              100 - (targetRect.bottom / windowHeight) * 100;\n\n            // Check whether it is within 20% from bottom of the window or\n            // visible area to flip the control\n            // DropContainer doesn't fit well within visible area when\n            // percentVisibleAreaBelow value<=20%\n            // There is enough space from DropContainer to bottom of the window\n            // when percentVisibleAreaBelow>20%.\n\n            if (windowHeight === top || percentVisibleAreaBelow <= 20) {\n              // We need more room than we have.\n              // We put it below, but there's more room above, put it above\n              top = '';\n              if (align.top === 'bottom') {\n                bottom = targetRect.top;\n              } else {\n                ({ bottom } = targetRect);\n              }\n              maxHeight = bottom;\n              container.style.maxHeight = `${maxHeight}px`;\n            } else if (top > 0) {\n              maxHeight = windowHeight - top;\n              container.style.maxHeight = `${maxHeight}px`;\n            } else {\n              maxHeight = windowHeight - top;\n            }\n          } else if (align.bottom) {\n            if (align.bottom === 'bottom') {\n              ({ bottom } = targetRect);\n            } else {\n              bottom = targetRect.top;\n            }\n            maxHeight = bottom;\n            container.style.maxHeight = `${maxHeight}px`;\n          } else {\n            // center\n            top =\n              targetRect.top + targetRect.height / 2 - containerRect.height / 2;\n            maxHeight = windowHeight - top;\n          }\n          // if we can't fit it all, or we're rather close,\n          // see if there's more room the other direction\n          if (\n            responsive &&\n            (containerRect.height > maxHeight || maxHeight < windowHeight / 10)\n          ) {\n            // We need more room than we have.\n            if (align.top && top > windowHeight / 2) {\n              // We put it below, but there's more room above, put it above\n              top = '';\n              if (align.top === 'bottom') {\n                // top = Math.max(targetRect.top - containerRect.height, 0);\n                // maxHeight = targetRect.top - top;\n                bottom = targetRect.top;\n              } else {\n                // top = Math.max(targetRect.bottom - containerRect.height, 0);\n                // maxHeight = targetRect.bottom - top;\n                ({ bottom } = targetRect);\n              }\n              maxHeight = bottom;\n            } else if (align.bottom && maxHeight < windowHeight / 2) {\n              // We put it above but there's more room below, put it below\n              bottom = '';\n              if (align.bottom === 'bottom') {\n                ({ top } = targetRect);\n              } else {\n                top = targetRect.bottom;\n              }\n              maxHeight = windowHeight - top;\n            }\n          }\n          container.style.left = `${left}px`;\n          if (stretch) {\n            // offset width by 0.1 to avoid a bug in ie11 that\n            // unnecessarily wraps the text if width is the same\n            // NOTE: turned off for now\n            container.style.width = `${width + 0.1}px`;\n          }\n          // the (position:absolute + scrollTop)\n          // is presenting issues with desktop scroll flickering\n          if (top !== '') {\n            container.style.top = `${top}px`;\n          }\n          if (bottom !== '') {\n            container.style.bottom = `${windowHeight - bottom}px`;\n          }\n          if (!preserveHeight) {\n            if (theme.drop && theme.drop.maxHeight) {\n              maxHeight = Math.min(\n                maxHeight,\n                parseMetricToNum(theme.drop.maxHeight),\n              );\n            }\n            container.style.maxHeight = `${maxHeight}px`;\n          }\n        }\n      };\n\n      let scrollParents;\n\n      const addScrollListeners = () => {\n        scrollParents = findScrollParents(dropTarget);\n        scrollParents.forEach(scrollParent =>\n          scrollParent.addEventListener('scroll', place),\n        );\n      };\n\n      const removeScrollListeners = () => {\n        scrollParents.forEach(scrollParent =>\n          scrollParent.removeEventListener('scroll', place),\n        );\n        scrollParents = [];\n      };\n\n      const onClickDocument = event => {\n        // determine which portal id the target is in, if any\n        let clickedPortalId = null;\n        let node = event.target;\n        while (clickedPortalId === null && node !== document) {\n          const attr = node.getAttribute('data-g-portal-id');\n          if (attr !== null) clickedPortalId = parseInt(attr, 10);\n          node = node.parentNode;\n        }\n        if (\n          clickedPortalId === null ||\n          portalContext.indexOf(clickedPortalId) !== -1\n        ) {\n          onClickOutside(event);\n        }\n      };\n\n      const onResize = () => {\n        removeScrollListeners();\n        addScrollListeners();\n        place(false);\n      };\n\n      addScrollListeners();\n      window.addEventListener('resize', onResize);\n      if (onClickOutside) {\n        document.addEventListener('mousedown', onClickDocument);\n      }\n\n      place(false);\n\n      return () => {\n        removeScrollListeners();\n        window.removeEventListener('resize', onResize);\n        if (onClickOutside) {\n          document.removeEventListener('mousedown', onClickDocument);\n        }\n      };\n    }, [\n      align,\n      dropTarget,\n      onClickOutside,\n      portalContext,\n      portalId,\n      ref,\n      responsive,\n      restrictFocus,\n      stretch,\n      theme.drop,\n    ]);\n\n    useEffect(() => {\n      if (restrictFocus) {\n        (ref || dropRef).current.focus();\n      }\n    }, [ref, restrictFocus]);\n\n    let content = (\n      <StyledDrop\n        ref={ref || dropRef}\n        as={Box}\n        plain={plain}\n        elevation={\n          !plain\n            ? elevation || theme.global.drop.shadowSize || 'small'\n            : undefined\n        }\n        tabIndex=\"-1\"\n        alignProp={align}\n        overflow={overflow}\n        data-g-portal-id={portalId}\n        {...rest}\n      >\n        {children}\n      </StyledDrop>\n    );\n\n    if (theme.global.drop.background) {\n      const dark = backgroundIsDark(theme.global.drop.background, theme);\n      if (dark !== undefined && dark !== theme.dark) {\n        content = (\n          <ThemeContext.Provider value={{ ...theme, dark }}>\n            {content}\n          </ThemeContext.Provider>\n        );\n      }\n    }\n\n    return (\n      <PortalContext.Provider value={nextPortalContext}>\n        <FocusedContainer onKeyDown={onEsc && preventLayerClose}>\n          <Keyboard\n            onEsc={\n              onEsc\n                ? event => {\n                    event.stopPropagation();\n                    onEsc(event);\n                  }\n                : undefined\n            }\n            onKeyDown={onKeyDown}\n            target=\"document\"\n          >\n            {content}\n          </Keyboard>\n        </FocusedContainer>\n      </PortalContext.Provider>\n    );\n  },\n);\n\nexport { DropContainer };\n","import React from 'react';\n\nexport const PortalContext = React.createContext(undefined);\n","import styled, { keyframes } from 'styled-components';\n\nimport { baseStyle } from '../../utils';\nimport { backgroundStyle } from '../../utils/background';\nimport { defaultProps } from '../../default-props';\n\nfunction getTransformOriginStyle(align) {\n  let vertical = 'top';\n  if (align.bottom) {\n    vertical = 'bottom';\n  }\n  let horizontal = 'left';\n  if (align.right) {\n    horizontal = 'right';\n  }\n  return `${vertical} ${horizontal}`;\n}\n\nconst dropKeyFrames = keyframes`\n  0% {\n    opacity: 0.5;\n    transform: scale(0.8);\n  }\n  100% {\n    opacity: 1;\n    transform: scale(1);\n  }\n`;\n\nconst StyledDrop = styled.div`\n  ${baseStyle}\n\n  border-radius: ${props => props.theme.global.drop.border.radius};\n  position: fixed;\n  z-index: ${props => props.theme.global.drop.zIndex};\n  outline: none;\n\n  ${props =>\n    !props.plain &&\n    backgroundStyle(props.theme.global.drop.background, props.theme)}\n\n  opacity: 0;\n  transform-origin: ${props => getTransformOriginStyle(props.alignProp)};\n  animation:  ${dropKeyFrames} 0.1s forwards;\n  animation-delay: 0.01s;\n\n  /* IE11 hack to get drop contents to not overflow */\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    display: flex;\n    align-items: stretch;\n  }\n\n  ${props => props.theme.global.drop && props.theme.global.drop.extend}\n`;\n\nStyledDrop.defaultProps = {};\nObject.setPrototypeOf(StyledDrop.defaultProps, defaultProps);\n\nexport { StyledDrop };\n","/* eslint-disable react/no-find-dom-node */\nimport React, { Component, useEffect, useMemo, useRef, useState } from 'react';\nimport { findDOMNode } from 'react-dom';\nimport { findScrollParents } from '../../utils';\nimport { Box } from '../Box';\n\n// Wraps an item to ensure we can get a ref to it\nclass Ref extends Component {\n  render() {\n    const { children } = this.props;\n    return children;\n  }\n}\n\nconst InfiniteScroll = ({\n  children,\n  items = [],\n  onMore,\n  renderMarker,\n  replace,\n  show,\n  step = 50,\n}) => {\n  // the last page we have items for\n  const lastPage = useMemo(() => Math.floor(items.length / step), [\n    items.length,\n    step,\n  ]);\n  // the first page we are displaying\n  const [beginPage, setBeginPage] = useState(0);\n  // the last page we are displaying\n  const [endPage, setEndPage] = useState(\n    show ? Math.floor((show + step) / step) - 1 : 0,\n  );\n  // how tall we've measured a page to be\n  const [pageHeight, setPageHeight] = useState();\n  // how much area a page requires\n  const [pageArea, setPageArea] = useState();\n  // whether the items are laid out in a grid instead of linearly\n  const [multiColumn, setMultiColumn] = useState();\n  // what we're waiting for onMore to give us\n  const [pendingLength, setPendingLength] = useState(0);\n\n  const belowMarkerRef = useRef();\n  const firstPageItemRef = useRef();\n  const lastPageItemRef = useRef();\n  const showRef = useRef();\n\n  // calculating space based on where the first and last items being displayed\n  // are located\n  useEffect(() => {\n    if (firstPageItemRef.current && lastPageItemRef.current && !pageHeight) {\n      /* eslint-disable react/no-find-dom-node */\n      const beginRect = findDOMNode(\n        firstPageItemRef.current,\n      ).getBoundingClientRect();\n      const endRect = findDOMNode(\n        lastPageItemRef.current,\n      ).getBoundingClientRect();\n\n      const nextPageHeight = endRect.top + endRect.height - beginRect.top;\n      // Check if the items are arranged in a single column or not.\n      const nextMultiColumn = nextPageHeight / step < endRect.height;\n      const nextPageArea = endRect.height * endRect.width * step;\n      setPageHeight(nextPageHeight);\n      setPageArea(nextPageArea);\n      setMultiColumn(nextMultiColumn);\n    }\n  }, [pageHeight, step]);\n\n  // scroll handling\n  useEffect(() => {\n    let scrollParents;\n\n    const onScroll = () => {\n      const scrollParent = scrollParents[0];\n\n      // Determine the window into the first scroll parent\n      let top;\n      let height;\n      let width;\n      if (scrollParent === document) {\n        top = document.documentElement.scrollTop || document.body.scrollTop;\n        height = window.innerHeight;\n        width = window.innerWidth;\n      } else {\n        top = scrollParent.scrollTop;\n        const rect = scrollParent.getBoundingClientRect();\n        ({ height, width } = rect);\n      }\n\n      // Figure out which pages we should make visible based on the scroll\n      // window.\n      const offset = height / 4;\n      const nextBeginPage = replace\n        ? Math.min(\n            lastPage,\n            Math.max(\n              0,\n              multiColumn\n                ? Math.floor((Math.max(0, top - offset) * width) / pageArea)\n                : Math.floor(Math.max(0, top - offset) / pageHeight),\n            ),\n          )\n        : 0;\n      const nextEndPage = Math.min(\n        lastPage,\n        Math.max(\n          (!replace && endPage) || 0,\n          multiColumn\n            ? Math.ceil(((top + height + offset) * width) / pageArea)\n            : Math.floor((top + height + offset) / pageHeight),\n        ),\n      );\n\n      if (nextBeginPage !== beginPage) setBeginPage(nextBeginPage);\n      if (nextEndPage !== endPage) setEndPage(nextEndPage);\n    };\n\n    if (pageHeight && belowMarkerRef.current) {\n      scrollParents = findScrollParents(belowMarkerRef.current);\n      scrollParents.forEach(scrollParent =>\n        scrollParent.addEventListener('scroll', onScroll),\n      );\n      onScroll();\n    }\n    return () => {\n      if (scrollParents) {\n        scrollParents.forEach(scrollParent =>\n          scrollParent.removeEventListener('scroll', onScroll),\n        );\n      }\n    };\n  }, [\n    beginPage,\n    endPage,\n    lastPage,\n    multiColumn,\n    pageArea,\n    pageHeight,\n    replace,\n  ]);\n\n  // check if we need to ask for more\n  useEffect(() => {\n    if (onMore && endPage === lastPage && items.length >= pendingLength) {\n      // remember we've asked for more, so we don't keep asking if it takes\n      // a while\n      setPendingLength(items.length + 1);\n      onMore();\n    }\n  }, [endPage, items.length, lastPage, onMore, pendingLength, step]);\n\n  // scroll to any 'show'\n  useEffect(() => {\n    // ride out any animation delays, 100ms empirically measured\n    const timer = setTimeout(() => {\n      if (show && showRef.current) {\n        findDOMNode(showRef.current).scrollIntoView();\n      }\n    }, 100);\n    return () => clearTimeout(timer);\n  }, [show]);\n\n  const firstIndex = beginPage * step;\n  const lastIndex = Math.min((endPage + 1) * step, items.length) - 1;\n\n  const result = [];\n\n  if (replace && pageHeight && firstIndex) {\n    let marker = (\n      <Box key=\"above\" flex={false} height={`${beginPage * pageHeight}px`} />\n    );\n    if (renderMarker) {\n      // need to give it a key\n      marker = React.cloneElement(renderMarker(marker), { key: 'above' });\n    }\n    result.push(marker);\n  }\n\n  items.slice(firstIndex, lastIndex + 1).forEach((item, index) => {\n    const itemsIndex = firstIndex + index;\n    let child = children(item, itemsIndex);\n    // we only need the Refs if we don't know the pageHeight\n    if (!pageHeight && itemsIndex === 0) {\n      child = (\n        <Ref key=\"first\" ref={firstPageItemRef}>\n          {child}\n        </Ref>\n      );\n    } else if (\n      !pageHeight &&\n      (itemsIndex === step - 1 || itemsIndex === lastIndex)\n    ) {\n      child = (\n        <Ref key=\"last\" ref={lastPageItemRef}>\n          {child}\n        </Ref>\n      );\n    }\n    if (show && show === itemsIndex) {\n      child = (\n        <Ref key=\"show\" ref={showRef}>\n          {child}\n        </Ref>\n      );\n    }\n    result.push(child);\n  });\n\n  if (endPage < lastPage || replace || onMore) {\n    let marker = (\n      <Box\n        key=\"below\"\n        ref={belowMarkerRef}\n        flex={false}\n        height={`${replace ? (lastPage - endPage) * pageHeight : 0}px`}\n      />\n    );\n    if (renderMarker) {\n      // need to give it a key\n      marker = React.cloneElement(renderMarker(marker), { key: 'below' });\n    }\n    result.push(marker);\n  }\n\n  return result;\n};\n\nlet InfiniteScrollDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  InfiniteScrollDoc = require('./doc').doc(InfiniteScroll);\n}\nconst InfiniteScrollWrapper = InfiniteScrollDoc || InfiniteScroll;\n\nexport { InfiniteScrollWrapper as InfiniteScroll };\n","import styled, { css } from 'styled-components';\n\nimport {\n  disabledStyle,\n  focusStyle,\n  inputStyle,\n  parseMetricToNum,\n  placeholderStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst sizeStyle = props => {\n  const data = props.theme.text[props.size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n  `;\n};\n\nconst plainStyle = css`\n  border: none;\n`;\n\nconst StyledTextInput = styled.input`\n  ${inputStyle} width: 100%;\n\n  ${props => props.size && sizeStyle(props)}\n  ${props => props.plain && plainStyle}\n\n  ${placeholderStyle}\n  ${props =>\n    props.icon &&\n    (props.reverse\n      ? `padding-right: ${props.theme.global.edgeSize.large};`\n      : `padding-left: ${props.theme.global.edgeSize.large};`)}\n\n  &::-moz-focus-inner {\n    border: none;\n    outline: none;\n  }\n\n  ${props => props.focus && !props.plain && focusStyle};\n  ${props =>\n    props.disabled &&\n    disabledStyle(\n      props.theme.textInput.disabled && props.theme.textInput.disabled.opacity,\n    )}\n  ${props => props.theme.textInput && props.theme.textInput.extend};\n`;\n\nStyledTextInput.defaultProps = {};\nObject.setPrototypeOf(StyledTextInput.defaultProps, defaultProps);\n\nconst StyledTextInputContainer = styled.div`\n  position: relative;\n  width: 100%;\n\n  ${props =>\n    props.theme.textInput &&\n    props.theme.textInput.container &&\n    props.theme.textInput.container.extend};\n`;\n\nStyledTextInputContainer.defaultProps = {};\nObject.setPrototypeOf(StyledTextInputContainer.defaultProps, defaultProps);\n\nconst StyledPlaceholder = styled.div`\n  position: absolute;\n  left: ${props =>\n    parseMetricToNum(props.theme.global.input.padding) -\n    parseMetricToNum(props.theme.global.control.border.width)}px;\n  top: 50%;\n  transform: translateY(-50%);\n  display: flex;\n  justify-content: center;\n  pointer-events: none;\n\n  ${props =>\n    props.theme.textInput &&\n    props.theme.textInput.placeholder &&\n    props.theme.textInput.placeholder.extend};\n`;\n\nStyledPlaceholder.defaultProps = {};\nObject.setPrototypeOf(StyledPlaceholder.defaultProps, defaultProps);\n\nconst StyledIcon = styled.div`\n  position: absolute;\n  display: flex;\n  justify: center;\n  top: 50%;\n  transform: translateY(-50%);\n  pointer-events: none;\n  ${props =>\n    props.reverse\n      ? `right: ${props.theme.global.input.padding};`\n      : `left: ${props.theme.global.input.padding};`}\n`;\n\nconst StyledSuggestions = styled.ol`\n  border-top-left-radius: 0;\n  border-top-right-radius: 0;\n  margin: 0;\n  padding: 0;\n  list-style-type: none;\n\n  ${props =>\n    props.theme.textInput &&\n    props.theme.textInput.suggestions &&\n    props.theme.textInput.suggestions.extend};\n`;\n\nStyledSuggestions.defaultProps = {};\nObject.setPrototypeOf(StyledSuggestions.defaultProps, defaultProps);\n\nexport {\n  StyledTextInput,\n  StyledTextInputContainer,\n  StyledPlaceholder,\n  StyledIcon,\n  StyledSuggestions,\n};\n","import React from 'react';\n\nimport { StyledTableRow } from '../Table/StyledTable';\n\nconst TableRow = props => <StyledTableRow {...props} />;\n\nlet TableRowDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TableRowDoc = require('./doc').doc(TableRow);\n}\nconst TableRowWrapper = TableRowDoc || TableRow;\n\nexport { TableRowWrapper as TableRow };\n","import React from 'react';\n\nimport { StyledTable, StyledTableDataCaption } from './StyledTable';\n\nconst Table = ({ caption, children, ...rest }) => (\n  <StyledTable {...rest}>\n    {caption ? (\n      <StyledTableDataCaption>{caption}</StyledTableDataCaption>\n    ) : null}\n    {children}\n  </StyledTable>\n);\n\nlet TableDoc;\nif (process.env.NODE_ENV !== 'production') {\n  TableDoc = require('./doc').doc(Table); // eslint-disable-line global-require\n}\nconst TableWrapper = TableDoc || Table;\n\nexport { TableWrapper as Table };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withForwardRef } from '../hocs';\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableBody } from '../Table/StyledTable';\n\nconst TableBody = ({ forwardRef, ...rest }) => (\n  <TableContext.Provider value=\"body\">\n    <StyledTableBody ref={forwardRef} {...rest} />\n  </TableContext.Provider>\n);\n\nlet TableBodyDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TableBodyDoc = require('./doc').doc(TableBody);\n}\nconst TableBodyWrapper = compose(withForwardRef)(TableBodyDoc || TableBody);\n\nexport { TableBodyWrapper as TableBody };\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar getDisplayName = function getDisplayName(Component) {\n  if (typeof Component === 'string') {\n    return Component;\n  }\n\n  if (!Component) {\n    return undefined;\n  }\n\n  return Component.displayName || Component.name || 'Component';\n};\n\nvar _default = getDisplayName;\nexports.default = _default;","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n  childContextTypes: true,\n  contextType: true,\n  contextTypes: true,\n  defaultProps: true,\n  displayName: true,\n  getDefaultProps: true,\n  getDerivedStateFromError: true,\n  getDerivedStateFromProps: true,\n  mixins: true,\n  propTypes: true,\n  type: true\n};\nvar KNOWN_STATICS = {\n  name: true,\n  length: true,\n  prototype: true,\n  caller: true,\n  callee: true,\n  arguments: true,\n  arity: true\n};\nvar FORWARD_REF_STATICS = {\n  '$$typeof': true,\n  render: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true\n};\nvar MEMO_STATICS = {\n  '$$typeof': true,\n  compare: true,\n  defaultProps: true,\n  displayName: true,\n  propTypes: true,\n  type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n  // React v16.11 and below\n  if (reactIs.isMemo(component)) {\n    return MEMO_STATICS;\n  } // React v16.12 and above\n\n\n  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n  if (typeof sourceComponent !== 'string') {\n    // don't hoist over string (html) components\n    if (objectPrototype) {\n      var inheritedComponent = getPrototypeOf(sourceComponent);\n\n      if (inheritedComponent && inheritedComponent !== objectPrototype) {\n        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n      }\n    }\n\n    var keys = getOwnPropertyNames(sourceComponent);\n\n    if (getOwnPropertySymbols) {\n      keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n    }\n\n    var targetStatics = getStatics(targetComponent);\n    var sourceStatics = getStatics(sourceComponent);\n\n    for (var i = 0; i < keys.length; ++i) {\n      var key = keys[i];\n\n      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n        try {\n          // Avoid failures from read-only properties\n          defineProperty(targetComponent, key, descriptor);\n        } catch (e) {}\n      }\n    }\n  }\n\n  return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-is.production.min.js');\n} else {\n  module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.12.0\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?Symbol.for(\"react.suspense_list\"):\n60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.fundamental\"):60117,w=b?Symbol.for(\"react.responder\"):60118,x=b?Symbol.for(\"react.scope\"):60119;function y(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}\nexports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};\nexports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};\n","import React from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableHeader } from '../Table/StyledTable';\n\nconst TableHeader = props => (\n  <TableContext.Provider value=\"header\">\n    <StyledTableHeader {...props} />\n  </TableContext.Provider>\n);\n\nlet TableHeaderDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TableHeaderDoc = require('./doc').doc(TableHeader);\n}\nconst TableHeaderWrapper = TableHeaderDoc || TableHeader;\n\nexport { TableHeaderWrapper as TableHeader };\n","import React from 'react';\n\nimport { TableContext } from '../Table/TableContext';\nimport { StyledTableFooter } from '../Table/StyledTable';\n\nconst TableFooter = props => (\n  <TableContext.Provider value=\"footer\">\n    <StyledTableFooter {...props} />\n  </TableContext.Provider>\n);\n\nlet TableFooterDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TableFooterDoc = require('./doc').doc(TableFooter);\n}\nconst TableFooterWrapper = TableFooterDoc || TableFooter;\n\nexport { TableFooterWrapper as TableFooter };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableFooter } from './StyledDataTable';\n\nconst Footer = ({\n  background,\n  border,\n  columns,\n  footerValues,\n  groups,\n  pad,\n  primaryProperty,\n  theme,\n  ...rest\n}) => (\n  <StyledDataTableFooter {...rest}>\n    <TableRow>\n      {groups && (\n        <TableCell plain size=\"xxsmall\" pad=\"none\" verticalAlign=\"top\" />\n      )}\n      {columns.map(column => (\n        <Cell\n          key={column.property}\n          background={background}\n          border={border}\n          context=\"footer\"\n          column={column}\n          datum={footerValues}\n          pad={pad}\n          primaryProperty={primaryProperty}\n        />\n      ))}\n    </TableRow>\n  </StyledDataTableFooter>\n);\n\nFooter.defaultProps = {};\nObject.setPrototypeOf(Footer.defaultProps, defaultProps);\n\nconst FooterWrapper = compose(withTheme)(Footer);\n\nexport { FooterWrapper as Footer };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { TableRow } from '../TableRow';\nimport { TableCell } from '../TableCell';\nimport { Keyboard } from '../Keyboard';\nimport { withFocus, withForwardRef } from '../hocs';\n\nimport { Cell } from './Cell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\nimport { datumValue } from './buildState';\n\nconst Body = ({\n  background,\n  border,\n  columns,\n  data,\n  forwardRef,\n  onMore,\n  replace,\n  onClickRow,\n  pad,\n  primaryProperty,\n  rowProps,\n  size,\n  step,\n  theme,\n  ...rest\n}) => {\n  const [active, setActive] = React.useState();\n  return (\n    <Keyboard\n      onEnter={\n        onClickRow && active >= 0\n          ? event => {\n              event.persist();\n              const adjustedEvent = event;\n              adjustedEvent.datum = data[active];\n              onClickRow(adjustedEvent);\n            }\n          : undefined\n      }\n      onUp={\n        onClickRow && active\n          ? () => {\n              setActive(active - 1);\n            }\n          : undefined\n      }\n      onDown={\n        onClickRow && data.length\n          ? () => {\n              setActive(\n                active >= 0 ? Math.min(active + 1, data.length - 1) : 0,\n              );\n            }\n          : undefined\n      }\n    >\n      <StyledDataTableBody\n        ref={forwardRef}\n        size={size}\n        tabIndex={onClickRow ? 0 : undefined}\n        {...rest}\n      >\n        <InfiniteScroll\n          items={data}\n          onMore={onMore}\n          replace={replace}\n          renderMarker={marker => (\n            <TableRow>\n              <TableCell>{marker}</TableCell>\n            </TableRow>\n          )}\n          scrollableAncestor=\"window\"\n          step={step}\n        >\n          {(datum, index) => {\n            const primaryValue = primaryProperty\n              ? datumValue(datum, primaryProperty)\n              : undefined;\n            return (\n              <StyledDataTableRow\n                key={primaryValue || index}\n                size={size}\n                active={active >= 0 ? active === index : undefined}\n                onClick={\n                  onClickRow\n                    ? event => {\n                        // extract from React's synthetic event pool\n                        event.persist();\n                        const adjustedEvent = event;\n                        adjustedEvent.datum = datum;\n                        adjustedEvent.index = index;\n                        onClickRow(adjustedEvent);\n                      }\n                    : undefined\n                }\n                onMouseOver={onClickRow ? () => setActive(index) : undefined}\n                onMouseOut={onClickRow ? () => setActive(undefined) : undefined}\n                onFocus={onClickRow ? () => setActive(index) : undefined}\n                onBlur={onClickRow ? () => setActive(undefined) : undefined}\n              >\n                {columns.map(column => (\n                  <Cell\n                    key={column.property}\n                    background={background}\n                    border={border}\n                    context=\"body\"\n                    column={column}\n                    datum={datum}\n                    index={index}\n                    pad={pad}\n                    primaryProperty={primaryProperty}\n                    rowProp={rowProps && rowProps[primaryValue]}\n                    scope={\n                      column.primary || column.property === primaryProperty\n                        ? 'row'\n                        : undefined\n                    }\n                  />\n                ))}\n              </StyledDataTableRow>\n            );\n          }}\n        </InfiniteScroll>\n      </StyledDataTableBody>\n    </Keyboard>\n  );\n};\n\nconst ButtonWrapper = compose(withFocus(), withForwardRef)(Body);\n\nexport { ButtonWrapper as Body };\n","import React, { Fragment } from 'react';\n\nimport { Cell } from './Cell';\nimport { ExpanderCell } from './ExpanderCell';\nimport { StyledDataTableBody, StyledDataTableRow } from './StyledDataTable';\n\nexport const GroupedBody = ({\n  background,\n  border,\n  columns,\n  groupBy,\n  groups,\n  groupState,\n  pad,\n  primaryProperty,\n  onToggle,\n  size,\n  ...rest\n}) => (\n  <StyledDataTableBody size={size} {...rest}>\n    {groups.map(group => {\n      const { expanded } = groupState[group.key];\n      const memberCount = group.data.length;\n\n      let content =\n        memberCount > 1 ? (\n          <StyledDataTableRow key={group.key} size={size}>\n            <ExpanderCell\n              context={expanded ? 'groupHeader' : 'body'}\n              expanded={expanded}\n              onToggle={onToggle(group.key)}\n            />\n            {columns.map(column => (\n              <Cell\n                key={column.property}\n                background={background}\n                border={border}\n                context={expanded ? 'groupHeader' : 'body'}\n                column={column}\n                datum={group.datum}\n                pad={pad}\n                scope={column.property === groupBy ? 'row' : undefined}\n              />\n            ))}\n          </StyledDataTableRow>\n        ) : null;\n\n      if (memberCount === 1 || expanded) {\n        content = (\n          <Fragment key={group.key}>\n            {content}\n            {group.data.map((datum, index) => {\n              const context =\n                memberCount > 1 && index === memberCount - 1\n                  ? 'groupEnd'\n                  : 'body';\n              return (\n                <StyledDataTableRow key={datum[primaryProperty]} size={size}>\n                  <ExpanderCell context={context} />\n                  {columns.map(column => (\n                    <Cell\n                      key={column.property}\n                      background={background}\n                      border={border}\n                      context={context}\n                      column={column}\n                      datum={datum}\n                      pad={pad}\n                      scope={column.primary ? 'row' : undefined}\n                    />\n                  ))}\n                </StyledDataTableRow>\n              );\n            })}\n          </Fragment>\n        );\n      }\n\n      return content;\n    })}\n  </StyledDataTableBody>\n);\n","export { Diagram } from './Diagram';\n","import React, { useState, useEffect, useRef, useCallback } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledDiagram } from './StyledDiagram';\n\nconst computeMidPoint = (fromPoint, toPoint) => [\n  fromPoint[0] > toPoint[0]\n    ? toPoint[0] + (fromPoint[0] - toPoint[0]) / 2\n    : fromPoint[0] + (toPoint[0] - fromPoint[0]) / 2,\n  fromPoint[1] > toPoint[1]\n    ? toPoint[1] + (fromPoint[1] - toPoint[1]) / 2\n    : fromPoint[1] + (toPoint[1] - fromPoint[1]) / 2,\n];\n\nconst COMMANDS = {\n  curved: (fromPoint, toPoint, offset, anchor) => {\n    const midPoint = computeMidPoint(fromPoint, toPoint);\n    let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n    if (anchor === 'horizontal') {\n      cmds +=\n        `Q ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n        `${midPoint[0] + offset},${midPoint[1] + offset} `;\n    } else {\n      cmds +=\n        `Q ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n        `${midPoint[0] + offset},${midPoint[1] + offset} `;\n    }\n    cmds += `T ${toPoint[0] + offset},${toPoint[1] + offset}`;\n    return cmds;\n  },\n  direct: (fromPoint, toPoint, offset) =>\n    `M ${fromPoint[0] + offset},${fromPoint[1] + offset} ` +\n    `L ${toPoint[0] + offset},${toPoint[1] + offset}`,\n  rectilinear: (fromPoint, toPoint, offset, anchor) => {\n    const midPoint = computeMidPoint(fromPoint, toPoint);\n    let cmds = `M ${fromPoint[0] + offset},${fromPoint[1] + offset} `;\n    if (anchor === 'horizontal') {\n      cmds +=\n        `L ${midPoint[0] + offset},${fromPoint[1] + offset} ` +\n        `L ${midPoint[0] + offset},${toPoint[1] + offset} `;\n    } else {\n      cmds +=\n        `L ${fromPoint[0] + offset},${midPoint[1] + offset} ` +\n        `L ${toPoint[0] + offset},${midPoint[1] + offset} `;\n    }\n    cmds += `L ${toPoint[0] + offset},${toPoint[1] + offset}`;\n    return cmds;\n  },\n};\n\nconst findTarget = target => {\n  if (typeof target === 'string') {\n    return document.getElementById(target);\n  }\n  return target;\n};\n\nconst Diagram = ({ connections, theme, ...rest }) => {\n  const [dimensions, setDimensions] = useState({ width: 0, height: 0 });\n  const [connectionPoints, setConnectionPoints] = useState();\n  const svgRef = useRef();\n\n  useEffect(() => {\n    setConnectionPoints(undefined);\n  }, [connections]);\n\n  const onResize = useCallback(() => {\n    const svg = svgRef.current;\n\n    if (svg) {\n      const rect = svg.getBoundingClientRect();\n      if (\n        rect.width !== dimensions.width ||\n        rect.height !== dimensions.height\n      ) {\n        setDimensions({\n          width: rect.width,\n          height: rect.height,\n        });\n        setConnectionPoints(undefined);\n      }\n    }\n  }, [dimensions.width, dimensions.height]);\n\n  // Ref that stores resize handler\n  const savedOnResize = useRef();\n\n  // Update resize ref value if onResize changes.\n  // This allows our effect below to always get latest handler\n  useEffect(() => {\n    savedOnResize.current = onResize;\n  }, [onResize]);\n\n  useEffect(() => {\n    const onResizeHandler = event => savedOnResize.current(event);\n    onResizeHandler();\n\n    window.addEventListener('resize', onResizeHandler);\n\n    return () => {\n      window.removeEventListener('resize', onResizeHandler);\n    };\n  }, []);\n\n  const placeConnections = useCallback(() => {\n    const containerRect = svgRef.current.getBoundingClientRect();\n    const updatedConnectionPoints = connections.map(\n      ({ anchor, fromTarget, toTarget }) => {\n        let points;\n        const fromElement = findTarget(fromTarget);\n        const toElement = findTarget(toTarget);\n        if (!fromElement) {\n          console.warn(`Diagram cannot find ${fromTarget}`);\n        }\n        if (!toElement) {\n          console.warn(`Diagram cannot find ${toTarget}`);\n        }\n\n        if (fromElement && toElement) {\n          const fromRect = fromElement.getBoundingClientRect();\n          const toRect = toElement.getBoundingClientRect();\n          // There is no x and y when unit testing.\n          const fromPoint = [\n            fromRect.left - containerRect.left || 0,\n            fromRect.top - containerRect.top || 0,\n          ];\n          const toPoint = [\n            toRect.left - containerRect.left || 0,\n            toRect.top - containerRect.top || 0,\n          ];\n          if (anchor === 'vertical') {\n            fromPoint[0] += fromRect.width / 2;\n            toPoint[0] += toRect.width / 2;\n            if (fromRect.top < toRect.top) {\n              fromPoint[1] += fromRect.height;\n            } else {\n              toPoint[1] += toRect.height;\n            }\n          } else if (anchor === 'horizontal') {\n            fromPoint[1] += fromRect.height / 2;\n            toPoint[1] += toRect.height / 2;\n            if (fromRect.left < toRect.left) {\n              fromPoint[0] += fromRect.width;\n            } else {\n              toPoint[0] += toRect.width;\n            }\n          } else {\n            // center\n            fromPoint[0] += fromRect.width / 2;\n            fromPoint[1] += fromRect.height / 2;\n            toPoint[0] += toRect.width / 2;\n            toPoint[1] += toRect.height / 2;\n          }\n          points = [fromPoint, toPoint];\n        }\n\n        return points;\n      },\n    );\n    setConnectionPoints(updatedConnectionPoints);\n  }, [connections]);\n\n  useEffect(() => {\n    if (!connectionPoints) {\n      placeConnections();\n    }\n  }, [connectionPoints, placeConnections]);\n\n  let paths;\n  if (connectionPoints) {\n    paths = connections.map(\n      (\n        { anchor, color, offset, round, thickness, type, ...connectionRest },\n        index,\n      ) => {\n        let path;\n        const cleanedRest = { ...connectionRest };\n        delete cleanedRest.fromTarget;\n        delete cleanedRest.toTarget;\n        const points = connectionPoints[index];\n        if (points) {\n          const offsetWidth = offset\n            ? parseMetricToNum(theme.global.edgeSize[offset])\n            : 0;\n          const d = COMMANDS[type || 'curved'](\n            points[0],\n            points[1],\n            offsetWidth,\n            anchor,\n          );\n          const strokeWidth = thickness\n            ? parseMetricToNum(theme.global.edgeSize[thickness] || thickness)\n            : 1;\n          let colorName =\n            color || (theme.diagram.line && theme.diagram.line.color);\n          if (!colorName) {\n            const colors = Object.keys(theme.global.colors).filter(n =>\n              n.match(/^graph-[0-9]$/),\n            );\n            colorName = colors[index % colors.length];\n          }\n\n          path = (\n            <path\n              // eslint-disable-next-line react/no-array-index-key\n              key={index}\n              {...cleanedRest}\n              stroke={normalizeColor(colorName, theme)}\n              strokeWidth={strokeWidth}\n              strokeLinecap={round ? 'round' : 'butt'}\n              strokeLinejoin={round ? 'round' : 'miter'}\n              fill=\"none\"\n              d={d}\n            />\n          );\n        }\n\n        return path;\n      },\n    );\n  }\n\n  return (\n    <StyledDiagram\n      ref={svgRef}\n      viewBox={`0 0 ${dimensions.width} ${dimensions.height}`}\n      preserveAspectRatio=\"xMinYMin meet\"\n      {...rest}\n    >\n      <g>{paths}</g>\n    </StyledDiagram>\n  );\n};\n\nDiagram.defaultProps = { connections: [] };\nObject.setPrototypeOf(Diagram.defaultProps, defaultProps);\n\nlet DiagramDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  DiagramDoc = require('./doc').doc(Diagram);\n}\nconst DiagramWrapper = compose(withTheme)(DiagramDoc || Diagram);\n\nexport { DiagramWrapper as Diagram };\n","import styled from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nconst StyledDiagram = styled.svg`\n  max-width: 100%;\n  width: 100%;\n  height: 100%;\n\n  ${props => props.theme.diagram && props.theme.diagram.extend};\n`;\n\nStyledDiagram.defaultProps = {};\nObject.setPrototypeOf(StyledDiagram.defaultProps, defaultProps);\n\nexport { StyledDiagram };\n","export { Distribution } from './Distribution';\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Box } from '../Box';\nimport { Text } from '../Text';\n\nconst Value = ({ basis, children }) => (\n  <Box basis={basis} flex=\"shrink\" overflow=\"hidden\">\n    {children}\n  </Box>\n);\n\nValue.propTypes = {\n  basis: PropTypes.string.isRequired,\n  children: PropTypes.node.isRequired,\n};\n\nconst Distribution = ({\n  basis,\n  children,\n  direction,\n  fill,\n  gap,\n  values,\n  ...rest\n}) => {\n  if (values.length === 1) {\n    const value = values[0];\n    return (\n      <Value value={value} basis={basis}>\n        {children(value)}\n      </Value>\n    );\n  }\n  if (values.length > 1) {\n    const reducer = (accumulator, { value }) => accumulator + value;\n    const total = values.reduce(reducer, 0);\n\n    // figure out how many of the values area needed to represent half of the\n    // total\n    let subTotal = 0;\n    let subIndex;\n    values.some((v, index) => {\n      subTotal += v.value;\n      if (subTotal >= total * 0.4) {\n        subIndex = index + 1;\n        return true;\n      }\n      return false;\n    });\n\n    if (subIndex === values.length) {\n      const value = values[0];\n      return (\n        <Value value={value} basis={basis}>\n          {children(value)}\n        </Value>\n      );\n    }\n\n    let childBasis;\n    if (subTotal > total * 0.7) {\n      childBasis = ['3/4', '1/4'];\n    } else if (subTotal > total * 0.6) {\n      childBasis = ['2/3', '1/3'];\n    } else {\n      childBasis = ['1/2', '1/2'];\n    }\n\n    return (\n      <Box\n        direction={direction}\n        basis={basis}\n        flex={basis ? 'shrink' : true}\n        overflow=\"hidden\"\n        gap={gap}\n        fill={fill}\n        {...rest}\n      >\n        <Distribution\n          values={values.slice(0, subIndex)}\n          basis={childBasis[0]}\n          direction={direction === 'row' ? 'column' : 'row'}\n          gap={gap}\n        >\n          {children}\n        </Distribution>\n        <Distribution\n          values={values.slice(subIndex)}\n          basis={childBasis[1]}\n          direction={direction === 'row' ? 'column' : 'row'}\n          gap={gap}\n        >\n          {children}\n        </Distribution>\n      </Box>\n    );\n  }\n  return null;\n};\n\nDistribution.defaultProps = {\n  basis: undefined,\n  children: value => (\n    <Box fill border>\n      <Text>{value.value}</Text>\n    </Box>\n  ),\n  direction: 'row',\n  gap: 'xsmall',\n  values: [],\n};\n\nlet DistributionDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  DistributionDoc = require('./doc').doc(Distribution);\n}\nconst DistributionWrapper = DistributionDoc || Distribution;\n\nexport { DistributionWrapper as Distribution };\n","import React, {\n  forwardRef,\n  useCallback,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\n\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\n\nconst DropButton = forwardRef(\n  (\n    {\n      a11yTitle = 'Open Drop',\n      disabled,\n      dropAlign = { top: 'top', left: 'left' },\n      dropProps,\n      dropContent,\n      dropTarget,\n      id,\n      open,\n      onClick,\n      onClose,\n      onOpen,\n      ...rest\n    },\n    ref,\n  ) => {\n    const [show, setShow] = useState();\n    useEffect(() => {\n      if (open !== undefined && open !== show) {\n        setShow(open);\n      }\n    }, [open, show]);\n\n    const buttonRef = useRef();\n\n    const onDropClose = useCallback(\n      event => {\n        // if the user has clicked on our Button, don't do anything here,\n        // handle that in onClickInternal() below.\n        let node = event.target;\n        while (node !== document && node !== (ref || buttonRef).current) {\n          node = node.parentNode;\n        }\n        if (node !== (ref || buttonRef).current) {\n          setShow(false);\n          if (onClose) onClose(event);\n        }\n      },\n      [onClose, ref],\n    );\n\n    const onClickInternal = useCallback(\n      event => {\n        if (!show) {\n          setShow(true);\n          if (onOpen) onOpen(event);\n        } else {\n          setShow(false);\n          if (onClose) onClose(event);\n        }\n        if (onClick) onClick(event);\n      },\n      [onClick, onClose, onOpen, show],\n    );\n\n    return (\n      <>\n        <Button\n          id={id}\n          ref={ref || buttonRef}\n          a11yTitle={a11yTitle}\n          disabled={disabled}\n          {...rest}\n          onClick={onClickInternal}\n        />\n        {show && (ref || buttonRef).current && (\n          <Drop\n            id={id ? `${id}__drop` : undefined}\n            restrictFocus\n            align={dropAlign}\n            target={dropTarget || (ref || buttonRef).current}\n            onClickOutside={onDropClose}\n            onEsc={onDropClose}\n            {...dropProps}\n          >\n            {dropContent}\n          </Drop>\n        )}\n      </>\n    );\n  },\n);\n\nDropButton.displayName = 'DropButton';\n\nlet DropButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  DropButtonDoc = require('./doc').doc(DropButton);\n}\nconst DropButtonWrapper = DropButtonDoc || DropButton;\n\nexport { DropButtonWrapper as DropButton };\n","export { Footer } from './Footer';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Footer = ({ ...rest }) => (\n  <Box\n    as=\"footer\"\n    align=\"center\"\n    direction=\"row\"\n    flex={false}\n    gap=\"medium\"\n    justify=\"between\"\n    {...rest}\n  />\n);\n\nlet FooterDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  FooterDoc = require('./doc').doc(Footer);\n}\n\nconst FooterWrapper = FooterDoc || Footer;\n\nexport { FooterWrapper as Footer };\n","export { Form } from './Form';\nexport { FormContext } from './FormContext';\n","import React, {\n  forwardRef,\n  useCallback,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\nimport { FormContext } from './FormContext';\n\nconst defaultMessages = {\n  invalid: 'invalid',\n  required: 'required',\n};\nconst defaultValue = {};\nconst defaultErrors = {};\nconst defaultInfos = {};\n\nconst updateErrors = (nextErrors, name, error) => {\n  // we disable no-param-reassing so we can use this as a utility function\n  // to update nextErrors, to avoid code duplication\n  /* eslint-disable no-param-reassign */\n  const hasStatusError = typeof error === 'object' && error.status === 'error';\n\n  // typeof error === 'object' is implied for both cases of error with\n  // a status message and for an error object that is a react node\n  if (\n    (typeof error === 'object' && !error.status) ||\n    hasStatusError ||\n    typeof error === 'string'\n  ) {\n    nextErrors[name] = hasStatusError ? error.message : error;\n  } else {\n    delete nextErrors[name];\n  }\n  /* eslint-enable no-param-reassign */\n};\n\nconst updateInfos = (nextInfos, name, error) => {\n  /* eslint-disable no-param-reassign */\n  if (typeof error === 'object' && error.status === 'info') {\n    nextInfos[name] = error.message;\n  } else {\n    delete nextInfos[name];\n  }\n  /* eslint-enable no-param-reassign */\n};\n\nconst Form = forwardRef(\n  (\n    {\n      children,\n      errors: errorsProp = defaultErrors,\n      infos: infosProp = defaultInfos,\n      messages: messagesProp = defaultMessages,\n      onChange,\n      onReset,\n      onSubmit,\n      validate = 'submit',\n      value: valueProp,\n      ...rest\n    },\n    ref,\n  ) => {\n    const [value, setValue] = useState(valueProp || defaultValue);\n    useEffect(() => {\n      if (valueProp !== undefined && valueProp !== value) {\n        setValue(valueProp);\n      }\n    }, [value, valueProp]);\n    const [messages, setMessages] = useState(messagesProp);\n    useEffect(() => setMessages(messagesProp), [messagesProp]);\n    const [errors, setErrors] = useState(errorsProp || {});\n    useEffect(() => setErrors(errorsProp || {}), [errorsProp]);\n    const [infos, setInfos] = useState(infosProp || {});\n    useEffect(() => setInfos(infosProp || {}), [infosProp]);\n    const [touched, setTouched] = useState({});\n\n    const validations = useRef({});\n\n    useEffect(() => {}, [value, errors, infos]);\n\n    const update = useCallback(\n      (name, data, initial) => {\n        setValue(prevValue => {\n          const nextValue = { ...prevValue };\n          nextValue[name] = data;\n\n          // re-run any validations, in case the validation\n          // is checking across fields\n          setErrors(prevErrors => {\n            const nextErrors = { ...prevErrors };\n            Object.keys(prevErrors).forEach(errName => {\n              if (validations.current[errName]) {\n                const nextError = validations.current[errName](data, nextValue);\n                updateErrors(nextErrors, errName, nextError);\n              }\n            });\n            return nextErrors;\n          });\n          setInfos(prevInfos => {\n            const nextInfos = { ...prevInfos };\n            // re-run any validations that have infos, in case the validation\n            // is checking across fields\n            Object.keys(nextInfos).forEach(infoName => {\n              if (validations.current[infoName]) {\n                const nextInfo = validations.current[infoName](data, nextValue);\n                updateInfos(nextInfos, infoName, nextInfo);\n              }\n            });\n            return nextInfos;\n          });\n          if (onChange) onChange(nextValue);\n\n          return nextValue;\n        });\n\n        if (!initial)\n          setTouched(prevTouched => {\n            const nextTouched = { ...prevTouched };\n            nextTouched[name] = true;\n            return nextTouched;\n          });\n      },\n      [onChange],\n    );\n\n    const useFormContext = (name, componentValue, defaultComponentValue) => {\n      const valueData = (name && value[name]) || defaultComponentValue;\n      const [data, setData] = useState(\n        componentValue !== undefined ? componentValue : valueData,\n      );\n      if (componentValue !== undefined) {\n        if (componentValue !== data) {\n          setData(componentValue);\n          if (name) update(name, componentValue);\n        } else if (name && value[name] === undefined) {\n          update(name, componentValue, true);\n        }\n      } else if (valueData !== data) {\n        setData(valueData);\n      }\n\n      return [\n        data,\n        nextData => {\n          // only set if the caller hasn't supplied a specific value\n          if (componentValue === undefined) {\n            if (name) update(name, nextData);\n            setData(nextData);\n          }\n        },\n      ];\n    };\n\n    return (\n      <form\n        ref={ref}\n        {...rest}\n        onReset={event => {\n          setValue(defaultValue);\n          setErrors({});\n          setTouched({});\n          if (onReset) {\n            event.persist(); // extract from React's synthetic event pool\n            const adjustedEvent = event;\n            adjustedEvent.value = defaultValue;\n            onReset(adjustedEvent);\n          }\n        }}\n        onSubmit={event => {\n          // Don't submit the form via browser form action. We don't want it\n          // if the validation fails. And, we assume a javascript action handler\n          // otherwise.\n          event.preventDefault();\n          const nextErrors = { ...errors };\n          const nextInfos = { ...infos };\n          Object.keys(validations.current).forEach(name => {\n            const nextError = validations.current[name](value[name], value);\n            updateErrors(nextErrors, name, nextError);\n            updateInfos(nextInfos, name, nextError);\n          });\n          setErrors(nextErrors);\n          setInfos(nextInfos);\n          if (Object.keys(nextErrors).length === 0 && onSubmit) {\n            event.persist(); // extract from React's synthetic event pool\n            const adjustedEvent = event;\n            adjustedEvent.value = value;\n            adjustedEvent.touched = touched;\n            onSubmit(adjustedEvent);\n          }\n        }}\n      >\n        <FormContext.Provider\n          value={{\n            addValidation: (name, validation) => {\n              validations.current[name] = validation;\n            },\n            removeValidation: name => {\n              delete validations.current[name];\n            },\n            onBlur:\n              validate === 'blur'\n                ? name => {\n                    if (validations.current[name]) {\n                      const error = validations.current[name](\n                        value[name],\n                        value,\n                      );\n                      setErrors(prevErrors => {\n                        const nextErrors = { ...prevErrors };\n                        updateErrors(nextErrors, name, error);\n                        return nextErrors;\n                      });\n                      setInfos(prevInfos => {\n                        const nextInfos = { ...prevInfos };\n                        updateInfos(nextInfos, name, error);\n                        return nextInfos;\n                      });\n                    }\n                  }\n                : undefined,\n            errors,\n            get: name => value[name],\n            infos,\n            messages,\n            set: (name, nextValue) => update(name, nextValue),\n            touched,\n            update,\n            useFormContext,\n            value,\n          }}\n        >\n          {children}\n        </FormContext.Provider>\n      </form>\n    );\n  },\n);\n\nForm.displayName = 'Form';\n\nlet FormDoc;\nif (process.env.NODE_ENV !== 'production') {\n  FormDoc = require('./doc').doc(Form); // eslint-disable-line global-require\n}\n\nconst FormWrapper = FormDoc || Form;\n\nexport { FormWrapper as Form };\n","export { FormField } from './FormField';\n","import React, {\n  Children,\n  cloneElement,\n  forwardRef,\n  useContext,\n  useEffect,\n  useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { parseMetricToNum } from '../../utils';\nimport { Box } from '../Box';\nimport { CheckBox } from '../CheckBox';\nimport { RadioButtonGroup } from '../RadioButtonGroup';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\nimport { FormContext } from '../Form/FormContext';\n\nconst grommetInputNames = ['TextInput', 'Select', 'MaskedInput', 'TextArea'];\nconst grommetInputPadNames = ['CheckBox', 'RadioButtonGroup', 'RangeInput'];\n\nconst isGrommetInput = comp =>\n  comp &&\n  (grommetInputNames.indexOf(comp.displayName) !== -1 ||\n    grommetInputPadNames.indexOf(comp.displayName) !== -1);\n\nconst FormFieldBox = styled(Box)`\n  ${props => props.theme.formField && props.theme.formField.extend}\n`;\n\nconst Message = ({ message, ...rest }) => {\n  if (message) {\n    if (typeof message === 'string') return <Text {...rest}>{message}</Text>;\n    return <Box {...rest}>{message}</Box>;\n  }\n  return null;\n};\n\nconst FormField = forwardRef(\n  (\n    {\n      children,\n      className,\n      component,\n      disabled, // pass through in renderInput()\n      error,\n      help,\n      htmlFor,\n      info,\n      label,\n      margin,\n      name, // pass through in renderInput()\n      onBlur,\n      onFocus,\n      pad,\n      required, // pass through in renderInput()\n      style,\n      validate,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext);\n    const context = useContext(FormContext);\n\n    useEffect(() => {\n      if (context && context.addValidation) {\n        const { addValidation, messages, removeValidation } = context;\n\n        const validateSingle = (aValidate, value2, data) => {\n          let result;\n          if (typeof aValidate === 'function') {\n            result = aValidate(value2, data);\n          } else if (validate.regexp) {\n            if (!validate.regexp.test(value2)) {\n              result = validate.message || messages.invalid;\n              if (validate.status) {\n                result = { message: error, status: validate.status };\n              }\n            }\n          }\n          return result;\n        };\n\n        const validateField = (value2, data) => {\n          let result;\n          if (\n            required &&\n            // false is for CheckBox\n            (value2 === undefined || value2 === '' || value2 === false)\n          ) {\n            result = messages.required;\n          } else if (validate) {\n            if (Array.isArray(validate)) {\n              validate.some(aValidate => {\n                result = validateSingle(aValidate, value2, data);\n                return !!result;\n              });\n            } else {\n              result = validateSingle(validate, value2, data);\n            }\n          }\n          return result;\n        };\n\n        if (validate || required) {\n          addValidation(name, validateField);\n          return () => removeValidation(name, validateField);\n        }\n        removeValidation(name, validateField);\n      }\n      return undefined;\n    }, [context, error, name, required, validate]);\n\n    const [focus, setFocus] = useState();\n\n    const renderInput = (formValue, invalid) => {\n      const Input = component || TextInput;\n      if (Input === CheckBox) {\n        return (\n          <Input\n            name={name}\n            label={label}\n            disabled={disabled}\n            aria-invalid={invalid || undefined}\n            {...rest}\n          />\n        );\n      }\n      return (\n        <Input\n          name={name}\n          value={!isGrommetInput(component) ? formValue[name] : undefined}\n          disabled={disabled}\n          plain\n          focusIndicator={false}\n          aria-invalid={invalid || undefined}\n          {...rest}\n          onChange={\n            // Grommet input components already check for FormContext\n            // and, using their `name`, end up calling the context.update()\n            // already. For custom components, we expect they will call\n            // this onChange() and we'll call context.update() here, primarily\n            // for backwards compatibility.\n            isGrommetInput(component)\n              ? rest.onChange\n              : event => {\n                  context.update(name, event.target.value);\n                  if (rest.onChange) rest.onChange(event);\n                }\n          }\n        />\n      );\n    };\n\n    const { formField } = theme;\n    const { border } = formField;\n\n    // This is here for backwards compatibility. In case the child is a grommet\n    // input component, set plain and focusIndicator props, if they aren't\n    // already set.\n    let wantContentPad =\n      component && (component === CheckBox || component === RadioButtonGroup);\n    let contents =\n      (border &&\n        children &&\n        Children.map(children, child => {\n          if (\n            child &&\n            child.type &&\n            grommetInputPadNames.indexOf(child.type.displayName) !== -1\n          ) {\n            wantContentPad = true;\n          }\n          if (\n            child &&\n            child.type &&\n            grommetInputNames.indexOf(child.type.displayName) !== -1 &&\n            child.props.plain === undefined &&\n            child.props.focusIndicator === undefined\n          ) {\n            return cloneElement(child, {\n              plain: true,\n              focusIndicator: false,\n            });\n          }\n          return child;\n        })) ||\n      children;\n\n    let normalizedError = error;\n    let normalizedInfo = info;\n    let onFieldBlur;\n    // put rest on container, unless we use renderInput()\n    let containerRest = rest;\n    if (context && context.addValidation) {\n      const {\n        errors,\n        infos,\n        onBlur: onContextBlur,\n        value: formValue,\n      } = context;\n      normalizedError = error || errors[name];\n      normalizedInfo = info || infos[name];\n      if (!contents) containerRest = {};\n      contents = contents || renderInput(formValue, !!normalizedError);\n      if (onContextBlur) {\n        onFieldBlur = () => onContextBlur(name);\n      }\n    }\n\n    const contentProps = pad || wantContentPad ? { ...formField.content } : {};\n    if (border.position === 'inner') {\n      if (normalizedError && formField.error) {\n        contentProps.background = formField.error.background;\n      } else if (disabled && formField.disabled) {\n        contentProps.background = formField.disabled.background;\n      }\n    }\n    contents = <Box {...contentProps}>{contents}</Box>;\n\n    let borderColor;\n    if (focus && !normalizedError) {\n      borderColor = 'focus';\n    } else if (normalizedError) {\n      borderColor = (border && border.error.color) || 'status-critical';\n    } else {\n      borderColor = (border && border.color) || 'border';\n    }\n    let abut;\n    let abutMargin;\n    let outerStyle = style;\n\n    if (border) {\n      contents = (\n        <Box\n          border={\n            border.position === 'inner'\n              ? {\n                  ...border,\n                  side: border.side || 'bottom',\n                  color: borderColor,\n                }\n              : undefined\n          }\n          round={border.position === 'inner' ? formField.round : undefined}\n        >\n          {contents}\n        </Box>\n      );\n\n      const mergedMargin = margin || formField.margin;\n      abut =\n        border.position === 'outer' &&\n        (border.side === 'all' ||\n          border.side === 'horizontal' ||\n          !border.side) &&\n        !(\n          mergedMargin &&\n          ((typeof mergedMargin === 'string' && mergedMargin !== 'none') ||\n            (mergedMargin.bottom && mergedMargin.bottom !== 'none') ||\n            (mergedMargin.horizontal && mergedMargin.horizontal !== 'none'))\n        );\n      if (abut) {\n        // marginBottom is set to overlap adjacent fields\n        abutMargin = { bottom: '-1px' };\n        if (margin) {\n          abutMargin = margin;\n        } else if (border.size) {\n          // if the user defines a margin,\n          // then the default margin below will be overriden\n          abutMargin = {\n            bottom: `-${parseMetricToNum(\n              theme.global.borderSize[border.size] || border.size,\n            )}px`,\n          };\n        }\n\n        outerStyle = {\n          position: focus ? 'relative' : undefined,\n          zIndex: focus ? 10 : undefined,\n          ...style,\n        };\n      }\n    }\n\n    let outerBackground;\n    if (border.position === 'outer') {\n      if (normalizedError && formField.error) {\n        outerBackground = formField.error.background;\n      } else if (disabled && formField.disabled) {\n        outerBackground = formField.disabled.background;\n      }\n    }\n\n    return (\n      <FormFieldBox\n        ref={ref}\n        className={className}\n        border={\n          border && border.position === 'outer'\n            ? { ...border, color: borderColor }\n            : undefined\n        }\n        background={outerBackground}\n        margin={abut ? abutMargin : margin || { ...formField.margin }}\n        round={border.position === 'outer' ? formField.round : undefined}\n        style={outerStyle}\n        onFocus={event => {\n          setFocus(true);\n          if (onFocus) onFocus(event);\n        }}\n        onBlur={event => {\n          setFocus(false);\n          if (onFieldBlur) onFieldBlur(event);\n          if (onBlur) onBlur(event);\n        }}\n        {...containerRest}\n      >\n        {(label && component !== CheckBox) || help ? (\n          <>\n            {label && component !== CheckBox && (\n              <Text as=\"label\" htmlFor={htmlFor} {...formField.label}>\n                {label}\n              </Text>\n            )}\n            <Message message={help} {...formField.help} />\n          </>\n        ) : (\n          undefined\n        )}\n        {contents}\n        <Message message={normalizedError} {...formField.error} />\n        <Message message={normalizedInfo} {...formField.info} />\n      </FormFieldBox>\n    );\n  },\n);\n\nFormField.displayName = 'FormField';\n\nlet FormFieldDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  FormFieldDoc = require('./doc').doc(FormField);\n}\nconst FormFieldWrapper = FormFieldDoc || FormField;\n\nexport { FormFieldWrapper as FormField };\n","import React, {\n  forwardRef,\n  useContext,\n  useEffect,\n  useMemo,\n  useRef,\n  useState,\n} from 'react';\n\nimport { Box } from '../Box';\nimport { FormContext } from '../Form/FormContext';\nimport { Keyboard } from '../Keyboard';\nimport { RadioButton } from '../RadioButton';\n\nconst RadioButtonGroup = forwardRef(\n  (\n    {\n      children,\n      disabled,\n      gap = 'small',\n      name,\n      onChange,\n      options: optionsProp,\n      value: valueProp,\n      ...rest\n    },\n    ref,\n  ) => {\n    const formContext = useContext(FormContext);\n\n    // normalize options to always use an object\n    const options = useMemo(\n      () =>\n        optionsProp.map(o =>\n          typeof o === 'string'\n            ? {\n                disabled,\n                id: rest.id ? `${rest.id}-${o}` : o,\n                label: o,\n                value: o,\n              }\n            : { disabled, ...o },\n        ),\n      [disabled, optionsProp, rest.id],\n    );\n\n    const [value, setValue] = formContext.useFormContext(name, valueProp, '');\n\n    const [focus, setFocus] = useState();\n\n    const optionRefs = useRef([]);\n\n    const valueIndex = React.useMemo(() => {\n      let result;\n      options.some((option, index) => {\n        if (option.value === value) {\n          result = index;\n          return true;\n        }\n        return false;\n      });\n      return result;\n    }, [options, value]);\n\n    useEffect(() => {\n      if (focus && valueIndex >= 0) optionRefs.current[valueIndex].focus();\n    }, [focus, valueIndex]);\n\n    const onNext = () => {\n      if (valueIndex !== undefined && valueIndex < options.length - 1) {\n        const nextIndex = valueIndex + 1;\n        const nextValue = options[nextIndex].value;\n        setValue(nextValue);\n        if (onChange) onChange({ target: { value: nextValue } });\n      }\n    };\n\n    const onPrevious = () => {\n      if (valueIndex > 0) {\n        const nextIndex = valueIndex - 1;\n        const nextValue = options[nextIndex].value;\n        setValue(nextValue);\n        if (onChange) onChange({ target: { value: nextValue } });\n      }\n    };\n\n    const onFocus = () => {\n      // Delay just a wee bit so Chrome doesn't missing turning the button on.\n      // Chrome behaves differently in that focus is given to radio buttons\n      // when the user selects one, unlike Safari and Firefox.\n      setTimeout(() => !focus && setFocus(true), 1);\n    };\n\n    const onBlur = () => focus && setFocus(false);\n\n    return (\n      <Keyboard\n        target=\"document\"\n        onUp={focus ? onPrevious : undefined}\n        onDown={focus ? onNext : undefined}\n        onLeft={focus ? onPrevious : undefined}\n        onRight={focus ? onNext : undefined}\n      >\n        <Box ref={ref} gap={gap} {...rest}>\n          {options.map(\n            (\n              {\n                disabled: optionDisabled,\n                id,\n                label,\n                value: optionValue,\n                ...optionRest\n              },\n              index,\n            ) => (\n              <RadioButton\n                ref={aRef => {\n                  optionRefs.current[index] = aRef;\n                }}\n                key={optionValue}\n                name={name}\n                label={!children ? label : undefined}\n                disabled={optionDisabled}\n                checked={optionValue === value}\n                focus={\n                  focus &&\n                  (optionValue === value || (value === undefined && !index))\n                }\n                id={id}\n                value={optionValue}\n                onFocus={onFocus}\n                onBlur={onBlur}\n                onChange={event => {\n                  setValue(event.target.value);\n                  if (onChange) onChange(event);\n                }}\n                {...optionRest}\n              >\n                {children ? state => children(optionsProp[index], state) : null}\n              </RadioButton>\n            ),\n          )}\n        </Box>\n      </Keyboard>\n    );\n  },\n);\n\nRadioButtonGroup.displayName = 'RadioButtonGroup';\n\nlet RadioButtonGroupDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RadioButtonGroupDoc = require('./doc').doc(RadioButtonGroup);\n}\nconst RadioButtonGroupWrapper = RadioButtonGroupDoc || RadioButtonGroup;\n\nexport { RadioButtonGroupWrapper as RadioButtonGroup };\n","import React, { forwardRef, useContext, useState } from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, removeUndefined } from '../../utils';\n\nimport {\n  StyledRadioButton,\n  StyledRadioButtonContainer,\n  StyledRadioButtonIcon,\n  StyledRadioButtonInput,\n  StyledRadioButtonBox,\n} from './StyledRadioButton';\n\nconst RadioButton = forwardRef(\n  (\n    { checked, children, disabled, focus, id, label, name, onChange, ...rest },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const [hover, setHover] = useState();\n    const normalizedLabel =\n      typeof label === 'string' ? <span>{label}</span> : label;\n\n    const Icon = theme.radioButton.icons.circle;\n    let borderColor = normalizeColor(theme.radioButton.border.color, theme);\n    if (checked) {\n      borderColor = normalizeColor(theme.radioButton.color || 'control', theme);\n    }\n\n    return (\n      <StyledRadioButtonContainer\n        {...removeUndefined({ htmlFor: id, disabled })}\n        onClick={event => {\n          // prevents clicking on the label trigging the event twice\n          // https://stackoverflow.com/questions/24501497/why-the-onclick-element-will-trigger-twice-for-label-element\n          if (event.target.type !== 'radio') {\n            event.stopPropagation();\n          }\n        }}\n        onMouseEnter={() => setHover(true)}\n        onMouseLeave={() => setHover(false)}\n      >\n        <StyledRadioButton\n          as={Box}\n          margin={\n            label ? { right: theme.radioButton.gap || 'small' } : undefined\n          }\n        >\n          <StyledRadioButtonInput\n            {...rest}\n            ref={ref}\n            type=\"radio\"\n            {...removeUndefined({\n              id,\n              name,\n              checked,\n              disabled,\n              onChange,\n            })}\n          />\n          {children ? (\n            children({ checked, hover })\n          ) : (\n            <StyledRadioButtonBox\n              focus={focus}\n              as={Box}\n              align=\"center\"\n              justify=\"center\"\n              width={theme.radioButton.size}\n              height={theme.radioButton.size}\n              border={{\n                size: theme.radioButton.border.width,\n                color: borderColor,\n              }}\n              round={theme.radioButton.check.radius}\n            >\n              {checked &&\n                (Icon ? (\n                  <Icon as={StyledRadioButtonIcon} />\n                ) : (\n                  <StyledRadioButtonIcon\n                    viewBox=\"0 0 24 24\"\n                    preserveAspectRatio=\"xMidYMid meet\"\n                  >\n                    <circle cx={12} cy={12} r={6} />\n                  </StyledRadioButtonIcon>\n                ))}\n            </StyledRadioButtonBox>\n          )}\n        </StyledRadioButton>\n        {normalizedLabel}\n      </StyledRadioButtonContainer>\n    );\n  },\n);\n\nRadioButton.displayName = 'RadioButton';\n\nlet RadioButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RadioButtonDoc = require('./doc').doc(RadioButton);\n}\nconst RadioButtonWrapper = RadioButtonDoc || RadioButton;\n\nexport { RadioButtonWrapper as RadioButton };\n","import styled from 'styled-components';\n\nimport { focusStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst disabledStyle = `\n  opacity: 0.5;\n  cursor: default;\n`;\n\nconst StyledRadioButtonContainer = styled.label`\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  user-select: none;\n  width: fit-content;\n  ${props => props.disabled && disabledStyle} ${props =>\n    !props.disabled &&\n    'cursor: pointer;'}\n\n  :hover input:not([disabled]) + div,\n  :hover input:not([disabled]) + span {\n    border-color: ${props =>\n      normalizeColor(props.theme.radioButton.hover.border.color, props.theme)};\n  }\n\n  ${props => props.theme.radioButton.extend};\n`;\n\nStyledRadioButtonContainer.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonContainer.defaultProps, defaultProps);\n\nconst StyledRadioButtonInput = styled.input`\n  opacity: 0;\n  -moz-appearance: none;\n  width: 0;\n  height: 0;\n  margin: 0;\n  ${props => !props.disabled && 'cursor: pointer;'};\n`;\n\nStyledRadioButtonInput.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonInput.defaultProps, defaultProps);\n\nconst StyledRadioButtonIcon = styled.svg`\n  box-sizing: border-box;\n  width: ${props =>\n    props.theme.radioButton.icon.size || props.theme.radioButton.size};\n  height: ${props =>\n    props.theme.radioButton.icon.size || props.theme.radioButton.size};\n  fill: ${props =>\n    normalizeColor(\n      props.theme.radioButton.check.color || 'control',\n      props.theme,\n    )};\n  ${props => props.theme.radioButton.icon.extend};\n`;\n\nStyledRadioButtonIcon.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonIcon.defaultProps, defaultProps);\n\nconst StyledRadioButtonBox = styled.div`\n  ${props => props.focus && focusStyle};\n  ${props => props.theme.radioButton.check.extend};\n`;\n\nStyledRadioButtonBox.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButtonBox.defaultProps, defaultProps);\n\nconst StyledRadioButton = styled.div`\n  ${props => props.theme.radioButton && props.theme.radioButton.extend};\n`;\n\nStyledRadioButton.defaultProps = {};\nObject.setPrototypeOf(StyledRadioButton.defaultProps, defaultProps);\n\nexport {\n  StyledRadioButtonContainer,\n  StyledRadioButtonInput,\n  StyledRadioButtonIcon,\n  StyledRadioButtonBox,\n  StyledRadioButton,\n};\n","export { Grid } from './Grid';\n","import React from 'react';\n\nimport { StyledGrid } from './StyledGrid';\n\nconst Grid = props => {\n  const {\n    a11yTitle,\n    fill, // munged to avoid styled-components putting it in the DOM\n    responsive = true,\n    rows, // munged to avoid styled-components putting it in the DOM\n    tag,\n    as,\n    ...rest\n  } = props;\n\n  return (\n    <StyledGrid\n      a11yTitleProp={a11yTitle}\n      as={!as && tag ? tag : as}\n      fillContainer={fill}\n      responsive={responsive}\n      rowsProp={rows}\n      {...rest}\n    />\n  );\n};\n\nlet GridDoc;\nif (process.env.NODE_ENV !== 'production') {\n  GridDoc = require('./doc').doc(Grid); // eslint-disable-line global-require\n}\nconst GridWrapper = GridDoc || Grid;\n\nGridWrapper.available =\n  typeof window !== 'undefined' &&\n  window.CSS &&\n  window.CSS.supports &&\n  window.CSS.supports('display', 'grid');\n\nexport { GridWrapper as Grid };\n","import styled, { css } from 'styled-components';\n\nimport { edgeStyle, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = fill => {\n  if (fill === 'horizontal') {\n    return 'width: 100%;';\n  }\n  if (fill === 'vertical') {\n    return 'height: 100%;';\n  }\n  if (fill) {\n    return `\n      width: 100%;\n      height: 100%;\n    `;\n  }\n  return undefined;\n};\n\nconst ALIGN_MAP = {\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst alignStyle = css`\n  align-items: ${props => ALIGN_MAP[props.align]};\n`;\n\nconst ALIGN_CONTENT_MAP = {\n  around: 'space-around',\n  between: 'space-between',\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst alignContentStyle = css`\n  align-content: ${props => ALIGN_CONTENT_MAP[props.alignContent]};\n`;\n\nconst JUSTIFY_MAP = {\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst justifyStyle = css`\n  justify-items: ${props => JUSTIFY_MAP[props.justify]};\n`;\n\nconst JUSTIFY_CONTENT_MAP = {\n  around: 'space-around',\n  between: 'space-between',\n  center: 'center',\n  end: 'flex-end',\n  start: 'flex-start',\n  stretch: 'stretch',\n};\n\nconst justifyContentStyle = css`\n  justify-content: ${props => JUSTIFY_CONTENT_MAP[props.justifyContent]};\n`;\n\nconst gapStyle = props => {\n  if (typeof props.gap === 'string') {\n    const gapSize = props.theme.global.edgeSize[props.gap] || props.gap;\n    return `grid-gap: ${gapSize} ${gapSize};`;\n  }\n  if (props.gap.row && props.gap.column) {\n    return `\n      grid-row-gap: ${props.theme.global.edgeSize[props.gap.row] ||\n        props.gap.row};\n      grid-column-gap: ${props.theme.global.edgeSize[props.gap.column] ||\n        props.gap.column};\n    `;\n  }\n  if (props.gap.row) {\n    return `\n      grid-row-gap: ${props.theme.global.edgeSize[props.gap.row] ||\n        props.gap.row};\n    `;\n  }\n  if (props.gap.column) {\n    return `\n      grid-column-gap: ${props.theme.global.edgeSize[props.gap.column] ||\n        props.gap.column};\n    `;\n  }\n  return '';\n};\n\nconst SIZE_MAP = {\n  flex: '1fr',\n  full: '100%',\n  '1/2': '50%',\n  '1/4': '25%',\n  '2/4': '50%',\n  '3/4': '75%',\n  '1/3': '33.33%',\n  '2/3': '66.66%',\n};\n\nconst getRepeatCount = count =>\n  typeof count === 'number' ? count : `auto-${count}`;\n\nconst getRepeatSize = (size, theme) => {\n  if (Array.isArray(size)) {\n    return `minmax(${theme.global.size[size[0]] || size[0]}, ${theme.global\n      .size[size[1]] || size[1]})`;\n  }\n  if (size === 'flex') return '1fr';\n  return `minmax(${theme.global.size[size] || size}, 1fr)`;\n};\n\nconst sizeFor = (size, props, isRow) => {\n  const mapped = SIZE_MAP[size];\n  if (\n    isRow &&\n    mapped &&\n    (!props.fillContainer || props.fillContainer === 'horizontal')\n  ) {\n    console.warn('Grid needs `fill` when using fractional row sizes');\n  }\n  return mapped || props.theme.global.size[size] || size;\n};\n\nconst columnsStyle = props => {\n  if (Array.isArray(props.columns)) {\n    return css`\n      grid-template-columns: ${props.columns\n        .map(s => {\n          if (Array.isArray(s)) {\n            return `minmax(${sizeFor(s[0], props)}, ${sizeFor(s[1], props)})`;\n          }\n          return sizeFor(s, props);\n        })\n        .join(' ')};\n    `;\n  }\n  if (typeof props.columns === 'object') {\n    return css`\n      grid-template-columns: repeat(\n        ${getRepeatCount(props.columns.count)},\n        ${getRepeatSize(props.columns.size, props.theme)}\n      );\n    `;\n  }\n  return css`\n    grid-template-columns: repeat(\n      auto-fill,\n      ${getRepeatSize(props.columns, props.theme)}\n    );\n  `;\n};\n\nconst rowsStyle = props => {\n  if (Array.isArray(props.rowsProp)) {\n    return css`\n      grid-template-rows: ${props.rowsProp\n        .map(s => {\n          if (Array.isArray(s)) {\n            return `minmax(${sizeFor(s[0], props, true)}, ${sizeFor(\n              s[1],\n              props,\n              true,\n            )})`;\n          }\n          return sizeFor(s, props, true);\n        })\n        .join(' ')};\n    `;\n  }\n  return css`\n    grid-auto-rows: ${props.theme.global.size[props.rowsProp]};\n  `;\n};\n\nconst areasStyle = props => {\n  // translate areas objects into grid-template-areas syntax\n  if (!Array.isArray(props.rowsProp) || !Array.isArray(props.columns)) {\n    console.warn('Grid `areas` requires `rows` and `columns` to be arrays.');\n  }\n  if (\n    Array.isArray(props.areas) &&\n    props.areas.every(area => Array.isArray(area))\n  ) {\n    return `grid-template-areas: ${props.areas\n      .map(area => `\"${area.join(' ')}\"`)\n      .join(' ')};`;\n  }\n  const cells = props.rowsProp.map(() => props.columns.map(() => '.'));\n  props.areas.forEach(area => {\n    for (let row = area.start[1]; row <= area.end[1]; row += 1) {\n      for (let column = area.start[0]; column <= area.end[0]; column += 1) {\n        cells[row][column] = area.name;\n      }\n    }\n  });\n  return `grid-template-areas: ${cells\n    .map(r => `\"${r.join(' ')}\"`)\n    .join(' ')};`;\n};\n\nconst StyledGrid = styled.div.attrs(props => ({\n  'aria-label': props.a11yTitleProp,\n}))`\n  display: grid;\n  box-sizing: border-box;\n\n  ${genericStyles}\n  ${props => props.fillContainer && fillStyle(props.fillContainer)}\n  ${props => props.align && alignStyle}\n  ${props => props.alignContent && alignContentStyle}\n  ${props => props.areas && areasStyle(props)}\n  ${props => props.columns && columnsStyle(props)}\n  ${props => props.gap && gapStyle(props)}\n  ${props => props.justify && justifyStyle}\n  ${props => props.justifyContent && justifyContentStyle}\n  ${props =>\n    props.pad &&\n    edgeStyle(\n      'padding',\n      props.pad,\n      props.responsive,\n      props.theme.global.edgeSize.responsiveBreakpoint,\n      props.theme,\n    )}\n  ${props => props.rowsProp && rowsStyle(props)}\n  ${props => props.theme.grid && props.theme.grid.extend}\n`;\n\nStyledGrid.defaultProps = {};\nObject.setPrototypeOf(StyledGrid.defaultProps, defaultProps);\n\nexport { StyledGrid };\n","export { Grommet } from './Grommet';\n","import React, { Component } from 'react';\nimport { createGlobalStyle } from 'styled-components';\n\nimport { ResponsiveContext, ThemeContext } from '../../contexts';\nimport {\n  backgroundIsDark,\n  deepMerge,\n  getBreakpoint,\n  getDeviceBreakpoint,\n  normalizeColor,\n} from '../../utils';\nimport { base as baseTheme } from '../../themes';\nimport { StyledGrommet } from './StyledGrommet';\n\nconst FullGlobalStyle = createGlobalStyle`\n  body { margin: 0; }\n`;\n\nclass Grommet extends Component {\n  static displayName = 'Grommet';\n\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const {\n      background: backgroundProp,\n      dir,\n      theme = {},\n      themeMode,\n    } = nextProps;\n    const { theme: stateTheme, themeProp, themeModeProp } = prevState;\n\n    const nextTheme = deepMerge(baseTheme, theme);\n    if (!stateTheme || theme !== themeProp || themeMode !== themeModeProp) {\n      const {\n        colors: { background: themeBackground },\n      } = nextTheme.global;\n\n      // get initial value for dark so we can normalize background color\n      nextTheme.dark = (themeMode || theme.defaultMode) === 'dark';\n      const color = normalizeColor(\n        backgroundProp || themeBackground,\n        nextTheme,\n      );\n\n      // After normalizing, we set nextTheme.dark once more.\n      // It is necessary that we set it twice. We have to handle two cases:\n      // 1. Caller passes in a color object or a color name that resolves an\n      //    object. In this case, we want to set dark as line 38 shows. The\n      //    second set, in line 46, is a no-op.\n      // 2. Caller passes a specific color value or a color name that resolves\n      //    to a specific color value. In this case, we want dark to be set\n      //    based on that color, which line 46 will do.\n      // The double set of nextTheme.dark allows us to handle both cases here\n      // without having to duplicate color object + name + dark mode detection\n      // code here that is already in normalizeColor and backgroundIsDark.\n      nextTheme.dark = backgroundIsDark(color, nextTheme);\n      nextTheme.baseBackground = backgroundProp || themeBackground;\n\n      if (dir) {\n        nextTheme.dir = dir;\n      }\n      return {\n        theme: nextTheme,\n        themeProp: theme,\n        themeModeProp: themeMode,\n      };\n    }\n\n    return null;\n  }\n\n  state = {};\n\n  componentDidMount() {\n    window.addEventListener('resize', this.onResize);\n    this.onResize();\n  }\n\n  componentWillUnmount() {\n    window.removeEventListener('resize', this.onResize);\n  }\n\n  onResize = () => {\n    const { theme, responsive } = this.state;\n\n    const breakpoint = getBreakpoint(window.innerWidth, theme);\n\n    if (breakpoint !== responsive) {\n      this.setState({ responsive: breakpoint });\n    }\n  };\n\n  deviceResponsive() {\n    const { userAgent } = this.props;\n    const { theme } = this.state;\n\n    /*\n     * Regexes provided for mobile and tablet detection are meant to replace\n     * a full-featured specific library due to contributing a considerable size\n     * into the bundle.\n     *\n     * User agents found https://deviceatlas.com/blog/list-of-user-agent-strings\n     */\n    if (userAgent) {\n      if (\n        /(tablet|ipad|playbook|silk)|(android(?!.*mobile))/i.test(userAgent)\n      ) {\n        return getDeviceBreakpoint('tablet', theme);\n      }\n      if (/Mobile|iPhone|Android/.test(userAgent)) {\n        return getDeviceBreakpoint('phone', theme);\n      }\n      return getDeviceBreakpoint('computer', theme);\n    }\n    return undefined;\n  }\n\n  render() {\n    const { children, full, ...rest } = this.props;\n    delete rest.theme;\n    const { theme, responsive: stateResponsive } = this.state;\n\n    // Value from state should be correct once we resize\n    // On first render we try to guess otherwise set the default as a tablet\n    const responsive =\n      stateResponsive ||\n      this.deviceResponsive() ||\n      theme.global.deviceBreakpoints.tablet;\n\n    return (\n      <ThemeContext.Provider value={theme}>\n        <ResponsiveContext.Provider value={responsive}>\n          <StyledGrommet full={full} {...rest}>\n            {children}\n          </StyledGrommet>\n          {full && <FullGlobalStyle />}\n        </ResponsiveContext.Provider>\n      </ThemeContext.Provider>\n    );\n  }\n}\n\nlet GrommetDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  GrommetDoc = require('./doc').doc(Grommet);\n}\nconst GrommetWrapper = GrommetDoc || Grommet;\n\nexport { GrommetWrapper as Grommet };\n","import { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\n\nexport const grommet = deepFreeze({\n  global: {\n    colors: {\n      background: {\n        light: '#ffffff',\n        dark: '#000000',\n      },\n    },\n    font: {\n      family: `-apple-system,\n         BlinkMacSystemFont, \n         \"Segoe UI\", \n         Roboto, \n         Oxygen, \n         Ubuntu, \n         Cantarell, \n         \"Fira Sans\", \n         \"Droid Sans\",  \n         \"Helvetica Neue\", \n         Arial, sans-serif,  \n         \"Apple Color Emoji\", \n         \"Segoe UI Emoji\", \n         \"Segoe UI Symbol\"`,\n    },\n  },\n  button: {\n    extend: css`\n      ${props => !props.plain && 'font-weight: bold;'}\n    `,\n  },\n});\n","import { rgba } from 'polished';\nimport { css } from 'styled-components';\n\nimport { deepFreeze } from '../utils/object';\nimport { normalizeColor } from '../utils/colors';\n\nconst accentColors = ['#FD6FFF', '#60EB9F', '#60EBE1', '#FFCA58'];\nconst neutralColors = ['#EB6060', '#01C781', '#6095EB', '#FFB200'];\nconst statusColors = {\n  critical: '#FF3333',\n  error: '#FF3333',\n  warning: '#F7E464',\n  ok: '#7DD892',\n  unknown: '#a8a8a8',\n  disabled: '#a8a8a8',\n};\nconst backgroundColor = '#111111';\n\nconst colors = {\n  active: rgba(102, 102, 102, 0.5),\n  background: backgroundColor,\n  black: '#000000',\n  brand: '#FD6FFF',\n  control: {\n    dark: '#FFCA58',\n    light: '#403216',\n  },\n  focus: '#FFCA58',\n  icon: {\n    dark: '#f8f8f8',\n    light: '#666666',\n  },\n  placeholder: '#AAAAAA',\n  text: {\n    dark: '#eeeeee',\n    light: '#444444',\n  },\n  white: '#FFFFFF',\n};\n\nconst colorArray = (array, prefix) =>\n  array.forEach((color, index) => {\n    colors[`${prefix}-${index + 1}`] = color;\n  });\n\ncolorArray(accentColors, 'accent');\ncolorArray(neutralColors, 'neutral');\nObject.keys(statusColors).forEach(color => {\n  colors[`status-${color}`] = statusColors[color];\n});\n\nexport const dark = deepFreeze({\n  global: {\n    colors,\n    drop: {\n      background: '#333333',\n    },\n    focus: {\n      border: {\n        color: css`\n          ${props => normalizeColor('focus', props.theme)};\n        `,\n        width: '2px',\n      },\n    },\n    font: {\n      family: 'Arial',\n    },\n    input: {\n      weight: 700,\n    },\n  },\n  anchor: {\n    color: 'control',\n  },\n  layer: {\n    background: backgroundColor,\n    overlay: {\n      background: rgba(48, 48, 48, 0.5),\n    },\n  },\n});\n","import styled, { css } from 'styled-components';\n\nimport { baseStyle } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fullStyle = css`\n  width: 100vw;\n  height: 100vh;\n  overflow: auto;\n`;\n\nconst StyledGrommet = styled.div`\n  ${props => !props.plain && baseStyle}\n  ${props => props.full && fullStyle}\n  ${props => props.theme.global.font.face}\n  ${props => props.theme.grommet.extend}\n  ${props =>\n    props.cssVars &&\n    Object.keys(props.theme.global.colors)\n      .filter(k => typeof props.theme.global.colors[k] === 'string')\n      .map(k => `--${k}: ${props.theme.global.colors[k]};`)\n      .join('\\n')}\n`;\n\nStyledGrommet.defaultProps = {};\nObject.setPrototypeOf(StyledGrommet.defaultProps, defaultProps);\n\nexport { StyledGrommet };\n","export { Header } from './Header';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Header = ({ ...rest }) => (\n  <Box\n    align=\"center\"\n    as=\"header\"\n    direction=\"row\"\n    flex={false}\n    justify=\"between\"\n    gap=\"medium\"\n    {...rest}\n  />\n);\n\nlet HeaderDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  HeaderDoc = require('./doc').doc(Header);\n}\nconst HeaderWrapper = HeaderDoc || Header;\n\nexport { HeaderWrapper as Header };\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\nimport { withForwardRef } from '../hocs';\nimport { StyledImage } from './StyledImage';\n\nconst Image = ({\n  fallback,\n  forwardRef,\n  onError,\n  opacity,\n  fill,\n  src,\n  ...rest\n}) => {\n  const [imageMissing, setImageMissing] = useState(false);\n  const handleError = event => {\n    if (onError) {\n      onError(event);\n    }\n    setImageMissing(true);\n  };\n  const extraProps = {\n    onError: (onError || fallback) && handleError,\n  };\n  return (\n    <StyledImage\n      {...rest}\n      {...extraProps}\n      ref={forwardRef}\n      opacityProp={opacity}\n      fillProp={fill}\n      src={!imageMissing ? src : fallback}\n    />\n  );\n};\n\nlet ImageDoc;\nif (process.env.NODE_ENV !== 'production') {\n  ImageDoc = require('./doc').doc(Image); // eslint-disable-line global-require\n}\n\nconst ImageWrapper = compose(withForwardRef)(ImageDoc || Image);\n\nexport { ImageWrapper as Image };\n","import styled, { css } from 'styled-components';\n\nimport { fillStyle, genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst FIT_MAP = {\n  cover: 'cover',\n  contain: 'contain',\n};\n\nconst fitStyle = css`\n  flex: 1 1;\n  overflow: hidden;\n  object-fit: ${props => FIT_MAP[props.fit]};\n`;\n\nconst StyledImage = styled.img`\n  ${genericStyles}\n  ${props => props.fit && fitStyle}\n  ${props => props.fillProp && fillStyle(props.fillProp)}\n  ${props => props.theme.image && props.theme.image.extend}\n  ${props =>\n    props.opacityProp &&\n    `opacity: ${\n      props.opacityProp === true\n        ? props.theme.global.opacity.medium\n        : props.theme.global.opacity[props.opacityProp] || props.opacityProp\n    };\n  `}\n    `;\n\nStyledImage.defaultProps = {};\nObject.setPrototypeOf(StyledImage.defaultProps, defaultProps);\n\nexport { StyledImage };\n","import React, { forwardRef, useEffect, useState } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { getNewContainer } from '../../utils';\n\nimport { LayerContainer } from './LayerContainer';\nimport { animationDuration } from './StyledLayer';\n\nconst Layer = forwardRef((props, ref) => {\n  const { animate, animation } = props;\n  const [originalFocusedElement, setOriginalFocusedElement] = useState();\n  useEffect(() => setOriginalFocusedElement(document.activeElement), []);\n  const [layerContainer, setLayerContainer] = useState();\n  useEffect(() => setLayerContainer(getNewContainer()), []);\n\n  // just a few things to clean up when the Layer is unmounted\n  useEffect(\n    () => () => {\n      if (originalFocusedElement) {\n        if (originalFocusedElement.focus) {\n          // wait for the fixed positioning to come back to normal\n          // see layer styling for reference\n          setTimeout(() => originalFocusedElement.focus(), 0);\n        } else if (\n          originalFocusedElement.parentNode &&\n          originalFocusedElement.parentNode.focus\n        ) {\n          // required for IE11 and Edge\n          originalFocusedElement.parentNode.focus();\n        }\n      }\n\n      if (layerContainer) {\n        const activeAnimation = animation !== undefined ? animation : animate;\n        if (activeAnimation !== false) {\n          // undefined uses 'slide' as the default\n          // animate out and remove later\n          const layerClone = layerContainer.cloneNode(true);\n          layerClone.id = 'layerClone';\n          document.body.appendChild(layerClone);\n          const clonedContainer = layerClone.querySelector(\n            '[class*=\"StyledLayer__StyledContainer\"]',\n          );\n          if (clonedContainer && clonedContainer.style) {\n            clonedContainer.style.animationDirection = 'reverse';\n          }\n          setTimeout(() => {\n            // we add the id and query here so the unit tests work\n            const clone = document.getElementById('layerClone');\n            if (clone) {\n              document.body.removeChild(clone);\n              layerContainer.remove();\n            }\n          }, animationDuration);\n        } else {\n          document.body.removeChild(layerContainer);\n        }\n      }\n    },\n    [animate, animation, layerContainer, originalFocusedElement],\n  );\n\n  return layerContainer\n    ? createPortal(<LayerContainer ref={ref} {...props} />, layerContainer)\n    : null;\n});\n\nLayer.displayName = 'Layer';\n\nlet LayerDoc;\nif (process.env.NODE_ENV !== 'production') {\n  LayerDoc = require('./doc').doc(Layer); // eslint-disable-line global-require\n}\nconst LayerWrapper = LayerDoc || Layer;\n\nexport { LayerWrapper as Layer };\n","import React, {\n  forwardRef,\n  useContext,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { FocusedContainer } from '../FocusedContainer';\nimport { Keyboard } from '../Keyboard';\nimport { backgroundIsDark, findVisibleParent } from '../../utils';\n\nimport { StyledLayer, StyledContainer, StyledOverlay } from './StyledLayer';\n\nconst HiddenAnchor = styled.a`\n  width: 0;\n  height: 0;\n  overflow: hidden;\n  position: absolute;\n`;\n\nconst fullBounds = { left: 0, right: 0, top: 0, bottom: 0 };\n\nconst LayerContainer = forwardRef(\n  (\n    {\n      children,\n      full = false,\n      id,\n      margin = 'none',\n      modal = true,\n      onClickOutside,\n      onEsc,\n      plain,\n      position = 'center',\n      responsive = true,\n      target: layerTarget,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext);\n    const [targetBounds, setTargetBounds] = useState(fullBounds);\n    const anchorRef = useRef();\n    const containerRef = useRef();\n    const layerRef = useRef();\n\n    useEffect(() => {\n      if (position !== 'hidden') {\n        const node = layerRef.current || containerRef.current || ref.current;\n        if (node && node.scrollIntoView) node.scrollIntoView();\n        // Once layer is open we make sure it has focus so that you\n        // can start tabbing inside the layer. If the caller put focus\n        // on an element already, we honor that. Otherwise, we put\n        // the focus in the hidden anchor.\n        let element = document.activeElement;\n        while (element) {\n          if (element === containerRef.current) {\n            // already have focus inside the container\n            break;\n          }\n          element = element.parentElement;\n        }\n        if (modal && !element && anchorRef.current) {\n          anchorRef.current.focus();\n        }\n      }\n    }, [modal, position, ref]);\n\n    useEffect(() => {\n      if (position !== 'hidden') {\n        const node = layerRef.current || containerRef.current || ref.current;\n        if (node && node.scrollIntoView) node.scrollIntoView();\n      }\n    }, [position, ref]);\n\n    useEffect(() => {\n      if (layerTarget) {\n        const updateBounds = () => {\n          const rect = findVisibleParent(layerTarget).getBoundingClientRect();\n          setTargetBounds({\n            left: rect.left,\n            right: window.innerWidth - rect.right,\n            top: rect.top,\n            bottom: window.innerHeight - rect.bottom,\n          });\n        };\n\n        updateBounds();\n        window.addEventListener('resize', updateBounds);\n        return () => window.removeEventListener('resize', updateBounds);\n      }\n      setTargetBounds(fullBounds);\n      return undefined;\n    }, [layerTarget]);\n\n    let content = (\n      <StyledContainer\n        ref={ref || containerRef}\n        id={id}\n        full={full}\n        margin={margin}\n        modal={modal}\n        targetBounds={!modal ? targetBounds : fullBounds}\n        {...rest}\n        position={position}\n        plain={plain}\n        responsive={responsive}\n        dir={theme.dir}\n      >\n        {/* eslint-disable max-len */}\n        {/* eslint-disable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n        <HiddenAnchor ref={anchorRef} tabIndex=\"-1\" aria-hidden=\"true\" />\n        {/* eslint-enable jsx-a11y/anchor-is-valid, jsx-a11y/anchor-has-content */}\n        {/* eslint-enable max-len */}\n        {children}\n      </StyledContainer>\n    );\n\n    if (modal) {\n      content = (\n        <StyledLayer\n          ref={layerRef}\n          id={id}\n          targetBounds={targetBounds}\n          plain={plain}\n          position={position}\n          responsive={responsive}\n          tabIndex=\"-1\"\n          dir={theme.dir}\n        >\n          <StyledOverlay\n            plain={plain}\n            onMouseDown={onClickOutside}\n            responsive={responsive}\n          />\n          {content}\n        </StyledLayer>\n      );\n    }\n\n    if (onEsc) {\n      content = <Keyboard onEsc={onEsc}>{content}</Keyboard>;\n    }\n\n    if (theme.layer.background) {\n      const dark = backgroundIsDark(theme.layer.background, theme);\n      if (dark !== undefined && dark !== theme.dark) {\n        content = (\n          <ThemeContext.Provider value={{ ...theme, dark }}>\n            {content}\n          </ThemeContext.Provider>\n        );\n      }\n    }\n\n    if (modal) {\n      content = (\n        <FocusedContainer hidden={position === 'hidden'} restrictScroll>\n          {content}\n        </FocusedContainer>\n      );\n    }\n\n    return content;\n  },\n);\n\nexport { LayerContainer };\n","export { List } from './List';\n","import React from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { focusStyle, genericStyles } from '../../utils';\nimport { withFocus, withForwardRef } from '../hocs';\n\nconst StyledList = styled.ul`\n  list-style: none;\n  ${props => !props.margin && 'margin: 0;'}\n  padding: 0;\n  ${genericStyles}\n  ${props => props.focus && focusStyle}\n`;\n\nconst StyledItem = styled(Box)`\n  ${props => props.onClick && `cursor: pointer;`}\n`;\n\nconst normalize = (item, index, property) => {\n  if (typeof property === 'function') {\n    return property(item, index);\n  }\n  return item[property];\n};\n\nconst List = React.forwardRef((props, ref) => {\n  const {\n    action,\n    as,\n    background,\n    border,\n    children,\n    data,\n    focus,\n    itemProps,\n    pad,\n    primaryKey,\n    secondaryKey,\n    step,\n    theme,\n    onClickItem,\n    onMore,\n    ...rest\n  } = props;\n  const [active, setActive] = React.useState();\n\n  return (\n    <Keyboard\n      onEnter={\n        onClickItem && active >= 0\n          ? event => {\n              event.persist();\n              const adjustedEvent = event;\n              adjustedEvent.item = data[active];\n              adjustedEvent.index = active;\n              onClickItem(adjustedEvent);\n            }\n          : undefined\n      }\n      onUp={\n        onClickItem && active\n          ? () => {\n              setActive(active - 1);\n            }\n          : undefined\n      }\n      onDown={\n        onClickItem && data && data.length\n          ? () => {\n              setActive(\n                active >= 0 ? Math.min(active + 1, data.length - 1) : 0,\n              );\n            }\n          : undefined\n      }\n    >\n      <StyledList\n        ref={ref}\n        as={as || 'ul'}\n        tabIndex={onClickItem ? 0 : undefined}\n        {...rest}\n      >\n        <InfiniteScroll\n          items={data}\n          onMore={onMore}\n          scrollableAncestor=\"window\"\n          step={step}\n          renderMarker={marker => (\n            <Box as=\"li\" flex={false}>\n              {marker}\n            </Box>\n          )}\n        >\n          {(item, index) => {\n            let content;\n            let boxProps = {};\n\n            if (children) {\n              content = children(\n                item,\n                index,\n                onClickItem ? { active: active === index } : undefined,\n              );\n            } else if (primaryKey) {\n              if (typeof primaryKey === 'function') {\n                content = primaryKey(item, index);\n              } else {\n                content = (\n                  <Text key=\"p\" weight=\"bold\">\n                    {normalize(item, index, primaryKey)}\n                  </Text>\n                );\n              }\n              if (secondaryKey) {\n                if (typeof secondaryKey === 'function') {\n                  content = [content, secondaryKey(item, index)];\n                } else {\n                  content = [\n                    content,\n                    <Text key=\"s\">{normalize(item, index, secondaryKey)}</Text>,\n                  ];\n                }\n                boxProps = {\n                  direction: 'row',\n                  align: 'center',\n                  justify: 'between',\n                  gap: 'medium',\n                };\n              }\n            } else if (typeof item === 'object') {\n              content = item[Object.keys(item)[0]];\n            } else {\n              content = item;\n            }\n\n            if (action) {\n              content = [\n                <Box align=\"start\">{content}</Box>,\n                action(item, index),\n              ];\n              boxProps = {\n                direction: 'row',\n                align: secondaryKey ? 'start' : 'center',\n                justify: 'between',\n                gap: 'medium',\n              };\n            }\n\n            let adjustedBackground = background || theme.list.item.background;\n            if (active === index) {\n              adjustedBackground = theme.global.hover.background;\n            } else if (Array.isArray(adjustedBackground)) {\n              adjustedBackground =\n                adjustedBackground[index % adjustedBackground.length];\n            }\n\n            let adjustedBorder = border || theme.list.item.border;\n            if (adjustedBorder === 'horizontal' && index) {\n              adjustedBorder = 'bottom';\n            }\n\n            if (itemProps && itemProps[index]) {\n              boxProps = { ...boxProps, ...itemProps[index] };\n            }\n\n            let clickProps;\n            if (onClickItem) {\n              clickProps = {\n                tabIndex: -1,\n                active: active === index,\n                onClick: event => {\n                  event.persist(); // extract from React's synthetic event pool\n                  const adjustedEvent = event;\n                  adjustedEvent.item = item;\n                  adjustedEvent.index = index;\n                  onClickItem(adjustedEvent);\n                },\n                onMouseOver: () => setActive(index),\n                onMouseOut: () => setActive(undefined),\n                onFocus: () => setActive(index),\n                onBlur: () => setActive(undefined),\n              };\n            }\n\n            return (\n              <StyledItem\n                key={index}\n                tag=\"li\"\n                flex={false}\n                pad={pad || theme.list.item.pad}\n                background={adjustedBackground}\n                border={adjustedBorder}\n                {...boxProps}\n                {...clickProps}\n              >\n                {content}\n              </StyledItem>\n            );\n          }}\n        </InfiniteScroll>\n      </StyledList>\n    </Keyboard>\n  );\n});\n\nList.displayName = 'List';\n\nlet ListDoc;\nif (process.env.NODE_ENV !== 'production') {\n  ListDoc = require('./doc').doc(List); // eslint-disable-line global-require\n}\nconst ListWrapper = compose(\n  withTheme,\n  withFocus(),\n  withForwardRef,\n)(ListDoc || List);\n\nexport { ListWrapper as List };\n","export { Main } from './Main';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Main = ({ ...rest }) => (\n  <Box as=\"main\" fill=\"vertical\" flex=\"grow\" overflow=\"auto\" {...rest} />\n);\n\nlet MainDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  MainDoc = require('./doc').doc(Main);\n}\nconst MainWrapper = MainDoc || Main;\n\nexport { MainWrapper as Main };\n","export { Markdown } from './Markdown';\n","import React from 'react';\nimport Markdown from 'markdown-to-jsx';\n\nimport { deepMerge } from '../../utils';\n\nimport { Heading } from '../Heading';\nimport { Paragraph } from '../Paragraph';\nimport { Anchor } from '../Anchor';\nimport { Image } from '../Image';\nimport { Table } from '../Table';\nimport { TableBody } from '../TableBody';\nimport { TableCell } from '../TableCell';\nimport { TableFooter } from '../TableFooter';\nimport { TableHeader } from '../TableHeader';\nimport { TableRow } from '../TableRow';\n\nconst GrommetMarkdown = ({ components, options, theme, ...rest }) => {\n  const heading = [1, 2, 3, 4].reduce((obj, level) => {\n    const result = { ...obj };\n    result[`h${level}`] = {\n      component: Heading,\n      props: { level },\n    };\n    return result;\n  }, {});\n\n  const overrides = deepMerge(\n    {\n      a: { component: Anchor },\n      img: { component: Image },\n      p: { component: Paragraph },\n      table: { component: Table },\n      td: { component: TableCell },\n      tbody: { component: TableBody },\n      tfoot: { component: TableFooter },\n      th: { component: TableCell },\n      thead: { component: TableHeader },\n      tr: { component: TableRow },\n    },\n    heading,\n    components,\n    options && options.overrides,\n  );\n\n  return <Markdown options={{ ...options, overrides }} {...rest} />;\n};\n\nlet GrommetMarkdownDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  GrommetMarkdownDoc = require('./doc').doc(GrommetMarkdown);\n}\nconst GrommetMarkdownWrapper = GrommetMarkdownDoc || GrommetMarkdown;\n\nexport { GrommetMarkdownWrapper as Markdown };\n","var _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_typeof=typeof Symbol=='function'&&typeof Symbol.iterator=='symbol'?function(a){return typeof a}:function(a){return a&&typeof Symbol=='function'&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a};function _objectWithoutProperties(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}import React from'react';import unquote from'unquote';var ATTRIBUTE_TO_JSX_PROP_MAP={accesskey:'accessKey',allowfullscreen:'allowFullScreen',allowtransparency:'allowTransparency',autocomplete:'autoComplete',autofocus:'autoFocus',autoplay:'autoPlay',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classId',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',crossorigin:'crossOrigin',enctype:'encType',for:'htmlFor',formaction:'formAction',formenctype:'formEncType',formmethod:'formMethod',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',inputmode:'inputMode',keyparams:'keyParams',keytype:'keyType',marginheight:'marginHeight',marginwidth:'marginWidth',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',novalidate:'noValidate',radiogroup:'radioGroup',readonly:'readOnly',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',usemap:'useMap'},namedCodesToUnicode={amp:'&',apos:'\\'',gt:'>',lt:'<',nbsp:'\\xA0',quot:'\\u201C'},DO_NOT_PROCESS_HTML_ELEMENTS=['style','script'],ATTR_EXTRACTOR_R=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,AUTOLINK_MAILTO_CHECK_R=/mailto:/i,BLOCK_END_R=/\\n{2,}$/,BLOCKQUOTE_R=/^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}/,BLOCKQUOTE_TRIM_LEFT_MULTILINE_R=/^ *> ?/gm,BREAK_LINE_R=/^ {2,}\\n/,BREAK_THEMATIC_R=/^(?:( *[-*_]) *){3,}(?:\\n *)+\\n/,CODE_BLOCK_FENCED_R=/^\\s*(`{3,}|~{3,}) *(\\S+)? *\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)+\\n?/,CODE_BLOCK_R=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,CODE_INLINE_R=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,CONSECUTIVE_NEWLINE_R=/^(?:\\n *)*\\n/,CR_NEWLINE_R=/\\r\\n?/g,FOOTNOTE_R=/^\\[\\^(.*)\\](:.*)\\n/,FOOTNOTE_REFERENCE_R=/^\\[\\^(.*)\\]/,FORMFEED_R=/\\f/g,GFM_TASK_R=/^\\s*?\\[(x|\\s)\\]/,HEADING_R=/^ *(#{1,6}) *([^\\n]+)\\n{0,2}/,HEADING_SETEXT_R=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,HTML_BLOCK_ELEMENT_R=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?([^>]*)\\/{0}>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1)[\\s\\S])*?)<\\/\\1>\\n*/i,HTML_CHAR_CODE_R=/&([a-z]+);/g,HTML_COMMENT_R=/^<!--.*?-->/,HTML_CUSTOM_ATTR_R=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,HTML_SELF_CLOSING_ELEMENT_R=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,INTERPOLATION_R=/^\\{.*\\}$/,LINK_AUTOLINK_BARE_URL_R=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,LINK_AUTOLINK_MAILTO_R=/^<([^ >]+@[^ >]+)>/,LINK_AUTOLINK_R=/^<([^ >]+:\\/[^ >]+)>/,LIST_ITEM_END_R=/ *\\n+$/,LIST_LOOKBEHIND_R=/(?:^|\\n)( *)$/,CAPTURE_LETTER_AFTER_HYPHEN=/-([a-z])?/gi,NP_TABLE_R=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,PARAGRAPH_R=/^((?:[^\\n]|\\n(?! *\\n))+)(?:\\n *)+\\n/,REFERENCE_IMAGE_OR_LINK=/^\\[([^\\]]*)\\]:\\s*(\\S+)\\s*(\"([^\"]*)\")?/,REFERENCE_IMAGE_R=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,REFERENCE_LINK_R=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,SQUARE_BRACKETS_R=/(\\[|\\])/g,SHOULD_RENDER_AS_BLOCK_R=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,TAB_R=/\\t/g,TABLE_SEPARATOR_R=/^ *\\| */,TABLE_TRIM_PIPES=/(^ *\\||\\| *$)/g,TABLE_CELL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ITLE='\\\\s*<?((?:[^\\\\s\\\\\\\\]|\\\\\\\\.)*?)>?(?:\\\\s+[\\'\"]([\\\\s\\\\S]*?)[\\'\"])?\\\\s*',LINK_R=/^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,IMAGE_R=/^!\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)/,BLOCK_SYNTAXES=[BLOCKQUOTE_R,CODE_BLOCK_R,CODE_BLOCK_FENCED_R,HEADING_R,HEADING_SETEXT_R,HTML_BLOCK_ELEMENT_R,HTML_COMMENT_R,HTML_SELF_CLOSING_ELEMENT_R,LIST_ITEM_R,LIST_R,NP_TABLE_R,PARAGRAPH_R];function containsBlockSyntax(a){return BLOCK_SYNTAXES.some(function(b){return b.test(a)})}function slugify(a){return a.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,'a').replace(/[çÇ]/g,'c').replace(/[ðÐ]/g,'d').replace(/[ÈÉÊËéèêë]/g,'e').replace(/[ÏïÎîÍíÌì]/g,'i').replace(/[Ññ]/g,'n').replace(/[øØœŒÕõÔôÓóÒò]/g,'o').replace(/[ÜüÛûÚúÙù]/g,'u').replace(/[ŸÿÝý]/g,'y').replace(/[^a-z0-9- ]/gi,'').replace(/ /gi,'-').toLowerCase()}function parseTableAlignCapture(a){if(TABLE_RIGHT_ALIGN.test(a))return'right';return TABLE_CENTER_ALIGN.test(a)?'center':TABLE_LEFT_ALIGN.test(a)?'left':null}function parseTableRow(a,b,c){var d=c.inTable;c.inTable=!0;var e=b(a.trim(),c);c.inTable=d;var f=[[]];return e.forEach(function(a,b){a.type==='tableSeparator'?b!==0&&b!==e.length-1&&f.push([]):(a.type==='text'&&(e[b+1]==null||e[b+1].type==='tableSeparator')&&(a.content=a.content.replace(TABLE_CELL_END_TRIM,'')),f[f.length-1].push(a))}),f}function parseTableAlign(a){var b=a.replace(TABLE_TRIM_PIPES,'').split('|');return b.map(parseTableAlignCapture)}function parseTableCells(a,b,c){var d=a.trim().split('\\n');return d.map(function(a){return parseTableRow(a,b,c)})}function parseTable(a,b,c){c.inline=!0;var d=parseTableRow(a[1],b,c),e=parseTableAlign(a[2],b,c),f=parseTableCells(a[3],b,c);return c.inline=!1,{align:e,cells:f,header:d,type:'table'}}function getTableStyle(a,b){return a.align[b]==null?{}:{textAlign:a.align[b]}}function normalizeAttributeKey(a){var b=a.indexOf('-');return b!==-1&&a.match(HTML_CUSTOM_ATTR_R)===null&&(a=a.replace(CAPTURE_LETTER_AFTER_HYPHEN,function(a,b){return b.toUpperCase()})),a}function attributeValueToJSXPropValue(a,b){return a==='style'?b.split(/;\\s?/).reduce(function(a,b){var c=b.slice(0,b.indexOf(':')),d=c.replace(/(-[a-z])/g,function(a){return a[1].toUpperCase()});return a[d]=b.slice(c.length+1).trim(),a},{}):a==='href'?sanitizeUrl(b):(b.match(INTERPOLATION_R)&&(b=b.slice(1,b.length-1)),b==='true'||b!=='false'&&b)}function normalizeWhitespace(a){return a.replace(CR_NEWLINE_R,'\\n').replace(FORMFEED_R,'').replace(TAB_R,'    ')}function parserFor(a){function b(d,e){for(var f=[],g='';d;)for(var l=0;l<c.length;){var h=c[l],j=a[h],k=j.match(d,e,g);if(k){var i=k[0];d=d.substring(i.length);var m=j.parse(k,b,e);m.type==null&&(m.type=h),f.push(m),g=i;break}l++}return f}var c=Object.keys(a);return process.env.NODE_ENV!=='production'&&c.forEach(function(b){var c=a[b].order;process.env.NODE_ENV==='production'||typeof c=='number'&&isFinite(c)||console.warn('markdown-to-jsx: Invalid order for rule `'+b+'`: '+c)}),c.sort(function(b,c){var d=a[b].order,e=a[c].order;return d===e?b<c?-1:1:d-e}),function(a,c){return b(normalizeWhitespace(a),c)}}function inlineRegex(a){return function(b,c){return c.inline?a.exec(b):null}}function simpleInlineRegex(a){return function(b,c){return c.inline||c.simple?a.exec(b):null}}function blockRegex(a){return function(b,c){return c.inline||c.simple?null:a.exec(b)}}function anyScopeRegex(a){return function(b){return a.exec(b)}}function reactFor(a){return function b(c,d){if(d=d||{},Array.isArray(c)){for(var e=d.key,f=[],g=!1,h=0;h<c.length;h++){d.key=h;var j=b(c[h],d),k=typeof j=='string';k&&g?f[f.length-1]+=j:f.push(j),g=k}return d.key=e,f}return a(c,b,d)}}function sanitizeUrl(a){try{var b=decodeURIComponent(a);if(b.match(/^\\s*javascript:/i))return process.env.NODE_ENV!=='production'&&console.warn('Anchor URL contains an unsafe JavaScript expression, it will not be rendered.',b),null}catch(b){return process.env.NODE_ENV!=='production'&&console.warn('Anchor URL could not be decoded due to malformed syntax or characters, it will not be rendered.',a),null}return a}function unescapeUrl(a){return a.replace(UNESCAPE_URL_R,'$1')}function parseInline(a,b,c){var d=c.inline||!1,e=c.simple||!1;c.inline=!0,c.simple=!0;var f=a(b,c);return c.inline=d,c.simple=e,f}function parseSimpleInline(a,b,c){var d=c.inline||!1,e=c.simple||!1;c.inline=!1,c.simple=!0;var f=a(b,c);return c.inline=d,c.simple=e,f}function parseBlock(a,b,c){return c.inline=!1,a(b+'\\n\\n',c)}function parseCaptureInline(a,b,c){return{content:parseInline(b,a[1],c)}}function captureNothing(){return{}}function renderNothing(){return null}function ruleOutput(a){return function(b,c,d){return a[b.type].react(b,c,d)}}function cx(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return b.filter(Boolean).join(' ')}function get(a,b,c){for(var d=a,e=b.split('.');e.length&&(d=d[e[0]],d!==void 0);)e.shift();return d||c}function getTag(a,b){var c=get(b,a);return c?typeof c=='function'||(typeof c=='undefined'?'undefined':_typeof(c))==='object'&&'render'in c?c:get(b,a+'.component',a):a}var PARSE_PRIORITY_MAX=1,PARSE_PRIORITY_HIGH=2,PARSE_PRIORITY_MED=3,PARSE_PRIORITY_LOW=4,PARSE_PRIORITY_MIN=5;export function compiler(a,b){function d(a,c){for(var d=get(b.overrides,a+'.props',{}),e=arguments.length,g=Array(e>2?e-2:0),h=2;h<e;h++)g[h-2]=arguments[h];return f.apply(void 0,[getTag(a,b.overrides),_extends({},c,d,{className:cx(c&&c.className,d.className)||void 0})].concat(g))}function c(a){var c=!1;b.forceInline?c=!0:!b.forceBlock&&(c=SHOULD_RENDER_AS_BLOCK_R.test(a)===!1);var e=k(j(c?a:a.replace(TRIM_NEWLINES_AND_TRAILING_WHITESPACE_R,'')+'\\n\\n',{inline:c})),f=void 0;return e.length>1?f=c?d('span',{key:'outer'},e):d('div',{key:'outer'},e):e.length===1?(f=e[0],typeof f=='string'&&(f=d('span',{key:'outer'},f))):f=d('span',{key:'outer'}),f}function e(a){var b=a.match(ATTR_EXTRACTOR_R);return b?b.reduce(function(a,b,d){var e=b.indexOf('=');if(e!==-1){var f=normalizeAttributeKey(b.slice(0,e)).trim(),g=unquote(b.slice(e+1).trim()),h=ATTRIBUTE_TO_JSX_PROP_MAP[f]||f,i=a[h]=attributeValueToJSXPropValue(f,g);(HTML_BLOCK_ELEMENT_R.test(i)||HTML_SELF_CLOSING_ELEMENT_R.test(i))&&(a[h]=React.cloneElement(c(i.trim()),{key:d}))}else a[ATTRIBUTE_TO_JSX_PROP_MAP[b]||b]=!0;return a},{}):void 0}b=b||{},b.overrides=b.overrides||{},b.slugify=b.slugify||slugify,b.namedCodesToUnicode=b.namedCodesToUnicode?_extends({},namedCodesToUnicode,b.namedCodesToUnicode):namedCodesToUnicode;var f=b.createElement||React.createElement;if(process.env.NODE_ENV!=='production'){if(typeof a!='string')throw new Error('markdown-to-jsx: the first argument must be\\n                             a string');if(Object.prototype.toString.call(b.overrides)!=='[object Object]')throw new Error('markdown-to-jsx: options.overrides (second argument property) must be\\n                             undefined or an object literal with shape:\\n                             {\\n                                htmltagname: {\\n                                    component: string|ReactComponent(optional),\\n                                    props: object(optional)\\n                                }\\n                             }')}var g=[],h={},i={blockQuote:{match:blockRegex(BLOCKQUOTE_R),order:PARSE_PRIORITY_HIGH,parse:function d(a,b,c){return{content:b(a[0].replace(BLOCKQUOTE_TRIM_LEFT_MULTILINE_R,''),c)}},react:function e(a,b,c){return d('blockquote',{key:c.key},b(a.content,c))}},breakLine:{match:anyScopeRegex(BREAK_LINE_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('br',{key:c.key})}},breakThematic:{match:blockRegex(BREAK_THEMATIC_R),order:PARSE_PRIORITY_HIGH,parse:captureNothing,react:function e(a,b,c){return d('hr',{key:c.key})}},codeBlock:{match:blockRegex(CODE_BLOCK_R),order:PARSE_PRIORITY_MAX,parse:function c(a){var b=a[0].replace(/^ {4}/gm,'').replace(/\\n+$/,'');return{content:b,lang:void 0}},react:function e(a,b,c){return d('pre',{key:c.key},d('code',{className:a.lang?'lang-'+a.lang:''},a.content))}},codeFenced:{match:blockRegex(CODE_BLOCK_FENCED_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:a[3],lang:a[2]||void 0,type:'codeBlock'}}},codeInline:{match:simpleInlineRegex(CODE_INLINE_R),order:PARSE_PRIORITY_LOW,parse:function b(a){return{content:a[2]}},react:function e(a,b,c){return d('code',{key:c.key},a.content)}},footnote:{match:blockRegex(FOOTNOTE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return g.push({footnote:a[2],identifier:a[1]}),{}},react:renderNothing},footnoteReference:{match:inlineRegex(FOOTNOTE_REFERENCE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{content:a[1],target:'#'+a[1]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target)},d('sup',{key:c.key},a.content))}},gfmTask:{match:inlineRegex(GFM_TASK_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{completed:a[1].toLowerCase()==='x'}},react:function e(a,b,c){return d('input',{checked:a.completed,key:c.key,readOnly:!0,type:'checkbox'})}},heading:{match:blockRegex(HEADING_R),order:PARSE_PRIORITY_HIGH,parse:function e(a,c,d){return{content:parseInline(c,a[2],d),id:b.slugify(a[2]),level:a[1].length}},react:function f(a,b,c){var e='h'+a.level;return d(e,{id:a.id,key:c.key},b(a.content,c))}},headingSetext:{match:blockRegex(HEADING_SETEXT_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:parseInline(b,a[1],c),level:a[2]==='='?1:2,type:'heading'}}},htmlComment:{match:anyScopeRegex(HTML_COMMENT_R),order:PARSE_PRIORITY_HIGH,parse:function a(){return{}},react:renderNothing},image:{match:simpleInlineRegex(IMAGE_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{alt:a[1],target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt||void 0,title:a.title||void 0,src:sanitizeUrl(a.target)})}},link:{match:inlineRegex(LINK_R,!1),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:parseSimpleInline(b,a[1],c),target:unescapeUrl(a[2]),title:a[3]}},react:function e(a,b,c){return d('a',{key:c.key,href:sanitizeUrl(a.target),title:a.title},b(a.content,c))}},linkAngleBraceStyleDetector:{match:inlineRegex(LINK_AUTOLINK_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],type:'link'}}},linkBareUrlDetector:{match:inlineRegex(LINK_AUTOLINK_BARE_URL_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{content:[{content:a[1],type:'text'}],target:a[1],title:void 0,type:'link'}}},linkMailtoDetector:{match:inlineRegex(LINK_AUTOLINK_MAILTO_R),order:PARSE_PRIORITY_MAX,parse:function d(a){var b=a[1],c=a[1];return AUTOLINK_MAILTO_CHECK_R.test(c)||(c='mailto:'+c),{content:[{content:b.replace('mailto:',''),type:'text'}],target:c,type:'link'}}},list:{match:function f(a,b,c){var d=LIST_LOOKBEHIND_R.exec(c),e=b._list||!b.inline;return d&&e?(a=d[1]+a,LIST_R.exec(a)):null},order:PARSE_PRIORITY_HIGH,parse:function j(a,b,c){var d=a[2],e=d.length>1,f=e?+d:void 0,g=a[0].replace(BLOCK_END_R,'\\n').match(LIST_ITEM_R),h=!1,i=g.map(function(a,d){var e=LIST_ITEM_PREFIX_R.exec(a)[0].length,f=new RegExp('^ {1,'+e+'}','gm'),i=a.replace(f,'').replace(LIST_ITEM_PREFIX_R,''),j=d===g.length-1,k=i.indexOf('\\n\\n')!==-1,l=k||j&&h;h=l;var m=c.inline,n=c._list;c._list=!0;var o;l?(c.inline=!1,o=i.replace(LIST_ITEM_END_R,'\\n\\n')):(c.inline=!0,o=i.replace(LIST_ITEM_END_R,''));var p=b(o,c);return c.inline=m,c._list=n,p});return{items:i,ordered:e,start:f}},react:function f(a,b,c){var e=a.ordered?'ol':'ul';return d(e,{key:c.key,start:a.start},a.items.map(function(a,e){return d('li',{key:e},b(a,c))}))}},newlineCoalescer:{match:blockRegex(CONSECUTIVE_NEWLINE_R),order:PARSE_PRIORITY_LOW,parse:captureNothing,react:function a(){return'\\n'}},paragraph:{match:blockRegex(PARAGRAPH_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('p',{key:c.key},b(a.content,c))}},ref:{match:inlineRegex(REFERENCE_IMAGE_OR_LINK),order:PARSE_PRIORITY_MAX,parse:function b(a){return h[a[1]]={target:a[2],title:a[4]},{}},react:renderNothing},refImage:{match:simpleInlineRegex(REFERENCE_IMAGE_R),order:PARSE_PRIORITY_MAX,parse:function b(a){return{alt:a[1]||void 0,ref:a[2]}},react:function e(a,b,c){return d('img',{key:c.key,alt:a.alt,src:sanitizeUrl(h[a.ref].target),title:h[a.ref].title})}},refLink:{match:inlineRegex(REFERENCE_LINK_R),order:PARSE_PRIORITY_MAX,parse:function d(a,b,c){return{content:b(a[1],c),fallbackContent:b(a[0].replace(SQUARE_BRACKETS_R,'\\\\$1'),c),ref:a[2]}},react:function e(a,b,c){return h[a.ref]?d('a',{key:c.key,href:sanitizeUrl(h[a.ref].target),title:h[a.ref].title},b(a.content,c)):d('span',{key:c.key},b(a.fallbackContent,c))}},table:{match:blockRegex(NP_TABLE_R),order:PARSE_PRIORITY_HIGH,parse:parseTable,react:function f(a,b,e){return d('table',{key:e.key},d('thead',null,d('tr',null,a.header.map(function(c,f){return d('th',{key:f,style:getTableStyle(a,f)},b(c,e))}))),d('tbody',null,a.cells.map(function(c,f){return d('tr',{key:f},c.map(function(f,g){return d('td',{key:g,style:getTableStyle(a,g)},b(f,e))}))})))}},tableSeparator:{match:function c(a,b){return b.inTable?TABLE_SEPARATOR_R.exec(a):null},order:PARSE_PRIORITY_HIGH,parse:function a(){return{type:'tableSeparator'}},react:function a(){return' | '}},text:{match:anyScopeRegex(TEXT_PLAIN_R),order:PARSE_PRIORITY_MIN,parse:function c(a){return{content:a[0].replace(HTML_CHAR_CODE_R,function(a,c){return b.namedCodesToUnicode[c]?b.namedCodesToUnicode[c]:a})}},react:function b(a){return a.content}},textBolded:{match:simpleInlineRegex(TEXT_BOLD_R),order:PARSE_PRIORITY_MED,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('strong',{key:c.key},b(a.content,c))}},textEmphasized:{match:simpleInlineRegex(TEXT_EMPHASIZED_R),order:PARSE_PRIORITY_LOW,parse:function d(a,b,c){return{content:b(a[2],c)}},react:function e(a,b,c){return d('em',{key:c.key},b(a.content,c))}},textEscaped:{match:simpleInlineRegex(TEXT_ESCAPED_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{content:a[1],type:'text'}}},textStrikethroughed:{match:simpleInlineRegex(TEXT_STRIKETHROUGHED_R),order:PARSE_PRIORITY_LOW,parse:parseCaptureInline,react:function e(a,b,c){return d('del',{key:c.key},b(a.content,c))}}};b.disableParsingRawHTML!==!0&&(i.htmlBlock={match:anyScopeRegex(HTML_BLOCK_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function l(a,b,c){var d=a[3].match(HTML_LEFT_TRIM_AMOUNT_R),f=d[1],g=new RegExp('^'+f,'gm'),h=a[3].replace(g,''),i=containsBlockSyntax(h)?parseBlock:parseInline,j=a[1].toLowerCase(),k=DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(j)!==-1;return{attrs:e(a[2]),content:k?a[3]:i(b,h,c),noInnerParse:k,tag:k?j:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({key:c.key},a.attrs),a.noInnerParse?a.content:b(a.content,c))}},i.htmlSelfClosing={match:anyScopeRegex(HTML_SELF_CLOSING_ELEMENT_R),order:PARSE_PRIORITY_HIGH,parse:function b(a){return{attrs:e(a[2]||''),tag:a[1]}},react:function e(a,b,c){return d(a.tag,_extends({},a.attrs,{key:c.key}))}});var j=parserFor(i),k=reactFor(ruleOutput(i)),l=c(function(a){return a.replace(/<!--[\\s\\S]*?(?:-->)/g,'')}(a));return g.length&&l.props.children.push(d('footer',{key:'footer'},g.map(function(a){return d('div',{id:a.identifier,key:a.identifier},a.identifier,k(j(a.footnote,{inline:!0})))}))),l}export default function Markdown(a){var b=a.children,c=a.options,d=_objectWithoutProperties(a,['children','options']);return React.cloneElement(compiler(b,c),d)}if(process.env.NODE_ENV!=='production'){var PropTypes=require('prop-types');Markdown.propTypes={children:PropTypes.string.isRequired,options:PropTypes.object}}\n\n//# sourceMappingURL=esm.js.map","import React from 'react';\n\nimport { StyledParagraph } from './StyledParagraph';\n\nconst Paragraph = ({ color, fill, ...rest }) => (\n  <StyledParagraph colorProp={color} fillProp={fill} {...rest} />\n);\n\nlet ParagraphDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  ParagraphDoc = require('./doc').doc(Paragraph);\n}\nconst ParagraphWrapper = ParagraphDoc || Paragraph;\n\nexport { ParagraphWrapper as Paragraph };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst colorStyle = css`\n  color: ${props => normalizeColor(props.colorProp, props.theme)};\n`;\n\nconst sizeStyle = props => {\n  const size = props.size || 'medium';\n  const data = props.theme.paragraph[size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n    max-width: ${props.fillProp ? 'none' : data.maxWidth};\n  `;\n};\n\nconst TEXT_ALIGN_MAP = {\n  center: 'center',\n  end: 'right',\n  start: 'left',\n};\n\nconst textAlignStyle = css`\n  text-align: ${props => TEXT_ALIGN_MAP[props.textAlign]};\n`;\n\nconst StyledParagraph = styled.p`\n  ${genericStyles}\n  ${props => sizeStyle(props)}\n  ${props => props.textAlign && textAlignStyle}\n  ${props => props.colorProp && colorStyle}\n\n  ${props => props.theme.paragraph && props.theme.paragraph.extend}\n`;\n\nStyledParagraph.defaultProps = {};\nObject.setPrototypeOf(StyledParagraph.defaultProps, defaultProps);\n\nexport { StyledParagraph };\n","export { MaskedInput } from './MaskedInput';\n","import React, {\n  forwardRef,\n  useCallback,\n  useContext,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\nimport { ThemeContext } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Drop } from '../Drop';\nimport { FormContext } from '../Form/FormContext';\nimport { Keyboard } from '../Keyboard';\n\nimport {\n  StyledMaskedInput,\n  StyledMaskedInputContainer,\n  StyledIcon,\n} from './StyledMaskedInput';\n\nconst parseValue = (mask, value) => {\n  // break the value up into mask parts\n  const valueParts = []; // { part, beginIndex, endIndex }\n  let valueIndex = 0;\n  let maskIndex = 0;\n  while (\n    value !== undefined &&\n    valueIndex < value.length &&\n    maskIndex < mask.length\n  ) {\n    const item = mask[maskIndex];\n    let found;\n    if (item.fixed) {\n      const { length } = item.fixed;\n      valueParts.push({\n        part: item.fixed,\n        beginIndex: valueIndex,\n        endIndex: valueIndex + length - 1,\n      });\n      const part = value.slice(valueIndex, valueIndex + length);\n      if (part === item.fixed) {\n        valueIndex += length;\n      }\n      maskIndex += 1;\n      found = true;\n    } else if (item.options) {\n      // reverse assuming larger is later\n      found = item.options\n        .slice(0)\n        .reverse()\n        // eslint-disable-next-line no-loop-func\n        .some(option => {\n          const { length } = option;\n          const part = value.slice(valueIndex, valueIndex + length);\n          if (part === option) {\n            valueParts.push({\n              part,\n              beginIndex: valueIndex,\n              endIndex: valueIndex + length - 1,\n            });\n            valueIndex += length;\n            maskIndex += 1;\n            return true;\n          }\n          return false;\n        });\n    }\n    if (!found) {\n      if (item.regexp) {\n        const minLength =\n          (Array.isArray(item.length) && item.length[0]) || item.length || 1;\n        const maxLength =\n          (Array.isArray(item.length) && item.length[1]) ||\n          item.length ||\n          value.length - valueIndex;\n        let length = maxLength;\n        while (!found && length >= minLength) {\n          const part = value.slice(valueIndex, valueIndex + length);\n          if (item.regexp.test(part)) {\n            valueParts.push({\n              part,\n              beginIndex: valueIndex,\n              endIndex: valueIndex + length - 1,\n            });\n            valueIndex += length;\n            maskIndex += 1;\n            found = true;\n          }\n          length -= 1;\n        }\n        if (!found) {\n          valueIndex = value.length;\n        }\n      } else {\n        const length = Array.isArray(item.length)\n          ? item.length[1]\n          : item.length || value.length - valueIndex;\n        const part = value.slice(valueIndex, valueIndex + length);\n        valueParts.push({\n          part,\n          beginIndex: valueIndex,\n          endIndex: valueIndex + length - 1,\n        });\n        valueIndex += length;\n        maskIndex += 1;\n      }\n    }\n  }\n  return valueParts;\n};\n\nconst defaultMask = [];\n\nconst MaskedInput = forwardRef(\n  (\n    {\n      focus: focusProp,\n      icon,\n      id,\n      mask = defaultMask,\n      name,\n      onBlur,\n      onChange,\n      onFocus,\n      onKeyDown,\n      placeholder,\n      plain,\n      reverse,\n      value: valueProp,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const formContext = useContext(FormContext);\n\n    const [value, setValue] = formContext.useFormContext(name, valueProp, '');\n\n    const [valueParts, setValueParts] = useState(parseValue(mask, value));\n    useEffect(() => {\n      setValueParts(parseValue(mask, value));\n    }, [mask, value]);\n\n    const inputRef = useRef();\n    const dropRef = useRef();\n\n    const [focus, setFocus] = useState(focusProp);\n    const [activeMaskIndex, setActiveMaskIndex] = useState();\n    const [activeOptionIndex, setActiveOptionIndex] = useState();\n    const [showDrop, setShowDrop] = useState();\n\n    useEffect(() => {\n      if (focus) {\n        const timer = setTimeout(() => {\n          // determine which mask element the caret is at\n          const caretIndex = (ref || inputRef).current.selectionStart;\n          let maskIndex;\n          valueParts.some((part, index) => {\n            if (part.beginIndex <= caretIndex && part.endIndex >= caretIndex) {\n              maskIndex = index;\n              return true;\n            }\n            return false;\n          });\n          if (maskIndex === undefined && valueParts.length < mask.length) {\n            maskIndex = valueParts.length; // first unused one\n          }\n          if (maskIndex && mask[maskIndex].fixed) {\n            maskIndex -= 1; // fixed mask parts are never \"active\"\n          }\n          if (maskIndex !== activeMaskIndex) {\n            setActiveMaskIndex(maskIndex);\n            setActiveOptionIndex(-1);\n            setShowDrop(maskIndex >= 0 && mask[maskIndex].options && true);\n          }\n        }, 10); // 10ms empirically chosen\n        return () => clearTimeout(timer);\n      }\n      return undefined;\n    }, [activeMaskIndex, focus, mask, ref, valueParts]);\n\n    const setInputValue = useCallback(\n      nextValue => {\n        // Calling set value function directly on input because React library\n        // overrides setter `event.target.value =` and loses original event\n        // target fidelity.\n        // https://stackoverflow.com/a/46012210 &&\n        // https://github.com/grommet/grommet/pull/3171#discussion_r296415239\n        const nativeInputValueSetter = Object.getOwnPropertyDescriptor(\n          window.HTMLInputElement.prototype,\n          'value',\n        ).set;\n        nativeInputValueSetter.call((ref || inputRef).current, nextValue);\n        const event = new Event('input', { bubbles: true });\n        (ref || inputRef).current.dispatchEvent(event);\n      },\n      [ref],\n    );\n\n    // This could be due to a paste or as the user is typing.\n    const onChangeInput = useCallback(\n      event => {\n        // Align with the mask.\n        const nextValueParts = parseValue(mask, event.target.value);\n        const nextValue = nextValueParts.map(part => part.part).join('');\n\n        if (value !== nextValue) {\n          setInputValue(nextValue);\n          if (onChange) onChange(event);\n          setValue(nextValue);\n        }\n      },\n      [mask, onChange, setInputValue, setValue, value],\n    );\n\n    const onOption = useCallback(\n      option => () => {\n        const nextValueParts = [...valueParts];\n        nextValueParts[activeMaskIndex] = { part: option };\n        // add any fixed parts that follow\n        let index = activeMaskIndex + 1;\n        while (\n          index < mask.length &&\n          !nextValueParts[index] &&\n          mask[index].fixed\n        ) {\n          nextValueParts[index] = { part: mask[index].fixed };\n          index += 1;\n        }\n        const nextValue = nextValueParts.map(part => part.part).join('');\n        setInputValue(nextValue);\n        // restore focus to input\n        (ref || inputRef).current.focus();\n      },\n      [activeMaskIndex, mask, ref, setInputValue, valueParts],\n    );\n\n    const onNextOption = useCallback(\n      event => {\n        const item = mask[activeMaskIndex];\n        if (item && item.options) {\n          event.preventDefault();\n          const index = Math.min(\n            activeOptionIndex + 1,\n            item.options.length - 1,\n          );\n          setActiveOptionIndex(index);\n        }\n      },\n      [activeMaskIndex, activeOptionIndex, mask],\n    );\n\n    const onPreviousOption = useCallback(\n      event => {\n        if (activeMaskIndex >= 0 && mask[activeMaskIndex].options) {\n          event.preventDefault();\n          const index = Math.max(activeOptionIndex - 1, 0);\n          setActiveOptionIndex(index);\n        }\n      },\n      [activeMaskIndex, activeOptionIndex, mask],\n    );\n\n    const onSelectOption = useCallback(\n      event => {\n        if (activeMaskIndex >= 0 && activeOptionIndex >= 0) {\n          event.preventDefault();\n          const option = mask[activeMaskIndex].options[activeOptionIndex];\n          onOption(option)();\n        }\n      },\n      [activeMaskIndex, activeOptionIndex, mask, onOption],\n    );\n\n    const onEsc = useCallback(\n      event => {\n        if (showDrop) {\n          // we have to stop both synthetic events and native events\n          // drop and layer should not close by pressing esc on this input\n          event.stopPropagation();\n          event.nativeEvent.stopImmediatePropagation();\n          setShowDrop(false);\n        }\n      },\n      [showDrop],\n    );\n\n    const renderPlaceholder = () => {\n      return mask.map(item => item.placeholder || item.fixed).join('');\n    };\n\n    return (\n      <StyledMaskedInputContainer plain={plain}>\n        {icon && (\n          <StyledIcon reverse={reverse} theme={theme}>\n            {icon}\n          </StyledIcon>\n        )}\n        <Keyboard\n          onEsc={onEsc}\n          onTab={showDrop ? () => setShowDrop(false) : undefined}\n          onLeft={undefined}\n          onRight={undefined}\n          onUp={onPreviousOption}\n          onDown={showDrop ? onNextOption : () => setShowDrop(true)}\n          onEnter={onSelectOption}\n          onKeyDown={onKeyDown}\n        >\n          <StyledMaskedInput\n            ref={ref || inputRef}\n            id={id}\n            name={name}\n            autoComplete=\"off\"\n            plain={plain}\n            placeholder={placeholder || renderPlaceholder()}\n            icon={icon}\n            reverse={reverse}\n            focus={focus}\n            {...rest}\n            value={value || ''}\n            theme={theme}\n            onFocus={event => {\n              setFocus(true);\n              setShowDrop(true);\n              if (onFocus) onFocus(event);\n            }}\n            onBlur={event => {\n              setFocus(false);\n              // This will be called when the user clicks on a suggestion,\n              // check for that and don't remove the drop in that case.\n              // Drop will already have removed itself if the user has focused\n              // outside of the Drop.\n              if (!dropRef.current) setShowDrop(false);\n              if (onBlur) onBlur(event);\n            }}\n            onChange={onChangeInput}\n          />\n        </Keyboard>\n        {showDrop && mask[activeMaskIndex] && mask[activeMaskIndex].options && (\n          <Drop\n            id={id ? `masked-input-drop__${id}` : undefined}\n            align={{ top: 'bottom', left: 'left' }}\n            responsive={false}\n            target={(ref || inputRef).current}\n            onClickOutside={() => setShowDrop(false)}\n            onEsc={() => setShowDrop(false)}\n          >\n            <Box ref={dropRef}>\n              {mask[activeMaskIndex].options.map((option, index) => (\n                <Box key={option} flex={false}>\n                  <Button\n                    tabIndex=\"-1\"\n                    onClick={onOption(option)}\n                    onMouseOver={() => setActiveOptionIndex(index)}\n                    onFocus={() => {}}\n                    active={index === activeOptionIndex}\n                    hoverIndicator=\"background\"\n                  >\n                    <Box pad={{ horizontal: 'small', vertical: 'xsmall' }}>\n                      {option}\n                    </Box>\n                  </Button>\n                </Box>\n              ))}\n            </Box>\n          </Drop>\n        )}\n      </StyledMaskedInputContainer>\n    );\n  },\n);\n\nMaskedInput.displayName = 'MaskedInput';\n\nlet MaskedInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  MaskedInputDoc = require('./doc').doc(MaskedInput);\n}\nconst MaskedInputWrapper = MaskedInputDoc || MaskedInput;\n\nexport { MaskedInputWrapper as MaskedInput };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, inputStyle, placeholderStyle } from '../../utils';\n\nconst sizeStyle = props => {\n  const data = props.theme.text[props.size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n  `;\n};\n\nconst plainStyle = css`\n  border: none;\n`;\n\nexport const StyledMaskedInput = styled.input`\n  ${inputStyle} width: 100%;\n\n  ${props => props.size && sizeStyle(props)} ${props =>\n  props.plain && plainStyle}\n\n  ${placeholderStyle}\n  ${props =>\n    props.icon &&\n    (props.reverse\n      ? `padding-right: ${props.theme.global.edgeSize.large};`\n      : `padding-left: ${props.theme.global.edgeSize.large};`)}\n\n  &::-moz-focus-inner {\n    border: none;\n    outline: none;\n  }\n\n  ${props => props.focus && !props.plain && focusStyle};\n  ${props => props.theme.maskedInput && props.theme.maskedInput.extend};\n`;\n\nexport const StyledMaskedInputContainer = styled.div`\n  position: relative;\n  width: 100%;\n`;\n\nexport const StyledIcon = styled.div`\n  position: absolute;\n  display: flex;\n  justify: center;\n  top: 50%;\n  transform: translateY(-50%);\n  pointer-events: none;\n  ${props =>\n    props.reverse\n      ? `right: ${props.theme.global.input.padding};`\n      : `left: ${props.theme.global.input.padding};`}\n`;\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\nimport styled, { withTheme } from 'styled-components';\n\nimport PropTypes from 'react-desc/lib/PropTypes';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { DropButton } from '../DropButton';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { normalizeColor } from '../../utils';\n\nconst ContainerBox = styled(Box)`\n  max-height: inherit;\n\n  /* IE11 hack to get drop contents to not overflow */\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    width: 100%;\n  }\n\n  ${props => props.theme.menu.extend};\n`;\n\n/* Notes on keyboard interactivity (based on W3) // For details reference: https://www.w3.org/TR/wai-aria-practices/#menu\n\nTo open menu when menu button is focused:\n- Space/Enter/Up arrow/Down arrow will open menu\n\nTo navigate within menu:\n- Up/down arrow keys can be used and will loop through options\n(keeping focus within the Menu)\n- Tab can be used, but once the last menu item is reached, Tab will close the \nMenu and continue through page content.\n\nTo close the menu:\n- Tabbing beyond the first or last menu item.\n- Esc will close the menu\n- Select a menu item\n\nTo make a selection:\n- Enter key is pressed.\n- Space is pressed.\n*/\n\nconst Menu = props => {\n  const {\n    a11yTitle,\n    children,\n    disabled,\n    dropAlign,\n    dropBackground,\n    dropProps,\n    dropTarget,\n    forwardRef,\n    justifyContent,\n    icon,\n    items,\n    label,\n    messages,\n    onKeyDown,\n    open,\n    plain,\n    size,\n    theme,\n    ...rest\n  } = props;\n  const MenuIcon = theme.menu.icons.down;\n  const iconColor = normalizeColor('control', theme);\n  const align = dropProps.align || dropAlign;\n  let controlButtonIndex;\n  if (align.top === 'top') {\n    controlButtonIndex = -1;\n  } else if (align.bottom === 'bottom') {\n    controlButtonIndex = items.length;\n  } else {\n    controlButtonIndex = undefined;\n  }\n  const buttonRefs = {};\n  const constants = {\n    none: 'none',\n    tab: 9,\n    // Menu control button included on top of menu items\n    controlTop: align.top === 'top' || undefined,\n    // Menu control button included on the bottom of menu items\n    controlBottom: align.bottom === 'bottom' || undefined,\n    controlButtonIndex,\n  };\n\n  const [activeItemIndex, setActiveItemIndex] = useState(constants.none);\n  const [isOpen, setOpen] = useState(open || false);\n\n  const onDropClose = () => {\n    setActiveItemIndex(constants.none);\n    setOpen(false);\n  };\n\n  const onDropOpen = () => {\n    setOpen(true);\n  };\n\n  const onSelectMenuItem = event => {\n    if (isOpen) {\n      if (activeItemIndex >= 0) {\n        event.preventDefault();\n        event.stopPropagation();\n        buttonRefs[activeItemIndex].click();\n      }\n    } else {\n      onDropOpen();\n    }\n  };\n\n  const isTab = event =>\n    event.keyCode === constants.tab || event.which === constants.tab;\n\n  const onNextMenuItem = event => {\n    event.preventDefault();\n    if (!isOpen) {\n      onDropOpen();\n    } else if (\n      isTab(event) &&\n      ((!constants.controlBottom && activeItemIndex === items.length - 1) ||\n        (constants.controlBottom && activeItemIndex === controlButtonIndex))\n    ) {\n      // User has reached end of the menu, this tab will close\n      // the menu drop because there are no more \"next items\" to access\n      onDropClose();\n    } else {\n      let index;\n      if (\n        // This checks if the user has reached the end of the menu.\n        // In the case the the menu control button is located at the\n        // bottom of the menu, it checks if the user has reached the button.\n        // Otherwise, it checks if the user is at the last menu item.\n        (constants.controlBottom && activeItemIndex === controlButtonIndex) ||\n        (!constants.controlBottom && activeItemIndex === items.length - 1) ||\n        activeItemIndex === constants.none\n      ) {\n        // place focus on the first menu item\n        index = 0;\n      } else {\n        index = activeItemIndex + 1;\n      }\n      setActiveItemIndex(index);\n      buttonRefs[index].focus();\n    }\n  };\n\n  const onPreviousMenuItem = event => {\n    event.preventDefault();\n    if (!isOpen) {\n      onDropOpen();\n    } else if (\n      isTab(event) &&\n      ((constants.controlTop && activeItemIndex === controlButtonIndex) ||\n        (!constants.controlTop && activeItemIndex - 1 < 0))\n    ) {\n      // User has reached beginning of the menu, this tab will close\n      // the menu drop because there are no more \"previous items\" to access\n      onDropClose();\n    } else {\n      let index;\n      if (activeItemIndex - 1 < 0) {\n        if (\n          constants.controlTop &&\n          activeItemIndex - 1 === controlButtonIndex\n        ) {\n          index = items.length;\n        } else {\n          index = items.length - 1;\n        }\n      } else {\n        index = activeItemIndex - 1;\n      }\n      setActiveItemIndex(index);\n      buttonRefs[index].focus();\n    }\n  };\n\n  const content = children || (\n    <Box\n      direction=\"row\"\n      justify={justifyContent}\n      align=\"center\"\n      pad=\"small\"\n      gap={label && icon !== false ? 'small' : undefined}\n    >\n      <Text size={size}>{label}</Text>\n      {icon !== false\n        ? (icon !== true && icon) || <MenuIcon color={iconColor} size={size} />\n        : null}\n    </Box>\n  );\n\n  const controlMirror = (\n    <Box flex={false}>\n      <Button\n        ref={r => {\n          // make it accessible at the end of all menu items\n          buttonRefs[items.length] = r;\n        }}\n        a11yTitle={a11yTitle || messages.closeMenu || 'Close Menu'}\n        active={activeItemIndex === controlButtonIndex}\n        focusIndicator={false}\n        hoverIndicator=\"background\"\n        plain={plain}\n        onClick={onDropClose}\n        onFocus={() => setActiveItemIndex(controlButtonIndex)}\n        // On first tab into menu, the control button should not\n        // be able to receive tab focus because the focus should\n        // go to the first menu item instead.\n        tabIndex={activeItemIndex === constants.none ? '-1' : undefined}\n      >\n        {typeof content === 'function'\n          ? () => content({ ...props, drop: true })\n          : content}\n      </Button>\n    </Box>\n  );\n\n  return (\n    <Keyboard\n      onDown={onNextMenuItem}\n      onUp={onPreviousMenuItem}\n      onEnter={onSelectMenuItem}\n      onSpace={onSelectMenuItem}\n      onEsc={onDropClose}\n      onTab={onDropClose}\n      onKeyDown={onKeyDown}\n    >\n      <DropButton\n        ref={forwardRef}\n        {...rest}\n        a11yTitle={a11yTitle || messages.openMenu || 'Open Menu'}\n        disabled={disabled}\n        dropAlign={align}\n        dropTarget={dropTarget}\n        plain={plain}\n        open={isOpen}\n        onOpen={onDropOpen}\n        onClose={onDropClose}\n        dropContent={\n          <Keyboard\n            onTab={event =>\n              event.shiftKey ? onPreviousMenuItem(event) : onNextMenuItem(event)\n            }\n            onEnter={onSelectMenuItem}\n          >\n            <ContainerBox background={dropBackground || theme.menu.background}>\n              {align.top === 'top' ? controlMirror : undefined}\n              <Box overflow=\"auto\">\n                {items.map((item, index) => (\n                  // eslint-disable-next-line react/no-array-index-key\n                  <Box key={index} flex={false}>\n                    <Button\n                      ref={r => {\n                        buttonRefs[index] = r;\n                      }}\n                      onFocus={() => setActiveItemIndex(index)}\n                      active={activeItemIndex === index}\n                      hoverIndicator=\"background\"\n                      focusIndicator={false}\n                      {...{ ...item, icon: undefined, label: undefined }}\n                      onClick={(...args) => {\n                        if (item.onClick) {\n                          item.onClick(...args);\n                        }\n                        if (item.close !== false) {\n                          onDropClose();\n                        }\n                      }}\n                    >\n                      <Box\n                        align=\"start\"\n                        pad=\"small\"\n                        direction=\"row\"\n                        gap={item.gap}\n                      >\n                        {item.reverse && item.label}\n                        {item.icon}\n                        {!item.reverse && item.label}\n                      </Box>\n                    </Button>\n                  </Box>\n                ))}\n              </Box>\n              {align.bottom === 'bottom' ? controlMirror : undefined}\n            </ContainerBox>\n          </Keyboard>\n        }\n      >\n        {content}\n      </DropButton>\n    </Keyboard>\n  );\n};\n\nMenu.propTypes = {\n  dropAlign: PropTypes.shape({\n    top: PropTypes.string,\n    left: PropTypes.string,\n  }),\n  dropProps: PropTypes.shape({}),\n  items: PropTypes.arrayOf({}),\n  messages: PropTypes.shape({\n    openMenu: PropTypes.string,\n    closeMenu: PropTypes.string,\n  }),\n  justifyContent: PropTypes.string,\n};\n\nMenu.defaultProps = {\n  dropAlign: {\n    top: 'top',\n    left: 'left',\n  },\n  dropProps: {},\n  items: [],\n  messages: {\n    openMenu: 'Open Menu',\n    closeMenu: 'Close Menu',\n  },\n  justifyContent: 'start',\n};\n\nMenu.displayName = 'Menu';\n\nObject.setPrototypeOf(Menu.defaultProps, defaultProps);\n\nlet MenuDoc;\nif (process.env.NODE_ENV !== 'production') {\n  MenuDoc = require('./doc').doc(Menu); // eslint-disable-line global-require\n}\nconst MenuWrapper = compose(withTheme, withForwardRef)(MenuDoc || Menu);\n\nexport { MenuWrapper as Menu };\n","import React, { useMemo } from 'react';\n\nimport { Bar } from './Bar';\nimport { Circle } from './Circle';\n\nconst deriveMax = values => {\n  let max = 100;\n  if (values && values.length > 1) {\n    max = 0;\n    values.forEach(v => {\n      max += v.value;\n    });\n  }\n  return max;\n};\n\nconst Meter = ({\n  background = { color: 'light-2', opacity: 'medium' },\n  size = 'medium',\n  thickness = 'medium',\n  type = 'bar',\n  values,\n  ...rest\n}) => {\n  const memoizedMax = useMemo(() => deriveMax(values), [values]);\n  let content;\n  if (type === 'bar') {\n    content = (\n      <Bar\n        max={memoizedMax}\n        values={values}\n        size={size}\n        thickness={thickness}\n        background={background}\n        {...rest}\n      />\n    );\n  } else if (type === 'circle') {\n    content = (\n      <Circle\n        max={memoizedMax}\n        values={values}\n        size={size}\n        thickness={thickness}\n        background={background}\n        {...rest}\n      />\n    );\n  }\n  return content;\n};\n\nlet MeterDoc;\nif (process.env.NODE_ENV !== 'production') {\n  MeterDoc = require('./doc').doc(Meter); // eslint-disable-line global-require\n}\nconst MeterWrapper = MeterDoc || Meter;\n\nexport { MeterWrapper as Meter };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { parseMetricToNum } from '../../utils';\n\nimport { StyledMeter } from './StyledMeter';\nimport { strokeProps, defaultColor } from './utils';\n\nconst Bar = props => {\n  const {\n    background,\n    max,\n    round,\n    size,\n    theme,\n    thickness,\n    values,\n    ...rest\n  } = props;\n  const width =\n    size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);\n  const height = parseMetricToNum(\n    theme.global.edgeSize[thickness] || thickness,\n  );\n  // account for the round cap, if any\n  const capOffset = round ? height / 2 : 0;\n  const mid = height / 2;\n  const someHighlight = (values || []).some(v => v.highlight);\n\n  let start = capOffset;\n  const paths = (values || [])\n    .filter(v => v.value > 0)\n    .map((valueArg, index) => {\n      const { color, highlight, label, onHover, value, ...pathRest } = valueArg;\n\n      const key = `p-${index}`;\n      const delta = (value * (width - 2 * capOffset)) / max;\n      const d = `M ${start},${mid} L ${start + delta},${mid}`;\n      const colorName =\n        color || defaultColor(index, theme, values ? values.length : 0);\n      let hoverProps;\n      if (onHover) {\n        hoverProps = {\n          onMouseOver: () => onHover(true),\n          onMouseLeave: () => onHover(false),\n        };\n      }\n      start += delta;\n\n      return (\n        <path\n          key={key}\n          d={d}\n          fill=\"none\"\n          {...strokeProps(\n            someHighlight && !highlight ? background : colorName,\n            theme,\n          )}\n          strokeWidth={height}\n          strokeLinecap={round ? 'round' : 'butt'}\n          {...hoverProps}\n          {...pathRest}\n        />\n      );\n    })\n    .reverse(); // reverse so the caps looks right\n\n  return (\n    <StyledMeter\n      viewBox={`0 0 ${width} ${height}`}\n      preserveAspectRatio=\"none\"\n      width={size === 'full' ? '100%' : width}\n      height={height}\n      round={round ? { size: thickness } : undefined}\n      {...rest}\n    >\n      <path\n        d={`M ${capOffset},${mid} L ${width - capOffset},${mid}`}\n        fill=\"none\"\n        {...strokeProps(background, theme)}\n        strokeWidth={height}\n        strokeLinecap={round ? 'round' : 'square'}\n      />\n      {paths}\n    </StyledMeter>\n  );\n};\n\nBar.defaultProps = {\n  background: 'light-1',\n};\n\nObject.setPrototypeOf(Bar.defaultProps, defaultProps);\n\nconst BarWrapper = compose(withTheme)(Bar);\n\nexport { BarWrapper as Bar };\n","import React from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { arcCommands, parseMetricToNum, translateEndAngle } from '../../utils';\n\nimport { StyledMeter } from './StyledMeter';\nimport { strokeProps, defaultColor } from './utils';\n\nconst Circle = props => {\n  const {\n    background,\n    max,\n    round,\n    size,\n    theme,\n    thickness,\n    values,\n    ...rest\n  } = props;\n  const width =\n    size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);\n  const height = parseMetricToNum(\n    theme.global.edgeSize[thickness] || thickness,\n  );\n  const mid = width / 2;\n  const radius = width / 2 - height / 2;\n  const anglePer = 360 / max;\n  const someHighlight = (values || []).some(v => v.highlight);\n\n  let startValue = 0;\n  let startAngle = 0;\n  const paths = [];\n  let pathCaps = [];\n  (values || [])\n    .filter(v => v.value > 0)\n    .forEach((valueArg, index) => {\n      const { color, highlight, label, onHover, value, ...pathRest } = valueArg;\n      const key = `p-${index}`;\n      const colorName =\n        color || defaultColor(index, theme, values ? values.length : 0);\n\n      let endAngle;\n      if (startValue + value >= max) {\n        endAngle = 360;\n      } else {\n        endAngle = Math.min(\n          360,\n          translateEndAngle(startAngle, anglePer, value),\n        );\n      }\n      let hoverProps;\n      if (onHover) {\n        hoverProps = {\n          onMouseOver: () => onHover(true),\n          onMouseLeave: () => onHover(false),\n        };\n      }\n      const stroke = strokeProps(\n        someHighlight && !highlight ? background : colorName,\n        theme,\n      );\n\n      if (round) {\n        const d1 = arcCommands(\n          width / 2,\n          width / 2,\n          radius,\n          startAngle,\n          endAngle,\n        );\n        paths.unshift(\n          <path\n            key={key}\n            d={d1}\n            fill=\"none\"\n            {...stroke}\n            strokeWidth={height}\n            strokeLinecap=\"round\"\n            {...hoverProps}\n            {...pathRest}\n          />,\n        );\n\n        // To handle situations where the last values are small, redraw\n        // a dot at the end. Give just a bit of angle to avoid anti-aliasing\n        // leakage around the edge.\n        const d2 = arcCommands(\n          width / 2,\n          width / 2,\n          radius,\n          endAngle - 0.5,\n          endAngle,\n        );\n        const pathCap = (\n          <path\n            key={`${key}-`}\n            d={d2}\n            fill=\"none\"\n            {...stroke}\n            strokeWidth={height}\n            strokeLinecap=\"round\"\n            {...hoverProps}\n            {...pathRest}\n          />\n        );\n        // If we are on a large enough path to not need re-drawing previous\n        // ones, clear the pathCaps we've collected already.\n        if (endAngle - startAngle > 2 * anglePer) {\n          pathCaps = [];\n        }\n        pathCaps.unshift(pathCap);\n      } else {\n        const d = arcCommands(\n          width / 2,\n          width / 2,\n          radius,\n          startAngle,\n          endAngle,\n        );\n        paths.push(\n          <path\n            key={key}\n            d={d}\n            fill=\"none\"\n            {...stroke}\n            strokeWidth={height}\n            strokeLinecap=\"butt\"\n            {...hoverProps}\n            {...pathRest}\n          />,\n        );\n      }\n      startValue += value;\n      startAngle = endAngle;\n    });\n\n  return (\n    <StyledMeter\n      viewBox={`0 0 ${width} ${width}`}\n      width={size === 'full' ? '100%' : width}\n      height={size === 'full' ? '100%' : width}\n      {...rest}\n    >\n      <circle\n        cx={mid}\n        cy={mid}\n        r={radius}\n        {...strokeProps(background, theme)}\n        strokeWidth={height}\n        strokeLinecap={round ? 'round' : 'square'}\n        fill=\"none\"\n      />\n      {paths}\n      {pathCaps}\n    </StyledMeter>\n  );\n};\n\nCircle.defaultProps = {};\nObject.setPrototypeOf(Circle.defaultProps, defaultProps);\n\nconst CircleWrapper = compose(withTheme)(Circle);\n\nexport { CircleWrapper as Circle };\n","export { Nav } from './Nav';\n","import React from 'react';\n\nimport { Box } from '../Box';\n\nconst Nav = ({ ...rest }) => (\n  <Box as=\"nav\" flex={false} gap=\"medium\" {...rest} />\n);\n\nlet NavDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  NavDoc = require('./doc').doc(Nav);\n}\nconst NavWrapper = NavDoc || Nav;\n\nexport { NavWrapper as Nav };\n","export { RangeInput } from './RangeInput';\n","import React, { forwardRef, useContext, useState } from 'react';\n\nimport { FormContext } from '../Form/FormContext';\nimport { StyledRangeInput } from './StyledRangeInput';\n\nconst RangeInput = forwardRef(\n  ({ name, onChange, onFocus, onBlur, value: valueProp, ...rest }, ref) => {\n    const formContext = useContext(FormContext);\n\n    const [value, setValue] = formContext.useFormContext(name, valueProp, 0);\n\n    const [focus, setFocus] = useState();\n    return (\n      <StyledRangeInput\n        ref={ref}\n        name={name}\n        focus={focus}\n        value={value}\n        {...rest}\n        onFocus={event => {\n          setFocus(true);\n          if (onFocus) onFocus(event);\n        }}\n        onBlur={event => {\n          setFocus(false);\n          if (onBlur) onBlur(event);\n        }}\n        onChange={event => {\n          setValue(event.target.value);\n          if (onChange) onChange(event);\n        }}\n        type=\"range\"\n      />\n    );\n  },\n);\n\nRangeInput.displayName = 'RangeInput';\n\nlet RangeInputDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RangeInputDoc = require('./doc').doc(RangeInput);\n}\nconst RangeInputWrapper = RangeInputDoc || RangeInput;\n\nexport { RangeInputWrapper as RangeInput };\n","import styled, { css } from 'styled-components';\n\nimport { focusStyle, normalizeColor, parseMetricToNum } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst rangeTrackStyle = css`\n  box-sizing: border-box;\n  width: 100%;\n  height: ${props => props.theme.rangeInput.track.height};\n  background: ${props =>\n    normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n  ${props =>\n    props.theme.rangeInput &&\n    props.theme.rangeInput.track &&\n    props.theme.rangeInput.track.extend}\n`;\n\nconst rangeThumbStyle = css`\n  box-sizing: border-box;\n  position: relative;\n  border-radius: ${props => props.theme.global.spacing};\n  height: ${props => props.theme.global.spacing};\n  width: ${props => props.theme.global.spacing};\n  overflow: visible;\n  background: ${props =>\n    normalizeColor(\n      props.theme.rangeInput.thumb.color || 'control',\n      props.theme,\n    )};\n  -webkit-appearance: none;\n  cursor: pointer;\n  ${props =>\n    props.theme.rangeInput &&\n    props.theme.rangeInput.thumb &&\n    props.theme.rangeInput.thumb.extend}\n`;\n\nconst firefoxMicrosoftThumbStyle = css`\n  ${rangeThumbStyle} margin-top: 0px;\n  height: ${props => props.theme.global.spacing};\n  width: ${props => props.theme.global.spacing};\n  ${props =>\n    props.theme.rangeInput &&\n    props.theme.rangeInput.thumb &&\n    props.theme.rangeInput.thumb.extend}\n`;\n\n/* eslint-disable max-len */\nconst StyledRangeInput = styled.input`\n  box-sizing: border-box;\n  position: relative;\n  -webkit-appearance: none;\n  border-color: transparent;\n  height: ${props => props.theme.global.spacing};\n  width: 100%;\n  padding: 0px;\n  cursor: pointer;\n  background: transparent;\n\n  &:focus {\n    outline: none;\n  }\n\n  &::-moz-focus-inner {\n    border: none;\n  }\n\n  &::-moz-focus-outer {\n    border: none;\n  }\n\n  &::-webkit-slider-runnable-track {\n    ${rangeTrackStyle}\n  }\n\n  &::-webkit-slider-thumb {\n    margin-top: -${props => (parseMetricToNum(props.theme.global.spacing) - parseMetricToNum(props.theme.rangeInput.track.height || 0)) * 0.5}px;\n    ${rangeThumbStyle}\n\n    ${props =>\n      !props.disabled &&\n      css`\n        &:hover {\n          box-shadow: 0px 0px 0px 2px\n            ${normalizeColor(\n              props.theme.rangeInput.thumb.color || 'control',\n              props.theme,\n            )};\n        }\n      `}\n  }\n\n  &::-moz-range-track {\n    ${rangeTrackStyle}\n  }\n\n  &::-moz-range-thumb {\n    ${firefoxMicrosoftThumbStyle}\n  }\n\n  &::-ms-thumb {\n    ${firefoxMicrosoftThumbStyle}\n  }\n\n  ${props =>\n    !props.disabled &&\n    css`\n      &:hover::-moz-range-thumb {\n        box-shadow: 0px 0px 0px 2px\n          ${normalizeColor(\n            props.theme.rangeInput.thumb.color || 'control',\n            props.theme,\n          )};\n      }\n\n      &:hover::-ms-thumb {\n        box-shadow: 0px 0px 0px 2px\n          ${normalizeColor(\n            props.theme.rangeInput.thumb.color || 'control',\n            props.theme,\n          )};\n      }\n    `}\n\n  &::-ms-track {\n    ${rangeTrackStyle}\n    border-color: transparent;\n    color: transparent;\n  }\n\n  &::-ms-fill-lower {\n    background: ${props =>\n      normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n    border-color: transparent;\n  }\n\n  &::-ms-fill-upper {\n    background: ${props =>\n      normalizeColor(props.theme.rangeInput.track.color, props.theme)};\n    border-color: transparent;\n  }\n\n  ${props => props.focus && focusStyle}\n  ${props => props.theme.rangeInput && props.theme.rangeInput.extend}\n`;\n/* eslint-enable max-len */\n\nStyledRangeInput.defaultProps = {};\nObject.setPrototypeOf(StyledRangeInput.defaultProps, defaultProps);\n\nexport { StyledRangeInput };\n","export { RangeSelector } from './RangeSelector';\n","import React, {\n  forwardRef,\n  useCallback,\n  useContext,\n  useEffect,\n  useRef,\n  useState,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { Box } from '../Box';\nimport { EdgeControl } from './EdgeControl';\nimport { parseMetricToNum } from '../../utils';\n\nconst Container = styled(Box)`\n  user-select: none;\n`;\n\nconst RangeSelector = forwardRef(\n  (\n    {\n      color,\n      direction = 'horizontal',\n      invert,\n      max = 100,\n      messages = { lower: 'Lower Bounds', upper: 'Upper Bounds' },\n      min = 0,\n      onChange,\n      opacity = 'medium',\n      round,\n      size = 'medium',\n      step = 1,\n      values = [],\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const [changing, setChanging] = useState();\n    const [lastChange, setLastChange] = useState();\n    const [moveValue, setMoveValue] = useState();\n    const containerRef = useRef();\n\n    const valueForMouseCoord = useCallback(\n      event => {\n        const rect = containerRef.current.getBoundingClientRect();\n        let value;\n        if (direction === 'vertical') {\n          // there is no x and y in unit testing\n          const y = event.clientY - (rect.top || 0); // test resilience\n          const scaleY = rect.height / (max - min + 1) || 1; // test resilience\n          value = Math.floor(y / scaleY) + min;\n        } else {\n          const x = event.clientX - (rect.left || 0); // test resilience\n          const scaleX = rect.width / (max - min + 1) || 1; // test resilience\n          value = Math.floor(x / scaleX) + min;\n        }\n        // align with closest step within [min, max]\n        const result = Math.ceil(value / step) * step;\n        if (result < min) {\n          return min;\n        }\n        if (result > max) {\n          return max;\n        }\n        return result;\n      },\n      [direction, max, min, step],\n    );\n\n    useEffect(() => {\n      const mouseMove = event => {\n        const value = valueForMouseCoord(event);\n        let nextValues;\n        if (changing === 'lower' && value <= values[1] && value !== moveValue) {\n          nextValues = [value, values[1]];\n        } else if (\n          changing === 'upper' &&\n          value >= values[0] &&\n          value !== moveValue\n        ) {\n          nextValues = [values[0], value];\n        } else if (changing === 'selection' && value !== moveValue) {\n          const delta = value - moveValue;\n          if (values[0] + delta >= min && values[1] + delta <= max) {\n            nextValues = [values[0] + delta, values[1] + delta];\n          }\n        }\n        if (nextValues) {\n          setMoveValue(value);\n          onChange(nextValues);\n        }\n      };\n\n      const mouseUp = () => setChanging(undefined);\n\n      if (changing) {\n        window.addEventListener('mousemove', mouseMove);\n        window.addEventListener('mouseup', mouseUp);\n\n        return () => {\n          window.removeEventListener('mousemove', mouseMove);\n          window.removeEventListener('mouseup', mouseUp);\n        };\n      }\n      return undefined;\n    }, [changing, max, min, moveValue, onChange, valueForMouseCoord, values]);\n\n    const onClick = useCallback(\n      event => {\n        const value = valueForMouseCoord(event);\n        if (\n          value <= values[0] ||\n          (value < values[1] && lastChange === 'lower')\n        ) {\n          setLastChange('lower');\n          onChange([value, values[1]]);\n        } else if (\n          value >= values[1] ||\n          (value > values[0] && lastChange === 'upper')\n        ) {\n          setLastChange('upper');\n          onChange([values[0], value]);\n        }\n      },\n      [lastChange, onChange, valueForMouseCoord, values],\n    );\n\n    const [lower, upper] = values;\n    // It needs to be true when vertical, due to how browsers manage height\n    // const fill = direction === 'vertical' ? true : 'horizontal';\n    const thickness =\n      size === 'full'\n        ? undefined\n        : `${parseMetricToNum(theme.global.edgeSize[size] || size)}px`;\n    const layoutProps = { fill: direction, round };\n    if (direction === 'vertical') layoutProps.width = thickness;\n    else layoutProps.height = thickness;\n    if (size === 'full') layoutProps.alignSelf = 'stretch';\n\n    return (\n      <Container\n        ref={containerRef}\n        direction={direction === 'vertical' ? 'column' : 'row'}\n        align=\"center\"\n        fill\n        {...rest}\n        tabIndex=\"-1\"\n        onClick={onChange ? onClick : undefined}\n      >\n        <Box\n          style={{ flex: `${lower - min} 0 0` }}\n          background={\n            invert\n              ? // preserve existing dark, instead of using darknes\n                // of this color\n                {\n                  color: color || theme.rangeSelector.background.invert.color,\n                  opacity,\n                  dark: theme.dark,\n                }\n              : undefined\n          }\n          {...layoutProps}\n        />\n        <EdgeControl\n          a11yTitle={messages.lower}\n          tabIndex={0}\n          ref={ref}\n          color={color}\n          direction={direction}\n          thickness={thickness}\n          edge=\"lower\"\n          onMouseDown={onChange ? () => setChanging('lower') : undefined}\n          onDecrease={\n            onChange && lower - step >= min\n              ? () => onChange([lower - step, upper])\n              : undefined\n          }\n          onIncrease={\n            onChange && lower + step <= upper\n              ? () => onChange([lower + step, upper])\n              : undefined\n          }\n        />\n        <Box\n          style={{\n            flex: `${upper - lower + 1} 0 0`,\n            cursor: direction === 'vertical' ? 'ns-resize' : 'ew-resize',\n          }}\n          background={\n            invert\n              ? undefined\n              : // preserve existing dark, instead of using darknes of\n                // this color\n                { color: color || 'control', opacity, dark: theme.dark }\n          }\n          {...layoutProps}\n          onMouseDown={\n            onChange\n              ? event => {\n                  const nextMoveValue = valueForMouseCoord(event);\n                  setChanging('selection');\n                  setMoveValue(nextMoveValue);\n                }\n              : undefined\n          }\n        />\n        <EdgeControl\n          a11yTitle={messages.upper}\n          tabIndex={0}\n          color={color}\n          direction={direction}\n          thickness={thickness}\n          edge=\"upper\"\n          onMouseDown={onChange ? () => setChanging('upper') : undefined}\n          onDecrease={\n            onChange && upper - step >= lower\n              ? () => onChange([lower, upper - step])\n              : undefined\n          }\n          onIncrease={\n            onChange && upper + step <= max\n              ? () => onChange([lower, upper + step])\n              : undefined\n          }\n        />\n        <Box\n          style={{ flex: `${max - upper} 0 0` }}\n          background={\n            invert\n              ? // preserve existing dark, instead of using darknes of this\n                // color\n                {\n                  color: color || theme.rangeSelector.background.invert.color,\n                  opacity,\n                  dark: theme.dark,\n                }\n              : undefined\n          }\n          {...layoutProps}\n          round={round}\n        />\n      </Container>\n    );\n  },\n);\n\nRangeSelector.displayName = 'RangeSelector';\n\nlet RangeSelectorDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RangeSelectorDoc = require('./doc').doc(RangeSelector);\n}\nconst RangeSelectorWrapper = RangeSelectorDoc || RangeSelector;\n\nexport { RangeSelectorWrapper as RangeSelector };\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Keyboard } from '../Keyboard';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\nimport { withForwardRef } from '../hocs';\n\nconst DIRECTION_PROPS = {\n  horizontal: {\n    cursor: 'col-resize',\n    fill: 'vertical',\n  },\n  vertical: {\n    cursor: 'row-resize',\n    fill: 'horizontal',\n  },\n};\n\nconst EdgeControl = ({\n  color,\n  direction,\n  edge,\n  forwardRef,\n  onDecrease,\n  onIncrease,\n  theme,\n  thickness,\n  ...rest\n}) => {\n  const [focused, setFocused] = useState(false);\n  const { cursor, fill } = DIRECTION_PROPS[direction];\n  const size = parseMetricToNum(theme.global.spacing) / 2;\n  const keyboardProps =\n    direction === 'vertical'\n      ? { onUp: onDecrease, onDown: onIncrease }\n      : { onLeft: onDecrease, onRight: onIncrease };\n  const boxDirection = direction === 'vertical' ? 'row' : 'column';\n  const type =\n    (theme.rangeSelector &&\n      theme.rangeSelector.edge &&\n      theme.rangeSelector.edge.type) ||\n    'disc';\n\n  let node;\n  if (type === 'bar') {\n    node = (\n      <Box\n        flex={!thickness}\n        justifySelf=\"stretch\"\n        width={direction === 'vertical' ? thickness : `${size}px`}\n        height={direction === 'vertical' ? `${size}px` : thickness}\n        background={normalizeColor(color || 'control', theme)}\n        border={focused ? { color: normalizeColor('focus', theme) } : undefined}\n      />\n    );\n  } else if (type === 'disc') {\n    node = (\n      <Box\n        width={`${size + (focused ? 2 : 0)}px`}\n        height={`${size + (focused ? 2 : 0)}px`}\n        round=\"full\"\n        background={normalizeColor(color || 'control', theme)}\n        border={focused ? { color: normalizeColor('focus', theme) } : undefined}\n      />\n    );\n  } else {\n    node = type;\n  }\n  return (\n    <Keyboard {...keyboardProps}>\n      <Box\n        direction={boxDirection}\n        style={{ flex: '0 0 1px' }}\n        overflow=\"visible\"\n        align=\"center\"\n        justify=\"center\"\n        alignSelf=\"stretch\"\n      >\n        <Box\n          ref={forwardRef}\n          direction={boxDirection}\n          justify=\"center\"\n          align=\"center\"\n          basis=\"full\"\n          fill={fill}\n          style={{\n            cursor,\n            minWidth: size,\n            minHeight: size,\n            zIndex: 10,\n          }}\n          tabIndex={0}\n          onFocus={() => setFocused(true)}\n          onBlur={() => setFocused(false)}\n          {...rest}\n        >\n          {node}\n        </Box>\n      </Box>\n    </Keyboard>\n  );\n};\n\nEdgeControl.defaultProps = {};\nObject.setPrototypeOf(EdgeControl.defaultProps, defaultProps);\n\nconst EdgeControlWrapper = compose(withForwardRef, withTheme)(EdgeControl);\n\nexport { EdgeControlWrapper as EdgeControl };\n","export { RoutedAnchor } from './RoutedAnchor';\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Anchor } from '../Anchor';\n\nclass RoutedAnchor extends Component {\n  static contextTypes = {\n    router: PropTypes.shape({}).isRequired,\n  };\n\n  static defaultProps = {\n    method: 'push',\n  };\n\n  render() {\n    const { path, method, ...rest } = this.props;\n    if (process.env.NODE_ENV !== 'production') {\n      console.warn(\n        `This component will be deprecated in the upcoming releases. \n        Please refer to https://github.com/grommet/grommet/issues/2855 \n        for more information.`,\n      );\n    }\n    return (\n      <Anchor\n        {...rest}\n        href={path}\n        onClick={(event, ...args) => {\n          const { onClick } = this.props;\n          const { router } = this.context;\n          if (event) {\n            const modifierKey = event.ctrlKey || event.metaKey;\n\n            // if the user right-clicked in the Anchor we should let it go\n            if (modifierKey) {\n              return;\n            }\n          }\n          if (router) {\n            event.preventDefault();\n            (router.history || router)[method](path);\n          }\n          if (onClick) {\n            onClick(event, ...args);\n          }\n        }}\n      />\n    );\n  }\n}\n\nlet RoutedAnchorDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RoutedAnchorDoc = require('./doc').doc(RoutedAnchor);\n}\nconst RoutedAnchorWrapper = RoutedAnchorDoc || RoutedAnchor;\n\nexport { RoutedAnchorWrapper as RoutedAnchor };\n","export { RoutedButton } from './RoutedButton';\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Button } from '../Button';\n\nclass RoutedButton extends Component {\n  static contextTypes = {\n    router: PropTypes.shape({}).isRequired,\n  };\n\n  static defaultProps = {\n    method: 'push',\n  };\n\n  onClick = (event, ...args) => {\n    const { method, onClick, path } = this.props;\n    const { router } = this.context;\n    if (event) {\n      const modifierKey = event.ctrlKey || event.metaKey;\n\n      // if the user right-clicked in the button we should let it go\n      if (modifierKey) {\n        return;\n      }\n    }\n    if (router) {\n      event.preventDefault();\n      (router.history || router)[method](path);\n    }\n    if (onClick) {\n      onClick(event, ...args);\n    }\n  };\n\n  render() {\n    const { href, path, method, onClick, ...rest } = this.props;\n    if (process.env.NODE_ENV !== 'production') {\n      console.warn(\n        `This component will be deprecated in the upcoming releases.\n         Please refer to https://github.com/grommet/grommet/issues/2855 \n         for more information.`,\n      );\n    }\n    return (\n      <Button\n        {...rest}\n        href={path || href}\n        disabled={!path && !onClick}\n        onClick={this.onClick}\n      />\n    );\n  }\n}\n\nlet RoutedButtonDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  RoutedButtonDoc = require('./doc').doc(RoutedButton);\n}\nconst RoutedButtonWrapper = RoutedButtonDoc || RoutedButton;\n\nexport { RoutedButtonWrapper as RoutedButton };\n","export { Select } from './Select';\n","import React, {\n  forwardRef,\n  isValidElement,\n  useContext,\n  useMemo,\n  useState,\n  useRef,\n  useEffect,\n} from 'react';\nimport styled, { ThemeContext } from 'styled-components';\n\nimport { controlBorderStyle, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { DropButton } from '../DropButton';\nimport { Keyboard } from '../Keyboard';\nimport { FormContext } from '../Form/FormContext';\nimport { TextInput } from '../TextInput';\n\nimport { SelectContainer } from './SelectContainer';\n\nconst SelectTextInput = styled(TextInput)`\n  cursor: pointer;\n`;\n\nconst StyledSelectDropButton = styled(DropButton)`\n  ${props => !props.plain && controlBorderStyle};\n  ${props =>\n    props.theme.select &&\n    props.theme.select.control &&\n    props.theme.select.control.extend};\n  ${props => props.open && props.theme.select.control.open};\n`;\n\nStyledSelectDropButton.defaultProps = {};\nObject.setPrototypeOf(StyledSelectDropButton.defaultProps, defaultProps);\n\nconst Select = forwardRef(\n  (\n    {\n      a11yTitle,\n      alignSelf,\n      children,\n      closeOnChange = true,\n      disabled,\n      disabledKey,\n      dropAlign = { top: 'bottom', left: 'left' },\n      dropHeight,\n      dropProps,\n      dropTarget,\n      emptySearchMessage,\n      focusIndicator,\n      gridArea,\n      id,\n      icon,\n      labelKey,\n      margin,\n      messages = { multiple: 'multiple' },\n      multiple,\n      name,\n      onChange,\n      onClose,\n      onKeyDown,\n      onMore,\n      onOpen,\n      onSearch,\n      open: propOpen,\n      options,\n      placeholder,\n      plain,\n      replace,\n      searchPlaceholder,\n      selected,\n      size,\n      value: valueProp,\n      valueKey,\n      valueLabel,\n      ...rest\n    },\n    ref,\n  ) => {\n    const theme = useContext(ThemeContext) || defaultProps.theme;\n    const inputRef = useRef();\n    const formContext = useContext(FormContext);\n\n    // normalize the value prop to not be objects\n    const normalizedValueProp = useMemo(() => {\n      if (Array.isArray(valueProp)) {\n        if (valueProp.length === 0) return valueProp;\n        if (typeof valueProp[0] === 'object' && valueKey) {\n          return valueProp.map(v => v[valueKey]);\n        }\n        return valueProp;\n      }\n      if (typeof valueProp === 'object' && valueKey) return valueProp[valueKey];\n      return valueProp;\n    }, [valueKey, valueProp]);\n\n    const [value, setValue] = formContext.useFormContext(\n      name,\n      normalizedValueProp,\n      '',\n    );\n\n    // track which options are present in the value\n    const valueOptions = useMemo(\n      () =>\n        options.filter((option, index) => {\n          if (selected !== undefined) {\n            if (Array.isArray(selected)) return selected.indexOf(index) !== -1;\n            return index === selected;\n          }\n          if (typeof option === 'object' && valueKey) {\n            if (Array.isArray(value)) {\n              return value.indexOf(option[valueKey]) !== -1;\n            }\n            return option[valueKey] === value;\n          }\n          if (Array.isArray(value)) {\n            return value.indexOf(option) !== -1;\n          }\n          return option === value;\n        }),\n      [options, selected, value, valueKey],\n    );\n\n    const [open, setOpen] = useState(propOpen);\n    useEffect(() => setOpen(propOpen), [propOpen]);\n\n    const onRequestOpen = () => {\n      setOpen(true);\n      if (onOpen) onOpen();\n    };\n\n    const onRequestClose = () => {\n      setOpen(false);\n      if (onClose) onClose();\n    };\n\n    const onSelectChange = (\n      event,\n      { option, value: nextValue, selected: nextSelected },\n    ) => {\n      if (closeOnChange) onRequestClose();\n      setValue(nextValue);\n      if (onChange) {\n        event.persist();\n        const adjustedEvent = event;\n        adjustedEvent.target = inputRef.current;\n        adjustedEvent.value = nextValue;\n        adjustedEvent.option = option;\n        adjustedEvent.selected = nextSelected;\n        onChange(adjustedEvent);\n      }\n    };\n\n    let SelectIcon;\n    switch (icon) {\n      case false:\n        break;\n      case true:\n      case undefined:\n        SelectIcon = theme.select.icons.down;\n        break;\n      default:\n        SelectIcon = icon;\n    }\n\n    // element to show, trumps inputValue\n    const selectValue = useMemo(() => {\n      if (valueLabel) return valueLabel;\n      if (React.isValidElement(value)) return value;\n      return undefined;\n    }, [value, valueLabel]);\n\n    // text to show\n    const inputValue = useMemo(() => {\n      if (!selectValue) {\n        if (Array.isArray(valueOptions)) {\n          if (valueOptions.length === 0) return '';\n          if (valueOptions.length === 1) {\n            const valueOption = valueOptions[0];\n            if (typeof valueOption === 'object' && labelKey) {\n              if (typeof labelKey === 'function') {\n                return labelKey(valueOption);\n              }\n              return valueOption[labelKey];\n            }\n            return valueOption;\n          }\n          return messages.multiple;\n        }\n        if (typeof valueOptions === 'object' && labelKey) {\n          if (typeof labelKey === 'function') {\n            return labelKey(valueOptions);\n          }\n          return valueOptions[labelKey];\n        }\n        if (valueOptions !== undefined) return valueOptions;\n        return '';\n      }\n      return undefined;\n    }, [labelKey, messages, selectValue, valueOptions]);\n\n    // const dark = theme.select.background\n    // ? colorIsDark(theme.select.background)\n    // : theme.dark;\n    const iconColor = normalizeColor(\n      theme.select.icons.color || 'control',\n      theme,\n    );\n\n    return (\n      <Keyboard onDown={onRequestOpen} onUp={onRequestOpen}>\n        <StyledSelectDropButton\n          ref={ref}\n          id={id}\n          disabled={disabled === true || undefined}\n          dropAlign={dropAlign}\n          dropTarget={dropTarget}\n          open={open}\n          alignSelf={alignSelf}\n          focusIndicator={focusIndicator}\n          gridArea={gridArea}\n          margin={margin}\n          onOpen={onRequestOpen}\n          onClose={onRequestClose}\n          dropContent={\n            <SelectContainer\n              disabled={disabled}\n              disabledKey={disabledKey}\n              dropHeight={dropHeight}\n              emptySearchMessage={emptySearchMessage}\n              id={id}\n              labelKey={labelKey}\n              multiple={multiple}\n              name={name}\n              onChange={onSelectChange}\n              onKeyDown={onKeyDown}\n              onMore={onMore}\n              onSearch={onSearch}\n              options={options}\n              replace={replace}\n              searchPlaceholder={searchPlaceholder}\n              selected={selected}\n              value={value}\n              valueKey={valueKey}\n            >\n              {children}\n            </SelectContainer>\n          }\n          plain={plain}\n          dropProps={dropProps}\n          theme={theme}\n        >\n          <Box\n            align=\"center\"\n            direction=\"row\"\n            justify=\"between\"\n            background={theme.select.background}\n          >\n            <Box direction=\"row\" flex basis=\"auto\">\n              {selectValue || (\n                <SelectTextInput\n                  a11yTitle={\n                    a11yTitle &&\n                    `${a11yTitle}${\n                      typeof value === 'string' ? `, ${value}` : ''\n                    }`\n                  }\n                  id={id ? `${id}__input` : undefined}\n                  name={name}\n                  ref={inputRef}\n                  {...rest}\n                  tabIndex=\"-1\"\n                  type=\"text\"\n                  placeholder={placeholder}\n                  plain\n                  readOnly\n                  value={inputValue}\n                  size={size}\n                  theme={theme}\n                  onClick={disabled === true ? undefined : onRequestOpen}\n                />\n              )}\n            </Box>\n            {SelectIcon && (\n              <Box\n                margin={theme.select.icons.margin}\n                flex={false}\n                style={{ minWidth: 'auto' }}\n              >\n                {isValidElement(SelectIcon) ? (\n                  SelectIcon\n                ) : (\n                  <SelectIcon color={iconColor} size={size} />\n                )}\n              </Box>\n            )}\n          </Box>\n        </StyledSelectDropButton>\n      </Keyboard>\n    );\n  },\n);\n\nSelect.defaultProps = { ...defaultProps };\n\nSelect.displayName = 'Select';\n\nlet SelectDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  SelectDoc = require('./doc').doc(Select);\n}\nconst SelectWrapper = SelectDoc || Select;\n\nexport { SelectWrapper as Select };\n","import React, { createRef, Component } from 'react';\nimport styled, { withTheme } from 'styled-components';\n\nimport {\n  debounce,\n  debounceDelay,\n  isNodeAfterScroll,\n  isNodeBeforeScroll,\n  selectedStyle,\n  setFocusWithoutScroll,\n} from '../../utils';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { InfiniteScroll } from '../InfiniteScroll';\nimport { Keyboard } from '../Keyboard';\nimport { Text } from '../Text';\nimport { TextInput } from '../TextInput';\n\nimport { SelectOption } from './SelectOption';\nimport { StyledContainer } from './StyledSelect';\n\n// position relative is so scroll can be managed correctly\nconst OptionsBox = styled(Box)`\n  position: relative;\n  scroll-behavior: smooth;\n`;\n\nconst OptionBox = styled(Box)`\n  ${props => props.selected && selectedStyle}\n`;\n\nclass SelectContainer extends Component {\n  static defaultProps = {\n    children: null,\n    disabled: undefined,\n    emptySearchMessage: 'No matches found',\n    id: undefined,\n    multiple: false,\n    name: undefined,\n    onKeyDown: undefined,\n    onSearch: undefined,\n    options: undefined,\n    searchPlaceholder: undefined,\n    selected: undefined,\n    value: '',\n    replace: true,\n  };\n\n  optionRefs = {};\n\n  searchRef = createRef();\n\n  optionsRef = createRef();\n\n  constructor(props) {\n    super(props);\n    this.state = {\n      initialOptions: props.options,\n      search: '',\n      activeIndex: -1,\n    };\n  }\n\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { options, value, onSearch } = nextProps;\n\n    if (onSearch) {\n      if (\n        prevState.activeIndex === -1 &&\n        prevState.search === '' &&\n        options &&\n        value\n      ) {\n        const optionValue =\n          Array.isArray(value) && value.length ? value[0] : value;\n        const activeIndex = options.indexOf(optionValue);\n        return { activeIndex };\n      }\n      if (prevState.activeIndex === -1 && prevState.search !== '') {\n        return { activeIndex: 0 };\n      }\n    }\n    return null;\n  }\n\n  componentDidMount() {\n    const { onSearch } = this.props;\n    const { activeIndex } = this.state;\n    // timeout need to send the operation through event loop and allow\n    // time to the portal to be available\n    setTimeout(() => {\n      const optionsNode = this.optionsRef.current;\n      if (onSearch) {\n        const input = this.searchRef.current;\n        if (input && input.focus) {\n          setFocusWithoutScroll(input);\n        }\n      } else if (optionsNode) {\n        setFocusWithoutScroll(optionsNode);\n      }\n\n      // scroll to active option if it is below the fold\n      if (activeIndex >= 0 && optionsNode) {\n        const optionNode = this.optionRefs[activeIndex];\n        const { bottom: containerBottom } = optionsNode.getBoundingClientRect();\n        if (optionNode) {\n          const { bottom: optionTop } = optionNode.getBoundingClientRect();\n\n          if (containerBottom < optionTop) {\n            optionNode.scrollIntoView();\n          }\n        }\n      }\n    }, 0);\n  }\n\n  onSearchChange = event => {\n    this.setState(\n      {\n        search: event.target.value,\n        activeIndex: -1,\n      },\n      () => {\n        const { search } = this.state;\n        this.onSearch(search);\n      },\n    );\n  };\n\n  // wait a debounceDelay of idle time in ms, before notifying that the search\n  // changed.\n  // the debounceDelay timer starts to count when the user stopped typing\n  onSearch = debounce(search => {\n    const { onSearch } = this.props;\n    onSearch(search);\n  }, debounceDelay(this.props));\n\n  selectOption = option => event => {\n    const { multiple, onChange, value, valueKey, selected } = this.props;\n    const { initialOptions } = this.state;\n    if (onChange) {\n      let nextValue = Array.isArray(value) ? value.slice() : [];\n      // preserve compatibility until selected is deprecated\n      if (selected) {\n        nextValue = selected.map(s => initialOptions[s]);\n      }\n      const optionValue = valueKey ? option[valueKey] : option;\n\n      if (multiple) {\n        if (nextValue.indexOf(optionValue) !== -1) {\n          nextValue = nextValue.filter(v => v !== optionValue);\n        } else {\n          nextValue.push(optionValue);\n        }\n      } else {\n        nextValue = optionValue;\n      }\n\n      const nextSelected = Array.isArray(nextValue)\n        ? nextValue.map(v => initialOptions.indexOf(v))\n        : initialOptions.indexOf(nextValue);\n      onChange(event, {\n        option,\n        value: nextValue,\n        selected: nextSelected,\n      });\n    }\n  };\n\n  // We use the state keyboardNavigating to prevent mouse over interaction\n  // from triggering changing the activeIndex due to scrolling.\n  clearKeyboardNavigation = () => {\n    clearTimeout(this.keyboardNavTimer);\n    this.keyboardNavTimer = setTimeout(() => {\n      this.setState({ keyboardNavigating: false });\n    }, 100); // 100ms was empirically determined\n  };\n\n  onNextOption = event => {\n    const { options } = this.props;\n    const { activeIndex } = this.state;\n    event.preventDefault();\n    let nextActiveIndex = activeIndex + 1;\n    while (\n      nextActiveIndex < options.length &&\n      this.isDisabled(nextActiveIndex)\n    ) {\n      nextActiveIndex += 1;\n    }\n    if (nextActiveIndex !== options.length) {\n      this.setState(\n        { activeIndex: nextActiveIndex, keyboardNavigating: true },\n        () => {\n          const buttonNode = this.optionRefs[nextActiveIndex];\n          const optionsNode = this.optionsRef.current;\n\n          if (\n            buttonNode &&\n            isNodeAfterScroll(buttonNode, optionsNode) &&\n            optionsNode.scrollTo\n          ) {\n            optionsNode.scrollTo(\n              0,\n              buttonNode.offsetTop -\n                (optionsNode.getBoundingClientRect().height -\n                  buttonNode.getBoundingClientRect().height),\n            );\n          }\n          this.clearKeyboardNavigation();\n        },\n      );\n    }\n  };\n\n  onPreviousOption = event => {\n    const { activeIndex } = this.state;\n    event.preventDefault();\n    let nextActiveIndex = activeIndex - 1;\n    while (nextActiveIndex >= 0 && this.isDisabled(nextActiveIndex)) {\n      nextActiveIndex -= 1;\n    }\n    if (nextActiveIndex >= 0) {\n      this.setState(\n        { activeIndex: nextActiveIndex, keyboardNavigating: true },\n        () => {\n          const buttonNode = this.optionRefs[nextActiveIndex];\n          const optionsNode = this.optionsRef.current;\n\n          if (\n            buttonNode &&\n            isNodeBeforeScroll(buttonNode, optionsNode) &&\n            optionsNode.scrollTo\n          ) {\n            optionsNode.scrollTo(0, buttonNode.offsetTop);\n          }\n          this.clearKeyboardNavigation();\n        },\n      );\n    }\n  };\n\n  onActiveOption = index => () => {\n    const { keyboardNavigating } = this.state;\n    if (!keyboardNavigating) {\n      this.setState({ activeIndex: index });\n    }\n  };\n\n  onSelectOption = event => {\n    const { options } = this.props;\n    const { activeIndex } = this.state;\n    if (activeIndex >= 0) {\n      event.preventDefault(); // prevent submitting forms\n      this.selectOption(options[activeIndex])(event);\n    }\n  };\n\n  optionLabel = index => {\n    const { options, labelKey } = this.props;\n    const option = options[index];\n    let optionLabel;\n    if (labelKey) {\n      if (typeof labelKey === 'function') {\n        optionLabel = labelKey(option);\n      } else {\n        optionLabel = option[labelKey];\n      }\n    } else {\n      optionLabel = option;\n    }\n    return optionLabel;\n  };\n\n  optionValue = index => {\n    const { options, valueKey } = this.props;\n    const option = options[index];\n    let optionValue;\n    if (valueKey) {\n      if (typeof valueKey === 'function') {\n        optionValue = valueKey(option);\n      } else {\n        optionValue = option[valueKey];\n      }\n    } else {\n      optionValue = option;\n    }\n    return optionValue;\n  };\n\n  isDisabled = index => {\n    const { disabled, disabledKey, options } = this.props;\n    const option = options[index];\n    let result;\n    if (disabledKey) {\n      if (typeof disabledKey === 'function') {\n        result = disabledKey(option, index);\n      } else {\n        result = option[disabledKey];\n      }\n    } else if (Array.isArray(disabled)) {\n      if (typeof disabled[0] === 'number') {\n        result = disabled.indexOf(index) !== -1;\n      } else {\n        const optionValue = this.optionValue(index);\n        result = disabled.indexOf(optionValue) !== -1;\n      }\n    }\n    return result;\n  };\n\n  isSelected = index => {\n    const { selected, value, valueKey } = this.props;\n    let result;\n    if (selected) {\n      // deprecated in favor of value\n      result = selected.indexOf(index) !== -1;\n    } else {\n      const optionValue = this.optionValue(index);\n      if (Array.isArray(value)) {\n        if (value.length === 0) {\n          result = false;\n        } else if (typeof value[0] !== 'object') {\n          result = value.indexOf(optionValue) !== -1;\n        } else if (valueKey) {\n          result = value.some(valueItem => {\n            const valueValue =\n              typeof valueKey === 'function'\n                ? valueKey(valueItem)\n                : valueItem[valueKey];\n            return valueValue === optionValue;\n          });\n        }\n      } else if (valueKey && typeof value === 'object') {\n        const valueValue =\n          typeof valueKey === 'function' ? valueKey(value) : value[valueKey];\n        result = valueValue === optionValue;\n      } else {\n        result = value === optionValue;\n      }\n    }\n    return result;\n  };\n\n  render() {\n    const {\n      children,\n      dropHeight,\n      emptySearchMessage,\n      id,\n      onMore,\n      onKeyDown,\n      onSearch,\n      options,\n      searchPlaceholder,\n      theme,\n      replace,\n    } = this.props;\n    const { activeIndex, search } = this.state;\n\n    const customSearchInput = theme.select.searchInput;\n    const SelectTextInput = customSearchInput || TextInput;\n    const selectOptionsStyle = {\n      ...theme.select.options.box,\n      ...theme.select.options.container,\n    };\n\n    return (\n      <Keyboard\n        onEnter={this.onSelectOption}\n        onUp={this.onPreviousOption}\n        onDown={this.onNextOption}\n        onKeyDown={onKeyDown}\n      >\n        <StyledContainer\n          as={Box}\n          id={id ? `${id}__select-drop` : undefined}\n          dropHeight={dropHeight}\n        >\n          {onSearch && (\n            <Box pad={!customSearchInput ? 'xsmall' : undefined} flex={false}>\n              <SelectTextInput\n                focusIndicator={!customSearchInput}\n                size=\"small\"\n                ref={this.searchRef}\n                type=\"search\"\n                value={search}\n                placeholder={searchPlaceholder}\n                onChange={this.onSearchChange}\n              />\n            </Box>\n          )}\n          <OptionsBox\n            flex=\"shrink\"\n            role=\"menubar\"\n            tabIndex=\"-1\"\n            ref={this.optionsRef}\n            overflow=\"auto\"\n          >\n            {options.length > 0 ? (\n              <InfiniteScroll\n                items={options}\n                step={theme.select.step}\n                onMore={onMore}\n                replace={replace}\n              >\n                {(option, index) => {\n                  const isDisabled = this.isDisabled(index);\n                  const isSelected = this.isSelected(index);\n                  const isActive = activeIndex === index;\n                  return (\n                    <SelectOption\n                      // eslint-disable-next-line react/no-array-index-key\n                      key={index}\n                      ref={ref => {\n                        this.optionRefs[index] = ref;\n                      }}\n                      disabled={isDisabled || undefined}\n                      active={isActive}\n                      selected={isSelected}\n                      option={option}\n                      onMouseOver={\n                        !isDisabled ? this.onActiveOption(index) : undefined\n                      }\n                      onClick={\n                        !isDisabled ? this.selectOption(option) : undefined\n                      }\n                    >\n                      {children ? (\n                        children(option, index, options, {\n                          active: isActive,\n                          disabled: isDisabled,\n                          selected: isSelected,\n                        })\n                      ) : (\n                        <OptionBox\n                          {...selectOptionsStyle}\n                          selected={isSelected}\n                        >\n                          <Text {...theme.select.options.text}>\n                            {this.optionLabel(index)}\n                          </Text>\n                        </OptionBox>\n                      )}\n                    </SelectOption>\n                  );\n                }}\n              </InfiniteScroll>\n            ) : (\n              <SelectOption\n                key=\"search_empty\"\n                disabled\n                option={emptySearchMessage}\n              >\n                <OptionBox {...selectOptionsStyle}>\n                  <Text {...theme.select.container.text}>\n                    {emptySearchMessage}\n                  </Text>\n                </OptionBox>\n              </SelectOption>\n            )}\n          </OptionsBox>\n        </StyledContainer>\n      </Keyboard>\n    );\n  }\n}\n\nObject.setPrototypeOf(SelectContainer.defaultProps, defaultProps);\n\nconst SelectContainerWrapper = withTheme(SelectContainer);\n\nexport { SelectContainerWrapper as SelectContainer };\n","import React from 'react';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { withForwardRef } from '../hocs';\n\nfunction areEqual(prevProps, nextProps) {\n  const { active, disabled, option, selected } = prevProps;\n  const {\n    active: nextActive,\n    disabled: nextDisabled,\n    option: nextOption,\n    selected: nextSelected,\n  } = nextProps;\n  return (\n    active === nextActive &&\n    selected === nextSelected &&\n    disabled === nextDisabled &&\n    option === nextOption\n  );\n}\n\nconst SelectOption = React.memo(({ forwardRef, ...rest }) => {\n  return (\n    <Box flex={false}>\n      <Button\n        tabIndex=\"-1\"\n        ref={forwardRef}\n        role=\"menuitem\"\n        hoverIndicator=\"background\"\n        {...rest}\n      />\n    </Box>\n  );\n}, areEqual);\n\nconst SelectOptionWrapper = withForwardRef(SelectOption);\n\nexport { SelectOptionWrapper as SelectOption };\n","import styled from 'styled-components';\n\nimport { sizeStyle } from '../../utils';\n\nexport const StyledContainer = styled.div`\n  /* IE11 hack to get drop contents to not overflow */\n  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n    width: 100%;\n  }\n\n  ${props =>\n    props.dropHeight\n      ? sizeStyle('max-height', props.dropHeight, props.theme)\n      : 'max-height: inherit;'};\n\n  ${props =>\n    props.theme.select.container && props.theme.select.container.extend};\n`;\n","export { SkipLink } from './SkipLink';\n","import React from 'react';\n\nimport { Anchor } from '../Anchor';\nimport { Box } from '../Box';\n\nexport const SkipLink = ({ id, label, ...rest }) => (\n  <Box margin=\"small\">\n    <Anchor href={`#${id}`} label={label} {...rest} />\n  </Box>\n);\n","export { SkipLinks } from './SkipLinks';\n","import React, { cloneElement, useRef, useState } from 'react';\n\nimport { Box } from '../Box';\nimport { Heading } from '../Heading';\nimport { Layer } from '../Layer';\n\nconst SkipLinks = ({ children, id, messages }) => {\n  const [showLayer, setShowLayer] = useState(false);\n\n  const layerRef = useRef(null);\n\n  const onFocus = () => {\n    setShowLayer(true);\n  };\n\n  const removeLayer = () => {\n    setShowLayer(false);\n  };\n\n  const onBlur = () => {\n    // timeout needed so it gives enough time for activeElement to be updated\n    setTimeout(() => {\n      const layerNode = layerRef.current;\n      if (\n        layerNode &&\n        layerNode.layerContainer &&\n        layerNode.layerContainer.contains &&\n        !layerNode.layerContainer.contains(document.activeElement)\n      ) {\n        removeLayer();\n      }\n    }, 0);\n  };\n\n  return (\n    <Layer\n      id={id}\n      position={showLayer ? 'top' : 'hidden'}\n      ref={layerRef}\n      onFocus={onFocus}\n      onBlur={onBlur}\n    >\n      <Box pad={{ horizontal: 'medium' }}>\n        <Heading level={2}>{messages.skipTo}:</Heading>\n        <Box direction=\"row\" align=\"center\" pad={{ bottom: 'medium' }}>\n          {children.map((element, index) =>\n            cloneElement(element, {\n              key: `skip-link-${index}`,\n              onClick: removeLayer,\n            }),\n          )}\n        </Box>\n      </Box>\n    </Layer>\n  );\n};\n\nSkipLinks.defaultProps = {\n  messages: {\n    skipTo: 'Skip To',\n  },\n};\n\nlet SkipLinksDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  SkipLinksDoc = require('./doc').doc(SkipLinks);\n}\nconst SkipLinksWrapper = SkipLinksDoc || SkipLinks;\n\nexport { SkipLinksWrapper as SkipLinks };\n","export { SkipLinkTarget } from './SkipLinkTarget';\n","import React from 'react';\nimport styled from 'styled-components';\n\nimport { Anchor } from '../Anchor';\n\nconst HiddenAnchor = styled(Anchor)`\n  width: 0;\n  height: 0;\n  overflow: hidden;\n  position: absolute;\n`;\n\nexport const SkipLinkTarget = ({ label, ...rest }) => (\n  <HiddenAnchor {...rest} tabIndex=\"-1\" aria-hidden=\"true\">\n    {label}\n  </HiddenAnchor>\n);\n","export { Tab } from './Tab';\n","import React, { useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { normalizeColor } from '../../utils';\n\nimport { StyledTab } from './StyledTab';\n\nconst Tab = ({\n  active,\n  forwardRef,\n  plain,\n  title,\n  onActivate,\n  onMouseOver,\n  onMouseOut,\n  theme,\n  ...rest\n}) => {\n  const [over, setOver] = useState(undefined);\n  let normalizedTitle = title;\n  const tabStyles = {};\n\n  const onMouseOverTab = event => {\n    setOver(true);\n    if (onMouseOver) {\n      onMouseOver(event);\n    }\n  };\n\n  const onMouseOutTab = event => {\n    setOver(undefined);\n    if (onMouseOut) {\n      onMouseOut(event);\n    }\n  };\n\n  const onClickTab = event => {\n    if (event) {\n      event.preventDefault();\n    }\n    onActivate();\n  };\n\n  if (!plain) {\n    if (typeof title !== 'string') {\n      normalizedTitle = title;\n    } else if (active) {\n      normalizedTitle = <Text {...theme.tab.active}>{title}</Text>;\n    } else {\n      normalizedTitle = (\n        <Text color={over ? theme.tab.hover.color : theme.tab.color}>\n          {title}\n        </Text>\n      );\n    }\n\n    if (theme.tab.border) {\n      let borderColor =\n        theme.tab.border.color || theme.global.control.border.color;\n      if (active) {\n        borderColor = theme.tab.border.active.color || borderColor;\n      } else if (over) {\n        borderColor = theme.tab.border.hover.color || borderColor;\n      }\n      borderColor = normalizeColor(borderColor, theme);\n\n      tabStyles.border = {\n        side: theme.tab.border.side,\n        size: theme.tab.border.size,\n        color: borderColor,\n      };\n    }\n\n    tabStyles.background = active\n      ? theme.tab.active.background || theme.tab.background\n      : theme.tab.background;\n    tabStyles.pad = theme.tab.pad;\n    tabStyles.margin = theme.tab.margin;\n  }\n\n  return (\n    <Button\n      ref={forwardRef}\n      plain\n      role=\"tab\"\n      aria-selected={active}\n      aria-expanded={active}\n      {...rest}\n      onClick={onClickTab}\n      onMouseOver={onMouseOverTab}\n      onMouseOut={onMouseOutTab}\n      onFocus={onMouseOver}\n      onBlur={onMouseOut}\n    >\n      <StyledTab as={Box} plain={plain} {...tabStyles}>\n        {normalizedTitle}\n      </StyledTab>\n    </Button>\n  );\n};\n\nTab.defaultProps = {};\nObject.setPrototypeOf(Tab.defaultProps, defaultProps);\n\nlet TabDoc;\nif (process.env.NODE_ENV !== 'production') {\n  TabDoc = require('./doc').doc(Tab); // eslint-disable-line global-require\n}\nconst TabWrapper = compose(\n  withTheme,\n  withForwardRef,\n)(TabDoc || Tab);\n\nexport { TabWrapper as Tab };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst tabHoverStyle = css`\n  &:hover {\n    ${props =>\n      props.theme.tab.hover.background &&\n      css`\n        background: ${normalizeColor(\n          props.theme.tab.hover.background,\n          props.theme,\n        )};\n      `}\n    ${props =>\n      props.theme.tab.hover.color &&\n      css`\n        color: ${normalizeColor(props.theme.tab.hover.color, props.theme)};\n      `}\n    ${props => props.theme.tab.hover.extend};\n  }\n`;\n\nconst StyledTab = styled.div`\n  ${genericStyles}\n  ${props => !props.plain && props.theme.tab.hover && tabHoverStyle}\n  ${props => props.theme.tab.extend}\n`;\n\nStyledTab.defaultProps = {};\nObject.setPrototypeOf(StyledTab.defaultProps, defaultProps);\n\nexport { StyledTab };\n","export { Tabs } from './Tabs';\n","import React, { cloneElement, Children, useState } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\n\nimport { StyledTabPanel, StyledTabs, StyledTabsHeader } from './StyledTabs';\n\nconst Tabs = ({\n  children,\n  flex,\n  justify = 'center',\n  messages = { tabContents: 'Tab Contents' },\n  theme,\n  ...rest\n}) => {\n  const { activeIndex: propsActiveIndex, onActive } = rest;\n  const [activeIndex, setActiveIndex] = useState(rest.activeIndex || 0);\n\n  if (activeIndex !== propsActiveIndex && propsActiveIndex !== undefined) {\n    setActiveIndex(propsActiveIndex);\n  }\n\n  const activateTab = index => {\n    if (propsActiveIndex === undefined) {\n      setActiveIndex(index);\n    }\n    if (onActive) {\n      onActive(index);\n    }\n  };\n\n  /* eslint-disable no-param-reassign */\n  delete rest.activeIndex;\n  delete rest.onActive;\n  /* eslint-enable no-param-reassign */\n\n  let activeContent;\n  let activeTitle;\n  const tabs = Children.map(\n    children,\n    (tab, index) => {\n      if (!tab) return undefined;\n\n      const tabProps = tab.props || {};\n\n      const isTabActive = index === activeIndex;\n\n      if (isTabActive) {\n        activeContent = tabProps.children;\n        if (typeof tabProps.title === 'string') {\n          activeTitle = tabProps.title;\n        } else {\n          activeTitle = index + 1;\n        }\n      }\n\n      return cloneElement(tab, {\n        active: isTabActive,\n        onActivate: () => activateTab(index),\n      });\n    },\n    this,\n  );\n\n  const tabContentTitle = `${activeTitle || ''} ${messages.tabContents}`;\n\n  return (\n    <StyledTabs\n      as={Box}\n      role=\"tablist\"\n      flex={flex}\n      {...rest}\n      background={theme.tabs.background}\n    >\n      <StyledTabsHeader\n        as={Box}\n        direction=\"row\"\n        justify={justify}\n        flex={false}\n        wrap\n        background={theme.tabs.header.background}\n        gap={theme.tabs.gap}\n      >\n        {tabs}\n      </StyledTabsHeader>\n      <StyledTabPanel flex={flex} aria-label={tabContentTitle} role=\"tabpanel\">\n        {activeContent}\n      </StyledTabPanel>\n    </StyledTabs>\n  );\n};\n\nTabs.defaultProps = {};\nObject.setPrototypeOf(Tabs.defaultProps, defaultProps);\n\nlet TabsDoc;\nif (process.env.NODE_ENV !== 'production') {\n  TabsDoc = require('./doc').doc(Tabs); // eslint-disable-line global-require\n}\nconst TabsWrapper = compose(withTheme)(TabsDoc || Tabs);\n\nexport { TabsWrapper as Tabs };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst StyledTabsHeader = styled.div`\n  ${props => props.theme.tabs.header.extend};\n`;\n\nStyledTabsHeader.defaultProps = {};\nObject.setPrototypeOf(StyledTabsHeader.defaultProps, defaultProps);\n\nconst FLEX_MAP = {\n  [true]: '1 1',\n  [false]: '0 0',\n  grow: '1 0',\n  shrink: '0 1',\n};\n\nconst flexStyle = css`\n  flex: ${props =>\n    `${FLEX_MAP[props.flex]}${props.flex !== true ? ' auto' : ''}`};\n`;\n\nconst StyledTabPanel = styled.div`\n  min-height: 0;\n  ${props => props.flex && flexStyle} ${props => props.theme.tabs.panel.extend};\n`;\n\nStyledTabPanel.defaultProps = {};\nObject.setPrototypeOf(StyledTabPanel.defaultProps, defaultProps);\n\nconst StyledTabs = styled.div`\n  ${genericStyles} ${props => props.theme.tabs.extend};\n`;\n\nStyledTabs.defaultProps = {};\nObject.setPrototypeOf(StyledTabs.defaultProps, defaultProps);\n\nexport { StyledTabsHeader, StyledTabPanel, StyledTabs };\n","export { TextArea } from './TextArea';\n","import React, { forwardRef, useContext, useState } from 'react';\n\nimport { FormContext } from '../Form/FormContext';\nimport { Keyboard } from '../Keyboard';\n\nimport { StyledTextArea } from './StyledTextArea';\n\nconst TextArea = forwardRef(\n  (\n    { fill, name, onBlur, onChange, onFocus, value: valueProp, ...rest },\n    ref,\n  ) => {\n    const formContext = useContext(FormContext);\n\n    const [value, setValue] = formContext.useFormContext(name, valueProp, '');\n\n    const [focus, setFocus] = useState();\n    return (\n      <Keyboard\n        onEsc={event => {\n          // we have to stop both synthetic events and native events\n          // drop and layer should not close by pressing esc on this input\n          event.stopPropagation();\n          event.nativeEvent.stopImmediatePropagation();\n        }}\n      >\n        <StyledTextArea\n          ref={ref}\n          name={name}\n          fillArg={fill}\n          focus={focus}\n          value={value}\n          {...rest}\n          onFocus={event => {\n            setFocus(true);\n            if (onFocus) onFocus(event);\n          }}\n          onBlur={event => {\n            setFocus(false);\n            if (onBlur) onBlur(event);\n          }}\n          onChange={event => {\n            setValue(event.target.value);\n            if (onChange) onChange(event);\n          }}\n        />\n      </Keyboard>\n    );\n  },\n);\n\nTextArea.displayName = 'TextArea';\n\nlet TextAreaDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  TextAreaDoc = require('./doc').doc(TextArea);\n}\nconst TextAreaWrapper = TextAreaDoc || TextArea;\n\nexport { TextAreaWrapper as TextArea };\n","import styled, { css } from 'styled-components';\n\nimport {\n  disabledStyle,\n  focusStyle,\n  inputStyle,\n  placeholderStyle,\n} from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst plainStyle = css`\n  border: none;\n  width: 100%;\n  -webkit-appearance: none;\n`;\n\nconst sizeStyle = props => {\n  const data = props.theme.text[props.size];\n  return css`\n    font-size: ${data.size};\n    line-height: ${data.height};\n  `;\n};\n\nconst resizeStyle = resize => {\n  if (resize === 'horizontal') {\n    return 'resize: horizontal;';\n  }\n  if (resize === 'vertical') {\n    return 'resize: vertical;';\n  }\n  if (resize) {\n    return 'resize: both;';\n  }\n  return 'resize: none;';\n};\n\nconst StyledTextArea = styled.textarea`\n  ${inputStyle} width: 100%;\n  ${props => props.resize !== undefined && resizeStyle(props.resize)}\n\n  ${props => props.fillArg && 'height: 100%;'}\n  ${props => props.size && sizeStyle(props)}\n  ${props => props.plain && plainStyle}\n  ${props =>\n    props.disabled &&\n    disabledStyle(\n      props.theme.textArea.disabled && props.theme.textArea.disabled.opacity,\n    )}\n\n  ${placeholderStyle}\n\n  &::-moz-focus-inner {\n    border: none;\n    outline: none;\n  }\n\n  ${props => props.focus && !props.plain && focusStyle};\n  ${props => props.theme.textArea && props.theme.textArea.extend};\n`;\n\nStyledTextArea.defaultProps = {};\nObject.setPrototypeOf(StyledTextArea.defaultProps, defaultProps);\n\nexport { StyledTextArea };\n","export { Video } from './Video';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\n\nimport { Box } from '../Box';\nimport { Button } from '../Button';\nimport { Menu } from '../Menu';\nimport { Meter } from '../Meter';\nimport { Stack } from '../Stack';\nimport { Text } from '../Text';\nimport { withForwardRef } from '../hocs';\nimport { throttle } from '../../utils';\n\nimport {\n  StyledVideo,\n  StyledVideoContainer,\n  StyledVideoControls,\n  StyledVideoScrubber,\n} from './StyledVideo';\n\n// Split the volume control into 6 segments. Empirically determined.\nconst VOLUME_STEP = 0.166667;\n\nconst formatTime = time => {\n  let minutes = Math.round(time / 60);\n  if (minutes < 10) {\n    minutes = `0${minutes}`;\n  }\n  let seconds = Math.round(time) % 60;\n  if (seconds < 10) {\n    seconds = `0${seconds}`;\n  }\n  return `${minutes}:${seconds}`;\n};\n\nconst videoEvents = [\n  'onAbort',\n  'onCanPlay',\n  'onCanPlayThrough',\n  'onDurationChange',\n  'onEmptied',\n  'onEncrypted',\n  'onEnded',\n  'onError',\n  'onLoadedData',\n  'onLoadedMetadata',\n  'onLoadStart',\n  'onPause',\n  'onPlay',\n  'onPlaying',\n  'onProgress',\n  'onRateChange',\n  'onSeeked',\n  'onSeeking',\n  'onStalled',\n  'onSuspend',\n  'onTimeUpdate',\n  'onVolumeChange',\n  'onWaiting',\n];\n\nclass Video extends Component {\n  static getDerivedStateFromProps(nextProps, prevState) {\n    const { forwardRef } = nextProps;\n    const { videoRef } = prevState;\n    const nextVideoRef = forwardRef || videoRef;\n    if (nextVideoRef !== videoRef) {\n      return { videoRef: nextVideoRef };\n    }\n    return null;\n  }\n\n  state = {\n    captions: [],\n    scrubberRef: React.createRef(),\n    videoRef: React.createRef(),\n  };\n\n  hasPlayed = false;\n\n  constructor(props) {\n    super(props);\n    this.update = throttle(this.update, 100, this);\n    this.mediaEventProps = this.injectUpdateVideoEvents();\n  }\n\n  componentDidMount() {\n    const { mute } = this.props;\n    const { videoRef } = this.state;\n    const video = videoRef.current;\n\n    if (mute) {\n      this.mute();\n    }\n\n    if (video) {\n      // hide all captioning to start with\n      const { textTracks } = video;\n      for (let i = 0; i < textTracks.length; i += 1) {\n        textTracks[i].mode = 'hidden';\n      }\n\n      this.restate();\n    }\n  }\n\n  componentDidUpdate(prevProps) {\n    const { autoPlay } = this.props;\n    if (autoPlay && !prevProps.autoPlay) {\n      // Caller wants the video to play now.\n      this.play();\n    }\n    this.restate();\n  }\n\n  componentWillUnmount() {\n    this.unmounted = true;\n  }\n\n  injectUpdateVideoEvents = () =>\n    videoEvents.reduce((previousValue, currentValue) => {\n      const nextValue = { ...previousValue };\n      nextValue[currentValue] = e => {\n        if (\n          currentValue in this.props &&\n          /* eslint-disable react/destructuring-assignment */\n          typeof this.props[currentValue] === 'function'\n        ) {\n          this.props[currentValue](e);\n          /* eslint-enable react/destructuring-assignment */\n        }\n        this.update();\n      };\n\n      return nextValue;\n    }, {});\n\n  update = () => {\n    const { videoRef } = this.state;\n    const video = videoRef.current;\n    // Set flag for Video first play\n    if (\n      (!this.hasPlayed && !video.paused && !video.loading) ||\n      video.currentTime\n    ) {\n      this.hasPlayed = true;\n    }\n\n    let { interacting } = this.state;\n    if (video.ended) {\n      interacting = false;\n    }\n\n    this.setState({\n      duration: video.duration,\n      currentTime: video.currentTime,\n      // buffered: video.buffered,\n      // paused: video.paused,\n      // muted: video.muted,\n      volume: video.volume,\n      // ended: video.ended,\n      // readyState: video.readyState,\n      interacting,\n      // computed values\n      // hasPlayed: this.hasPlayed,\n      playing: !video.paused && !video.loading,\n      // percentageBuffered: video.buffered.length &&\n      //   (video.buffered.end(video.buffered.length - 1) /\n      //   video.duration) * 100,\n      percentagePlayed: (video.currentTime / video.duration) * 100,\n      // loading: video.readyState < video.HAVE_ENOUGH_DATA,\n    });\n  };\n\n  play = () => {\n    const { videoRef } = this.state;\n    videoRef.current.play();\n  };\n\n  pause = () => {\n    const { videoRef } = this.state;\n    videoRef.current.pause();\n  };\n\n  scrub = event => {\n    const { duration, scrubberRef } = this.state;\n    if (scrubberRef.current) {\n      const scrubberRect = scrubberRef.current.getBoundingClientRect();\n      const percent = (event.clientX - scrubberRect.left) / scrubberRect.width;\n      this.setState({ scrubTime: duration * percent });\n    }\n  };\n\n  seek = event => {\n    const { duration, scrubberRef, videoRef } = this.state;\n    if (scrubberRef.current) {\n      const scrubberRect = scrubberRef.current.getBoundingClientRect();\n      const percent = (event.clientX - scrubberRect.left) / scrubberRect.width;\n      videoRef.current.currentTime = duration * percent;\n    }\n  };\n\n  unmute = () => {\n    const { videoRef } = this.state;\n    if (videoRef.current) {\n      videoRef.current.muted = false;\n    }\n  };\n\n  mute = () => {\n    const { videoRef } = this.state;\n    if (videoRef.current) {\n      videoRef.current.muted = true;\n    }\n  };\n\n  louder = () => {\n    const { videoRef } = this.state;\n    videoRef.current.volume += VOLUME_STEP;\n  };\n\n  quieter = () => {\n    const { videoRef } = this.state;\n    videoRef.current.volume -= VOLUME_STEP;\n  };\n\n  showCaptions = index => {\n    const { videoRef } = this.state;\n    const { textTracks } = videoRef.current;\n    for (let i = 0; i < textTracks.length; i += 1) {\n      textTracks[i].mode = i === index ? 'showing' : 'hidden';\n    }\n    // Using forceUpdate to force redraw of controls when changing captions\n    this.forceUpdate();\n  };\n\n  fullscreen = () => {\n    const { videoRef } = this.state;\n    const video = videoRef.current;\n    if (video.requestFullscreen) {\n      video.requestFullscreen();\n    } else if (video.msRequestFullscreen) {\n      video.msRequestFullscreen();\n    } else if (video.mozRequestFullScreen) {\n      video.mozRequestFullScreen();\n    } else if (video.webkitRequestFullscreen) {\n      video.webkitRequestFullscreen();\n    } else {\n      console.warn(\"Your browser doesn't support fullscreen.\");\n    }\n  };\n\n  interactionStart = () => {\n    this.setState({ interacting: true });\n    clearTimeout(this.interactionTimer);\n    this.interactionTimer = setTimeout(this.interactionStop, 3000);\n  };\n\n  interactionStop = () => {\n    const { focus } = this.state;\n    if (!focus && !this.unmounted) {\n      this.setState({ interacting: false });\n    }\n  };\n\n  restate = () => {\n    const { captions, height, videoRef, width } = this.state;\n    const video = videoRef.current;\n\n    if (video) {\n      if (video.videoHeight) {\n        // set the size based on the video aspect ratio\n        const rect = video.getBoundingClientRect();\n        const ratio = rect.width / rect.height;\n        const videoRatio = video.videoWidth / video.videoHeight;\n        if (videoRatio > ratio) {\n          const nextHeight = rect.width / videoRatio;\n          if (nextHeight !== height) {\n            this.setState({ height: nextHeight, width: undefined });\n          }\n        } else {\n          const nextWidth = rect.height * videoRatio;\n          if (nextWidth !== width) {\n            this.setState({ height: undefined, width: nextWidth });\n          }\n        }\n      }\n\n      // remember the state of the text tracks for subsequent rendering\n      const { textTracks } = video;\n      if (textTracks.length > 0) {\n        if (textTracks.length === 1) {\n          const active = textTracks[0].mode === 'showing';\n          if (!captions || !captions[0] || captions[0].active !== active) {\n            this.setState({ captions: [{ active }] });\n          }\n        } else {\n          const nextCaptions = [];\n          let set = false;\n          for (let i = 0; i < textTracks.length; i += 1) {\n            const track = textTracks[i];\n            const active = track.mode === 'showing';\n            nextCaptions.push({ label: track.label, active });\n            if (!captions || !captions[i] || captions[i].active !== active) {\n              set = true;\n            }\n          }\n          if (set) {\n            this.setState({ captions: nextCaptions });\n          }\n        }\n      }\n    }\n  };\n\n  renderControls() {\n    const { controls, theme } = this.props;\n    const {\n      captions,\n      currentTime,\n      duration,\n      interacting,\n      percentagePlayed,\n      playing,\n      scrubberRef,\n      scrubTime,\n      volume,\n    } = this.state;\n    const over = controls === 'over';\n    const background = over\n      ? (theme.video.controls && theme.video.controls.background) || {\n          color: 'dark-1',\n          opacity: 'strong',\n        }\n      : undefined;\n    const iconColor = over && (theme.video.icons.color || 'light-1');\n\n    const formattedTime = formatTime(scrubTime || currentTime || duration);\n\n    const Icons = {\n      ClosedCaption: theme.video.icons.closedCaption,\n      Configure: theme.video.icons.configure,\n      FullScreen: theme.video.icons.fullScreen,\n      Pause: theme.video.icons.pause,\n      Play: theme.video.icons.play,\n      ReduceVolume: theme.video.icons.reduceVolume,\n      Volume: theme.video.icons.volume,\n    };\n\n    const captionControls = captions.map(caption => ({\n      icon: caption.label ? (\n        undefined\n      ) : (\n        <Icons.ClosedCaption color={iconColor} />\n      ),\n      label: caption.label,\n      active: caption.active,\n      onClick: () => this.showCaptions(caption.active ? -1 : 0),\n    }));\n\n    return (\n      <StyledVideoControls\n        over={over}\n        active={\n          !this.hasPlayed || controls === 'below' || (over && interacting)\n        }\n      >\n        <Box\n          direction=\"row\"\n          align=\"center\"\n          justify=\"between\"\n          background={background}\n        >\n          <Button\n            icon={\n              playing ? (\n                <Icons.Pause color={iconColor} />\n              ) : (\n                <Icons.Play color={iconColor} />\n              )\n            }\n            hoverIndicator=\"background\"\n            onClick={playing ? this.pause : this.play}\n          />\n          <Box direction=\"row\" align=\"center\" flex>\n            <Box flex>\n              <Stack>\n                <Meter\n                  aria-label=\"Video progress\"\n                  background={\n                    over\n                      ? (theme.video.scrubber &&\n                          theme.video.scrubber.track &&\n                          theme.video.scrubber.track.color) ||\n                        'dark-3'\n                      : undefined\n                  }\n                  size=\"full\"\n                  thickness=\"small\"\n                  values={[{ value: percentagePlayed || 0 }]}\n                />\n                <StyledVideoScrubber\n                  ref={scrubberRef}\n                  tabIndex={0}\n                  role=\"button\"\n                  value={\n                    scrubTime\n                      ? Math.round((scrubTime / duration) * 100)\n                      : undefined\n                  }\n                  onMouseMove={this.scrub}\n                  onMouseLeave={() => this.setState({ scrubTime: undefined })}\n                  onClick={this.seek}\n                />\n              </Stack>\n            </Box>\n            <Box pad={{ horizontal: 'small' }}>\n              <Text margin=\"none\">{formattedTime}</Text>\n            </Box>\n          </Box>\n          <Menu\n            icon={<Icons.Configure color={iconColor} />}\n            dropAlign={{ bottom: 'top', right: 'right' }}\n            dropBackground={background}\n            items={[\n              {\n                icon: <Icons.Volume color={iconColor} />,\n                onClick: volume <= 1 - VOLUME_STEP ? this.louder : undefined,\n                close: false,\n              },\n              {\n                icon: <Icons.ReduceVolume color={iconColor} />,\n                onClick: volume >= VOLUME_STEP ? this.quieter : undefined,\n                close: false,\n              },\n              ...captionControls,\n              {\n                icon: <Icons.FullScreen color={iconColor} />,\n                onClick: this.fullscreen,\n              },\n            ]}\n          />\n        </Box>\n      </StyledVideoControls>\n    );\n  }\n\n  render() {\n    const {\n      alignSelf,\n      autoPlay,\n      children,\n      controls,\n      gridArea,\n      loop,\n      margin,\n      theme,\n      ...rest\n    } = this.props;\n    const { height, videoRef, width } = this.state;\n\n    const controlsElement = controls ? this.renderControls() : undefined;\n\n    let mouseEventListeners;\n    if (controls === 'over') {\n      mouseEventListeners = {\n        onMouseEnter: this.interactionStart,\n        onMouseMove: this.interactionStart,\n        onTouchStart: this.interactionStart,\n      };\n    }\n\n    let style;\n    if (rest.fit === 'contain' && controls === 'over') {\n      // constrain the size to fit the aspect ratio so the controls\n      // overlap correctly\n      if (width) {\n        style = { width };\n      } else if (height) {\n        style = { height };\n      }\n    }\n\n    return (\n      <StyledVideoContainer\n        {...mouseEventListeners}\n        alignSelf={alignSelf}\n        gridArea={gridArea}\n        margin={margin}\n        style={style}\n      >\n        <StyledVideo\n          {...rest}\n          ref={videoRef}\n          {...this.mediaEventProps}\n          autoPlay={autoPlay || false}\n          loop={loop || false}\n        >\n          {children}\n        </StyledVideo>\n        {controlsElement}\n      </StyledVideoContainer>\n    );\n  }\n}\n\nVideo.defaultProps = {\n  controls: 'over',\n};\n\nObject.setPrototypeOf(Video.defaultProps, defaultProps);\n\nlet VideoDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  VideoDoc = require('./doc').doc(Video);\n}\nconst VideoWrapper = compose(\n  withTheme,\n  withForwardRef,\n)(VideoDoc || Video);\n\nexport { VideoWrapper as Video };\n","import styled, { css } from 'styled-components';\n\nimport { genericStyles, normalizeColor } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst FIT_MAP = {\n  cover: 'cover',\n  contain: 'contain',\n};\n\nconst fitStyle = css`\n  flex: 1 1;\n  min-height: 0;\n  object-fit: ${props => FIT_MAP[props.fit]};\n`;\n\nconst StyledVideo = styled.video`\n  max-width: 100%;\n  ${props => props.fit && fitStyle} ::cue {\n    background: ${props => props.theme.video.captions.background};\n  }\n\n  ${props => props.theme.video && props.theme.video.extend};\n`;\n\nStyledVideo.defaultProps = {};\nObject.setPrototypeOf(StyledVideo.defaultProps, defaultProps);\n\nconst StyledVideoContainer = styled.div`\n  flex: 1 1;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  position: relative;\n  ${genericStyles};\n`;\n\nStyledVideoContainer.defaultProps = {};\nObject.setPrototypeOf(StyledVideoContainer.defaultProps, defaultProps);\n\nconst positionStyle = css`\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n`;\n\nconst StyledVideoControls = styled.div`\n  flex: 0 0;\n  ${props => props.over && positionStyle} opacity: 0;\n  transition: opacity 0.3s;\n  ${props => (props.active ? 'opacity: 1;' : 'pointer-events: none')};\n`;\n\nStyledVideoControls.defaultProps = {};\nObject.setPrototypeOf(StyledVideoControls.defaultProps, defaultProps);\n\nconst headStyle = css`\n  ::after {\n    content: '';\n    height: 100%;\n    width: ${props => props.theme.global.edgeSize.xsmall};\n    background: ${props =>\n      normalizeColor(props.theme.video.scrubber.color, props.theme)};\n    position: absolute;\n    left: ${props => `${props.value}%`};\n  }\n`;\n\nconst StyledVideoScrubber = styled.div`\n  cursor: pointer;\n  width: 100%;\n  height: 100%;\n  ${props => props.value && headStyle};\n`;\n\nStyledVideoScrubber.defaultProps = {};\nObject.setPrototypeOf(StyledVideoScrubber.defaultProps, defaultProps);\n\nexport {\n  StyledVideo,\n  StyledVideoContainer,\n  StyledVideoControls,\n  StyledVideoScrubber,\n};\n","export { WorldMap } from './WorldMap';\n","import React, { Component } from 'react';\nimport { compose } from 'recompose';\n\nimport { withTheme } from 'styled-components';\n\nimport { defaultProps } from '../../default-props';\nimport { normalizeColor, parseMetricToNum } from '../../utils';\n\nimport { StyledWorldMap } from './StyledWorldMap';\n\n// The graphic is drawn as a rectangular grid using coordinates spaced\n// by FACTOR pixels. The contents have both an area boundary for interaction\n// and dots described as rows where each row is described by three values:\n// a starting coordinate and a length. This approach is more efficient than\n// describing it via SVG elements, keeping the code/library size smaller.\nconst CONTINENTS = [\n  {\n    name: 'Australia',\n    origin: [74, 32],\n    area: [[4, 0], [7, 1], [15, 7], [13, 9], [0, 6], [0, 2]],\n    dots: [\n      [4, 0, 1],\n      [2, 1, 6],\n      [0, 2, 9],\n      [0, 3, 10],\n      [0, 4, 10],\n      [0, 5, 3],\n      [5, 5, 5],\n      [5, 6, 4],\n      [15, 7, 1],\n      [14, 8, 1],\n      [13, 9, 1],\n    ],\n  },\n  {\n    name: 'Asia',\n    origin: [52, 1],\n    area: [\n      [16, 0],\n      [38, 5],\n      [40, 7],\n      [28, 17],\n      [24, 25],\n      [29, 29],\n      [19, 29],\n      [11, 24],\n      [3, 23],\n      [0, 20],\n      [0, 19],\n      [6, 13],\n      [7, 6],\n    ],\n    dots: [\n      [16, 0, 1],\n      [17, 1, 2],\n      [18, 2, 2],\n      [15, 3, 6],\n      [28, 3, 1],\n      [30, 3, 1],\n      [10, 4, 2],\n      [13, 4, 10],\n      [24, 4, 1],\n      [9, 5, 22],\n      [32, 5, 1],\n      [38, 5, 1],\n      [7, 6, 2],\n      [10, 6, 1],\n      [12, 6, 27],\n      [7, 7, 34],\n      [7, 8, 31],\n      [7, 9, 26],\n      [34, 9, 3],\n      [7, 10, 22],\n      [31, 10, 1],\n      [33, 10, 1],\n      [7, 11, 21],\n      [32, 11, 2],\n      [7, 12, 21],\n      [32, 12, 1],\n      [6, 13, 22],\n      [32, 13, 1],\n      [6, 14, 22],\n      [5, 15, 22],\n      [3, 16, 2],\n      [6, 16, 20],\n      [2, 17, 3],\n      [6, 17, 16],\n      [24, 17, 1],\n      [28, 17, 1],\n      [1, 18, 22],\n      [26, 18, 2],\n      [0, 19, 24],\n      [0, 20, 5],\n      [6, 20, 17],\n      [2, 21, 5],\n      [10, 21, 14],\n      [2, 22, 5],\n      [11, 22, 4],\n      [16, 22, 4],\n      [3, 23, 3],\n      [11, 23, 2],\n      [17, 23, 3],\n      [23, 23, 1],\n      [11, 24, 2],\n      [18, 24, 2],\n      [23, 24, 1],\n      [24, 25, 1],\n      [18, 26, 1],\n      [22, 26, 1],\n      [18, 27, 1],\n      [20, 27, 4],\n      [18, 28, 1],\n      [21, 28, 1],\n      [23, 28, 1],\n      [26, 28, 3],\n      [19, 29, 1],\n      [28, 29, 2],\n    ],\n  },\n  {\n    // 21X, 40Y\n    name: 'Africa',\n    origin: [40, 19],\n    area: [\n      [3, 0],\n      [6, 0],\n      [11, 2],\n      [16, 7],\n      [16, 15],\n      [11, 18],\n      [9, 18],\n      [0, 6],\n      [0, 3],\n    ],\n    dots: [\n      [3, 0, 4],\n      [2, 1, 6],\n      [9, 1, 2],\n      [1, 2, 11],\n      [0, 3, 13],\n      [0, 4, 14],\n      [0, 5, 14],\n      [0, 6, 16],\n      [1, 7, 16],\n      [2, 8, 2],\n      [6, 8, 11],\n      [7, 9, 9],\n      [7, 10, 8],\n      [7, 11, 7],\n      [8, 12, 7],\n      [7, 13, 8],\n      [7, 14, 7],\n      [16, 14, 1],\n      [8, 15, 5],\n      [15, 15, 2],\n      [8, 16, 5],\n      [9, 17, 3],\n      [9, 18, 3],\n    ],\n  },\n  {\n    name: 'Europe',\n    origin: [39, 2],\n    area: [\n      [8, 0],\n      [10, 0],\n      [20, 2],\n      [19, 11],\n      [18, 13],\n      [14, 16],\n      [3, 16],\n      [0, 7],\n    ],\n    dots: [\n      [8, 0, 3],\n      [9, 1, 1],\n      [20, 2, 1],\n      [19, 3, 1],\n      [12, 4, 1],\n      [19, 4, 1],\n      [9, 5, 6],\n      [9, 6, 7],\n      [17, 6, 3],\n      [0, 7, 1],\n      [8, 7, 12],\n      [7, 8, 3],\n      [11, 8, 9],\n      [7, 9, 3],\n      [11, 9, 9],\n      [4, 10, 1],\n      [7, 10, 1],\n      [9, 10, 1],\n      [11, 10, 9],\n      [3, 11, 2],\n      [7, 11, 13],\n      [4, 12, 1],\n      [6, 12, 13],\n      [4, 13, 15],\n      [5, 14, 3],\n      [9, 14, 4],\n      [15, 14, 2],\n      [3, 15, 3],\n      [8, 15, 1],\n      [10, 15, 5],\n      [6, 15, 2],\n      [3, 16, 2],\n      [10, 16, 5],\n    ],\n  },\n  {\n    name: 'South America',\n    origin: [22, 26],\n    area: [[2, 0], [5, 0], [11, 4], [11, 8], [3, 18], [2, 17], [0, 4], [0, 3]],\n    dots: [\n      [2, 0, 4],\n      [1, 1, 7],\n      [1, 2, 7],\n      [0, 3, 10],\n      [0, 4, 12],\n      [1, 5, 11],\n      [2, 6, 9],\n      [3, 7, 8],\n      [3, 8, 8],\n      [3, 9, 6],\n      [3, 10, 6],\n      [3, 11, 5],\n      [3, 12, 3],\n      [2, 13, 3],\n      [2, 14, 3],\n      [2, 15, 2],\n      [2, 16, 2],\n      [2, 17, 2],\n      [3, 18, 1],\n    ],\n  },\n  {\n    name: 'North America',\n    origin: [0, 0],\n    area: [[21, 0], [39, 0], [39, 6], [22, 26], [16, 23], [2, 12], [0, 7]],\n    dots: [\n      [22, 0, 6],\n      [29, 0, 1],\n      [31, 0, 1],\n      [33, 0, 5],\n      [20, 1, 1],\n      [22, 1, 1],\n      [24, 1, 2],\n      [27, 1, 13],\n      [17, 2, 1],\n      [20, 2, 5],\n      [26, 2, 13],\n      [13, 3, 1],\n      [19, 3, 1],\n      [21, 3, 3],\n      [26, 3, 14],\n      [14, 4, 1],\n      [16, 4, 4],\n      [21, 4, 3],\n      [29, 4, 11],\n      [12, 5, 3],\n      [16, 5, 1],\n      [18, 5, 1],\n      [20, 5, 3],\n      [24, 5, 1],\n      [30, 5, 8],\n      [14, 6, 3],\n      [19, 6, 1],\n      [22, 6, 4],\n      [31, 6, 8],\n      [0, 7, 15],\n      [16, 7, 1],\n      [18, 7, 4],\n      [24, 7, 2],\n      [30, 7, 7],\n      [2, 8, 20],\n      [24, 8, 3],\n      [29, 8, 5],\n      [2, 9, 20],\n      [24, 9, 2],\n      [30, 9, 3],\n      [1, 10, 18],\n      [23, 10, 2],\n      [31, 10, 1],\n      [2, 11, 2],\n      [8, 11, 11],\n      [23, 11, 2],\n      [26, 11, 1],\n      [2, 12, 1],\n      [8, 12, 13],\n      [24, 12, 3],\n      [10, 13, 12],\n      [23, 13, 5],\n      [11, 14, 17],\n      [11, 15, 9],\n      [21, 15, 6],\n      [28, 15, 2],\n      [11, 16, 11],\n      [23, 16, 4],\n      [11, 17, 14],\n      [12, 18, 11],\n      [12, 19, 12],\n      [13, 20, 9],\n      [15, 21, 3],\n      [22, 21, 1],\n      [16, 22, 2],\n      [16, 23, 2],\n      [20, 23, 1],\n      [23, 23, 1],\n      [18, 24, 3],\n      [21, 25, 1],\n      [22, 26, 1],\n    ],\n  },\n];\n\n// FACTOR is the distance in pixels between coordinates\nconst FACTOR = 10;\n\nconst maxCoordinate = (a, b) => [Math.max(a[0], b[0]), Math.max(a[1], b[1])];\n// const minCoordinate = (a, b) =>\n//   [Math.min(a[0], b[0]), Math.min(a[1], b[1])];\n\n// Based on https://stackoverflow.com/a/43861247\nconst MAP_LAT_BOTTOM = -50.0; // empirically determined\nconst MAP_LAT_BOTTOM_RAD = (MAP_LAT_BOTTOM * Math.PI) / 180;\nconst MAP_LON_LEFT = -171.0; // empirically determined\nconst MAP_LON_RIGHT = 184.0; // empirically determined\nconst MAP_LON_DELTA = MAP_LON_RIGHT - MAP_LON_LEFT;\n\nconst mapValues = extent => {\n  const mapRadius = ((extent[0] / MAP_LON_DELTA) * 360) / (2 * Math.PI);\n  const mapOffsetY = Math.round(\n    (mapRadius / 2) *\n      Math.log(\n        (1 + Math.sin(MAP_LAT_BOTTOM_RAD)) / (1 - Math.sin(MAP_LAT_BOTTOM_RAD)),\n      ),\n  );\n  return { mapRadius, mapOffsetY };\n};\n\nconst latLonToCoord = (latLon, origin, extent) => {\n  const { mapRadius, mapOffsetY } = mapValues(extent);\n  const x = Math.round(\n    ((latLon[1] - MAP_LON_LEFT) * extent[0]) / MAP_LON_DELTA,\n  );\n  const latitudeRad = (latLon[0] * Math.PI) / 180;\n  const y =\n    extent[1] +\n    mapOffsetY -\n    Math.round(\n      (mapRadius / 2) *\n        Math.log((1 + Math.sin(latitudeRad)) / (1 - Math.sin(latitudeRad))),\n    );\n  return [x, y]; // the coordinate value of this point on the map image\n};\n\nconst coordToLatLon = (coord, origin, extent) => {\n  const { mapRadius, mapOffsetY } = mapValues(extent);\n  const a = (extent[1] + mapOffsetY - coord[1]) / mapRadius;\n  const lat = (180 / Math.PI) * (2 * Math.atan(Math.exp(a)) - Math.PI / 2);\n  const lon = (coord[0] * MAP_LON_DELTA) / extent[0] + MAP_LON_LEFT;\n  return [lat, lon];\n};\n\nconst buildContinentState = ({ area, dots, origin }) => {\n  let extent = [...origin];\n  const stateDots = dots\n    .map(segment => {\n      const count = segment[2];\n      const spots = [];\n      for (let i = 0; i < count; i += 1) spots.push('h0');\n      const dotCommands = spots.join(' m10,0 ');\n      const x = FACTOR * (origin[0] + segment[0] + 1);\n      const y = FACTOR * (origin[1] + segment[1] + 1);\n      extent = maxCoordinate(extent, [\n        origin[0] + segment[0] + segment[2],\n        origin[1] + segment[1],\n      ]);\n      return `M${x},${y} ${dotCommands}`;\n    })\n    .join(' ');\n\n  const stateArea = `${area\n    .map((point, index) => {\n      const x = FACTOR * (point[0] + origin[0] + 1);\n      const y = FACTOR * (point[1] + origin[1] + 1);\n      return `${index === 0 ? 'M' : 'L'}${x},${y}`;\n    })\n    .join(' ')} Z`;\n\n  const mid = [\n    origin[0] + (extent[0] - origin[0]) / 2,\n    origin[1] + (extent[1] - origin[1]) / 2,\n  ];\n  return {\n    area: stateArea,\n    dots: stateDots,\n    origin,\n    extent,\n    mid,\n  };\n};\n\nconst buildState = () => {\n  const continents = {};\n\n  // Build the SVG paths describing the individual dots\n  const origin = [0, 0];\n  let extent = [0, 0];\n  CONTINENTS.forEach(continent => {\n    continents[continent.name] = buildContinentState(continent);\n    extent = maxCoordinate(extent, continents[continent.name].extent);\n  });\n\n  return {\n    continents,\n    extent,\n    origin,\n    x: origin[0] * FACTOR,\n    y: origin[1] * FACTOR,\n    width: (extent[0] - origin[0] + 1) * FACTOR,\n    height: (extent[1] - origin[1] + 2) * FACTOR,\n  };\n};\n\nconst updateState = (state, { continents, places }) => {\n  const nextState = { ...state };\n\n  if (continents) {\n    continents.forEach(continent => {\n      nextState.continents[continent.name] = {\n        ...state.continents[continent.name],\n        ...continent,\n      };\n    });\n  }\n\n  nextState.places = (places || []).map(({ location, ...place }) => {\n    const coords = latLonToCoord(location, state.origin, state.extent);\n    return { coords, key: location.join(','), ...place };\n  });\n\n  return nextState;\n};\n\nconst buildInteractiveProps = (\n  { name, onClick, onHover },\n  activeFunc,\n  active,\n) => ({\n  role: 'button',\n  'aria-label': name,\n  tabIndex: '0',\n  onClick: onClick ? () => onClick(name) : undefined,\n  onMouseOver: () => {\n    if (!active) {\n      activeFunc(name);\n      if (onHover) {\n        onHover(true);\n      }\n    }\n  },\n  onMouseLeave: () => {\n    if (active) {\n      activeFunc(undefined);\n      if (onHover) {\n        onHover(false);\n      }\n    }\n  },\n  onFocus: () => {\n    // This moves the map unnecessarily. Instead, we should check\n    // the position and scroll if it isn't already visible\n    // this._worldMapRef.scrollIntoView();\n    if (!active) {\n      activeFunc(name);\n    }\n  },\n  onBlur: () => {\n    if (active) {\n      activeFunc(undefined);\n    }\n  },\n});\n\nclass WorldMap extends Component {\n  static getDerivedStateFromProps(nextProps, prevState) {\n    if (!prevState.continents) {\n      return updateState(buildState(), nextProps);\n    }\n    return updateState(prevState, nextProps);\n  }\n\n  state = {};\n\n  onMouseOver = () => {\n    // track when we're over the map to avoid dealing with mouse moves\n    this.setState({ over: true });\n  };\n\n  onMouseMove = event => {\n    const { width } = this.state;\n    // determine the map coordinates for where the mouse is\n    // containerRef uses the group so we can handle aspect ratio scaling\n    const rect = this.containerRef.getBoundingClientRect();\n    const scale = rect.width / width; // since the SVG viewBox might be scaled\n    const coords = [\n      Math.round((event.clientX - rect.left) / scale / FACTOR),\n      Math.round((event.clientY - rect.top) / scale / FACTOR),\n    ];\n    this.setState({ activeCoords: coords });\n  };\n\n  onMouseLeave = () => {\n    this.setState({ over: false, activeCoords: undefined });\n  };\n\n  render() {\n    const {\n      color,\n      fill, // munged to avoid styled-components putting it in the DOM\n      onSelectPlace,\n      hoverColor,\n      theme,\n      ...rest\n    } = this.props;\n    delete rest.places;\n    delete rest.continents;\n    const {\n      activeContinent,\n      activeCoords,\n      activePlace,\n      continents: continentStates,\n      extent,\n      origin,\n      over,\n      places: placeStates,\n      x,\n      y,\n      width,\n      height,\n    } = this.state;\n\n    const continents = Object.keys(continentStates).map(name => {\n      const {\n        area,\n        color: continentColor,\n        dots,\n        onClick,\n        onHover,\n      } = continentStates[name];\n      const active = activeContinent && activeContinent === name;\n\n      let interactiveProps = {};\n      if (onClick || onHover) {\n        interactiveProps = buildInteractiveProps(\n          continentStates[name],\n          activate => this.setState({ activeContinent: activate }),\n          active,\n        );\n      }\n\n      return (\n        <g key={name} {...interactiveProps}>\n          <path stroke=\"none\" fill=\"#fff\" fillOpacity=\"0.01\" d={area} />\n          <path\n            d={dots}\n            strokeLinecap=\"round\"\n            strokeWidth={parseMetricToNum(\n              theme.worldMap.continent[active ? 'active' : 'base'],\n            )}\n            stroke={normalizeColor(\n              continentColor || color || theme.worldMap.color,\n              theme,\n            )}\n          />\n        </g>\n      );\n    });\n\n    const places = placeStates.map(place => {\n      const {\n        color: placeColor,\n        coords,\n        key,\n        name,\n        onClick,\n        onHover,\n        ...restPlace\n      } = place;\n      const d = `M${FACTOR * coords[0]}, ${FACTOR * coords[1]} h0`;\n      const active = activePlace && activePlace === name;\n\n      let interactiveProps = {};\n      if (onClick || onHover) {\n        interactiveProps = buildInteractiveProps(\n          place,\n          activate => this.setState({ activePlace: activate }),\n          active,\n        );\n      }\n\n      return (\n        <path\n          key={key}\n          strokeLinecap=\"round\"\n          strokeWidth={parseMetricToNum(\n            theme.worldMap.place[active ? 'active' : 'base'],\n          )}\n          stroke={normalizeColor(\n            placeColor || color || theme.worldMap.color,\n            theme,\n          )}\n          {...interactiveProps}\n          {...restPlace}\n          d={d}\n        />\n      );\n    });\n\n    // If the caller is interested in onSelectPlace changes, track where the\n    let interactiveProps = {};\n    if (onSelectPlace) {\n      interactiveProps = {\n        onMouseOver: this.onMouseOver,\n        onMouseMove: over ? this.onMouseMove : undefined,\n        onMouseLeave: this.onMouseLeave,\n      };\n    }\n\n    let active;\n    if (activeCoords) {\n      const d = `M${FACTOR * activeCoords[0]}, ${FACTOR * activeCoords[1]} h0`;\n      active = (\n        <g\n          stroke=\"none\"\n          fill=\"none\"\n          fillRule=\"evenodd\"\n          onClick={() =>\n            onSelectPlace(coordToLatLon(activeCoords, origin, extent))\n          }\n        >\n          <path\n            strokeLinecap=\"round\"\n            strokeWidth={parseMetricToNum(theme.worldMap.place.active)}\n            stroke={normalizeColor(\n              hoverColor || color || theme.worldMap.hover.color,\n              theme,\n            )}\n            d={d}\n          />\n        </g>\n      );\n    }\n\n    return (\n      <StyledWorldMap\n        viewBox={`${x} ${y} ${width} ${height}`}\n        preserveAspectRatio=\"xMinYMin meet\"\n        fillProp={fill}\n        width={width}\n        height={height}\n        {...interactiveProps}\n        {...rest}\n      >\n        <g\n          ref={ref => {\n            this.containerRef = ref;\n          }}\n          stroke=\"none\"\n          fill=\"none\"\n          fillRule=\"evenodd\"\n        >\n          {continents}\n        </g>\n        {places}\n        {active}\n      </StyledWorldMap>\n    );\n  }\n}\n\nWorldMap.defaultProps = {};\nObject.setPrototypeOf(WorldMap.defaultProps, defaultProps);\n\nlet WorldMapDoc;\nif (process.env.NODE_ENV !== 'production') {\n  // eslint-disable-next-line global-require\n  WorldMapDoc = require('./doc').doc(WorldMap);\n}\nconst WorldMapWrapper = compose(withTheme)(WorldMapDoc || WorldMap);\n\nexport { WorldMapWrapper as WorldMap };\n","import styled from 'styled-components';\n\nimport { genericStyles } from '../../utils';\nimport { defaultProps } from '../../default-props';\n\nconst fillStyle = fillProp => {\n  if (fillProp === 'horizontal') {\n    return `\n      width: 100%;\n      height: unset;\n    `;\n  }\n  if (fillProp === 'vertical') {\n    return `\n      width: unset;\n      height: 100%;\n    `;\n  }\n  if (fillProp) {\n    return `\n      width: 100%;\n      height: 100%;\n    `;\n  }\n  return '';\n};\n\n// undefined fillProp has width for backwards compatibility\nconst StyledWorldMap = styled.svg`\n  ${genericStyles}\n  ${props =>\n    props.fillProp !== undefined ? fillStyle(props.fillProp) : 'width: 100%;'}\n  ${props => props.theme.worldMap && props.theme.worldMap.extend};\n`;\n\nStyledWorldMap.defaultProps = {};\nObject.setPrototypeOf(StyledWorldMap.defaultProps, defaultProps);\n\nexport { StyledWorldMap };\n","// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nvar parseHexToRGB = function parseHexToRGB(color) {\n  return color.replace(/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i, function (m, r, g, b) {\n    return \"#\" + r + r + g + g + b + b;\n  }).substring(1).match(/.{2}/g).map(function (x) {\n    return parseInt(x, 16);\n  });\n};\n\nvar getRGBArray = function getRGBArray(color) {\n  if (/^#/.test(color)) {\n    return parseHexToRGB(color);\n  }\n\n  if (/^rgb/.test(color)) {\n    return color.match(/rgba?\\((\\s?[0-9]*\\s?),(\\s?[0-9]*\\s?),(\\s?[0-9]*\\s?).*?\\)/).splice(1);\n  }\n\n  return color;\n};\n\nexport var colorIsDark = function colorIsDark(color) {\n  var _getRGBArray = getRGBArray(color),\n      red = _getRGBArray[0],\n      green = _getRGBArray[1],\n      blue = _getRGBArray[2]; // http://www.had2know.com/technology/\n  //  color-contrast-calculator-web-design.html\n\n\n  var brightness = (299 * red + 587 * green + 114 * blue) / 1000;\n  return brightness < 125;\n};\nexport var normalizeColor = function normalizeColor(color, theme) {\n  var colorSpec = theme.global.colors[color] || color; // If the color has a light or dark object, use that\n\n  var result = colorSpec;\n\n  if (theme.dark && colorSpec.dark) {\n    result = colorSpec.dark;\n  } else if (!theme.dark && colorSpec.light) {\n    result = colorSpec.light;\n  } // allow one level of indirection in color names\n\n\n  if (result && theme.global.colors[result] && theme.global.colors[result] !== result) {\n    result = normalizeColor(result, theme);\n  }\n\n  return result;\n};","import { css } from 'styled-components';\nimport { normalizeColor } from '../utils';\nexport var colorStyle = function colorStyle(name, value, theme, required) {\n  return css([\"\", \":\", \";\"], name, normalizeColor(value, theme, required));\n};","import { css } from 'styled-components';\nexport var sizeStyle = function sizeStyle(name, value, theme) {\n  return css([\"\", \":\", \";\"], name, theme.global.size[value] || value);\n};","export * from './styles';\nexport * from './utils';"],"sourceRoot":""}