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GAE7Esd,EAAUvgB,EAAU,CACtBuJ,OAAQA,EACRxC,QAASA,IAEP3D,EAAU0I,EACd,OAAO,gBAAoB1I,EAASxE,SAAS,CAC3C0hB,aAAcC,EAAQpd,cACtBzB,UAAWA,GACVutB,SAAS/rB,MAuBd,OArBAm5C,YAAYlzC,YAAc,eAAe5B,OAAO0zC,eAAenvC,GAAY,KAC3EuwC,YAAYC,qBAAuB,WACjC,OAAOxwC,GAETuwC,YAAY94C,aAAe,CACzBlB,OAAGtB,EACHuB,QAAIvB,EACJwB,QAAIxB,EACJyB,QAAIzB,EACJ0B,QAAI1B,EACJ2B,QAAI3B,EACJ4B,QAAI5B,EACJ1B,OAAG0B,EACH6B,QAAI7B,EACJ8B,QAAI9B,EACJ+B,QAAI/B,EACJgC,QAAIhC,EACJiC,QAAIjC,EACJkC,QAAIlC,EACJW,eAAWX,GAENs7C,YAET,IAAIE,EAAO,CACTv1B,KAAM,YACNC,IAAK,MACLC,IAAK,SACLC,KAAM,OACNC,KAAM,YACNC,UAAW,WACXC,QAAS,SACTC,MAAO,aACPC,GAAI,UACJC,MAAO,QACPC,MAAO,IACPC,UAAW,YACXC,IAAK","sources":["/app/apps/loginweb/node_modules/@wds/accordion/node_modules/@wds/box/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/accordion/node_modules/@wds/list/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/accordion/node_modules/@wds/typography/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/accordion/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/accordion/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/banner/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/banner/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/box/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/button-group/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/button/node_modules/@wds/progress-circle/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/button/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/button/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/checkbox/node_modules/@wds/typography/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/checkbox/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/checkbox/node_modules/@wds/utils/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/input-message/node_modules/@wds/box/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/input-message/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/input-message/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/internal-components/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/label/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/modal/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/modal/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/motion/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/page-header/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/progress-circle/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/radio/node_modules/@wds/utils/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/radio/node_modules/@wds/typography/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/radio/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/responsive/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/section/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/textarea/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/textarea/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/toast/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/toast/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/typography/node_modules/@wds/styles/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/typography/dist/index.es.js","/app/apps/loginweb/node_modules/@wds/utils/dist/index.es.js"],"sourcesContent":["import { createMemoStyles, removeUndefinedProperties, createSpacingStyles, clsx } from '@wds/utils';\nimport React from 'react';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (_a) {\n var spacing = _a.spacing,\n border = _a.border;\n return {\n wrenchBox: function (_a) {\n var _b, _c;\n var display = _a.display,\n flexProperties = _a.flexProperties,\n gridProperties = _a.gridProperties,\n borderColor = _a.borderColor;\n var gap = gridProperties.gap,\n gridStyleProperties = __rest(gridProperties, [\"gap\"]);\n var _d = flexProperties.flexItemGrow,\n flexItemGrow = _d === void 0 ? undefined : _d,\n _e = flexProperties.flexWrap,\n flexWrap = _e === void 0 ? undefined : _e,\n flexStyleProperties = __rest(flexProperties, [\"flexItemGrow\", \"flexWrap\"]);\n return removeUndefinedProperties(__assign(__assign(__assign({}, gridStyleProperties), flexStyleProperties), {\n justifyContent: (_b = gridStyleProperties.justifyContent) !== null && _b !== void 0 ? _b : flexStyleProperties.justifyContent,\n alignItems: (_c = gridStyleProperties.alignItems) !== null && _c !== void 0 ? _c : flexStyleProperties.alignItems,\n flexGrow: flexItemGrow && 1,\n flexWrap: flexWrap && 'wrap',\n display: display !== null && display !== void 0 ? display : null,\n gap: gap ? spacing[gap] : null,\n border: borderColor && border[borderColor]\n }));\n }\n };\n});\n\n/**\n * [IMPORTANT]\n * We have to call createSpacingStyles at the component level\n * Otherwise, the styles will be overridden by the global styles\n * This happens because JSS loads the styles in sequence\n */\nvar useSpacingStyles = createSpacingStyles();\nvar Box = function (props) {\n var containerRef = props.containerRef,\n borderColor = props.borderColor,\n className = props.className,\n children = props.children,\n _a = props.element,\n element = _a === void 0 ? 'div' : _a,\n display = props.display,\n alignItems = props.alignItems,\n alignContent = props.alignContent,\n justifyContent = props.justifyContent,\n flexDirection = props.flexDirection,\n flexItemGrow = props.flexItemGrow,\n flexJustify = props.flexJustify,\n flexAlign = props.flexAlign,\n flexWrap = props.flexWrap,\n gridTemplateColumns = props.gridTemplateColumns,\n gridTemplateRows = props.gridTemplateRows,\n gridAutoFlow = props.gridAutoFlow,\n placeItems = props.placeItems,\n gap = props.gap,\n m = props.m,\n mx = props.mx,\n my = props.my,\n mt = props.mt,\n mb = props.mb,\n ml = props.ml,\n mr = props.mr,\n p = props.p,\n px = props.px,\n py = props.py,\n pt = props.pt,\n pb = props.pb,\n pl = props.pl,\n pr = props.pr,\n rest = __rest(props, [\"containerRef\", \"borderColor\", \"className\", \"children\", \"element\", \"display\", \"alignItems\", \"alignContent\", \"justifyContent\", \"flexDirection\", \"flexItemGrow\", \"flexJustify\", \"flexAlign\", \"flexWrap\", \"gridTemplateColumns\", \"gridTemplateRows\", \"gridAutoFlow\", \"placeItems\", \"gap\", \"m\", \"mx\", \"my\", \"mt\", \"mb\", \"ml\", \"mr\", \"p\", \"px\", \"py\", \"pt\", \"pb\", \"pl\", \"pr\"]);\n var flexProperties = {\n alignItems: alignItems !== null && alignItems !== void 0 ? alignItems : flexAlign,\n alignContent: alignContent,\n justifyContent: justifyContent !== null && justifyContent !== void 0 ? justifyContent : flexJustify,\n flexDirection: flexDirection,\n flexItemGrow: flexItemGrow,\n flexWrap: flexWrap\n };\n var gridProperties = {\n justifyContent: justifyContent,\n alignItems: alignItems,\n alignContent: alignContent,\n gridTemplateColumns: gridTemplateColumns,\n gridTemplateRows: gridTemplateRows,\n gridAutoFlow: gridAutoFlow,\n placeItems: placeItems,\n gap: gap\n };\n var wrenchSpacing = useSpacingStyles({\n m: m,\n mx: mx,\n my: my,\n mt: mt,\n mb: mb,\n ml: ml,\n mr: mr,\n p: p,\n px: px,\n py: py,\n pt: pt,\n pb: pb,\n pl: pl,\n pr: pr\n }).wrenchSpacing;\n var wrenchBox = useStyles({\n flexProperties: flexProperties,\n gridProperties: gridProperties,\n display: display,\n borderColor: borderColor\n }).wrenchBox;\n // TODO: remove this type coercion when upgrading to React v18\n var Element = element;\n var classNames = clsx(className, wrenchBox, wrenchSpacing);\n return React.createElement(Element, __assign({\n className: classNames,\n ref: containerRef\n }, rest), children);\n};\nBox.defaultProps = {\n element: 'div',\n containerRef: undefined,\n display: undefined,\n children: null,\n className: undefined\n};\nexport { Box };","import React, { forwardRef } from 'react';\nimport { createMemoStyles, darken, lighten, defaultBaseline, defaultFonts, visuallyHidden, clsx, safeRest, KEYS } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\n\n/** Resolves the correct color */\nvar getMarkedColor = function (color, palette) {\n if (!color || typeof color !== 'string') {\n return palette.primary.main;\n }\n if (color.startsWith('data-')) {\n return palette.data[color.replace('data-', '')];\n }\n return palette[color].main;\n};\nvar useStyles$1 = createMemoStyles(function (theme) {\n var palette = theme.palette,\n border = theme.border,\n spacing = theme.spacing,\n motion = theme.motion,\n type = theme.type;\n var list = {\n addonIconColor: palette.background.dark,\n affordanceIconColor: palette.secondary.main,\n itemHeight: 48,\n itemMinHeight: 48,\n itemDenseMinHeight: 40,\n labelFontSize: type.fontSize.bodySm,\n markWidth: 4\n };\n var listStyles = {\n wrenchListRow: {\n borderBottom: border.main,\n '&:last-child': {\n borderBottom: 'none'\n },\n 'a&': {\n color: palette.text.dark,\n '&:hover, &:focus': {\n textDecoration: 'none'\n }\n }\n },\n wrenchListItem: function (_a) {\n var accordion = _a.accordion,\n color = _a.color,\n marked = _a.marked,\n menu = _a.menu,\n disabled = _a.disabled,\n upgrade = _a.upgrade,\n interactive = _a.interactive,\n isFocused = _a.isFocused,\n transparent = _a.transparent;\n return __assign(__assign(__assign(__assign(__assign({}, defaultBaseline), defaultFonts(theme)), {\n fontWeight: menu ? type.fontWeight.regular : type.fontWeight.medium,\n display: 'flex',\n background: transparent ? 'none' : palette.background.light,\n position: 'relative',\n justifyContent: 'space-between',\n alignItems: 'center',\n minHeight: list.itemMinHeight,\n 'a&': {\n textDecoration: 'none'\n }\n }), accordion && {\n '&:hover, &:focus, &:active': {\n cursor: 'pointer'\n }\n }), {\n // same specificity as parent List rules\n '[class^=\"wrenchList-\"] &': __assign(__assign(__assign(__assign(__assign({}, interactive && __assign(__assign({\n transition: 'background 180ms linear'\n }, isFocused && {\n transition: 'background 125ms linear',\n background: palette.background.accent,\n cursor: 'pointer'\n }), {\n '&:hover, &:focus': {\n transition: 'background 125ms linear',\n background: palette.background.accent,\n cursor: 'pointer'\n },\n '&:active': {\n transition: 'background 125ms linear',\n background: darken(0.05, palette.background.accent)\n }\n })), upgrade && {\n background: lighten(0.42, palette.upgrade.main) // same specificity as transparent List rule\n }), upgrade && interactive && {\n '&:hover, &:focus': {\n background: lighten(0.35, palette.upgrade.main) // same specificity as transparent List rule\n }\n }), disabled && {\n opacity: 0.5,\n pointerEvents: 'none'\n }), {\n '&:before': __assign({}, (color || marked) && {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n top: 0,\n bottom: 0,\n width: list.markWidth,\n background: getMarkedColor(color, palette)\n })\n })\n });\n },\n wrenchListAddon: function () {\n return {\n padding: [0, spacing[4], 0, spacing[5]],\n color: list.addonIconColor,\n display: 'flex',\n alignItems: 'center',\n '> [class^=\"wrenchIcons-\"]': {\n marginLeft: spacing[2]\n }\n };\n },\n /** Additional styles when addon is on the right */\n wrenchListAddonOnRight: function () {\n return {\n paddingLeft: 0,\n paddingRight: spacing[6],\n color: palette.text.lightMuted\n };\n },\n wrenchListAffordance: function (_a) {\n var addOnLeft = _a.addOnLeft;\n return __assign({\n padding: [0, spacing[6], 0, 0],\n color: list.affordanceIconColor,\n display: 'flex',\n alignItems: 'center',\n '& > *': {\n transition: \"transform 150ms \".concat(motion.curve.ease)\n }\n }, addOnLeft && {\n paddingLeft: 0\n });\n },\n wrenchListLabel: function (_a) {\n var addOnLeft = _a.addOnLeft;\n return __assign({\n flexGrow: 1,\n padding: [0, spacing[5]],\n fontSize: list.labelFontSize,\n lineHeight: 1.25,\n minWidth: 0,\n 'a &': {\n color: palette.text.dark\n }\n }, addOnLeft && {\n paddingLeft: 0\n });\n },\n wrenchPaneHide: function (_a) {\n var expanded = _a.expanded;\n return expanded ? null : visuallyHidden;\n }\n };\n return listStyles;\n});\nvar ListItem = forwardRef(function (_a, ref) {\n var addOnLeft = _a.addOnLeft,\n addOnRight = _a.addOnRight,\n affordance = _a.affordance,\n children = _a.children,\n color = _a.color,\n component = _a.component,\n disabled = _a.disabled,\n id = _a.id,\n index = _a.index,\n isFocused = _a.isFocused,\n interactive = _a.interactive,\n marked = _a.marked,\n menu = _a.menu,\n navigationTarget = _a.navigationTarget,\n onClick = _a.onClick,\n upgrade = _a.upgrade,\n isNavigable = _a.isNavigable,\n transparent = _a.transparent,\n other = __rest(_a, [\"addOnLeft\", \"addOnRight\", \"affordance\", \"children\", \"color\", \"component\", \"disabled\", \"id\", \"index\", \"isFocused\", \"interactive\", \"marked\", \"menu\", \"navigationTarget\", \"onClick\", \"upgrade\", \"isNavigable\", \"transparent\"]);\n // no reason to expose these in props\n var accordion = other.accordion,\n expanded = other.expanded,\n paneComponent = other.paneComponent,\n rest = __rest(other, [\"accordion\", \"expanded\", \"paneComponent\"]);\n var _b = useStyles$1({\n accordion: accordion,\n color: color,\n marked: marked,\n menu: menu,\n disabled: disabled,\n upgrade: upgrade,\n isFocused: isFocused,\n interactive: interactive,\n addOnLeft: addOnLeft,\n expanded: expanded,\n transparent: transparent\n }),\n wrenchListRow = _b.wrenchListRow,\n wrenchListItem = _b.wrenchListItem,\n wrenchListLabel = _b.wrenchListLabel,\n wrenchListAddon = _b.wrenchListAddon,\n wrenchListAddonOnRight = _b.wrenchListAddonOnRight,\n wrenchListAffordance = _b.wrenchListAffordance;\n var addOnClassNames = clsx(wrenchListAddon, wrenchListAddonOnRight);\n var href = isNavigable ? navigationTarget : undefined;\n var ListItemWrapper = isNavigable ? component !== null && component !== void 0 ? component : 'a' : 'div';\n var interactiveProps = interactive ? {\n tabIndex: disabled ? '-1' : 0,\n role: 'button'\n } : {};\n var onHandleKeyDown = function (e) {\n if (onClick && (e.key === KEYS.ENTER || e.key === KEYS.SPACE)) {\n onClick(e);\n }\n };\n return React.createElement(\"li\", {\n className: wrenchListRow\n }, React.createElement(ListItemWrapper, __assign({\n disabled: disabled,\n className: wrenchListItem,\n onClick: function (e) {\n return onClick === null || onClick === void 0 ? void 0 : onClick(e);\n },\n onKeyDown: onHandleKeyDown,\n href: href,\n id: id,\n \"data-index\": index,\n ref: ref\n }, interactiveProps, safeRest(rest)), addOnLeft && React.createElement(\"div\", {\n className: wrenchListAddon\n }, addOnLeft), React.createElement(\"span\", {\n className: wrenchListLabel\n }, children), addOnRight && React.createElement(\"div\", {\n className: addOnClassNames\n }, addOnRight), affordance && React.createElement(\"span\", {\n className: wrenchListAffordance\n }, affordance)), typeof expanded !== 'undefined' && paneComponent);\n});\nListItem.defaultProps = {\n accordion: false,\n addOnLeft: undefined,\n addOnRight: undefined,\n affordance: undefined,\n children: undefined,\n color: undefined,\n component: undefined,\n disabled: false,\n id: undefined,\n index: undefined,\n interactive: false,\n isFocused: false,\n isNavigable: false,\n marked: false,\n menu: false,\n // eslint-disable-next-line no-script-url\n navigationTarget: 'javascript:void(0)',\n onClick: undefined,\n upgrade: false\n};\n// The displayName is needed for component's Accordion and perhaps other consumers in the future\n// https://reactjs.org/docs/forwarding-refs.html#displaying-a-custom-name-in-devtools\nListItem.displayName = 'ListItem';\nvar useStyles = createMemoStyles(function (theme) {\n var spacing = theme.spacing,\n type = theme.type;\n var list = {\n itemDenseMinHeight: 40\n };\n var listStyles = {\n wrenchList: function (_a) {\n var dense = _a.dense,\n noRules = _a.noRules;\n return __assign(__assign(__assign(__assign({}, defaultBaseline), {\n display: 'block'\n }), dense && {\n '& [class^=\"wrenchListAddon-\"]': {\n paddingLeft: spacing[4],\n '& [class^=\"wrenchIcons-\"]': {\n paddingLeft: 0\n }\n },\n // second className so it needs `*- not ^=` selector\n '& [class*=\"wrenchListAddonOnRight-\"]': {\n paddingRight: spacing[4]\n },\n '& [class^=\"wrenchListLabel-\"]': {\n fontWeight: type.fontWeight.regular,\n margin: [spacing[3] + 1, 0]\n },\n '& [class^=\"wrenchListItem-\"]': {\n minHeight: list.itemDenseMinHeight,\n borderBottom: 'none'\n }\n }), noRules && {\n '& [class^=\"wrenchListRow-\"]': {\n borderBottom: 'none'\n }\n });\n }\n };\n return listStyles;\n});\nvar List = forwardRef(function (_a, ref) {\n var dense = _a.dense,\n interactive = _a.interactive,\n noRules = _a.noRules,\n transparent = _a.transparent,\n children = _a.children,\n role = _a.role,\n id = _a.id;\n var wrenchList = useStyles({\n dense: dense,\n interactive: interactive,\n noRules: noRules,\n transparent: transparent\n }).wrenchList;\n var newChildren = React.Children.map(children, function (child, index) {\n return React.isValidElement(child) && React.cloneElement(child, {\n interactive: interactive,\n index: index,\n transparent: transparent\n });\n });\n return React.createElement(\"ul\", {\n ref: ref,\n className: wrenchList,\n role: role,\n id: id\n }, newChildren);\n});\nList.defaultProps = {\n dense: false,\n id: undefined,\n interactive: false,\n noRules: false,\n role: undefined,\n transparent: false\n};\nList.displayName = 'List';\nList.Item = ListItem;\nexport { List };","import { createMemoStyles, safeRest } from '@wds/utils';\nimport React, { forwardRef } from 'react';\nimport { getColor, FONT_SIZES, SEMANTIC_COLORS, LINK_COLORS, TYPE_COLORS } from '@wds/styles';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nvar isNotLink = function (t) {\n return t !== 'link';\n};\nvar hasFontWeight = function (t) {\n return typeof t.fontWeight === 'string' || typeof t.fontWeight === 'number';\n};\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n fontFamily = _b.fontFamily,\n fontSize = _b.fontSize,\n fontWeight = _b.fontWeight,\n palette = _a.palette;\n return {\n wrenchTypography: function (_a) {\n var align = _a.align,\n color = _a.color,\n variant = _a.variant,\n component = _a.component,\n weight = _a.weight,\n lineHeight = _a.lineHeight;\n var chosenColor = getColor(palette, color, {\n fallback: palette.text.dark\n });\n var variantStyle = {};\n if (variant) {\n if (isNotLink(variant)) {\n variantStyle = {\n fontSize: fontSize[variant],\n fontWeight: {\n hero1: fontWeight.regular,\n hero2: fontWeight.regular,\n title: fontWeight.regular,\n sectionTitle: fontWeight.regular,\n sectionTitleSm: fontWeight.regular,\n pageTitle: fontWeight.regular,\n cardTitle: fontWeight.regular,\n body: fontWeight.regular,\n bodySm: fontWeight.regular,\n caption: fontWeight.regular\n }[variant]\n };\n } else {\n variantStyle = {\n color: palette.link.main,\n textDecoration: 'none',\n border: 'none',\n background: 'none',\n outline: 'none',\n cursor: 'pointer',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n '&:hover, &:focus': {\n textDecoration: 'underline'\n }\n };\n }\n }\n var computedWeight = 'inherit';\n if (weight) {\n computedWeight = fontWeight[weight];\n } else if (component === 'strong' || component === 'b') {\n computedWeight = fontWeight.medium;\n } else if (hasFontWeight(variantStyle)) {\n computedWeight = variantStyle.fontWeight;\n }\n return __assign(__assign(__assign({\n fontFamily: fontFamily.base,\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n '-webkit-font-smoothing': 'antialiased',\n color: chosenColor,\n textAlign: align,\n lineHeight: lineHeight !== null && lineHeight !== void 0 ? lineHeight : 1.5,\n margin: 0,\n padding: 0\n }, variantStyle), variant && (variant === 'hero1' || variant === 'hero2') && {\n fontFamily: fontFamily === null || fontFamily === void 0 ? void 0 : fontFamily.headings\n }), {\n fontWeight: computedWeight,\n '& > strong, & > b': {\n fontWeight: fontWeight.medium\n }\n });\n }\n };\n});\nvar Typography = forwardRef(function (_a, ref) {\n var _b = _a.align,\n align = _b === void 0 ? 'left' : _b,\n _c = _a.color,\n color = _c === void 0 ? 'dark' : _c,\n _d = _a.component,\n component = _d === void 0 ? 'div' : _d,\n _e = _a.variant,\n variant = _e === void 0 ? 'body' : _e,\n weight = _a.weight,\n lineHeight = _a.lineHeight,\n children = _a.children,\n rest = __rest(_a, [\"align\", \"color\", \"component\", \"variant\", \"weight\", \"lineHeight\", \"children\"]);\n var wrenchTypography = useStyles({\n align: align,\n color: color,\n variant: variant,\n component: component,\n weight: weight,\n lineHeight: lineHeight\n }).wrenchTypography;\n var Component = component;\n return React.createElement(Component, __assign({\n className: wrenchTypography\n }, safeRest(rest), {\n ref: ref\n }), children);\n});\nvar ALIGNMENTS = ['center', 'left', 'right'];\nvar VARIANTS = __spreadArray(__spreadArray([], FONT_SIZES, true), ['link'], false);\nvar TYPOGRAPHY_COLORS = __spreadArray(__spreadArray(__spreadArray([], SEMANTIC_COLORS, true), LINK_COLORS, true), TYPE_COLORS, true);\nvar COMPONENTS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'p', 'span', 'div', 'article', 'section', 'em', 'strong', 'label', 'b'];\nexport { ALIGNMENTS, COMPONENTS, TYPOGRAPHY_COLORS, Typography, VARIANTS };","import React, { forwardRef, useState, Children, isValidElement, useRef, useMemo, cloneElement } from 'react';\nimport { uniqueId, getDisplayName, safeRest, KEYS } from '@wds/utils';\nimport { Box } from '@wds/box';\nimport { List } from '@wds/list';\nimport { Pane } from '@wds/internal-components';\nimport { IconChevronUp, IconChevronDown } from '@wds/icons';\nimport { Typography } from '@wds/typography';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar AccordionItem = forwardRef(function (_a, ref) {\n var addOnLeft = _a.addOnLeft,\n addOnRight = _a.addOnRight,\n affordance = _a.affordance,\n ariaControls = _a.ariaControls,\n onKeyDown = _a.onKeyDown,\n children = _a.children,\n color = _a.color,\n disabled = _a.disabled,\n expanded = _a.expanded,\n id = _a.id,\n interactive = _a.interactive,\n transparent = _a.transparent,\n marked = _a.marked,\n onClick = _a.onClick,\n paneComponent = _a.paneComponent,\n upgrade = _a.upgrade;\n var tabIndex = disabled ? '-1' : 0;\n return React.createElement(List.Item, {\n accordion: true,\n addOnLeft: addOnLeft,\n addOnRight: addOnRight,\n affordance: affordance,\n \"aria-controls\": ariaControls,\n onKeyDown: function (e) {\n return onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e, !expanded);\n },\n color: color,\n disabled: disabled,\n expanded: expanded,\n id: id,\n interactive: interactive,\n marked: marked,\n onClick: function (e) {\n return onClick === null || onClick === void 0 ? void 0 : onClick(e, !expanded);\n },\n paneComponent: paneComponent,\n role: \"button\",\n upgrade: upgrade,\n tabIndex: tabIndex,\n ref: ref,\n transparent: transparent\n }, children);\n});\nAccordionItem.defaultProps = {\n addOnLeft: undefined,\n addOnRight: undefined,\n affordance: undefined,\n ariaControls: undefined,\n onKeyDown: undefined,\n children: undefined,\n color: undefined,\n disabled: false,\n id: undefined,\n interactive: false,\n marked: false,\n onClick: undefined,\n paneComponent: undefined,\n upgrade: false,\n subtitle: undefined,\n titleSize: 'md',\n transparent: false\n};\nAccordionItem.displayName = 'AccordionItem';\nvar Accordion = function (_a) {\n var _b, _c;\n var multiple = _a.multiple,\n interactive = _a.interactive,\n noRules = _a.noRules,\n dense = _a.dense,\n transparent = _a.transparent,\n onChange = _a.onChange,\n id = _a.id,\n children = _a.children,\n _d = _a.padding,\n padding = _d === void 0 ? true : _d,\n rest = __rest(_a, [\"multiple\", \"interactive\", \"noRules\", \"dense\", \"transparent\", \"onChange\", \"id\", \"children\", \"padding\"]);\n // If any of the children have an \"expanded={true|false}\" prop\n // then we assume the outside component is maintaining the expanded\n // state of the AccordionItems and we ignore props like 'multiple'.\n // It defers to the props to control when panels are expanded/collapsed\n var areAnyItemsControlled = false;\n var defaultExpandedCount = 0;\n var _e = useState((_c = (_b = Children.map(children, function (child, index) {\n if (!child) {\n return null;\n }\n if (child.props.expanded !== undefined) {\n areAnyItemsControlled = true;\n }\n // ensure we only have 1 defaultExpanded item unless multiple=true\n if (child.props.defaultExpanded) {\n defaultExpandedCount += 1;\n }\n return isValidElement(child) && (child.props.expanded || child.props.defaultExpanded) && (multiple || defaultExpandedCount <= 1) ? index : null;\n })) === null || _b === void 0 ? void 0 : _b.filter(function (val) {\n return val !== null;\n })) !== null && _c !== void 0 ? _c : []),\n expandedIndices = _e[0],\n setExpandedIndices = _e[1];\n // Once a child is identified as controlled, the Accordion is assumed to be\n // controlled for the lifetime of the component, as per React conventions\n var isExpandedStateControlled = useState(areAnyItemsControlled)[0];\n var accListRef = useRef(null);\n var uniqueAccName = useMemo(function () {\n return uniqueId('wrench-acc-');\n }, []);\n var uniqueAccPaneName = useMemo(function () {\n return uniqueId('wrench-accPane-');\n }, []);\n if (areAnyItemsControlled !== isExpandedStateControlled) {\n if (areAnyItemsControlled) {\n // eslint-disable-next-line no-console\n console.error('Accordion is changing from being uncontrolled to being controlled. If you use the optional `expanded` prop to Accordion.Item, make sure its value is always {true|false}, and not {undefined|null}.');\n } else {\n // eslint-disable-next-line no-console\n console.error('Accordion is changing from being controlled to being uncontrolled. If you use the optional `expanded` prop to Accordion.Item, make sure its value is always {true|false}, and not {undefined|null}.');\n }\n }\n /**\n * @param {number} ind\n * @return {void}\n */\n var handleOnChange = function (evt, index, itemId, isExpanding) {\n // Since dom node is a div, we can't check the disabled property\n if (evt.currentTarget !== null && evt.currentTarget.tabIndex > -1) {\n var newExpandedIndices = [];\n if (isExpandedStateControlled) {\n newExpandedIndices = Children.map(children, function (child, i) {\n // If the current index is changing\n if (i === index) {\n // include the index if it is expanding\n return isExpanding ? i : null;\n }\n // For all others, include index if it is already expanded\n return child.props.expanded ? i : null;\n }).filter(function (val) {\n return Number.isInteger(val);\n });\n } else if (!multiple) {\n newExpandedIndices = expandedIndices[0] === index ? [] : [index];\n } else if (expandedIndices.includes(index)) {\n newExpandedIndices = expandedIndices.filter(function (item) {\n return item !== index;\n });\n } else {\n newExpandedIndices = expandedIndices.concat(index);\n }\n setExpandedIndices(newExpandedIndices);\n if (onChange) {\n onChange(newExpandedIndices, index, itemId, isExpanding);\n }\n }\n };\n /**\n * Accordion according to Accordion Design Pattern in WAI-ARIA Authoring Practices 1.1\n * see https://www.w3.org/TR/wai-aria-practices/examples/accordion/accordion.html\n *\n * Keyboard Support:\n *\n ```\n Space or Enter\n When focus is on the accordion header of a collapsed section, expands the section.\n Tab\n Moves focus to the next focusable element.\n All focusable elements in the accordion are included in the page Tab sequence.\n Shift + Tab\n Moves focus to the previous focusable element.\n All focusable elements in the accordion are included in the page Tab sequence.\n Down Arrow\n When focus is on an accordion header, moves focus to the next accordion header.\n When focus is on last accordion header, moves focus to first accordion header.\n Up Arrow\n When focus is on an accordion header, moves focus to the previous accordion header.\n When focus is on first accordion header, moves focus to last accordion header.\n Home\n When focus is on an accordion header, moves focus to the first accordion header.\n End\n When focus is on an accordion header, moves focus to the last accordion header.\n ```\n */\n var handleKeyDown = function (evt, ind, itemId, isExpanding) {\n if (evt.key === KEYS.SPACE || evt.key === KEYS.ENTER) {\n evt.preventDefault();\n handleOnChange(evt, ind, itemId, isExpanding);\n return;\n }\n var accList = accListRef.current ? Array.from(accListRef.current.children).map(function (acc) {\n return acc.firstChild;\n }) : [];\n var accListLen = accList.length - 1;\n var newFocusTarget = null;\n switch (evt.key) {\n case KEYS.DOWN:\n evt.preventDefault();\n newFocusTarget = ind < accListLen ? accList[ind + 1] : accList[0];\n break;\n case KEYS.UP:\n evt.preventDefault();\n newFocusTarget = ind === 0 ? accList[accListLen] : accList[ind - 1];\n break;\n case KEYS.HOME:\n evt.preventDefault();\n newFocusTarget = accList[0];\n break;\n case KEYS.END:\n evt.preventDefault();\n newFocusTarget = accList[accListLen];\n break;\n }\n // Guard Null Case\n if (newFocusTarget !== null) {\n newFocusTarget.focus();\n }\n };\n /**\n * @param {node} paneChildren\n * @param {string} labelledBy\n * @param {string} paneId\n * @return {node}\n */\n var renderPane = function (paneChildren, labelledBy, paneId, expanded) {\n var panePadding = padding;\n if (getDisplayName(paneChildren) === 'List') {\n panePadding = false;\n }\n var paneProps = {\n padding: panePadding,\n labelledBy: labelledBy,\n hide: !expanded,\n role: 'region',\n id: paneId\n };\n return React.createElement(Pane, __assign({\n transparent: true\n }, paneProps), paneChildren);\n };\n /**\n *\n * @param {node} child\n * @param {number} index\n * @param {boolean} expanded\n * @return {node}\n */\n var renderAccordionElement = function (child, index, expanded) {\n var _a, _b;\n var accordionName = (_a = child.props.id) !== null && _a !== void 0 ? _a : \"\".concat(uniqueAccName, \"-\").concat(index);\n var accordionPaneName = (_b = child.props.ariaControls) !== null && _b !== void 0 ? _b : \"\".concat(uniqueAccPaneName, \"-\").concat(index);\n var paneComponent = renderPane(child.props.children, accordionName, accordionPaneName, expanded);\n var titleVariant = child.props.titleSize === 'lg' ? 'cardTitle' : 'body';\n var childElements = React.createElement(Box, {\n my: 4\n }, React.createElement(Box, {\n mb: 2\n }, React.createElement(Typography, {\n component: \"strong\",\n variant: titleVariant\n }, child.props.title)), child.props.subtitle && React.createElement(Typography, {\n variant: \"bodySm\",\n color: \"secondary\"\n }, child.props.subtitle));\n return cloneElement(child, {\n children: childElements,\n expanded: expanded,\n key: accordionName,\n id: accordionName,\n ariaControls: accordionPaneName,\n paneComponent: paneComponent,\n affordance: expanded ? React.createElement(IconChevronUp, {\n title: \"Chevron Up\"\n }) : React.createElement(IconChevronDown, {\n title: \"Chevron Down\"\n }),\n onClick: function (evt, isExpanding) {\n return handleOnChange(evt, index, accordionName, isExpanding);\n },\n onKeyDown: function (evt, isExpanding) {\n return handleKeyDown(evt, index, accordionName, isExpanding);\n }\n });\n };\n var accordionList = Children.map(children, function (child, index) {\n var isExpandedItem = isExpandedStateControlled ? !!child.props.expanded : expandedIndices.includes(index);\n if (!isValidElement(child)) {\n return null;\n }\n return getDisplayName(child) === 'ListItem' ? child : renderAccordionElement(child, index, isExpandedItem);\n });\n return React.createElement(List, __assign({\n ref: accListRef,\n noRules: noRules,\n interactive: interactive,\n dense: dense,\n transparent: transparent,\n id: id\n }, safeRest(rest)), accordionList);\n};\nAccordion.defaultProps = {\n multiple: false,\n onChange: null,\n interactive: false,\n id: null,\n dense: false,\n transparent: false,\n noRules: false\n};\nAccordion.Item = AccordionItem;\nexport { Accordion };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import React, { useState } from 'react';\nimport { createMemoStyles, safeRest, defaultFonts, uniqueId } from '@wds/utils';\nimport { IconX, IconInfo, IconWarning, IconCheck, IconLock } from '@wds/icons';\nimport { Slide } from '@wds/motion';\nimport PropTypes from 'prop-types';\nimport { useTheme } from 'react-jss';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles$1 = createMemoStyles(function (_ref) {\n var spacing = _ref.spacing,\n type = _ref.type;\n return {\n wrenchCloseButton: function wrenchCloseButton(_ref2) {\n var component = _ref2.component;\n var componentSpecificStyles = {\n badge: {\n position: 'relative',\n top: 'none',\n right: 'none',\n padding: 0,\n marginLeft: spacing[3]\n },\n banner: {\n position: 'absolute',\n top: spacing[2],\n right: spacing[2],\n padding: 0\n },\n default: {\n position: 'absolute',\n right: spacing[1],\n top: spacing[1],\n padding: spacing[2]\n }\n };\n return _objectSpread(_objectSpread({}, componentSpecificStyles[component || 'default']), {}, {\n fontSize: type.fontSize.body,\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n borderRadius: '0',\n textDecoration: 'none',\n background: 'transparent',\n border: 'none',\n '&:hover': {\n transition: 'none',\n textDecoration: 'none'\n },\n '&:active': {\n transition: 'none',\n outline: 'none'\n }\n });\n }\n };\n});\nvar useStyles$2 = useStyles$1;\nvar _excluded = [\"children\", \"component\", \"label\", \"onClick\", \"type\", \"variant\"];\nvar CloseButton = function CloseButton(_ref) {\n _ref.children;\n var component = _ref.component,\n label = _ref.label,\n onClick = _ref.onClick;\n _ref.type;\n var variant = _ref.variant,\n rest = _objectWithoutProperties(_ref, _excluded);\n var theme = useTheme();\n var _useStyles = useStyles$2({\n theme: theme,\n component: component\n }),\n wrenchCloseButton = _useStyles.wrenchCloseButton;\n return /*#__PURE__*/React.createElement(\"button\", Object.assign({\n onClick: onClick,\n type: \"button\",\n className: wrenchCloseButton,\n \"aria-label\": label\n }, safeRest(rest)), /*#__PURE__*/React.createElement(IconX, {\n title: \"close\",\n color: variant\n }));\n};\nCloseButton.displayName = \"CloseButton\";\nCloseButton.propTypes = {\n children: PropTypes.string,\n component: PropTypes.string,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n type: PropTypes.string,\n variant: PropTypes.oneOf(['dark', 'light'])\n};\nCloseButton.defaultProps = {\n children: 'CloseButton',\n component: undefined,\n type: undefined,\n variant: 'light'\n};\nvar CloseButton$1 = CloseButton;\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar isColorShape = function isColorShape(c) {\n return _typeof(c) === 'object' && 'main' in c;\n};\nvar getColor = function getColor(color) {\n return isColorShape(color) ? color.main : color;\n};\nprocess.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar palette$1 = {\n transparent: 'transparent',\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n error: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE'\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\n({\n main: [1, 'solid', getColor(palette$1.border.main)],\n hover: [1, 'solid', getColor(palette$1.border.hover)],\n active: [1, 'solid', getColor(palette$1.border.active)],\n muted: [1, 'solid', getColor(palette$1.border.muted)],\n dark: [1, 'solid', getColor(palette$1.background.dark)],\n light: [2, 'solid', getColor(palette$1.background.light)]\n});\nprocess.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar palette = {\n transparent: 'transparent',\n primary: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2cb2f1',\n contrast: '#000000'\n },\n upgrade: {\n main: '#ffe11b',\n contrast: '#404040'\n },\n muted: {\n main: '#d0d0d0',\n contrast: '#404040'\n },\n link: {\n main: '#0a7cc1',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#efefef',\n link: '#0a7cc1'\n },\n background: {\n main: '#F5FAF6',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#efefef'\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#008323',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\n({\n main: [1, 'solid', getColor(palette.border.main)],\n hover: [1, 'solid', getColor(palette.border.hover)],\n active: [1, 'solid', getColor(palette.border.active)],\n muted: [1, 'solid', getColor(palette.border.muted)],\n dark: [1, 'solid', getColor(palette.background.dark)],\n light: [2, 'solid', getColor(palette.background.light)]\n});\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\ncreateMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n spacing = theme.spacing,\n type = theme.type,\n radius = theme.radius;\n var banner = {\n borderRadius: radius.small,\n bgColor: palette.background.light,\n typeColor: palette.background.dark,\n markWidth: 8,\n borderSize: 1\n };\n return {\n wrenchBanner: function (_a) {\n var color = _a.color;\n var _color = color;\n return __assign(__assign({}, defaultFonts(theme)), {\n position: 'relative',\n display: 'flex',\n alignItems: 'flex-start',\n fontWeight: type.fontWeight.regular,\n color: banner.typeColor,\n border: [banner.borderSize, 'solid', getColor(palette[_color])],\n borderLeftWidth: banner.markWidth,\n borderRadius: banner.borderRadius,\n background: banner.bgColor,\n margin: '0',\n padding: [spacing[5], spacing[6], spacing[5], spacing[5]]\n });\n },\n wrenchBannerBody: function (_a) {\n var showIcon = _a.showIcon;\n return {\n flexGrow: 1,\n paddingLeft: showIcon ? spacing[5] : 0\n };\n },\n wrenchBannerActions: function () {\n return {\n padding: [spacing[4], 0, 0]\n };\n },\n wrenchBannerIcon: function () {\n return {\n display: 'flex',\n marginTop: 2\n };\n }\n };\n});\nObject.freeze(['success', 'info', 'upgrade', 'warning', 'error']);\nvar Banner = function (_a) {\n var children = _a.children,\n _b = _a.color,\n color = _b === void 0 ? 'info' : _b,\n _c = _a.showIcon,\n showIcon = _c === void 0 ? false : _c,\n _d = _a.dismissible,\n dismissible = _d === void 0 ? false : _d,\n _e = _a.show,\n show = _e === void 0 ? true : _e,\n onClose = _a.onClose,\n _f = _a.closeButtonLabel,\n closeButtonLabel = _f === void 0 ? 'Close Banner' : _f,\n actions = _a.actions,\n rest = __rest(_a, [\"children\", \"color\", \"showIcon\", \"dismissible\", \"show\", \"onClose\", \"closeButtonLabel\", \"actions\"]);\n var _g = useState(false),\n close = _g[0],\n setClose = _g[1];\n var role = color === 'error' || color === 'warning' ? 'alert' : 'status';\n var _h = useStyles({\n color: color,\n showIcon: showIcon\n }),\n wrenchBannerActions = _h.wrenchBannerActions,\n wrenchBanner = _h.wrenchBanner,\n wrenchBannerBody = _h.wrenchBannerBody,\n wrenchBannerIcon = _h.wrenchBannerIcon;\n var bodyId = uniqueId('banner');\n var BannerIcon = {\n info: IconInfo,\n warning: IconWarning,\n error: IconWarning,\n success: IconCheck,\n upgrade: IconLock\n }[color];\n var handleClick = function () {\n setClose(true);\n if (onClose) {\n onClose();\n }\n };\n var Actions = function () {\n return React.createElement(\"div\", {\n className: wrenchBannerActions || ''\n }, actions);\n };\n return React.createElement(Slide, {\n in: !close && show,\n direction: \"down\",\n distance: \"far\"\n }, React.createElement(\"div\", null, React.createElement(\"div\", __assign({\n className: wrenchBanner,\n role: role,\n tabIndex: 0,\n \"aria-describedby\": bodyId\n }, safeRest(rest)), dismissible && React.createElement(CloseButton$1, {\n onClick: handleClick,\n component: \"banner\",\n label: closeButtonLabel,\n variant: \"dark\"\n }), showIcon && React.createElement(\"div\", {\n className: wrenchBannerIcon\n }, React.createElement(BannerIcon, {\n color: color,\n title: \"\".concat(color, \" icon.\")\n })), React.createElement(\"div\", {\n className: wrenchBannerBody,\n id: bodyId\n }, children, actions && React.createElement(Actions, null)))));\n};\nvar BANNER_COLORS = ['success', 'warning', 'error', 'info', 'upgrade'];\nexport { BANNER_COLORS, Banner };","import React from 'react';\nimport { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar getColor = function (color) {\n return isColorShape(color) ? color.main : color;\n};\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: 'transparent',\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n error: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE'\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1.border.main)],\n hover: [1, 'solid', getColor(palette$1.border.hover)],\n active: [1, 'solid', getColor(palette$1.border.active)],\n muted: [1, 'solid', getColor(palette$1.border.muted)],\n dark: [1, 'solid', getColor(palette$1.background.dark)],\n light: [2, 'solid', getColor(palette$1.background.light)]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\nvar theme$1 = {\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: 'transparent',\n primary: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2cb2f1',\n contrast: '#000000'\n },\n upgrade: {\n main: '#ffe11b',\n contrast: '#404040'\n },\n muted: {\n main: '#d0d0d0',\n contrast: '#404040'\n },\n link: {\n main: '#0a7cc1',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#efefef',\n link: '#0a7cc1'\n },\n background: {\n main: '#F5FAF6',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#efefef'\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#008323',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border = {\n main: [1, 'solid', getColor(palette.border.main)],\n hover: [1, 'solid', getColor(palette.border.hover)],\n active: [1, 'solid', getColor(palette.border.active)],\n muted: [1, 'solid', getColor(palette.border.muted)],\n dark: [1, 'solid', getColor(palette.background.dark)],\n light: [2, 'solid', getColor(palette.background.light)]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\nvar theme = {\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n return React.createElement(React.Fragment, null);\n};\nexport { BACKGROUND_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, getColor, isColorShape };","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useTheme } from 'react-jss';\nimport { createMemoStyles, withSpacing, clsx, safeRest } from '@wds/utils';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles({\n wrenchBox: function wrenchBox(_ref) {\n var display = _ref.display,\n flexProperties = _ref.flexProperties;\n var displayProperty = display && {\n display: display\n };\n var flexJustify = flexProperties.flexJustify && {\n justifyContent: flexProperties.flexJustify\n };\n var flexDirection = flexProperties.flexDirection && {\n flexDirection: flexProperties.flexDirection\n };\n var flexAlign = flexProperties.flexAlign && {\n alignItems: flexProperties.flexAlign\n };\n var flexWrap = flexProperties.flexWrap && {\n flexWrap: 'wrap'\n };\n var flexItemGrow = flexProperties.flexItemGrow && {\n flexGrow: 1\n };\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, displayProperty), flexJustify), flexDirection), flexAlign), flexWrap), flexItemGrow);\n }\n});\nvar _excluded = [\"element\", \"children\", \"containerRef\", \"display\", \"flexDirection\", \"flexJustify\", \"flexAlign\", \"flexWrap\", \"flexItemGrow\", \"spacingClass\", \"className\"];\nvar displayOptions = Object.freeze(['block', 'inline-block', 'flex', 'inline-flex', 'inline']);\nvar flexDirectionOptions = Object.freeze(['row', 'column']);\nvar flexJustifyOptions = Object.freeze(['flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly', 'stretch']);\nvar flexAlignOptions = Object.freeze(['start', 'end', 'center', 'space-between', 'space-around', 'flex-start', 'flex-end', 'stretch', 'baseline']);\nvar Box = function Box(_ref) {\n var element = _ref.element,\n children = _ref.children,\n containerRef = _ref.containerRef,\n display = _ref.display,\n flexDirection = _ref.flexDirection,\n flexJustify = _ref.flexJustify,\n flexAlign = _ref.flexAlign,\n flexWrap = _ref.flexWrap,\n flexItemGrow = _ref.flexItemGrow,\n spacingClass = _ref.spacingClass,\n className = _ref.className,\n rest = _objectWithoutProperties(_ref, _excluded);\n var flexProperties = {\n flexDirection: flexDirection,\n flexJustify: flexJustify,\n flexAlign: flexAlign,\n flexWrap: flexWrap,\n flexItemGrow: flexItemGrow\n };\n var theme = useTheme();\n var classes = useStyles({\n display: display,\n flexProperties: flexProperties,\n theme: theme\n });\n var Element = element;\n var classNames = clsx(classes.wrenchBox, spacingClass, className);\n return /*#__PURE__*/React.createElement(Element, Object.assign({\n className: classNames,\n ref: containerRef\n }, safeRest(rest)), children);\n};\nBox.displayName = \"Box\";\nBox.defaultProps = {\n element: 'div',\n containerRef: undefined,\n display: undefined,\n flexDirection: undefined,\n flexJustify: undefined,\n flexAlign: undefined,\n flexWrap: undefined,\n flexItemGrow: undefined,\n spacingClass: undefined,\n className: undefined\n};\nBox.propTypes = {\n element: PropTypes.string,\n children: PropTypes.node.isRequired,\n containerRef: PropTypes.func,\n /**\n * CSS display property\n */\n display: PropTypes.oneOf(displayOptions),\n /**\n * CSS flex-direction\n */\n flexDirection: PropTypes.oneOf(flexDirectionOptions),\n /**\n * CSS justify-content property\n */\n flexJustify: PropTypes.oneOf(flexJustifyOptions),\n /**\n * CSS align-items property\n */\n flexAlign: PropTypes.oneOf(flexAlignOptions),\n /**\n * Will wrap child items if needed, uses the flex-flow property\n */\n flexWrap: PropTypes.bool,\n /**\n * CSS flex-grow property\n */\n flexItemGrow: PropTypes.bool,\n /**\n * An internal prop that is being used by withSpacing HoC\n */\n spacingClass: PropTypes.string,\n /**\n * To rename the class name of the box\n */\n className: PropTypes.string\n};\nBox.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Box\",\n \"props\": {\n \"element\": {\n \"defaultValue\": {\n \"value\": \"'div'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"\"\n },\n \"containerRef\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"func\"\n },\n \"required\": false,\n \"description\": \"\"\n },\n \"display\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"displayOptions\"\n },\n \"required\": false,\n \"description\": \"CSS display property\"\n },\n \"flexDirection\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"flexDirectionOptions\"\n },\n \"required\": false,\n \"description\": \"CSS flex-direction\"\n },\n \"flexJustify\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"flexJustifyOptions\"\n },\n \"required\": false,\n \"description\": \"CSS justify-content property\"\n },\n \"flexAlign\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"flexAlignOptions\"\n },\n \"required\": false,\n \"description\": \"CSS align-items property\"\n },\n \"flexWrap\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Will wrap child items if needed, uses the flex-flow property\"\n },\n \"flexItemGrow\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"CSS flex-grow property\"\n },\n \"spacingClass\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"An internal prop that is being used by withSpacing HoC\"\n },\n \"className\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"To rename the class name of the box\"\n },\n \"children\": {\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": true,\n \"description\": \"\"\n }\n }\n};\nvar Box$1 = withSpacing(Box);\nexport { Box$1 as Box };","import React from 'react';\nimport { useTheme } from 'react-jss';\nimport { createMemoStyles, safeRest } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n radius = theme.radius,\n shadow = theme.shadow;\n var button = {\n borderRadius: radius.small,\n boxShadow: shadow.none\n };\n return {\n wrenchButtonGroup: function (_a) {\n var radio = _a.radio;\n return {\n display: 'inline-flex',\n boxShadow: button.boxShadow,\n borderRadius: button.borderRadius,\n // supports Buttons as well as Buttons that are nested in a Menu\n '& > button, & > a, & > span > button, & > span > a': {\n borderRadius: 0,\n boxShadow: 'none',\n marginLeft: 0,\n marginRight: 0\n },\n '& > button.wrenchButton--alt:hover, & > button.wrenchButton--alt:focus': {\n zIndex: theme.elevation.space\n },\n '& > button:first-child, & > a:first-child, & > span:first-child > button, & > span:first-child > a': {\n borderTopLeftRadius: button.borderRadius,\n borderBottomLeftRadius: button.borderRadius\n },\n '& > button:last-child, & > a:last-child, & > span:last-child > button, & > span:last-child > a': {\n borderTopRightRadius: button.borderRadius,\n borderBottomRightRadius: button.borderRadius\n },\n '& > button:not(.wrenchButton--ghost):not(:first-child), & > a:not(.wrenchButton--ghost):not(:first-child), & > span:not(:first-child) > button:not(.wrenchButton--ghost), & > span:not(:first-child) > a:not(.wrenchButton--ghost)': {\n borderLeft: [1, 'solid', palette.background.light],\n borderLeftWidth: radio && '0'\n },\n '& > button.wrenchButton--ghost:not(:first-child), & > a.wrenchButton--ghost:not(:first-child), & > span:not(:first-child) > button.wrenchButton--ghost, & > span:not(:first-child) > a.wrenchButton--ghost': {\n borderLeft: 'none'\n },\n '& > button.wrenchButton--alt:not(:first-child), & > a.wrenchButton--alt:not(:first-child), & > span:not(:first-child) > button.wrenchButton--alt, & > span:not(:first-child) > a.wrenchButton--alt': {\n borderLeft: 'none'\n }\n };\n }\n };\n});\nvar ButtonGroup = function (_a) {\n var radio = _a.radio,\n children = _a.children,\n props = __rest(_a, [\"radio\", \"children\"]);\n var theme = useTheme();\n var wrenchButtonGroup = useStyles({\n radio: radio,\n theme: theme\n }).wrenchButtonGroup;\n return React.createElement(\"div\", __assign({\n role: \"group\",\n className: wrenchButtonGroup\n }, safeRest(props)), children);\n};\nButtonGroup.defaultProps = {\n radio: false\n};\nexport { ButtonGroup };","import React, { useState, useEffect } from 'react';\nimport { createMemoStyles, safeRest } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var spacing = theme.spacing,\n palette = theme.palette,\n type = theme.type,\n motion = theme.motion;\n var width = function (s) {\n return {\n xs: spacing[4],\n sm: spacing[6],\n md: spacing[8],\n lg: spacing[10]\n }[s];\n };\n var font = function (s) {\n return {\n xs: type.fontSize.bodySm,\n sm: type.fontSize.bodySm,\n md: type.fontSize.body,\n lg: type.fontSize.pageTitle\n }[s];\n };\n var fontWeight = function (s) {\n return {\n xs: type.fontWeight.regular,\n sm: type.fontWeight.regular,\n md: type.fontWeight.medium,\n lg: type.fontWeight.medium\n }[s];\n };\n var height = width;\n var rotate = {\n '@keyframes rotate': {\n '100%': {\n transform: 'rotate(360deg)'\n }\n }\n };\n var stretch = {\n '@keyframes stretch': {\n '0%': {\n strokeDasharray: '339.292, 339.292',\n strokeDashoffset: '203.57519999999997',\n animationTimingFunction: 'cubic-bezier(0.3, 0, 1, 1)'\n },\n '40%': {\n strokeDasharray: '339.292, 339.292',\n strokeDashoffset: '253.57519999999997',\n animationTimingFunction: 'cubic-bezier(0, 0, 0.9, 1)'\n },\n '65%': {\n strokeDashoffset: '303.57519999999997'\n },\n '100%': {\n strokeDashoffset: '203.57519999999997'\n }\n }\n };\n var fillColor = function (color) {\n return color === 'dark' || color === 'light' ? palette.text[color] : palette[color].main;\n };\n var bgColor = function (color) {\n if (color === 'dark') {\n return palette.transparent.dark;\n }\n return color === 'light' ? palette.transparent.light : palette.muted.main;\n };\n var progressCircleStyles = __assign(__assign(__assign({}, rotate), stretch), {\n wrenchProgressCircle: function (_a) {\n var size = _a.size,\n continuous = _a.continuous;\n return {\n display: 'inline-block',\n position: 'relative',\n width: width(size),\n height: height(size),\n fill: 'none',\n '-webkit-transform': continuous && 'translate3d(0,0,0)'\n };\n },\n wrenchCirclePath: function () {\n return {\n transform: 'rotate(-90deg)'\n };\n },\n wrenchCirclePathGroup: function (_a) {\n var continuous = _a.continuous;\n return {\n animation: continuous && '$rotate 1s linear infinite',\n transformOrigin: continuous && 'center center'\n };\n },\n wrenchCirclePathBorder: function (_a) {\n var color = _a.color;\n return {\n stroke: bgColor(color)\n };\n },\n wrenchCirclePathFill: function (_a) {\n var color = _a.color,\n continuous = _a.continuous,\n animateOnLoad = _a.animateOnLoad;\n return {\n transition: animateOnLoad && \"all 1s \".concat(motion.curve.ease),\n stroke: fillColor(color),\n strokeLinecap: 'round',\n strokeDasharray: continuous && '339.292, 339.292',\n strokeDashoffset: continuous && '203.57519999999997',\n animation: continuous && '$stretch 1s infinite',\n transformOrigin: continuous && 'center center'\n };\n },\n wrenchCircleDisplay: function (_a) {\n var size = _a.size;\n return {\n position: 'absolute',\n top: '0',\n left: '0',\n width: width(size),\n height: height(size),\n fontSize: font(size),\n fontWeight: fontWeight(size),\n display: 'inline-flex',\n alignItems: 'center',\n flexDirection: 'column',\n justifyContent: 'center'\n };\n }\n });\n return progressCircleStyles;\n});\nvar ProgressCircle = function (_a) {\n var _b = _a.children,\n children = _b === void 0 ? undefined : _b,\n _c = _a.size,\n size = _c === void 0 ? 'md' : _c,\n _d = _a.percent,\n percent = _d === void 0 ? undefined : _d,\n _e = _a.color,\n color = _e === void 0 ? 'success' : _e,\n _f = _a.continuous,\n continuous = _f === void 0 ? false : _f,\n _g = _a.valueMax,\n valueMax = _g === void 0 ? undefined : _g,\n _h = _a.valueMin,\n valueMin = _h === void 0 ? undefined : _h,\n _j = _a.valueText,\n valueText = _j === void 0 ? undefined : _j,\n _k = _a.animateOnLoad,\n animateOnLoad = _k === void 0 ? false : _k,\n rest = __rest(_a, [\"children\", \"size\", \"percent\", \"color\", \"continuous\", \"valueMax\", \"valueMin\", \"valueText\", \"animateOnLoad\"]);\n var initialPercent = animateOnLoad ? 0 : percent;\n var _l = useState(initialPercent),\n p = _l[0],\n setPercent = _l[1];\n useEffect(function () {\n return setPercent(percent);\n }, [percent]);\n var _m = useStyles({\n color: color,\n size: size,\n continuous: continuous,\n animateOnLoad: animateOnLoad\n }),\n wrenchProgressCircle = _m.wrenchProgressCircle,\n wrenchCirclePath = _m.wrenchCirclePath,\n wrenchCirclePathGroup = _m.wrenchCirclePathGroup,\n wrenchCirclePathBorder = _m.wrenchCirclePathBorder,\n wrenchCirclePathFill = _m.wrenchCirclePathFill,\n wrenchCircleDisplay = _m.wrenchCircleDisplay;\n var circleOptions = {\n lg: {\n strokeWidth: 8,\n radius: 56\n },\n sm: {\n strokeWidth: 16,\n radius: 52\n },\n md: {\n strokeWidth: 12,\n radius: 54\n },\n xs: {\n strokeWidth: 20,\n radius: 50\n }\n };\n var _o = circleOptions[size],\n strokeWidth = _o.strokeWidth,\n radius = _o.radius;\n var circumference = radius * 2 * Math.PI;\n var valueNow = p != null ? p : undefined;\n var strokeDasharray = !continuous ? \"\".concat(circumference, \" \").concat(circumference) : undefined;\n var strokeDashoffset = !continuous && p != null ? circumference * ((100 - p) / 100) : undefined;\n return React.createElement(\"div\", __assign({\n className: wrenchProgressCircle,\n role: \"progressbar\",\n \"aria-valuenow\": valueNow,\n \"aria-valuemax\": valueMax,\n \"aria-valuemin\": valueMin,\n \"aria-valuetext\": valueText\n }, safeRest(rest)), React.createElement(\"svg\", {\n className: wrenchCirclePath,\n role: \"img\",\n \"aria-label\": \"Progress\",\n viewBox: \"0 0 120 120\"\n }, React.createElement(\"g\", {\n className: wrenchCirclePathGroup\n }, React.createElement(\"circle\", {\n className: wrenchCirclePathBorder,\n cx: \"60\",\n cy: \"60\",\n r: radius,\n strokeWidth: strokeWidth\n }), React.createElement(\"circle\", {\n className: wrenchCirclePathFill,\n cx: \"60\",\n cy: \"60\",\n r: radius,\n strokeWidth: strokeWidth,\n strokeDasharray: strokeDasharray,\n strokeDashoffset: strokeDashoffset\n }))), children && React.createElement(\"div\", {\n className: wrenchCircleDisplay\n }, children));\n};\nvar PROGRESS_CIRCLE_COLORS = ['primary', 'secondary', 'success', 'warning', 'error', 'upgrade', 'info', 'dark', 'light'];\nvar PROGRESS_CIRCLE_SIZES = ['xs', 'sm', 'md', 'lg'];\nexport { PROGRESS_CIRCLE_COLORS, PROGRESS_CIRCLE_SIZES, ProgressCircle };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import React, { useState, useEffect } from 'react';\nimport { useTheme } from 'react-jss';\nimport { createMemoStyles, darken, lighten, getDisplayName, clsx, conditionGuard, safeRest, getContrastColor } from '@wds/utils';\nimport { ProgressCircle } from '@wds/progress-circle';\nimport { SEMANTIC_COLORS } from '@wds/styles';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nvar useStyles = createMemoStyles(function (theme) {\n var type = theme.type,\n radius = theme.radius,\n shadow = theme.shadow,\n palette = theme.palette,\n spacing = theme.spacing;\n var button = {\n height: {\n sm: 32,\n md: 40,\n lg: 48\n },\n fontSize: {\n sm: type.fontSize.bodySm,\n md: type.fontSize.body,\n lg: type.fontSize.body\n },\n padding: {\n sm: spacing[4],\n md: spacing[5],\n lg: spacing[6]\n },\n borderRadius: radius.small,\n boxShadow: shadow.none\n };\n var hoverFocus = function () {\n return {\n transition: 'none',\n textDecoration: 'none'\n };\n };\n var active = function () {\n return {\n transition: 'none',\n outline: 'none'\n };\n };\n var variantSolid = function (textColor, color, pressedColor, loading) {\n return {\n color: loading ? 'transparent' : textColor,\n borderColor: pressedColor,\n backgroundColor: pressedColor,\n '&:hover': {\n boxShadow: shadow.sky\n },\n '&:hover, &:focus': __assign(__assign({}, hoverFocus()), {\n borderColor: lighten(0.03, color),\n backgroundColor: lighten(0.03, color)\n }),\n '&:active': __assign(__assign({}, active()), {\n borderColor: color,\n backgroundColor: color\n })\n };\n };\n var variantGhost = function (backgroundColor, pressedColor, loading) {\n return {\n color: loading ? 'transparent' : pressedColor,\n borderColor: pressedColor,\n backgroundColor: 'transparent',\n '&:hover, &:focus': __assign(__assign({}, hoverFocus()), {\n backgroundColor: backgroundColor\n }),\n '&:active': __assign(__assign({}, active()), {\n borderColor: pressedColor\n })\n };\n };\n var variantText = function (backgroundColor, pressedColor, loading) {\n return {\n color: loading ? 'transparent' : pressedColor,\n borderColor: 'transparent',\n backgroundColor: 'transparent',\n '&:hover, &:focus': __assign(__assign({}, hoverFocus()), {\n borderColor: backgroundColor,\n backgroundColor: backgroundColor\n })\n };\n };\n var colorAlt = function (loading, variant) {\n var borderColor = variant === 'text' ? 'transparent' : palette.text.dark;\n return {\n color: loading ? 'transparent' : palette.text.dark,\n borderColor: borderColor,\n backgroundColor: palette.background.light,\n '&:hover': {\n boxShadow: shadow.sky\n },\n '&:hover, &:focus': __assign(__assign({}, hoverFocus()), {\n borderColor: borderColor,\n backgroundColor: palette.background.main\n }),\n '&:active': __assign(__assign({}, active()), {\n borderColor: borderColor,\n backgroundColor: palette.background.light\n })\n };\n };\n var svgMargin = function (leftIcon, rightIcon, size) {\n var iconMargin = function (s) {\n return {\n sm: '8px',\n md: '16px',\n lg: '16px'\n }[s];\n };\n return {\n '& > svg:first-child': __assign({}, leftIcon && {\n marginRight: \"\".concat(iconMargin(size))\n }),\n '& > svg:last-child': __assign({}, rightIcon && {\n marginLeft: \"\".concat(iconMargin(size))\n })\n };\n };\n var iconPadding = function (size) {\n return {\n sm: spacing[2],\n md: spacing[4],\n lg: spacing[5]\n }[size];\n };\n return {\n wrenchButton: function (_a) {\n var _b, _c, _d, _e;\n var color = _a.color,\n onDark = _a.onDark,\n variant = _a.variant,\n _f = _a.size,\n size = _f === void 0 ? 'md' : _f,\n pressed = _a.pressed,\n stretched = _a.stretched,\n iconOnly = _a.iconOnly,\n leftIcon = _a.leftIcon,\n rightIcon = _a.rightIcon,\n _g = _a.loading,\n loading = _g === void 0 ? false : _g;\n var buttonColor = onDark && ((_b = palette[color]) === null || _b === void 0 ? void 0 : _b.onDark) || ((_c = palette[color]) === null || _c === void 0 ? void 0 : _c.main) || palette.text[color] || palette.text.dark;\n var pressedColor = pressed ? darken(0.03, buttonColor) : buttonColor;\n var isStretched = stretched ? {\n display: 'flex',\n width: '100%'\n } : {\n display: 'inline-flex'\n };\n return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, isStretched), {\n boxSizing: 'border-box',\n fontWeight: type.fontWeight.medium,\n fontFamily: type.fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n position: 'relative',\n borderRadius: button.borderRadius,\n textDecoration: 'none',\n border: '1px solid transparent',\n boxShadow: button.boxShadow,\n transition: 'color 0.4s, border-color 0.4s, background-color 0.4s, box-shadow 0.4s',\n padding: [0, iconOnly ? iconPadding(size) : button.padding[size]],\n fontSize: size ? button.fontSize[size] : null,\n height: size ? button.height[size] : null,\n '&:hover, &:focus': hoverFocus(),\n '&:active': active(),\n '&[disabled], &[aria-disabled=\"true\"]': {\n pointerEvents: 'none',\n opacity: '0.4'\n }\n }), variant === 'solid' && variantSolid(onDark ? palette.text.dark : (_e = (_d = palette[color]) === null || _d === void 0 ? void 0 : _d.contrast) !== null && _e !== void 0 ? _e : '', buttonColor, pressedColor, loading)), variant === 'ghost' && variantGhost(onDark ? darken(0.03, palette.text.dark) : palette.background.accent, pressedColor, loading)), variant === 'text' && variantText(onDark ? darken(0.03, palette.text.dark) : palette.background.accent, pressedColor, loading)), (leftIcon || rightIcon) && svgMargin(leftIcon, rightIcon, size)), color === 'alt' && colorAlt(loading, variant));\n },\n wrenchButtonLoading: function () {\n return {\n position: 'absolute',\n display: 'flex'\n };\n }\n };\n});\nvar Button = function (_a) {\n var ariaPressed = _a.ariaPressed,\n buttonType = _a.buttonType,\n children = _a.children,\n _b = _a.color,\n color = _b === void 0 ? 'primary' : _b,\n _c = _a.onDark,\n onDark = _c === void 0 ? false : _c,\n _d = _a.loading,\n loading = _d === void 0 ? false : _d,\n _e = _a.disabled,\n disabled = _e === void 0 ? false : _e,\n href = _a.href,\n label = _a.label,\n size = _a.size,\n stretched = _a.stretched,\n variant = _a.variant,\n rest = __rest(_a, [\"ariaPressed\", \"buttonType\", \"children\", \"color\", \"onDark\", \"loading\", \"disabled\", \"href\", \"label\", \"size\", \"stretched\", \"variant\"]);\n var _f = useState(ariaPressed !== null && ariaPressed !== void 0 ? ariaPressed : false),\n pressed = _f[0],\n setPressed = _f[1];\n useEffect(function () {\n if (ariaPressed !== pressed) setPressed(!pressed);\n }, [ariaPressed, pressed]);\n var numberOfChildren = React.Children.count(children);\n var reactChildren = React.Children.toArray(children);\n var iconOnly = !!(numberOfChildren === 1 && getDisplayName(reactChildren[0]).includes('WithIcon'));\n var leftIcon = !!(numberOfChildren > 1 && getDisplayName(reactChildren[0]).includes('WithIcon'));\n var rightIcon = !!(numberOfChildren > 1 && getDisplayName(reactChildren[reactChildren.length - 1]).includes('WithIcon'));\n if (iconOnly && !label) {\n console.warn('A label is required when the child of a Button is an icon');\n }\n var rel;\n if (href) {\n // https://mathiasbynens.github.io/rel-noopener/\n var autoAddRel = rest.target && rest.target === '_blank' && !rest.rel;\n rel = autoAddRel ? 'noopener noreferrer' : undefined;\n }\n var theme = useTheme();\n var _g = useStyles({\n color: color,\n onDark: onDark,\n variant: variant,\n size: size,\n stretched: stretched,\n pressed: pressed,\n theme: theme,\n iconOnly: iconOnly,\n leftIcon: leftIcon,\n rightIcon: rightIcon,\n loading: loading\n }),\n wrenchButton = _g.wrenchButton,\n wrenchButtonLoading = _g.wrenchButtonLoading;\n var classNames = clsx(wrenchButton,\n // Static class used for internal reference\n // Ex. ButtonGroup conditional styles\n variant ? \"wrenchButton--\".concat(variant) : null, color ? \"wrenchButton--\".concat(color) : null);\n var isDisabled = loading || disabled;\n if (conditionGuard(rest, !!href)) {\n return React.createElement(\"a\", __assign({}, safeRest(rest), {\n className: classNames,\n href: !isDisabled ? href : undefined,\n role: isDisabled ? 'link' : undefined,\n \"aria-disabled\": isDisabled ? 'true' : undefined,\n title: label,\n rel: rel\n }), children);\n }\n var colorValue = color === 'alt' ? theme.palette.background.light : theme.palette[color].main;\n var contrastColor = getContrastColor(colorValue);\n return React.createElement(\"button\", __assign({}, safeRest(rest), {\n className: classNames,\n // eslint-disable-next-line react/button-has-type\n type: buttonType,\n disabled: isDisabled,\n \"aria-pressed\": ariaPressed,\n \"aria-label\": label\n }), loading && React.createElement(\"span\", {\n className: wrenchButtonLoading\n }, React.createElement(ProgressCircle, {\n color: contrastColor,\n size: 'xs',\n continuous: true\n })), children);\n};\nButton.defaultProps = {\n ariaPressed: false,\n buttonType: 'button',\n color: 'primary',\n loading: false,\n disabled: false,\n href: undefined,\n label: undefined,\n size: 'md',\n stretched: false,\n variant: 'solid'\n};\nvar BUTTON_COLORS = __spreadArray(['alt', 'link'], SEMANTIC_COLORS, true);\nvar VARIANTS = ['solid', 'ghost', 'text'];\nvar BUTTON_TYPES = ['button', 'reset', 'submit'];\nvar BUTTON_SIZES = ['sm', 'md', 'lg'];\nvar guardAnchor = function (rest, href) {\n return !!href;\n};\nexport { BUTTON_COLORS, BUTTON_SIZES, BUTTON_TYPES, Button, VARIANTS, guardAnchor };","import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoStyles, safeRest } from '@wds/utils';\nimport { useTheme } from 'react-jss';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nvar SEMANTIC_COLORS = Object.freeze(['primary', 'success', 'info', 'warning', 'upgrade', 'secondary', 'muted']);\nvar TYPE_COLORS = Object.freeze(['dark', 'light', 'darkMuted', 'lightMuted', 'link']);\nvar SIZES = Object.freeze(['lg', 'md', 'sm']);\nObject.freeze(['primary', 'upgrade', 'info', 'success', 'warning', 'secondary']);\nObject.freeze([].concat(_toConsumableArray(SIZES), ['xs']));\nObject.freeze(['md', 'sm']);\nObject.freeze(['success', 'warning']);\nObject.freeze(['success', 'warning']);\nObject.freeze(['data-one', 'data-two', 'data-three', 'data-four', 'data-five', 'data-six', 'data-seven', 'data-eight', 'data-nine', 'data-ten']);\nObject.freeze({\n DOWN: 'ArrowDown',\n END: 'End',\n ESC: 'Escape',\n HOME: 'Home',\n LEFT: 'ArrowLeft',\n PAGE_DOWN: 'PageDown',\n PAGE_UP: 'PageUp',\n RIGHT: 'ArrowRight',\n UP: 'ArrowUp',\n ENTER: 'Enter',\n SPACE: ' ',\n BACKSPACE: 'Backspace',\n TAB: 'Tab'\n}); // Deprecated. Moving to e.key\n\nObject.freeze({\n DOWN: 40,\n END: 35,\n ESC: 27,\n HOME: 36,\n LEFT: 37,\n PAGE_DOWN: 34,\n PAGE_UP: 33,\n RIGHT: 39,\n UP: 38,\n ENTER: 13,\n SPACE: 32,\n BACKSPACE: 8,\n TAB: 9\n});\nObject.freeze({\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n});\nObject.freeze(['top', 'bottom', 'right', 'left']);\nObject.freeze(['primary', 'secondary', 'muted', 'success', 'warning', 'upgrade', 'info']);\nObject.freeze(['light', 'dark']);\nObject.freeze(['primary', 'light', 'dark', 'transparent']);\nObject.freeze(['left', 'right', 'even', 'center']);\nObject.freeze(['normal', 'near', 'far']);\nObject.freeze(['up', 'right', 'down', 'left']);\nObject.freeze(['slow', 'normal', 'fast']);\nObject.freeze({\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n});\nObject.freeze({\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n});\nObject.freeze({\n accordion: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A7&scaling=min-zoom&page-id=30%3A2',\n 'action-sheet': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A293&scaling=min-zoom&page-id=30%3A288',\n alert: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A317&scaling=min-zoom&page-id=30%3A312',\n avatar: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A293&scaling=min-zoom&page-id=4%3A288',\n badge: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1243&scaling=min-zoom&page-id=4%3A1238',\n banner: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A341&scaling=min-zoom&page-id=30%3A336',\n /**\n * TODO: Currently goes to Global Padding, change to box when created\n */\n box: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A942&scaling=min-zoom&page-id=30%3A937',\n button: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=20%3A9&scaling=min-zoom&page-id=20%3A4',\n 'button-group': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A389&scaling=min-zoom&page-id=30%3A384',\n card: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A437&scaling=min-zoom&page-id=30%3A432',\n checkbox: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n coachmark: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A413&scaling=min-zoom&page-id=30%3A408',\n 'form-group': '',\n grid: '',\n icons: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=895%3A13856&scaling=min-zoom&page-id=119%3A2',\n input: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A485&scaling=min-zoom&page-id=30%3A480',\n /**\n * TODO: This doesn't look like it's up to date right now\n */\n 'input-group': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A509&scaling=min-zoom&page-id=30%3A504',\n link: '',\n list: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A893&scaling=min-zoom&page-id=30%3A888',\n menu: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A533&scaling=min-zoom&page-id=30%3A528',\n modal: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A557&scaling=min-zoom&page-id=30%3A552',\n motion: '',\n multiselect: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A581&scaling=min-zoom&page-id=30%3A576',\n 'number-picker': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A629&scaling=min-zoom&page-id=30%3A624',\n 'page-header': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A653&scaling=min-zoom&page-id=30%3A648',\n pagination: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A677&scaling=min-zoom&page-id=30%3A672',\n popout: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A701&scaling=min-zoom&page-id=30%3A696',\n 'progress-bar': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A715&scaling=min-zoom&page-id=4%3A710',\n 'progress-circle': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A715&scaling=min-zoom&page-id=4%3A710',\n radio: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n /**\n * TODO: Doesn't look complete yet, update if necessary\n */\n responsive: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=304%3A1897&scaling=min-zoom&page-id=160%3A17',\n select: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A725&scaling=min-zoom&page-id=30%3A720',\n 'select-menu': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A725&scaling=min-zoom&page-id=30%3A720',\n sheet: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A749&scaling=min-zoom&page-id=30%3A744',\n slider: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A773&scaling=min-zoom&page-id=30%3A768',\n switch: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n table: '',\n tabs: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A797&scaling=min-zoom&page-id=30%3A792',\n textarea: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A821&scaling=min-zoom&page-id=30%3A816',\n toast: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A845&scaling=min-zoom&page-id=30%3A840',\n tooltip: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A869&scaling=min-zoom&page-id=30%3A864',\n typography: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=18%3A8&scaling=min-zoom&page-id=18%3A3'\n});\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles(function (theme) {\n return {\n wrenchTypography: function wrenchTypography(_ref) {\n var align = _ref.align,\n color = _ref.color,\n variant = _ref.variant;\n var _theme$type = theme.type,\n fontFamily = _theme$type.fontFamily,\n fontSize = _theme$type.fontSize,\n fontWeight = _theme$type.fontWeight,\n palette = theme.palette;\n var chosenColor = palette[color] && palette[color].main || palette.text[color];\n return _objectSpread(_objectSpread(_objectSpread({\n fontFamily: fontFamily.base,\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n '-webkit-font-smoothing': 'antialiased',\n color: chosenColor,\n textAlign: align,\n lineHeight: 1.5,\n margin: 0,\n padding: 0\n }, variant && variant !== 'link' && {\n fontSize: fontSize[variant],\n fontWeight: {\n hero1: fontWeight.light,\n hero2: fontWeight.light,\n title: fontWeight.light,\n sectionTitle: fontWeight.light,\n pageTitle: fontWeight.light,\n cardTitle: fontWeight.medium,\n body: fontWeight.regular,\n bodySm: fontWeight.regular\n }[variant]\n }), variant && variant === 'link' && {\n color: palette.link.main,\n textDecoration: 'none',\n border: 'none',\n background: 'none',\n outline: 'none',\n cursor: 'pointer',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n '&:hover, &:focus': {\n textDecoration: 'underline'\n }\n }), variant && (variant === 'hero1' || variant === 'hero2') && {\n fontFamily: fontFamily.headings\n });\n }\n };\n});\nvar _excluded = [\"align\", \"children\", \"color\", \"component\", \"variant\"];\nvar ALIGNMENT = ['center', 'left', 'right'];\nvar VARIANTS = ['body', 'bodySm', 'cardTitle', 'hero1', 'hero2', 'link', 'pageTitle', 'sectionTitle']; // @todo: custom components wanted like ??\n\nvar COMPONENT_LIST = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'p', 'span', 'div', 'article', 'section'];\nvar Typography = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var align = _ref.align,\n children = _ref.children,\n color = _ref.color,\n component = _ref.component,\n variant = _ref.variant,\n rest = _objectWithoutProperties(_ref, _excluded);\n var Component = component;\n var theme = useTheme();\n var _useStyles = useStyles({\n align: align,\n color: color,\n variant: variant,\n theme: theme\n }),\n wrenchTypography = _useStyles.wrenchTypography;\n return /*#__PURE__*/React.createElement(Component, Object.assign({\n className: wrenchTypography\n }, safeRest(rest), {\n ref: ref\n }), children);\n});\nTypography.propTypes = {\n /**\n * Align content\n */\n align: PropTypes.oneOf(ALIGNMENT),\n /**\n * Text content to be displayed\n */\n children: PropTypes.node.isRequired,\n /**\n * Color variants\n */\n color: PropTypes.oneOf(SEMANTIC_COLORS.concat(TYPE_COLORS)),\n /**\n * Must be one of the following components:\n */\n component: PropTypes.oneOf(COMPONENT_LIST),\n /**\n * Our variants of choice are:\n */\n variant: PropTypes.oneOf(VARIANTS)\n};\nTypography.defaultProps = {\n align: 'left',\n component: 'div',\n color: 'dark',\n variant: 'body'\n};\nTypography.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Typography\",\n \"props\": {\n \"align\": {\n \"defaultValue\": {\n \"value\": \"'left'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'center'\",\n \"computed\": false\n }, {\n \"value\": \"'left'\",\n \"computed\": false\n }, {\n \"value\": \"'right'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Align content\"\n },\n \"component\": {\n \"defaultValue\": {\n \"value\": \"'div'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'h1'\",\n \"computed\": false\n }, {\n \"value\": \"'h2'\",\n \"computed\": false\n }, {\n \"value\": \"'h3'\",\n \"computed\": false\n }, {\n \"value\": \"'h4'\",\n \"computed\": false\n }, {\n \"value\": \"'h5'\",\n \"computed\": false\n }, {\n \"value\": \"'h6'\",\n \"computed\": false\n }, {\n \"value\": \"'a'\",\n \"computed\": false\n }, {\n \"value\": \"'p'\",\n \"computed\": false\n }, {\n \"value\": \"'span'\",\n \"computed\": false\n }, {\n \"value\": \"'div'\",\n \"computed\": false\n }, {\n \"value\": \"'article'\",\n \"computed\": false\n }, {\n \"value\": \"'section'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Must be one of the following components:\"\n },\n \"color\": {\n \"defaultValue\": {\n \"value\": \"'dark'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"SEMANTIC_COLORS.concat(TYPE_COLORS)\"\n },\n \"required\": false,\n \"description\": \"Color variants\"\n },\n \"variant\": {\n \"defaultValue\": {\n \"value\": \"'body'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'body'\",\n \"computed\": false\n }, {\n \"value\": \"'bodySm'\",\n \"computed\": false\n }, {\n \"value\": \"'cardTitle'\",\n \"computed\": false\n }, {\n \"value\": \"'hero1'\",\n \"computed\": false\n }, {\n \"value\": \"'hero2'\",\n \"computed\": false\n }, {\n \"value\": \"'link'\",\n \"computed\": false\n }, {\n \"value\": \"'pageTitle'\",\n \"computed\": false\n }, {\n \"value\": \"'sectionTitle'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Our variants of choice are:\"\n },\n \"children\": {\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": true,\n \"description\": \"Text content to be displayed\"\n }\n }\n};\nexport { Typography };","import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoStyles, defaultBaseline, defaultFonts, visuallyHidden, getState, uniqueId, clsx, safeRest } from '@wds/utils';\nimport { useTheme } from 'react-jss';\nimport { IconCheck } from '@wds/icons';\nimport { Typography } from '@wds/typography';\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n type = theme.type,\n spacing = theme.spacing,\n motion = theme.motion,\n radius = theme.radius;\n var checkbox = {\n bgColorOn: palette.primary.main,\n iconColorOn: palette.primary.contrast\n };\n var bounceFrames = {\n '@keyframes bounce': {\n '0%': {\n opacity: 0,\n transform: 'scale(0.6)',\n animationTimingFunction: 'cubic-bezier(0, 0, .1, 1)'\n },\n '10%': {\n opacity: 1\n },\n '33%': {\n opacity: 1,\n transform: 'scale(1.4)',\n animationTimingFunction: 'cubic-bezier(.2, 0, 0, 1)'\n },\n '100%': {\n opacity: 1,\n transform: 'scale(1)'\n }\n }\n };\n var scaleDownFrames = {\n '@keyframes scaleDown': {\n from: {\n opacity: 1,\n transform: 'scale(1)',\n animationTimingFunction: 'cubic-bezier(1, 0, 1, 1)'\n },\n '75%': {\n opacity: 1\n },\n '100%': {\n opacity: 0,\n transform: 'scale(0.4)'\n }\n }\n };\n return _objectSpread(_objectSpread(_objectSpread({}, bounceFrames), scaleDownFrames), {}, {\n wrenchCheckbox: function wrenchCheckbox() {\n return _objectSpread(_objectSpread(_objectSpread({}, defaultBaseline), defaultFonts(theme)), {}, {\n position: 'relative',\n display: 'inline-flex',\n minHeight: spacing[5],\n minWidth: spacing[5],\n lineHeight: \"\".concat(spacing[5], \"px\")\n });\n },\n wrenchCheckboxFaux: function wrenchCheckboxFaux() {\n return _objectSpread(_objectSpread(_objectSpread({}, defaultBaseline), defaultFonts(theme)), {}, {\n content: '\"\"',\n display: 'inline-block',\n height: spacing[5],\n width: spacing[5],\n flexGrow: 0,\n flexShrink: 0,\n fontSize: type.fontSize.body,\n border: \"1px solid \".concat(palette.border.main),\n background: palette.background.light,\n borderRadius: radius.small,\n transition: \"all 50ms \".concat(motion.curve.exit, \" 100ms\"),\n verticalAlign: 'top',\n textAlign: 'left',\n '&:empty::after': {\n content: '3',\n fontFamily: type.fontFamily.icon,\n color: checkbox.iconColorOn,\n lineHeight: 1\n },\n '> svg[class^=\"wrenchIcons\"], &:empty::after': {\n position: 'absolute',\n top: spacing[1],\n left: spacing[1],\n opacity: 0,\n textAlign: 'center',\n fill: checkbox.iconColorOn,\n animation: '$scaleDown 150ms forwards'\n }\n });\n },\n wrenchCheckboxLabel: function wrenchCheckboxLabel() {\n return {\n padding: [0, 0, 0, spacing[2]],\n whiteSpace: 'normal'\n };\n },\n wrenchCheckboxIndeterminate: function wrenchCheckboxIndeterminate() {\n return {\n '& + $wrenchCheckboxFaux': {\n borderColor: checkbox.bgColorOn,\n background: checkbox.bgColorOn,\n transform: 'scale(1)',\n transition: \"transform 200ms \".concat(motion.curve.bounceEnd)\n },\n '& + $wrenchCheckboxFaux > svg[class^=\"wrenchIcons\"]': visuallyHidden,\n '& + $wrenchCheckboxFaux:after': {\n position: 'absolute',\n top: '10px',\n left: '5px',\n display: 'block',\n content: '\"\"',\n background: palette.background.light,\n width: spacing[3],\n height: '2px'\n }\n };\n },\n wrenchCheckboxNative: function wrenchCheckboxNative(_ref) {\n var isIndeterminate = _ref.isIndeterminate;\n return _objectSpread(_objectSpread(_objectSpread({}, defaultBaseline), defaultFonts(theme)), {}, {\n position: 'absolute',\n cursor: 'inherit',\n opacity: 0,\n width: spacing[5],\n height: spacing[5],\n zIndex: 1,\n left: 0,\n '&:focus:checked + $wrenchCheckboxFaux': {\n borderColor: '#fff !important',\n boxShadow: \"0 0 0 1px \".concat(palette.primary.main, \" !important\")\n },\n '&:focus + $wrenchCheckboxFaux, &:hover + $wrenchCheckboxFaux': {\n borderColor: palette.border.hover,\n transform: 'scale(1.1)',\n transition: \"transform 200ms \".concat(motion.curve.ease, \", border-color 75ms linear 50ms\")\n },\n '&:active + $wrenchCheckboxFaux': {\n transform: 'scale(0.7)',\n transition: \"transform 100ms \".concat(motion.curve.bounceStart)\n },\n '&:checked + $wrenchCheckboxFaux': {\n borderColor: checkbox.bgColorOn,\n background: checkbox.bgColorOn,\n transform: 'scale(1)',\n transition: \"transform 200ms \".concat(motion.curve.bounceEnd)\n },\n '&:checked + $wrenchCheckboxFaux > svg[class^=\"wrenchIcons\"]': {\n animation: \"$bounce 200ms forwards\"\n },\n '&:checked + $wrenchCheckboxFaux &:empty::after': {\n animation: \"$bounce 200ms forwards\"\n },\n '&:disabled + $wrenchCheckboxFaux, &:disabled ~ $wrenchCheckboxLabel': {\n opacity: '0.5',\n transform: 'scale(1)'\n }\n }, isIndeterminate && {\n '& + $wrenchCheckboxFaux': {\n borderColor: checkbox.bgColorOn,\n background: checkbox.bgColorOn,\n transform: 'scale(1)',\n transition: \"transform 200ms \".concat(motion.curve.bounceEnd)\n },\n '& + $wrenchCheckboxFaux > svg[class^=\"wrenchIcons\"]': visuallyHidden,\n '& + $wrenchCheckboxFaux:after': {\n position: 'absolute',\n top: '10px',\n left: '5px',\n display: 'block',\n content: '\"\"',\n background: palette.background.light,\n width: spacing[3],\n height: '2px'\n }\n });\n }\n });\n});\nvar _excluded = [\"ariaLabel\", \"checked\", \"defaultChecked\", \"disabled\", \"id\", \"indeterminate\", \"innerRef\", \"label\", \"name\", \"onBlur\", \"onChange\"];\nvar Checkbox = function Checkbox(_ref) {\n var ariaLabel = _ref.ariaLabel,\n checked = _ref.checked,\n defaultChecked = _ref.defaultChecked,\n disabled = _ref.disabled,\n id = _ref.id,\n indeterminate = _ref.indeterminate,\n innerRef = _ref.innerRef,\n label = _ref.label,\n name = _ref.name,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n rest = _objectWithoutProperties(_ref, _excluded);\n var _useState = useState(!!defaultChecked),\n _useState2 = _slicedToArray(_useState, 2),\n isChecked = _useState2[0],\n setChecked = _useState2[1];\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isFocused = _useState4[0],\n setFocused = _useState4[1];\n var _useState5 = useState(!!indeterminate),\n _useState6 = _slicedToArray(_useState5, 2),\n isIndeterminate = _useState6[0],\n setIndeterminate = _useState6[1];\n useEffect(function () {\n setIndeterminate(indeterminate);\n }, [indeterminate]);\n var checkedState = getState({\n isChecked: isChecked\n }, typeof checked !== 'undefined' && {\n isChecked: checked\n }).isChecked;\n var inputID = id || uniqueId('checkbox');\n var theme = useTheme();\n var _useStyles = useStyles({\n theme: theme\n }),\n wrenchCheckboxNative = _useStyles.wrenchCheckboxNative,\n wrenchCheckboxIndeterminate = _useStyles.wrenchCheckboxIndeterminate,\n wrenchCheckbox = _useStyles.wrenchCheckbox,\n wrenchCheckboxLabel = _useStyles.wrenchCheckboxLabel,\n wrenchCheckboxFaux = _useStyles.wrenchCheckboxFaux;\n var nativeClasses = clsx(wrenchCheckboxNative, isIndeterminate && wrenchCheckboxIndeterminate || {});\n var handleBlur = function handleBlur(e) {\n setFocused(!isFocused);\n if (onBlur) onBlur(e);\n };\n var handleFocus = function handleFocus() {\n setFocused(!isFocused);\n };\n var handleChange = function handleChange(e) {\n setChecked(!checkedState);\n e.persist();\n if (onChange) onChange(e);\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n className: wrenchCheckbox\n }, /*#__PURE__*/React.createElement(\"input\", Object.assign({\n \"aria-label\": ariaLabel,\n className: nativeClasses,\n \"aria-checked\": checkedState,\n checked: checkedState,\n disabled: disabled,\n id: inputID,\n name: name,\n onBlur: handleBlur,\n onFocus: handleFocus,\n onChange: handleChange,\n tabIndex: disabled ? -1 : 0,\n type: \"checkbox\",\n ref: innerRef\n }, safeRest(rest))), /*#__PURE__*/React.createElement(\"span\", {\n className: wrenchCheckboxFaux,\n \"aria-hidden\": \"true\"\n }, /*#__PURE__*/React.createElement(IconCheck, {\n color: \"light\",\n \"aria-hidden\": \"true\"\n })), label ? /*#__PURE__*/React.createElement(\"span\", {\n className: wrenchCheckboxLabel\n }, /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: inputID\n }, /*#__PURE__*/React.createElement(Typography, {\n variant: \"body\",\n component: \"span\"\n }, label))) : null);\n};\nCheckbox.displayName = \"Checkbox\";\nCheckbox.propTypes = {\n ariaLabel: PropTypes.string,\n /**\n * Selected checkbox state.\n */\n checked: PropTypes.bool,\n /**\n * Use for uncontrolled Checkboxes.\n */\n defaultChecked: PropTypes.bool,\n /**\n * Disabled flag\n */\n disabled: PropTypes.bool,\n /**\n * Identifier\n */\n // eslint-disable-next-line consistent-return\n id: function id(props, propName) {\n if (typeof props[propName] !== 'string' && typeof props.label !== 'string' && typeof props.ariaLabel !== 'string') {\n return new Error('Accessibility Error: If `label` or `ariaLabel` is not provided the `id` prop is required.');\n }\n },\n /**\n * Indeterminate checkbox style.\n */\n indeterminate: PropTypes.bool,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string]),\n /**\n * Text label to the right side of the checkbox.\n */\n label: PropTypes.node,\n /**\n * Checkbox element name attribute.\n */\n name: PropTypes.string,\n /**\n * Send in a custom onClose function.\n */\n onBlur: PropTypes.func,\n /**\n * Send in a custom onClose function.\n */\n onChange: PropTypes.func\n};\nCheckbox.defaultProps = {\n ariaLabel: undefined,\n checked: undefined,\n defaultChecked: false,\n disabled: false,\n id: undefined,\n indeterminate: false,\n innerRef: undefined,\n label: undefined,\n name: undefined,\n onBlur: undefined,\n onChange: undefined\n};\nCheckbox.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Checkbox\",\n \"props\": {\n \"ariaLabel\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"\"\n },\n \"checked\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Selected checkbox state.\"\n },\n \"defaultChecked\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Use for uncontrolled Checkboxes.\"\n },\n \"disabled\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Disabled flag\"\n },\n \"id\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"custom\",\n \"raw\": \"(props, propName) => {\\n if (\\n typeof props[propName] !== 'string' &&\\n typeof props.label !== 'string' &&\\n typeof props.ariaLabel !== 'string'\\n ) {\\n return new Error(\\n 'Accessibility Error: If `label` or `ariaLabel` is not provided the `id` prop is required.'\\n );\\n }\\n}\"\n },\n \"required\": false,\n \"description\": \"Identifier\"\n },\n \"indeterminate\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Indeterminate checkbox style.\"\n },\n \"innerRef\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"union\",\n \"value\": [{\n \"name\": \"func\"\n }, {\n \"name\": \"object\"\n }, {\n \"name\": \"string\"\n }]\n },\n \"required\": false,\n \"description\": \"\"\n },\n \"label\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": false,\n \"description\": \"Text label to the right side of the checkbox.\"\n },\n \"name\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"Checkbox element name attribute.\"\n },\n \"onBlur\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"func\"\n },\n \"required\": false,\n \"description\": \"Send in a custom onClose function.\"\n },\n \"onChange\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"func\"\n },\n \"required\": false,\n \"description\": \"Send in a custom onClose function.\"\n }\n }\n};\nexport { Checkbox };","import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { useTheme, createUseStyles } from 'react-jss';\nfunction toVal(mix) {\n var k,\n y,\n str = '';\n if (typeof mix === 'string' || typeof mix === 'number') {\n str += mix;\n } else if (typeof mix === 'object') {\n if (Array.isArray(mix)) {\n for (k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (y = toVal(mix[k])) {\n str && (str += ' ');\n str += y;\n }\n }\n }\n } else {\n for (k in mix) {\n if (mix[k]) {\n str && (str += ' ');\n str += k;\n }\n }\n }\n }\n return str;\n}\nfunction clsx() {\n var i = 0,\n tmp,\n x,\n str = '';\n while (i < arguments.length) {\n if (tmp = arguments[i++]) {\n if (x = toVal(tmp)) {\n str && (str += ' ');\n str += x;\n }\n }\n }\n return str;\n}\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\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 try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _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 return _construct.apply(null, arguments);\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\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 return _wrapNativeSuper(Class);\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 \"73\": \"Please provide a valid CSS variable.\\n\\n\",\n \"74\": \"CSS variable not found and no default was provided.\\n\\n\",\n \"75\": \"important requires a valid style object, got a %s instead.\\n\\n\",\n \"76\": \"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\\n\\n\",\n \"77\": \"remToPx expects a value in \\\"rem\\\" but you provided it in \\\"%s\\\".\\n\\n\",\n \"78\": \"base must be set in \\\"px\\\" or \\\"%\\\" but you set it in \\\"%s\\\".\\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 var a = args[0];\n var b = [];\n var c;\n for (c = 1; c < args.length; c += 1) {\n b.push(args[c]);\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\nvar PolishedError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(PolishedError, _Error);\n function PolishedError(code) {\n var _this;\n if (process.env.NODE_ENV === 'production') {\n _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/main/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 _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n }\n return _assertThisInitialized(_this);\n }\n return PolishedError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nfunction colorToInt(color) {\n return Math.round(color * 255);\n}\nfunction convertToInt(red, green, blue) {\n return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\nfunction hslToRgb(hue, saturation, lightness, convert) {\n if (convert === void 0) {\n convert = convertToInt;\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 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 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 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}\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}\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 var normalizedColor = nameToHex(color);\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 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 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 if (normalizedColor.match(reducedRgbaHexRegex)) {\n var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\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 var rgbMatched = rgbRegex.exec(normalizedColor);\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 var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));\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 var hslMatched = hslRegex.exec(normalizedColor);\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 if (!hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, rgbColorString);\n }\n return {\n red: parseInt(\"\" + hslRgbMatched[1], 10),\n green: parseInt(\"\" + hslRgbMatched[2], 10),\n blue: parseInt(\"\" + hslRgbMatched[3], 10)\n };\n }\n var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));\n if (hslaMatched) {\n var _hue = parseInt(\"\" + hslaMatched[1], 10);\n var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n if (!_hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, _rgbColorString);\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 throw new PolishedError(5);\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 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 var hue;\n var delta = max - min;\n var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n switch (max) {\n case red:\n hue = (green - blue) / delta + (green < blue ? 6 : 0);\n break;\n case green:\n hue = (blue - red) / delta + 2;\n break;\n default:\n // blue case\n hue = (red - green) / delta + 4;\n break;\n }\n hue *= 60;\n if (color.alpha !== undefined) {\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness,\n alpha: color.alpha\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 return value;\n};\nfunction numberToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? \"0\" + hex : hex;\n}\nfunction colorToHex(color) {\n return numberToHex(Math.round(color * 255));\n}\nfunction convertToHex(red, green, blue) {\n return reduceHexValue(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\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 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 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 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 throw new PolishedError(7);\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};\nvar isRgba = function isRgba(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\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};\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\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\nfunction curry(f) {\n // eslint-disable-line no-redeclare\n return curried(f, f.length, []);\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$1(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\nvar curriedDarken = /*#__PURE__*/curry\n/* :: */(darken$1);\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$1(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\nvar curriedLighten = /*#__PURE__*/curry\n/* :: */(lighten$1);\nvar darken = curriedDarken;\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\n\n// Taken from lodash: https://github.com/lodash/lodash/blob/master/uniqueId.js\nvar getState = function getState(state, newState) {\n return _objectSpread(_objectSpread({}, state), newState);\n};\nvar isBrowser = typeof window !== 'undefined';\nvar lighten = curriedLighten;\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nvar _excluded$1 = [\"style\", \"className\"];\nvar safeRest = function (_ref) {\n _ref.style;\n _ref.className;\n var props = _objectWithoutProperties(_ref, _excluded$1);\n return props;\n};\n\n// Taken from lodash: https://github.com/lodash/lodash/blob/master/uniqueId.js\nvar idCounter = 0;\nvar uniqueId = function uniqueId(prefix) {\n var id = ++idCounter; // eslint-disable-line no-plusplus\n\n if (prefix == null) {\n throw new Error('The value is missing in uniqueId() parameter');\n }\n return \"\".concat(prefix).concat(id);\n};\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar visuallyHidden = {\n border: '0px',\n clip: 'rect(1px, 1px, 1px, 1px)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n};\nvar clearfix = {\n '&:after': {\n content: '',\n display: 'block',\n clear: 'both'\n }\n};\nvar _excluded = [\"m\", \"mx\", \"my\", \"mt\", \"mb\", \"ml\", \"mr\", \"p\", \"px\", \"py\", \"pt\", \"pb\", \"pl\", \"pr\", \"className\"];\nvar spacingOptions = Object.freeze([1, 2, 3, 4, 5, 6, 7, 8, 9]); // this pattern is described in React's documentation: https://reactjs.org/docs/higher-order-components.html#convention-wrap-the-display-name-for-easy-debugging\n\nfunction getDisplayName(Component) {\n return Component.displayName || Component.name || 'Component';\n}\nfunction withSpacing(Component) {\n /**\n * JSS injects css styles in the order of `createUseStyles` usage.\n * Hence, useStyles needs to be instantiated every single time while\n * using this HOC because it should be the last `createUseStyles` usage\n * for a component. With this mechanism, `withSpacing` overwrites the component\n * spacing. Not ideal for a design system, but we are waiting on the\n * below ticket.\n *\n * Note: https://jira.surveymonkey.com/browse/WRENCH-1107\n *\n * If the decision is have `withStyles` NOT overwrite the component spacing,\n * just move this declaration outside of this component. `withSpacing` will then\n * add to the styles and not overwrite them.\n */\n var useStyles = createMemoStyles(function (theme) {\n return {\n wrenchSpacing: function wrenchSpacing(_ref) {\n var margin = _ref.margin,\n padding = _ref.padding;\n return {\n marginTop: theme.spacing[margin.t],\n marginRight: theme.spacing[margin.r],\n marginBottom: theme.spacing[margin.b],\n marginLeft: theme.spacing[margin.l],\n paddingTop: theme.spacing[padding.t],\n paddingRight: theme.spacing[padding.r],\n paddingBottom: theme.spacing[padding.b],\n paddingLeft: theme.spacing[padding.l]\n };\n }\n };\n });\n function WithSpacing(_ref2) {\n var m = _ref2.m,\n mx = _ref2.mx,\n my = _ref2.my,\n mt = _ref2.mt,\n mb = _ref2.mb,\n ml = _ref2.ml,\n mr = _ref2.mr,\n p = _ref2.p,\n px = _ref2.px,\n py = _ref2.py,\n pt = _ref2.pt,\n pb = _ref2.pb,\n pl = _ref2.pl,\n pr = _ref2.pr,\n className = _ref2.className,\n rest = _objectWithoutProperties(_ref2, _excluded);\n var margin = {\n t: m || my || mt,\n b: m || my || mb,\n l: m || mx || ml,\n r: m || mx || mr\n };\n var padding = {\n t: p || py || pt,\n b: p || py || pb,\n l: p || px || pl,\n r: p || px || pr\n };\n var theme = useTheme();\n var classes = useStyles({\n margin: margin,\n padding: padding,\n theme: theme\n });\n return /*#__PURE__*/React.createElement(Component, Object.assign({\n spacingClass: classes.wrenchSpacing,\n className: className\n }, safeRest(rest)));\n }\n WithSpacing.defaultProps = {\n m: undefined,\n mx: undefined,\n my: undefined,\n mt: undefined,\n mb: undefined,\n ml: undefined,\n mr: undefined,\n p: undefined,\n px: undefined,\n py: undefined,\n pt: undefined,\n pb: undefined,\n pl: undefined,\n pr: undefined,\n className: undefined\n };\n WithSpacing.propTypes = {\n m: PropTypes.oneOf(spacingOptions),\n mx: PropTypes.oneOf(spacingOptions),\n my: PropTypes.oneOf(spacingOptions),\n mt: PropTypes.oneOf(spacingOptions),\n mb: PropTypes.oneOf(spacingOptions),\n ml: PropTypes.oneOf(spacingOptions),\n mr: PropTypes.oneOf(spacingOptions),\n p: PropTypes.oneOf(spacingOptions),\n px: PropTypes.oneOf(spacingOptions),\n py: PropTypes.oneOf(spacingOptions),\n pt: PropTypes.oneOf(spacingOptions),\n pb: PropTypes.oneOf(spacingOptions),\n pl: PropTypes.oneOf(spacingOptions),\n pr: PropTypes.oneOf(spacingOptions),\n className: PropTypes.string\n };\n WithSpacing.displayName = \"WithSpacing(\".concat(getDisplayName(Component), \")\");\n WithSpacing.getOriginalComponent = function () {\n return Component;\n };\n return WithSpacing;\n}\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar defaultFonts = function defaultFonts(_ref) {\n var type = _ref.type;\n return {\n fontFamily: type.fontFamily.base,\n fontSize: type.fontSize.body,\n '-webkit-font-smoothing': 'antialiased'\n };\n};\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar defaultBaseline = {\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n};\n\n/**\n * @param value\n * @return {boolean}\n */\nvar isControlled = function isControlled(value) {\n return value !== undefined && value !== null;\n}; // eslint-disable-next-line import/prefer-default-export\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\nfunction isElement(value) {\n return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n}\nvar lodash_iselement = isElement;\nvar lodash_isequal = {\n exports: {}\n};\n\n/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n(function (module, exports) {\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used as references for various `Number` constants. */\n var MAX_SAFE_INTEGER = 9007199254740991;\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = function () {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }();\n\n /* Node.js helper references. */\n var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function (value) {\n return func(value);\n };\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n map.forEach(function (value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n set.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n }\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = root['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n }();\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n\n /** Built-in value references. */\n var Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n this.__data__ = new MapCache();\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache();\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == 'offset' || key == 'parent') ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||\n // Skip index properties.\n isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack());\n return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n stack || (stack = new Stack());\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack());\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function (othValue, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n case arrayBufferTag:\n if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n case errorTag:\n return object.name == other.name && object.message == other.message;\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == other + '';\n case mapTag:\n var convert = mapToArray;\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function (object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function (symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {\n getTag = function (value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n }\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return func + '';\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || value !== value && other !== other;\n }\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function () {\n return arguments;\n }()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n module.exports = isEqual;\n})(lodash_isequal, lodash_isequal.exports);\nvar isDeepEqual = lodash_isequal.exports;\nvar createMemoStyles = function createMemoStyles(styles) {\n var useStyles = createUseStyles(styles);\n var useMemoStyles = function useMemoStyles(props) {\n var ref = useRef(props);\n if (!ref.current || !isDeepEqual(props, ref.current)) {\n ref.current = props;\n }\n return useStyles(ref.current);\n };\n return useMemoStyles;\n};\nexport { clearfix, clsx, createMemoStyles, darken, defaultBaseline, defaultFonts, getState, isBrowser, isControlled, lodash_iselement as isElement, lighten, safeRest, uniqueId, visuallyHidden, withSpacing };","import { createMemoStyles, removeUndefinedProperties, createSpacingStyles, clsx } from '@wds/utils';\nimport React from 'react';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (_a) {\n var spacing = _a.spacing,\n border = _a.border;\n return {\n wrenchBox: function (_a) {\n var _b, _c;\n var display = _a.display,\n flexProperties = _a.flexProperties,\n gridProperties = _a.gridProperties,\n borderColor = _a.borderColor;\n var gap = gridProperties.gap,\n gridStyleProperties = __rest(gridProperties, [\"gap\"]);\n var _d = flexProperties.flexItemGrow,\n flexItemGrow = _d === void 0 ? undefined : _d,\n _e = flexProperties.flexWrap,\n flexWrap = _e === void 0 ? undefined : _e,\n flexStyleProperties = __rest(flexProperties, [\"flexItemGrow\", \"flexWrap\"]);\n return removeUndefinedProperties(__assign(__assign(__assign({}, gridStyleProperties), flexStyleProperties), {\n justifyContent: (_b = gridStyleProperties.justifyContent) !== null && _b !== void 0 ? _b : flexStyleProperties.justifyContent,\n alignItems: (_c = gridStyleProperties.alignItems) !== null && _c !== void 0 ? _c : flexStyleProperties.alignItems,\n flexGrow: flexItemGrow && 1,\n flexWrap: flexWrap && 'wrap',\n display: display !== null && display !== void 0 ? display : null,\n gap: gap ? spacing[gap] : null,\n border: borderColor && border[borderColor]\n }));\n }\n };\n});\n\n/**\n * [IMPORTANT]\n * We have to call createSpacingStyles at the component level\n * Otherwise, the styles will be overridden by the global styles\n * This happens because JSS loads the styles in sequence\n */\nvar useSpacingStyles = createSpacingStyles();\nvar Box = function (props) {\n var containerRef = props.containerRef,\n borderColor = props.borderColor,\n className = props.className,\n children = props.children,\n _a = props.element,\n element = _a === void 0 ? 'div' : _a,\n display = props.display,\n alignItems = props.alignItems,\n alignContent = props.alignContent,\n justifyContent = props.justifyContent,\n flexDirection = props.flexDirection,\n flexItemGrow = props.flexItemGrow,\n flexJustify = props.flexJustify,\n flexAlign = props.flexAlign,\n flexWrap = props.flexWrap,\n gridTemplateColumns = props.gridTemplateColumns,\n gridTemplateRows = props.gridTemplateRows,\n gridAutoFlow = props.gridAutoFlow,\n placeItems = props.placeItems,\n gap = props.gap,\n m = props.m,\n mx = props.mx,\n my = props.my,\n mt = props.mt,\n mb = props.mb,\n ml = props.ml,\n mr = props.mr,\n p = props.p,\n px = props.px,\n py = props.py,\n pt = props.pt,\n pb = props.pb,\n pl = props.pl,\n pr = props.pr,\n rest = __rest(props, [\"containerRef\", \"borderColor\", \"className\", \"children\", \"element\", \"display\", \"alignItems\", \"alignContent\", \"justifyContent\", \"flexDirection\", \"flexItemGrow\", \"flexJustify\", \"flexAlign\", \"flexWrap\", \"gridTemplateColumns\", \"gridTemplateRows\", \"gridAutoFlow\", \"placeItems\", \"gap\", \"m\", \"mx\", \"my\", \"mt\", \"mb\", \"ml\", \"mr\", \"p\", \"px\", \"py\", \"pt\", \"pb\", \"pl\", \"pr\"]);\n var flexProperties = {\n alignItems: alignItems !== null && alignItems !== void 0 ? alignItems : flexAlign,\n alignContent: alignContent,\n justifyContent: justifyContent !== null && justifyContent !== void 0 ? justifyContent : flexJustify,\n flexDirection: flexDirection,\n flexItemGrow: flexItemGrow,\n flexWrap: flexWrap\n };\n var gridProperties = {\n justifyContent: justifyContent,\n alignItems: alignItems,\n alignContent: alignContent,\n gridTemplateColumns: gridTemplateColumns,\n gridTemplateRows: gridTemplateRows,\n gridAutoFlow: gridAutoFlow,\n placeItems: placeItems,\n gap: gap\n };\n var wrenchSpacing = useSpacingStyles({\n m: m,\n mx: mx,\n my: my,\n mt: mt,\n mb: mb,\n ml: ml,\n mr: mr,\n p: p,\n px: px,\n py: py,\n pt: pt,\n pb: pb,\n pl: pl,\n pr: pr\n }).wrenchSpacing;\n var wrenchBox = useStyles({\n flexProperties: flexProperties,\n gridProperties: gridProperties,\n display: display,\n borderColor: borderColor\n }).wrenchBox;\n // TODO: remove this type coercion when upgrading to React v18\n var Element = element;\n var classNames = clsx(className, wrenchBox, wrenchSpacing);\n return React.createElement(Element, __assign({\n className: classNames,\n ref: containerRef\n }, rest), children);\n};\nBox.defaultProps = {\n element: 'div',\n containerRef: undefined,\n display: undefined,\n children: null,\n className: undefined\n};\nexport { Box };","import React from 'react';\nimport { IconError, IconCheck } from '@wds/icons';\nimport { Box } from '@wds/box';\nimport { getColor } from '@wds/styles';\nimport { createMemoStyles, defaultBaseline, defaultFonts } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar useStyles = createMemoStyles(function (theme) {\n var spacing = theme.spacing,\n palette = theme.palette,\n type = theme.type;\n return {\n wrenchInputMessage: function (_a) {\n var color = _a.color;\n return __assign(__assign(__assign({}, defaultBaseline), defaultFonts(theme)), {\n marginTop: spacing[2],\n color: color ? palette[color].main : getColor(palette, 'darkMuted'),\n fontSize: type.fontSize.bodySm,\n fontWeight: type.fontWeight.regular,\n alignItems: \"center\",\n display: \"flex\"\n });\n }\n };\n});\nvar InputMessage = function (_a) {\n var _b = _a.children,\n children = _b === void 0 ? undefined : _b,\n _c = _a.color,\n color = _c === void 0 ? undefined : _c;\n var wrenchInputMessage = useStyles({\n color: color\n }).wrenchInputMessage;\n return React.createElement(\"div\", {\n role: \"alert\",\n className: wrenchInputMessage\n }, React.createElement(Box, {\n mr: 1,\n display: \"inline-flex\",\n flexAlign: \"center\"\n }, color === 'error' && React.createElement(IconError, {\n title: \"error\"\n }), color === 'success' && React.createElement(IconCheck, {\n title: \"success\"\n })), children);\n};\nexport { InputMessage };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import React from 'react';\nimport { createMemoStyles, safeRest, visuallyHidden, defaultFonts } from '@wds/utils';\nimport { IconX } from '@wds/icons';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles$1 = createMemoStyles(function (_a) {\n var spacing = _a.spacing,\n type = _a.type;\n return {\n wrenchCloseButton: function (_a) {\n var component = _a.component,\n disabled = _a.disabled;\n var componentSpecificStyles = {\n badge: {\n position: 'relative',\n top: 'none',\n right: 'none',\n padding: 0,\n marginLeft: spacing[3]\n },\n banner: {\n position: 'absolute',\n top: spacing[2],\n right: spacing[2],\n padding: 0\n },\n alert: {\n padding: [spacing[2], 0, spacing[2], spacing[5]],\n textAlign: 'right'\n },\n default: {\n position: 'absolute',\n right: spacing[1],\n top: spacing[1],\n padding: spacing[2]\n }\n };\n return __assign(__assign({}, componentSpecificStyles[component !== null && component !== void 0 ? component : 'default']), {\n fontSize: type.fontSize.body,\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: !disabled && 'pointer',\n borderRadius: '0',\n textDecoration: 'none',\n background: 'transparent',\n border: 'none',\n '&:hover': {\n transition: 'none',\n textDecoration: 'none'\n },\n '&:active': {\n transition: 'none',\n outline: 'none'\n }\n });\n }\n };\n});\nvar CloseButton = function (_a) {\n _a.children;\n var component = _a.component,\n label = _a.label,\n _c = _a.variant,\n variant = _c === void 0 ? \"light\" : _c,\n _d = _a.disabled,\n disabled = _d === void 0 ? false : _d,\n rest = __rest(_a, [\"children\", \"component\", \"label\", \"variant\", \"disabled\"]);\n var wrenchCloseButton = useStyles$1({\n component: component,\n disabled: disabled\n }).wrenchCloseButton;\n return React.createElement(\"button\", __assign({\n type: \"button\",\n className: wrenchCloseButton,\n \"aria-label\": label,\n disabled: disabled\n }, safeRest(rest)), React.createElement(IconX, {\n title: \"close\",\n color: variant\n }));\n};\n\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nvar Overlay = function (_a) {\n var className = _a.className,\n onClick = _a.onClick;\n return React.createElement(\"div\", {\n className: className,\n onClick: onClick,\n \"data-testid\": \"Overlay__WDS\"\n });\n};\nvar useStyles = createMemoStyles(function (_a) {\n var palette = _a.palette,\n spacing = _a.spacing,\n theme = __rest(_a, [\"palette\", \"spacing\"]);\n var pane = {\n bgColor: palette.background.accent,\n padding: spacing[5]\n };\n return {\n wrenchPane: function (_a) {\n var hide = _a.hide,\n transparent = _a.transparent;\n return __assign(__assign(__assign({}, hide && visuallyHidden), defaultFonts(theme)), {\n background: transparent ? 'none' : pane.bgColor\n });\n },\n wrenchPaneBody: function () {\n return {\n padding: pane.padding\n };\n }\n };\n});\nvar Pane = function (_a) {\n var children = _a.children,\n _b = _a.hide,\n hide = _b === void 0 ? false : _b,\n id = _a.id,\n _c = _a.padding,\n padding = _c === void 0 ? false : _c,\n labelledBy = _a.labelledBy,\n role = _a.role,\n _d = _a.transparent,\n transparent = _d === void 0 ? false : _d,\n rest = __rest(_a, [\"children\", \"hide\", \"id\", \"padding\", \"labelledBy\", \"role\", \"transparent\"]);\n var _e = useStyles({\n hide: hide,\n transparent: transparent\n }),\n wrenchPane = _e.wrenchPane,\n wrenchPaneBody = _e.wrenchPaneBody;\n return React.createElement(\"div\", __assign({\n className: wrenchPane,\n role: role,\n id: id,\n \"aria-labelledby\": labelledBy,\n \"aria-hidden\": hide\n }, safeRest(rest)), padding ? React.createElement(\"div\", {\n className: wrenchPaneBody\n }, children) : children);\n};\nexport { CloseButton, Overlay, Pane };","import React from 'react';\nimport { useTheme } from 'react-jss';\nimport { createMemoStyles, safeRest } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var type = theme.type,\n spacing = theme.spacing,\n palette = theme.palette;\n return {\n wrenchLabel: function (_a) {\n var muted = _a.muted,\n plain = _a.plain;\n return __assign(__assign({\n display: 'block',\n color: palette.text.dark,\n fontFamily: type.fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n boxSizing: 'border-box',\n fontSize: type.fontSize.bodySm,\n padding: 0,\n margin: [0, 0, spacing[2]],\n fontWeight: type.fontWeight.medium\n }, plain && {\n fontWeight: type.fontWeight.regular,\n fontSize: type.fontSize.body\n }), muted && {\n color: palette.text.darkMuted,\n fontWeight: type.fontWeight.regular\n });\n }\n };\n});\nvar Label = function (_a) {\n var children = _a.children,\n htmlFor = _a.htmlFor,\n muted = _a.muted,\n plain = _a.plain,\n rest = __rest(_a, [\"children\", \"htmlFor\", \"muted\", \"plain\"]);\n var theme = useTheme();\n var wrenchLabel = useStyles({\n theme: theme,\n muted: muted,\n plain: plain\n }).wrenchLabel;\n return React.createElement(\"label\", __assign({\n className: wrenchLabel,\n htmlFor: htmlFor\n }, safeRest(rest)), children);\n};\nLabel.defaultProps = {\n muted: false,\n plain: false\n};\nexport { Label };","import React, { forwardRef, createRef, useEffect, useMemo, Children } from 'react';\nimport { Fade, Slide } from '@wds/motion';\nimport { createMemoStyles, safeRest, KEYS, defaultFonts, usePreviousState, uniqueId } from '@wds/utils';\nimport PropTypes from 'prop-types';\nimport { useTheme } from 'react-jss';\nimport { IconX } from '@wds/icons';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl']; /// ///////////////////////// PALETTE START ////////////////////////////\n\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent', 'primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']; /// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar dataTransform = function dataTransform(arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function getDataColor(s) {\n return s.split('-')[1];\n}; /// ///////////////////////// HELPERS ////////////////////////////\n\nvar readOnlyIncludes = function readOnlyIncludes(arr, el) {\n return arr.includes(el);\n}; /// ///////////////////////// TYPE GUARDS ////////////////////////////\n\nvar isColorShape = function isColorShape(c) {\n return _typeof(c) === 'object' && 'main' in c;\n};\nvar isSemanticColor = function isSemanticColor(c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function isLinkColor(c) {\n return c === 'link';\n};\nvar isTypeColor = function isTypeColor(c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function isBackgroundColor(c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBorderColor = function isBorderColor(c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function isDataColor(c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function isDataVisColor(c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function getColor(palette, color, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.colorType,\n colorType = _d === void 0 ? 'semantic' : _d,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType; // if passed a portion of the Pallette that is the semantic color use that.\n\n if (isColorShape(color)) c = color[semanticKey];else {\n // Check Semantic\n if (cType === 'semantic') {\n if (isSemanticColor(color)) c = palette[color][semanticKey];else cType = 'link';\n } // Check type and get Color\n\n if (cType === 'link') {\n if (isLinkColor(color)) c = palette[color][semanticKey];else cType = 'text';\n }\n if (cType === 'text') {\n if (isTypeColor(color)) c = palette[cType][color];else cType = 'background';\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) c = palette[cType][color];else cType = 'border';\n }\n if (cType === 'border') {\n if (isBorderColor(color)) c = palette[cType][color];else cType = 'data';\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) c = palette[cType][getDataColor(color)];\n if (isDataColor(color)) c = palette[cType][color];\n }\n }\n return c;\n};\nprocess.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar palette$1 = {\n transparent: 'transparent',\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n error: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: '#E5F9F1',\n success: '#E5F9F1',\n warning: '#FDEBE5',\n error: '#F8ECF2',\n info: '#E6F9FA',\n upgrade: '#FEF2CC',\n muted: '#EDEEEE'\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\n({\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n});\nprocess.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar palette = {\n transparent: 'transparent',\n primary: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2cb2f1',\n contrast: '#000000'\n },\n upgrade: {\n main: '#ffe11b',\n contrast: '#404040'\n },\n muted: {\n main: '#d0d0d0',\n contrast: '#404040'\n },\n link: {\n main: '#0a7cc1',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#efefef',\n link: '#0a7cc1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#efefef',\n primary: '#E5F3E9',\n success: '#E5F3E9',\n warning: '#FFEEC0',\n error: '#FBEAEA',\n info: '#DCF0FF',\n upgrade: '#FFF9D1',\n muted: '#EFEFEF'\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#008323',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\n({\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n});\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\ncreateMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles$4 = createMemoStyles(function (_ref) {\n var spacing = _ref.spacing,\n type = _ref.type;\n return {\n wrenchCloseButton: function wrenchCloseButton(_ref2) {\n var component = _ref2.component;\n var componentSpecificStyles = {\n badge: {\n position: 'relative',\n top: 'none',\n right: 'none',\n padding: 0,\n marginLeft: spacing[3]\n },\n banner: {\n position: 'absolute',\n top: spacing[2],\n right: spacing[2],\n padding: 0\n },\n alert: {\n padding: [spacing[2], 0, spacing[2], spacing[5]],\n textAlign: 'right'\n },\n default: {\n position: 'absolute',\n right: spacing[1],\n top: spacing[1],\n padding: spacing[2]\n }\n };\n return _objectSpread(_objectSpread({}, componentSpecificStyles[component || 'default']), {}, {\n fontSize: type.fontSize.body,\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n borderRadius: '0',\n textDecoration: 'none',\n background: 'transparent',\n border: 'none',\n '&:hover': {\n transition: 'none',\n textDecoration: 'none'\n },\n '&:active': {\n transition: 'none',\n outline: 'none'\n }\n });\n }\n };\n});\nvar useStyles$5 = useStyles$4;\nvar _excluded = [\"children\", \"component\", \"label\", \"onClick\", \"type\", \"variant\"];\nvar CloseButton = function CloseButton(_ref) {\n _ref.children;\n var component = _ref.component,\n label = _ref.label,\n onClick = _ref.onClick;\n _ref.type;\n var variant = _ref.variant,\n rest = _objectWithoutProperties(_ref, _excluded);\n var theme = useTheme();\n var _useStyles = useStyles$5({\n theme: theme,\n component: component\n }),\n wrenchCloseButton = _useStyles.wrenchCloseButton;\n return /*#__PURE__*/React.createElement(\"button\", Object.assign({\n onClick: onClick,\n type: \"button\",\n className: wrenchCloseButton,\n \"aria-label\": label\n }, safeRest(rest)), /*#__PURE__*/React.createElement(IconX, {\n title: \"close\",\n color: variant\n }));\n};\nCloseButton.displayName = \"CloseButton\";\nCloseButton.propTypes = {\n children: PropTypes.string,\n component: PropTypes.string,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n type: PropTypes.string,\n variant: PropTypes.oneOf(['dark', 'light'])\n};\nCloseButton.defaultProps = {\n children: 'CloseButton',\n component: undefined,\n type: undefined,\n variant: 'light'\n};\nvar CloseButton$1 = CloseButton;\n\n/* eslint-disable jsx-a11y/no-static-element-interactions */\n\nvar Overlay = function Overlay(_ref) {\n var className = _ref.className,\n onClick = _ref.onClick;\n return /*#__PURE__*/(\n // eslint-disable-next-line testing-library/consistent-data-testid\n React.createElement(\"div\", {\n className: className,\n onClick: onClick,\n \"data-testid\": \"wds-overlay\"\n })\n );\n};\nOverlay.displayName = \"Overlay\";\nOverlay.propTypes = {\n className: PropTypes.string.isRequired,\n onClick: PropTypes.func\n};\nOverlay.defaultProps = {\n onClick: undefined\n};\nvar Overlay$1 = Overlay;\nvar useStyles$3 = createMemoStyles(function (theme) {\n var spacing = theme.spacing;\n return {\n wrenchModalBody: function (_a) {\n var padding = _a.padding;\n return __assign({\n overflowY: 'auto',\n flexGrow: 1\n }, padding && {\n padding: [spacing[4], spacing[6], spacing[6], spacing[6]]\n });\n }\n };\n});\nvar ModalBody = forwardRef(function (_a, ref) {\n _a.className;\n var children = _a.children,\n handleClick = _a.handleClick,\n id = _a.id,\n padding = _a.padding,\n rest = __rest(_a, [\"className\", \"children\", \"handleClick\", \"id\", \"padding\"]);\n var wrenchModalBody = useStyles$3({\n padding: padding\n }).wrenchModalBody;\n var handleKeyDown = function (e) {\n if (e.key === KEYS.ESC) {\n handleClick === null || handleClick === void 0 ? void 0 : handleClick(e);\n e.preventDefault();\n }\n };\n return (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"section\", __assign({\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex: 0,\n ref: ref,\n id: id,\n className: wrenchModalBody,\n onKeyDown: handleKeyDown\n }, safeRest(rest)), children)\n );\n});\nModalBody.displayName = 'ModalBody';\nModalBody.defaultProps = {\n className: undefined,\n handleClick: undefined,\n id: undefined,\n padding: true\n};\nvar useStyles$2 = createMemoStyles(function (theme) {\n var palette = theme.palette,\n spacing = theme.spacing;\n return {\n wrenchModalFooter: {\n display: 'flex',\n justifyContent: 'space-between',\n flexShrink: 0,\n padding: spacing[6],\n background: palette.background.light,\n borderTop: \"1px solid \".concat(palette.background.accent),\n color: palette.text.dark\n },\n wrenchModalActions: function (_a) {\n var align = _a.align;\n return __assign(__assign(__assign({\n display: 'flex',\n flexGrow: 1,\n flexWrap: 'wrap'\n }, align === 'right' && {\n justifyContent: 'flex-end'\n }), align === 'left' && {\n justifyContent: 'flex-start'\n }), {\n '&:not([class^=\"wrenchButtonGroup\"]) > button': {\n marginLeft: spacing[2]\n }\n });\n }\n };\n});\nvar ModalFooter = function (_a) {\n var align = _a.align,\n children = _a.children;\n var _b = useStyles$2({\n align: align\n }),\n wrenchModalActions = _b.wrenchModalActions,\n wrenchModalFooter = _b.wrenchModalFooter;\n return React.createElement(\"footer\", {\n className: wrenchModalFooter\n }, React.createElement(\"div\", {\n className: wrenchModalActions\n }, children));\n};\nModalFooter.defaultProps = {\n align: 'left'\n};\nvar useStyles$1 = createMemoStyles(function (theme) {\n var palette = theme.palette,\n spacing = theme.spacing,\n _a = theme.type,\n fontWeight = _a.fontWeight,\n fontSize = _a.fontSize;\n return {\n wrenchModalHeader: function (_a) {\n var stretched = _a.stretched;\n return {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'baseline',\n padding: [spacing[6], spacing[6], spacing[2], spacing[6]],\n background: palette.background.light,\n flexShrink: 0,\n flexDirection: stretched ? 'column' : 'row'\n };\n },\n wrenchModalText: {\n fontSize: 24,\n fontWeight: fontWeight.regular,\n color: palette.text.dark,\n marginTop: 0,\n marginBottom: spacing[2]\n },\n wrenchModalTitle: {\n flexGrow: 1,\n width: '100%'\n },\n wrenchModalSubText: {\n fontSize: fontSize.body,\n fontWeight: fontWeight.regular,\n color: palette.text.dark,\n margin: [spacing[1], 0, 0]\n },\n wrenchModalAddOn: {\n flexGrow: 1,\n marginTop: spacing[3],\n width: '100%',\n minWidth: '33%',\n textAlign: 'right',\n // In the case that an addon is the first child (modal title was omitted)\n // we do not want a margin top\n '& :first-child': {\n marginTop: 0\n }\n }\n };\n});\nvar ModalHeader = function (_a) {\n var addOn = _a.addOn,\n header = _a.header,\n id = _a.id,\n subHeader = _a.subHeader,\n stretched = _a.stretched;\n if (subHeader && addOn) {\n throw new Error('You cannot have both subHeader and addon');\n } else if (!header && subHeader) {\n throw new Error('You must provide a header if you provide a subHeader');\n }\n var _b = useStyles$1({\n stretched: stretched\n }),\n wrenchModalAddOn = _b.wrenchModalAddOn,\n wrenchModalHeader = _b.wrenchModalHeader,\n wrenchModalSubText = _b.wrenchModalSubText,\n wrenchModalText = _b.wrenchModalText,\n wrenchModalTitle = _b.wrenchModalTitle;\n return React.createElement(\"section\", {\n className: wrenchModalHeader\n }, React.createElement(\"div\", {\n className: wrenchModalTitle\n }, header && React.createElement(\"h2\", {\n className: wrenchModalText,\n id: id\n }, header), subHeader && React.createElement(\"p\", {\n className: wrenchModalSubText\n }, subHeader)), addOn && React.createElement(\"div\", {\n className: wrenchModalAddOn\n }, addOn));\n};\nModalHeader.defaultProps = {\n addOn: undefined,\n header: undefined,\n id: undefined,\n stretched: false,\n subHeader: undefined\n};\nvar modalWidth = {\n sm: '443px',\n md: '676px',\n lg: '909px',\n xl: '1300px',\n full: '100%'\n};\nvar useStyles = createMemoStyles(function (theme) {\n var _a;\n var breakpoints = theme.breakpoints,\n palette = theme.palette,\n shadow = theme.shadow,\n spacing = theme.spacing;\n return {\n wrenchModal: function (_a) {\n var elevation = _a.elevation;\n return {\n overflow: 'auto',\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n pointerEvents: 'none',\n zIndex: elevation !== null && elevation !== void 0 ? elevation : theme.elevation.space\n };\n },\n wrenchModalContainer: __assign(__assign({}, defaultFonts(theme)), (_a = {\n boxSizing: 'border-box',\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n color: palette.text.dark,\n background: palette.text.light,\n zIndex: function (_a) {\n var elevation = _a.elevation;\n return (elevation !== null && elevation !== void 0 ? elevation : theme.elevation.space) + 1;\n },\n display: 'flex',\n flexDirection: 'column',\n overflow: 'auto',\n whiteSpace: 'normal',\n outline: 'none',\n pointerEvents: 'all'\n }, _a[\"@media (min-width: \".concat(breakpoints.sm, \"px)\")] = {\n maxWidth: function (_a) {\n var size = _a.size;\n return {\n sm: '80vw',\n md: '80vw',\n lg: '80vw',\n xl: '96vw',\n full: '100vw'\n }[size];\n },\n maxHeight: function (_a) {\n var size = _a.size;\n return {\n sm: '90vh',\n md: '90vh',\n lg: '90vh',\n xl: '96vw',\n full: '100vw'\n }[size];\n },\n borderRadius: function (_a) {\n var fullPage = _a.fullPage;\n return fullPage ? 0 : spacing[4];\n },\n boxShadow: shadow.space,\n position: 'relative',\n top: 'auto',\n left: 'auto',\n right: 'auto',\n bottom: 'auto',\n height: function (_a) {\n var fullPage = _a.fullPage;\n return fullPage ? '100%' : 'auto';\n },\n width: function (_a) {\n var size = _a.size;\n return modalWidth[size];\n }\n }, _a)),\n wrenchModalOverlayContainer: function (_a) {\n var elevation = _a.elevation;\n return {\n zIndex: elevation !== null && elevation !== void 0 ? elevation : theme.elevation.space,\n position: 'relative'\n };\n },\n wrenchModalOverlay: {\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n position: 'fixed',\n backgroundColor: palette.background.overlay\n }\n };\n});\n__spreadArray(__spreadArray([], SIZES.filter(function (x) {\n return x !== 'xs';\n}), true), ['full'], false);\nvar Modal = function (_a) {\n var children = _a.children,\n closeButtonLabel = _a.closeButtonLabel,\n dismissible = _a.dismissible,\n onClose = _a.onClose,\n show = _a.show,\n _b = _a.size,\n size = _b === void 0 ? 'sm' : _b,\n title = _a.title,\n elevation = _a.elevation,\n role = _a.role,\n rest = __rest(_a, [\"children\", \"closeButtonLabel\", \"dismissible\", \"onClose\", \"show\", \"size\", \"title\", \"elevation\", \"role\"]);\n var modalBodyRef = createRef();\n var prevShow = usePreviousState(show);\n var fullPage = size === 'full';\n var _c = useStyles({\n size: size,\n elevation: elevation,\n fullPage: fullPage\n }),\n wrenchModal = _c.wrenchModal,\n wrenchModalContainer = _c.wrenchModalContainer,\n wrenchModalOverlay = _c.wrenchModalOverlay,\n wrenchModalOverlayContainer = _c.wrenchModalOverlayContainer;\n useEffect(function () {\n if (modalBodyRef.current && prevShow !== show) {\n modalBodyRef.current.focus();\n }\n if (typeof document !== 'undefined') {\n var parent_1 = document.getElementsByTagName('html')[0];\n if (parent_1) {\n if (show) {\n parent_1.style.overflow = 'hidden';\n } else {\n parent_1.style.overflow = 'auto';\n }\n }\n }\n }, [modalBodyRef, prevShow, show]);\n var titleId = useMemo(function () {\n return uniqueId('modal-title-');\n }, []);\n var bodyId = useMemo(function () {\n return uniqueId('modal-body-');\n }, []);\n var handleClick = function () {\n if (dismissible) {\n if (onClose) {\n onClose();\n }\n }\n };\n /**\n * ModalHeader exists show aria-labelledby\n * @type {boolean}\n */\n var hasModalHeader = Children.toArray(children).some(function (child) {\n return React.isValidElement(child) && child.type === ModalHeader;\n });\n return React.createElement(React.Fragment, null, React.createElement(\"div\", {\n className: fullPage ? '' : wrenchModalOverlayContainer\n }, React.createElement(Fade, {\n in: show\n }, React.createElement(\"div\", null, React.createElement(Overlay$1, {\n onClick: handleClick,\n className: fullPage ? '' : wrenchModalOverlay\n })))), React.createElement(Slide, {\n in: show,\n direction: \"down\",\n distance: \"near\",\n speed: \"fast\"\n }, React.createElement(\"div\", null, React.createElement(\"div\", __assign({\n className: wrenchModal\n }, safeRest(rest)), React.createElement(\"div\", {\n className: wrenchModalContainer,\n \"aria-label\": title,\n \"aria-labelledby\": hasModalHeader ? titleId : undefined,\n \"aria-describedby\": bodyId,\n role: role,\n \"aria-modal\": \"true\",\n tabIndex: -1\n }, dismissible && React.createElement(CloseButton$1, {\n variant: \"dark\",\n onClick: handleClick,\n label: closeButtonLabel\n }), Children.map(children, function (child) {\n if (React.isValidElement(child)) {\n var additionalProps = void 0;\n if (child.type === ModalHeader) {\n additionalProps = {\n id: titleId\n };\n } else if (child.type === ModalBody) {\n additionalProps = {\n id: bodyId,\n handleClick: handleClick,\n ref: modalBodyRef\n };\n }\n if (additionalProps) {\n return React.cloneElement(child, additionalProps);\n }\n }\n return child;\n }))))));\n};\nModal.defaultProps = {\n closeButtonLabel: 'Close Modal',\n dismissible: true,\n onClose: undefined,\n show: false,\n size: 'sm',\n title: undefined,\n elevation: undefined,\n role: 'dialog'\n};\nModal.Body = ModalBody;\nModal.Footer = ModalFooter;\nModal.Header = ModalHeader;\nvar MODAL_SIZES = ['sm', 'md', 'lg', 'xl', 'full'];\nexport { MODAL_SIZES, Modal };","import React from 'react';\nimport { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent', 'primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.colorType,\n colorType = _d === void 0 ? 'semantic' : _d,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) c = color[semanticKey];else {\n // Check Semantic\n if (cType === 'semantic') {\n if (isSemanticColor(color)) c = palette[color][semanticKey];else cType = 'link';\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) c = palette[color][semanticKey];else cType = 'text';\n }\n if (cType === 'text') {\n if (isTypeColor(color)) c = palette[cType][color];else cType = 'background';\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) c = palette[cType][color];else cType = 'border';\n }\n if (cType === 'border') {\n if (isBorderColor(color)) c = palette[cType][color];else cType = 'data';\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) c = palette[cType][getDataColor(color)];\n if (isDataColor(color)) c = palette[cType][color];\n }\n }\n return c;\n};\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: 'transparent',\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n error: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: '#E5F9F1',\n success: '#E5F9F1',\n warning: '#FDEBE5',\n error: '#F8ECF2',\n info: '#E6F9FA',\n upgrade: '#FEF2CC',\n muted: '#EDEEEE'\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: 'transparent',\n primary: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2cb2f1',\n contrast: '#000000'\n },\n upgrade: {\n main: '#ffe11b',\n contrast: '#404040'\n },\n muted: {\n main: '#d0d0d0',\n contrast: '#404040'\n },\n link: {\n main: '#0a7cc1',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#efefef',\n link: '#0a7cc1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#efefef',\n primary: '#E5F3E9',\n success: '#E5F3E9',\n warning: '#FFEEC0',\n error: '#FBEAEA',\n info: '#DCF0FF',\n upgrade: '#FFF9D1',\n muted: '#EFEFEF'\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#008323',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n return React.createElement(React.Fragment, null);\n};\nexport { BACKGROUND_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, getColor, getDataColor, isBackgroundColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor };","import React from 'react';\nimport { createMemoStyles, safeRest } from '@wds/utils';\nimport { CSSTransition } from 'react-transition-group';\nimport { useTheme } from 'react-jss';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles$2 = createMemoStyles({\n wrenchFade: function (_a) {\n var transitionTime = _a.transitionTime;\n return {\n '&$enter, &$exit': {\n transition: \"opacity \".concat(transitionTime, \"ms linear\")\n }\n };\n },\n enter: {\n opacity: '0'\n },\n enterActive: {\n opacity: '1'\n },\n exit: {\n opacity: '1'\n },\n exitActive: {\n opacity: '0'\n }\n});\nvar Fade = function (_a) {\n var children = _a.children,\n _b = _a.speed,\n speed = _b === void 0 ? 'normal' : _b,\n timeout = _a.timeout,\n rest = __rest(_a, [\"children\", \"speed\", \"timeout\"]);\n var motion = useTheme().motion;\n var transitionTime = timeout !== null && timeout !== void 0 ? timeout : motion.fade.speed[speed];\n var _c = useStyles$2({\n transitionTime: transitionTime\n }),\n wrenchFade = _c.wrenchFade,\n animationClasses = __rest(_c, [\"wrenchFade\"]);\n return React.createElement(CSSTransition, __assign({\n className: wrenchFade,\n classNames: __assign({}, animationClasses),\n timeout: transitionTime,\n unmountOnExit: true\n }, safeRest(rest)), children);\n};\nvar speedAnimation = function (isEnter, speed) {\n var curveEntrance = 'cubic-bezier(0, 0, 0, 1)';\n var curveEase = 'cubic-bezier(0.2, 0, 0.1, 1)';\n var bezier = isEnter ? curveEntrance : curveEase;\n var transform = \"transform \".concat(speed, \"ms \").concat(bezier);\n var opacity = \"opacity \".concat(speed / (isEnter ? 5 : 2), \"ms linear \").concat(speed / (isEnter ? 10 : 2), \"ms\");\n return \"\".concat(transform, \", \").concat(opacity);\n};\nvar directionAnimation = function (direction, distance, isZero) {\n return {\n up: \"translateY(\".concat(isZero ? 0 : distance, \"%)\"),\n down: \"translateY(-\".concat(isZero ? 0 : distance, \"%)\"),\n left: \"translateX(\".concat(isZero ? 0 : distance, \"%)\"),\n right: \"translateX(-\".concat(isZero ? 0 : distance, \"%)\")\n }[direction];\n};\nvar useStyles$1 = createMemoStyles({\n wrenchSlide: function (_a) {\n var slideSpeed = _a.slideSpeed,\n direction = _a.direction,\n slideDistance = _a.slideDistance;\n return {\n '&$enter': {\n transform: directionAnimation(direction, slideDistance, false)\n },\n '&$enterActive': {\n transition: speedAnimation(true, slideSpeed),\n transform: directionAnimation(direction, slideDistance, true)\n },\n '&$exit': {\n transform: directionAnimation(direction, slideDistance, true)\n },\n '&$exitActive': {\n transition: speedAnimation(false, slideSpeed),\n transform: directionAnimation(direction, slideDistance, false)\n }\n };\n },\n enter: {\n opacity: '0'\n },\n enterActive: {\n opacity: '1'\n },\n exit: {\n opacity: '1'\n },\n exitActive: {\n opacity: '0'\n }\n});\nvar Slide = function (_a) {\n var children = _a.children,\n timeout = _a.timeout,\n _b = _a.direction,\n direction = _b === void 0 ? 'up' : _b,\n _c = _a.speed,\n speed = _c === void 0 ? 'normal' : _c,\n _d = _a.distance,\n distance = _d === void 0 ? 'normal' : _d,\n rest = __rest(_a, [\"children\", \"timeout\", \"direction\", \"speed\", \"distance\"]);\n var motion = useTheme().motion;\n var slideSpeed = timeout !== null && timeout !== void 0 ? timeout : motion.slide.speed[speed];\n var slideDistance = motion.slide.distance[distance];\n var _e = useStyles$1({\n slideSpeed: slideSpeed,\n direction: direction,\n slideDistance: slideDistance\n }),\n wrenchSlide = _e.wrenchSlide,\n animationClasses = __rest(_e, [\"wrenchSlide\"]);\n return React.createElement(CSSTransition, __assign({\n className: wrenchSlide,\n classNames: __assign({}, animationClasses),\n timeout: slideSpeed,\n unmountOnExit: true\n }, safeRest(rest)), children);\n};\nvar bezier = 'cubic-bezier(0, 0, 0, 1)';\nvar useStyles = createMemoStyles({\n wrenchZoom: function (_a) {\n var timeout = _a.timeout;\n return {\n '&$enterActive': {\n transition: \"transform \".concat(timeout, \"ms \").concat(bezier, \", opacity 100ms linear\")\n },\n '&$exitActive': {\n transition: \"transform \".concat(timeout, \"ms \").concat(bezier, \", opacity 50ms linear 50ms\")\n }\n };\n },\n enter: {\n opacity: '0',\n transform: 'scale(0.8)'\n },\n enterActive: {\n opacity: '1',\n transform: 'scale(1)'\n },\n exit: {\n opacity: '1',\n transform: 'scale(1)'\n },\n exitActive: {\n opacity: '0',\n transform: 'scale(0.8)'\n }\n});\nvar Zoom = function (_a) {\n var children = _a.children,\n _b = _a.timeout,\n timeout = _b === void 0 ? 250 : _b,\n rest = __rest(_a, [\"children\", \"timeout\"]);\n var _c = useStyles({\n timeout: timeout\n }),\n wrenchZoom = _c.wrenchZoom,\n animationClasses = __rest(_c, [\"wrenchZoom\"]);\n return React.createElement(CSSTransition, __assign({\n className: wrenchZoom,\n classNames: __assign({}, animationClasses),\n timeout: timeout,\n unmountOnExit: true\n }, safeRest(rest)), children);\n};\nvar MOTION_SPEEDS = ['slow', 'normal', 'fast'];\nvar MOTION_DIRECTIONS = ['up', 'right', 'down', 'left'];\nvar MOTION_DISTANCES = ['normal', 'near', 'far'];\nexport { Fade, MOTION_DIRECTIONS, MOTION_DISTANCES, MOTION_SPEEDS, Slide, Zoom };","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoStyles, defaultBaseline, uniqueId, safeRest } from '@wds/utils';\nimport { useTheme } from 'react-jss';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n spacing = theme.spacing,\n type = theme.type,\n breakpoints = theme.breakpoints;\n return {\n wrenchPageHeader: function wrenchPageHeader(_ref) {\n var centered = _ref.centered;\n return _objectSpread(_objectSpread({}, defaultBaseline), {}, {\n width: '100%',\n padding: [spacing[5], spacing[6]],\n fontFamily: type.fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n textAlign: centered ? 'center' : 'left',\n backgroundColor: palette.background.light,\n display: centered ? 'block' : 'flex',\n flexFlow: 'row wrap',\n justifyContent: 'space-between'\n });\n },\n wrenchPageHeaderText: function wrenchPageHeaderText(_ref2) {\n var centered = _ref2.centered;\n var centeredStyles = centered ? {\n display: 'block'\n } : {};\n return _objectSpread(_objectSpread({\n flexBasis: '50%',\n flexGrow: 1,\n marginRight: '1em'\n }, centeredStyles), {}, _defineProperty({}, \"@media (min-width: \".concat(breakpoints.lg, \"px)\"), {\n flexBasis: '30%'\n }));\n },\n wrenchPageHeaderAddOn: function wrenchPageHeaderAddOn(_ref3) {\n var centered = _ref3.centered;\n var centeredStyles = centered ? {\n width: '100%',\n display: 'block',\n textAlign: 'center',\n whiteSpace: 'normal'\n } : {};\n return _objectSpread({\n flexGrow: 0,\n flexShrink: 1,\n textAlign: 'right',\n '& [class*=\"wrenchButton\"]': {\n margin: [spacing[1], spacing[1], spacing[1], 0]\n }\n }, centeredStyles);\n },\n wrenchPageHeaderTitle: function wrenchPageHeaderTitle() {\n return _objectSpread(_objectSpread({}, defaultBaseline), {}, {\n margin: 0,\n lineHeight: 1.5,\n fontSize: type.fontSize.sectionTitle,\n fontWeight: type.fontWeight.light\n });\n },\n wrenchPageHeaderSubtitle: function wrenchPageHeaderSubtitle() {\n return _objectSpread(_objectSpread({}, defaultBaseline), {}, {\n display: 'block',\n marginBottom: spacing[2],\n color: palette.text.darkMuted,\n fontSize: type.fontSize.cardTitle\n });\n }\n };\n});\nvar _excluded = [\"addOn\", \"centered\", \"subTitle\", \"title\"];\nvar PageHeader = function PageHeader(_ref) {\n var addOn = _ref.addOn,\n centered = _ref.centered,\n subTitle = _ref.subTitle,\n title = _ref.title,\n other = _objectWithoutProperties(_ref, _excluded);\n var theme = useTheme();\n var classes = useStyles({\n centered: centered,\n theme: theme\n });\n var headerId = uniqueId('page-header-');\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: classes.wrenchPageHeader\n }, safeRest(other)), /*#__PURE__*/React.createElement(\"div\", {\n className: classes.wrenchPageHeaderText,\n \"aria-labelledby\": headerId\n }, /*#__PURE__*/React.createElement(\"h1\", {\n className: classes.wrenchPageHeaderTitle,\n id: headerId\n }, title), subTitle ? /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrenchPageHeaderSubtitle\n }, subTitle) : null), addOn ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.wrenchPageHeaderAddOn\n }, addOn) : null);\n};\nPageHeader.displayName = \"PageHeader\";\nPageHeader.propTypes = {\n /**\n * Define page header title\n */\n title: PropTypes.node.isRequired,\n /**\n * Define page header sub title\n */\n subTitle: PropTypes.node,\n /**\n * Define add-on options like buttons or input\n */\n addOn: PropTypes.node,\n /**\n * If true, content will be centered\n */\n centered: PropTypes.bool\n};\nPageHeader.defaultProps = {\n addOn: undefined,\n centered: false,\n subTitle: undefined\n};\nPageHeader.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"PageHeader\",\n \"props\": {\n \"addOn\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": false,\n \"description\": \"Define add-on options like buttons or input\"\n },\n \"centered\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"If true, content will be centered\"\n },\n \"subTitle\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": false,\n \"description\": \"Define page header sub title\"\n },\n \"title\": {\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": true,\n \"description\": \"Define page header title\"\n }\n }\n};\nexport { PageHeader };","import React from 'react';\nimport { createMemoStyles, safeRest } from '@wds/utils';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var spacing = theme.spacing,\n palette = theme.palette,\n type = theme.type;\n var width = function (s) {\n return {\n xs: spacing[4],\n sm: spacing[6],\n md: spacing[8],\n lg: spacing[10]\n }[s];\n };\n var font = function (s) {\n return {\n xs: type.fontSize.bodySm,\n sm: type.fontSize.bodySm,\n md: type.fontSize.body,\n lg: type.fontSize.pageTitle\n }[s];\n };\n var fontWeight = function (s) {\n return {\n xs: type.fontWeight.regular,\n sm: type.fontWeight.regular,\n md: type.fontWeight.medium,\n lg: type.fontWeight.medium\n }[s];\n };\n var height = width;\n var rotate = {\n '@keyframes rotate': {\n '100%': {\n transform: 'rotate(360deg)'\n }\n }\n };\n var stretch = {\n '@keyframes stretch': {\n '0%': {\n strokeDasharray: '339.292, 339.292',\n strokeDashoffset: '203.57519999999997',\n animationTimingFunction: 'cubic-bezier(0.3, 0, 1, 1)'\n },\n '40%': {\n strokeDasharray: '339.292, 339.292',\n strokeDashoffset: '253.57519999999997',\n animationTimingFunction: 'cubic-bezier(0, 0, 0.9, 1)'\n },\n '65%': {\n strokeDashoffset: '303.57519999999997'\n },\n '100%': {\n strokeDashoffset: '203.57519999999997'\n }\n }\n };\n return __assign(__assign(__assign({}, rotate), stretch), {\n wrenchProgressCircle: function (_a) {\n var size = _a.size,\n continuous = _a.continuous;\n return {\n display: 'inline-block',\n position: 'relative',\n width: width(size),\n height: height(size),\n fill: 'none',\n '-webkit-transform': continuous && 'translate3d(0,0,0)'\n };\n },\n wrenchCirclePath: function () {\n return {\n transform: 'rotate(-90deg)'\n };\n },\n wrenchCirclePathGroup: function (_a) {\n var continuous = _a.continuous;\n return {\n animation: continuous && '$rotate 1s linear infinite',\n transformOrigin: continuous && 'center center'\n };\n },\n wrenchCirclePathBorder: function () {\n return {\n stroke: palette.muted.main\n };\n },\n wrenchCirclePathFill: function (_a) {\n var color = _a.color,\n continuous = _a.continuous;\n return {\n stroke: palette[color].main,\n strokeLinecap: 'round',\n strokeDasharray: continuous && '339.292, 339.292',\n strokeDashoffset: continuous && '203.57519999999997',\n animation: continuous && '$stretch 1s infinite',\n transformOrigin: continuous && 'center center'\n };\n },\n wrenchCircleDisplay: function (_a) {\n var size = _a.size;\n return {\n position: 'absolute',\n top: '0',\n left: '0',\n width: width(size),\n height: height(size),\n fontSize: font(size),\n fontWeight: fontWeight(size),\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center'\n };\n }\n });\n});\nvar CIRCLE_CIRCUMFERENCE = 339.292;\nvar ProgressCircle = function (_a) {\n var _b = _a.children,\n children = _b === void 0 ? undefined : _b,\n _c = _a.size,\n size = _c === void 0 ? 'md' : _c,\n _d = _a.percent,\n percent = _d === void 0 ? undefined : _d,\n _e = _a.color,\n color = _e === void 0 ? 'success' : _e,\n _f = _a.continuous,\n continuous = _f === void 0 ? false : _f,\n _g = _a.valueMax,\n valueMax = _g === void 0 ? undefined : _g,\n _h = _a.valueMin,\n valueMin = _h === void 0 ? undefined : _h,\n _j = _a.valueText,\n valueText = _j === void 0 ? undefined : _j,\n rest = __rest(_a, [\"children\", \"size\", \"percent\", \"color\", \"continuous\", \"valueMax\", \"valueMin\", \"valueText\"]);\n var classes = useStyles({\n color: color,\n size: size,\n continuous: continuous\n });\n var circleOptions = {\n lg: {\n strokeWidth: 8,\n radius: 56\n },\n sm: {\n strokeWidth: 16,\n radius: 52\n },\n md: {\n strokeWidth: 12,\n radius: 54\n },\n xs: {\n strokeWidth: 20,\n radius: 50\n }\n };\n var _k = circleOptions[size],\n strokeWidth = _k.strokeWidth,\n radius = _k.radius;\n var valueNow = percent ? percent * 100 : undefined;\n var strokeDasharray = !continuous ? \"\".concat(CIRCLE_CIRCUMFERENCE, \" \").concat(CIRCLE_CIRCUMFERENCE) : undefined;\n var strokeDashoffset = !continuous && percent ? CIRCLE_CIRCUMFERENCE * (1 - percent) : undefined;\n return React.createElement(\"div\", __assign({\n className: classes.wrenchProgressCircle,\n role: \"progressbar\",\n \"aria-valuenow\": valueNow,\n \"aria-valuemax\": valueMax,\n \"aria-valuemin\": valueMin,\n \"aria-valuetext\": valueText\n }, safeRest(rest)), React.createElement(\"svg\", {\n className: classes.wrenchCirclePath,\n role: \"img\",\n \"aria-label\": \"Progress\",\n viewBox: \"0 0 120 120\"\n }, React.createElement(\"g\", {\n className: classes.wrenchCirclePathGroup\n }, React.createElement(\"circle\", {\n className: classes.wrenchCirclePathBorder,\n cx: \"60\",\n cy: \"60\",\n r: radius,\n strokeWidth: strokeWidth\n }), React.createElement(\"circle\", {\n className: classes.wrenchCirclePathFill,\n cx: \"60\",\n cy: \"60\",\n r: radius,\n strokeWidth: strokeWidth,\n strokeDasharray: strokeDasharray,\n strokeDashoffset: strokeDashoffset\n }))), children && React.createElement(\"div\", {\n className: classes.wrenchCircleDisplay\n }, children));\n};\nvar PROGRESS_CIRCLE_COLORS = ['primary', 'secondary', 'success', 'warning', 'error', 'upgrade', 'info'];\nvar PROGRESS_CIRCLE_SIZES = ['xs', 'sm', 'md', 'lg'];\nexport { PROGRESS_CIRCLE_COLORS, PROGRESS_CIRCLE_SIZES, ProgressCircle };","import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { useTheme, createUseStyles } from 'react-jss';\nfunction toVal(mix) {\n var k,\n y,\n str = '';\n if (typeof mix === 'string' || typeof mix === 'number') {\n str += mix;\n } else if (typeof mix === 'object') {\n if (Array.isArray(mix)) {\n for (k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (y = toVal(mix[k])) {\n str && (str += ' ');\n str += y;\n }\n }\n }\n } else {\n for (k in mix) {\n if (mix[k]) {\n str && (str += ' ');\n str += k;\n }\n }\n }\n }\n return str;\n}\nfunction clsx() {\n var i = 0,\n tmp,\n x,\n str = '';\n while (i < arguments.length) {\n if (tmp = arguments[i++]) {\n if (x = toVal(tmp)) {\n str && (str += ' ');\n str += x;\n }\n }\n }\n return str;\n}\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\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 try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _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 return _construct.apply(null, arguments);\n}\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\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 return _wrapNativeSuper(Class);\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 \"73\": \"Please provide a valid CSS variable.\\n\\n\",\n \"74\": \"CSS variable not found and no default was provided.\\n\\n\",\n \"75\": \"important requires a valid style object, got a %s instead.\\n\\n\",\n \"76\": \"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\\n\\n\",\n \"77\": \"remToPx expects a value in \\\"rem\\\" but you provided it in \\\"%s\\\".\\n\\n\",\n \"78\": \"base must be set in \\\"px\\\" or \\\"%\\\" but you set it in \\\"%s\\\".\\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 var a = args[0];\n var b = [];\n var c;\n for (c = 1; c < args.length; c += 1) {\n b.push(args[c]);\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\nvar PolishedError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(PolishedError, _Error);\n function PolishedError(code) {\n var _this;\n if (process.env.NODE_ENV === 'production') {\n _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/main/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 _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n }\n return _assertThisInitialized(_this);\n }\n return PolishedError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nfunction colorToInt(color) {\n return Math.round(color * 255);\n}\nfunction convertToInt(red, green, blue) {\n return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\nfunction hslToRgb(hue, saturation, lightness, convert) {\n if (convert === void 0) {\n convert = convertToInt;\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 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 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 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}\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}\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 var normalizedColor = nameToHex(color);\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 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 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 if (normalizedColor.match(reducedRgbaHexRegex)) {\n var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\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 var rgbMatched = rgbRegex.exec(normalizedColor);\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 var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));\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 var hslMatched = hslRegex.exec(normalizedColor);\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 if (!hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, rgbColorString);\n }\n return {\n red: parseInt(\"\" + hslRgbMatched[1], 10),\n green: parseInt(\"\" + hslRgbMatched[2], 10),\n blue: parseInt(\"\" + hslRgbMatched[3], 10)\n };\n }\n var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));\n if (hslaMatched) {\n var _hue = parseInt(\"\" + hslaMatched[1], 10);\n var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n if (!_hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, _rgbColorString);\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 throw new PolishedError(5);\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 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 var hue;\n var delta = max - min;\n var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n switch (max) {\n case red:\n hue = (green - blue) / delta + (green < blue ? 6 : 0);\n break;\n case green:\n hue = (blue - red) / delta + 2;\n break;\n default:\n // blue case\n hue = (red - green) / delta + 4;\n break;\n }\n hue *= 60;\n if (color.alpha !== undefined) {\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness,\n alpha: color.alpha\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 return value;\n};\nfunction numberToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? \"0\" + hex : hex;\n}\nfunction colorToHex(color) {\n return numberToHex(Math.round(color * 255));\n}\nfunction convertToHex(red, green, blue) {\n return reduceHexValue(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\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 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 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 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 throw new PolishedError(7);\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};\nvar isRgba = function isRgba(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\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};\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\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\nfunction curry(f) {\n // eslint-disable-line no-redeclare\n return curried(f, f.length, []);\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$1(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\nvar curriedDarken = /*#__PURE__*/curry\n/* :: */(darken$1);\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$1(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\nvar curriedLighten = /*#__PURE__*/curry\n/* :: */(lighten$1);\nvar darken = curriedDarken;\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\n\n// Taken from lodash: https://github.com/lodash/lodash/blob/master/uniqueId.js\nvar getState = function getState(state, newState) {\n return _objectSpread(_objectSpread({}, state), newState);\n};\nvar isBrowser = typeof window !== 'undefined';\nvar lighten = curriedLighten;\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nvar _excluded$1 = [\"style\", \"className\"];\nvar safeRest = function (_ref) {\n _ref.style;\n _ref.className;\n var props = _objectWithoutProperties(_ref, _excluded$1);\n return props;\n};\n\n// Taken from lodash: https://github.com/lodash/lodash/blob/master/uniqueId.js\nvar idCounter = 0;\nvar uniqueId = function uniqueId(prefix) {\n var id = ++idCounter; // eslint-disable-line no-plusplus\n\n if (prefix == null) {\n throw new Error('The value is missing in uniqueId() parameter');\n }\n return \"\".concat(prefix).concat(id);\n};\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar visuallyHidden = {\n border: '0px',\n clip: 'rect(1px, 1px, 1px, 1px)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n};\nvar clearfix = {\n '&:after': {\n content: '',\n display: 'block',\n clear: 'both'\n }\n};\nvar _excluded = [\"m\", \"mx\", \"my\", \"mt\", \"mb\", \"ml\", \"mr\", \"p\", \"px\", \"py\", \"pt\", \"pb\", \"pl\", \"pr\", \"className\"];\nvar spacingOptions = Object.freeze([1, 2, 3, 4, 5, 6, 7, 8, 9]); // this pattern is described in React's documentation: https://reactjs.org/docs/higher-order-components.html#convention-wrap-the-display-name-for-easy-debugging\n\nfunction getDisplayName(Component) {\n return Component.displayName || Component.name || 'Component';\n}\nfunction withSpacing(Component) {\n /**\n * JSS injects css styles in the order of `createUseStyles` usage.\n * Hence, useStyles needs to be instantiated every single time while\n * using this HOC because it should be the last `createUseStyles` usage\n * for a component. With this mechanism, `withSpacing` overwrites the component\n * spacing. Not ideal for a design system, but we are waiting on the\n * below ticket.\n *\n * Note: https://jira.surveymonkey.com/browse/WRENCH-1107\n *\n * If the decision is have `withStyles` NOT overwrite the component spacing,\n * just move this declaration outside of this component. `withSpacing` will then\n * add to the styles and not overwrite them.\n */\n var useStyles = createMemoStyles(function (theme) {\n return {\n wrenchSpacing: function wrenchSpacing(_ref) {\n var margin = _ref.margin,\n padding = _ref.padding;\n return {\n marginTop: theme.spacing[margin.t],\n marginRight: theme.spacing[margin.r],\n marginBottom: theme.spacing[margin.b],\n marginLeft: theme.spacing[margin.l],\n paddingTop: theme.spacing[padding.t],\n paddingRight: theme.spacing[padding.r],\n paddingBottom: theme.spacing[padding.b],\n paddingLeft: theme.spacing[padding.l]\n };\n }\n };\n });\n function WithSpacing(_ref2) {\n var m = _ref2.m,\n mx = _ref2.mx,\n my = _ref2.my,\n mt = _ref2.mt,\n mb = _ref2.mb,\n ml = _ref2.ml,\n mr = _ref2.mr,\n p = _ref2.p,\n px = _ref2.px,\n py = _ref2.py,\n pt = _ref2.pt,\n pb = _ref2.pb,\n pl = _ref2.pl,\n pr = _ref2.pr,\n className = _ref2.className,\n rest = _objectWithoutProperties(_ref2, _excluded);\n var margin = {\n t: m || my || mt,\n b: m || my || mb,\n l: m || mx || ml,\n r: m || mx || mr\n };\n var padding = {\n t: p || py || pt,\n b: p || py || pb,\n l: p || px || pl,\n r: p || px || pr\n };\n var theme = useTheme();\n var classes = useStyles({\n margin: margin,\n padding: padding,\n theme: theme\n });\n return /*#__PURE__*/React.createElement(Component, Object.assign({\n spacingClass: classes.wrenchSpacing,\n className: className\n }, safeRest(rest)));\n }\n WithSpacing.defaultProps = {\n m: undefined,\n mx: undefined,\n my: undefined,\n mt: undefined,\n mb: undefined,\n ml: undefined,\n mr: undefined,\n p: undefined,\n px: undefined,\n py: undefined,\n pt: undefined,\n pb: undefined,\n pl: undefined,\n pr: undefined,\n className: undefined\n };\n WithSpacing.propTypes = {\n m: PropTypes.oneOf(spacingOptions),\n mx: PropTypes.oneOf(spacingOptions),\n my: PropTypes.oneOf(spacingOptions),\n mt: PropTypes.oneOf(spacingOptions),\n mb: PropTypes.oneOf(spacingOptions),\n ml: PropTypes.oneOf(spacingOptions),\n mr: PropTypes.oneOf(spacingOptions),\n p: PropTypes.oneOf(spacingOptions),\n px: PropTypes.oneOf(spacingOptions),\n py: PropTypes.oneOf(spacingOptions),\n pt: PropTypes.oneOf(spacingOptions),\n pb: PropTypes.oneOf(spacingOptions),\n pl: PropTypes.oneOf(spacingOptions),\n pr: PropTypes.oneOf(spacingOptions),\n className: PropTypes.string\n };\n WithSpacing.displayName = \"WithSpacing(\".concat(getDisplayName(Component), \")\");\n WithSpacing.getOriginalComponent = function () {\n return Component;\n };\n return WithSpacing;\n}\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar defaultFonts = function defaultFonts(_ref) {\n var type = _ref.type;\n return {\n fontFamily: type.fontFamily.base,\n fontSize: type.fontSize.body,\n '-webkit-font-smoothing': 'antialiased'\n };\n};\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar defaultBaseline = {\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n};\n\n/**\n * @param value\n * @return {boolean}\n */\nvar isControlled = function isControlled(value) {\n return value !== undefined && value !== null;\n}; // eslint-disable-next-line import/prefer-default-export\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\n/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\n/**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\nfunction isElement(value) {\n return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n}\nvar lodash_iselement = isElement;\nvar lodash_isequal = {\n exports: {}\n};\n\n/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n(function (module, exports) {\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used as references for various `Number` constants. */\n var MAX_SAFE_INTEGER = 9007199254740991;\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]';\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = function () {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }();\n\n /* Node.js helper references. */\n var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function (value) {\n return func(value);\n };\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n map.forEach(function (value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n set.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n }\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = root['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n }();\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n\n /** Built-in value references. */\n var Buffer = moduleExports ? root.Buffer : undefined,\n Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeKeys = overArg(Object.keys, Object);\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n this.__data__ = new MapCache();\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache();\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == 'offset' || key == 'parent') ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||\n // Skip index properties.\n isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack());\n return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n stack || (stack = new Stack());\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack());\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function (othValue, othIndex) {\n if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n case arrayBufferTag:\n if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n case errorTag:\n return object.name == other.name && object.message == other.message;\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == other + '';\n case mapTag:\n var convert = mapToArray;\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n if (customizer) {\n var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function (object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function (symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {\n getTag = function (value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n case mapCtorString:\n return mapTag;\n case promiseCtorString:\n return promiseTag;\n case setCtorString:\n return setTag;\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n }\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return func + '';\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || value !== value && other !== other;\n }\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function () {\n return arguments;\n }()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n function stubArray() {\n return [];\n }\n\n /**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\n function stubFalse() {\n return false;\n }\n module.exports = isEqual;\n})(lodash_isequal, lodash_isequal.exports);\nvar isDeepEqual = lodash_isequal.exports;\nvar createMemoStyles = function createMemoStyles(styles) {\n var useStyles = createUseStyles(styles);\n var useMemoStyles = function useMemoStyles(props) {\n var ref = useRef(props);\n if (!ref.current || !isDeepEqual(props, ref.current)) {\n ref.current = props;\n }\n return useStyles(ref.current);\n };\n return useMemoStyles;\n};\nexport { clearfix, clsx, createMemoStyles, darken, defaultBaseline, defaultFonts, getState, isBrowser, isControlled, lodash_iselement as isElement, lighten, safeRest, uniqueId, visuallyHidden, withSpacing };","import React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoStyles, safeRest } from '@wds/utils';\nimport { useTheme } from 'react-jss';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nvar SEMANTIC_COLORS = Object.freeze(['primary', 'success', 'info', 'warning', 'upgrade', 'secondary', 'muted']);\nvar TYPE_COLORS = Object.freeze(['dark', 'light', 'darkMuted', 'lightMuted', 'link']);\nvar SIZES = Object.freeze(['lg', 'md', 'sm']);\nObject.freeze(['primary', 'upgrade', 'info', 'success', 'warning', 'secondary']);\nObject.freeze([].concat(_toConsumableArray(SIZES), ['xs']));\nObject.freeze(['md', 'sm']);\nObject.freeze(['success', 'warning']);\nObject.freeze(['success', 'warning']);\nObject.freeze(['data-one', 'data-two', 'data-three', 'data-four', 'data-five', 'data-six', 'data-seven', 'data-eight', 'data-nine', 'data-ten']);\nObject.freeze({\n DOWN: 'ArrowDown',\n END: 'End',\n ESC: 'Escape',\n HOME: 'Home',\n LEFT: 'ArrowLeft',\n PAGE_DOWN: 'PageDown',\n PAGE_UP: 'PageUp',\n RIGHT: 'ArrowRight',\n UP: 'ArrowUp',\n ENTER: 'Enter',\n SPACE: ' ',\n BACKSPACE: 'Backspace',\n TAB: 'Tab'\n}); // Deprecated. Moving to e.key\n\nObject.freeze({\n DOWN: 40,\n END: 35,\n ESC: 27,\n HOME: 36,\n LEFT: 37,\n PAGE_DOWN: 34,\n PAGE_UP: 33,\n RIGHT: 39,\n UP: 38,\n ENTER: 13,\n SPACE: 32,\n BACKSPACE: 8,\n TAB: 9\n});\nObject.freeze({\n 37: -1,\n 38: -1,\n 39: 1,\n 40: 1\n});\nObject.freeze(['top', 'bottom', 'right', 'left']);\nObject.freeze(['primary', 'secondary', 'muted', 'success', 'warning', 'upgrade', 'info']);\nObject.freeze(['light', 'dark']);\nObject.freeze(['primary', 'light', 'dark', 'transparent']);\nObject.freeze(['left', 'right', 'even', 'center']);\nObject.freeze(['normal', 'near', 'far']);\nObject.freeze(['up', 'right', 'down', 'left']);\nObject.freeze(['slow', 'normal', 'fast']);\nObject.freeze({\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n});\nObject.freeze({\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n});\nObject.freeze({\n accordion: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A7&scaling=min-zoom&page-id=30%3A2',\n 'action-sheet': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A293&scaling=min-zoom&page-id=30%3A288',\n alert: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A317&scaling=min-zoom&page-id=30%3A312',\n avatar: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A293&scaling=min-zoom&page-id=4%3A288',\n badge: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1243&scaling=min-zoom&page-id=4%3A1238',\n banner: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A341&scaling=min-zoom&page-id=30%3A336',\n /**\n * TODO: Currently goes to Global Padding, change to box when created\n */\n box: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A942&scaling=min-zoom&page-id=30%3A937',\n button: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=20%3A9&scaling=min-zoom&page-id=20%3A4',\n 'button-group': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A389&scaling=min-zoom&page-id=30%3A384',\n card: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A437&scaling=min-zoom&page-id=30%3A432',\n checkbox: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n coachmark: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A413&scaling=min-zoom&page-id=30%3A408',\n 'form-group': '',\n grid: '',\n icons: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=895%3A13856&scaling=min-zoom&page-id=119%3A2',\n input: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A485&scaling=min-zoom&page-id=30%3A480',\n /**\n * TODO: This doesn't look like it's up to date right now\n */\n 'input-group': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A509&scaling=min-zoom&page-id=30%3A504',\n link: '',\n list: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A893&scaling=min-zoom&page-id=30%3A888',\n menu: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A533&scaling=min-zoom&page-id=30%3A528',\n modal: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A557&scaling=min-zoom&page-id=30%3A552',\n motion: '',\n multiselect: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A581&scaling=min-zoom&page-id=30%3A576',\n 'number-picker': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A629&scaling=min-zoom&page-id=30%3A624',\n 'page-header': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A653&scaling=min-zoom&page-id=30%3A648',\n pagination: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A677&scaling=min-zoom&page-id=30%3A672',\n popout: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A701&scaling=min-zoom&page-id=30%3A696',\n 'progress-bar': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A715&scaling=min-zoom&page-id=4%3A710',\n 'progress-circle': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A715&scaling=min-zoom&page-id=4%3A710',\n radio: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n /**\n * TODO: Doesn't look complete yet, update if necessary\n */\n responsive: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=304%3A1897&scaling=min-zoom&page-id=160%3A17',\n select: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A725&scaling=min-zoom&page-id=30%3A720',\n 'select-menu': 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A725&scaling=min-zoom&page-id=30%3A720',\n sheet: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A749&scaling=min-zoom&page-id=30%3A744',\n slider: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A773&scaling=min-zoom&page-id=30%3A768',\n switch: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=4%3A1037&scaling=min-zoom&page-id=4%3A1032',\n table: '',\n tabs: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A797&scaling=min-zoom&page-id=30%3A792',\n textarea: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A821&scaling=min-zoom&page-id=30%3A816',\n toast: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A845&scaling=min-zoom&page-id=30%3A840',\n tooltip: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=30%3A869&scaling=min-zoom&page-id=30%3A864',\n typography: 'https://www.figma.com/proto/P5WtS8mSjaKYnWVYKnSM67/Design-System-WDS-UI-Kit?node-id=18%3A8&scaling=min-zoom&page-id=18%3A3'\n});\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles(function (theme) {\n return {\n wrenchTypography: function wrenchTypography(_ref) {\n var align = _ref.align,\n color = _ref.color,\n variant = _ref.variant;\n var _theme$type = theme.type,\n fontFamily = _theme$type.fontFamily,\n fontSize = _theme$type.fontSize,\n fontWeight = _theme$type.fontWeight,\n palette = theme.palette;\n var chosenColor = palette[color] && palette[color].main || palette.text[color];\n return _objectSpread(_objectSpread(_objectSpread({\n fontFamily: fontFamily.base,\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n '-webkit-font-smoothing': 'antialiased',\n color: chosenColor,\n textAlign: align,\n lineHeight: 1.5,\n margin: 0,\n padding: 0\n }, variant && variant !== 'link' && {\n fontSize: fontSize[variant],\n fontWeight: {\n hero1: fontWeight.light,\n hero2: fontWeight.light,\n title: fontWeight.light,\n sectionTitle: fontWeight.light,\n pageTitle: fontWeight.light,\n cardTitle: fontWeight.medium,\n body: fontWeight.regular,\n bodySm: fontWeight.regular\n }[variant]\n }), variant && variant === 'link' && {\n color: palette.link.main,\n textDecoration: 'none',\n border: 'none',\n background: 'none',\n outline: 'none',\n cursor: 'pointer',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n '&:hover, &:focus': {\n textDecoration: 'underline'\n }\n }), variant && (variant === 'hero1' || variant === 'hero2') && {\n fontFamily: fontFamily.headings\n });\n }\n };\n});\nvar _excluded = [\"align\", \"children\", \"color\", \"component\", \"variant\"];\nvar ALIGNMENT = ['center', 'left', 'right'];\nvar VARIANTS = ['body', 'bodySm', 'cardTitle', 'hero1', 'hero2', 'link', 'pageTitle', 'sectionTitle']; // @todo: custom components wanted like ??\n\nvar COMPONENT_LIST = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'p', 'span', 'div', 'article', 'section'];\nvar Typography = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var align = _ref.align,\n children = _ref.children,\n color = _ref.color,\n component = _ref.component,\n variant = _ref.variant,\n rest = _objectWithoutProperties(_ref, _excluded);\n var Component = component;\n var theme = useTheme();\n var _useStyles = useStyles({\n align: align,\n color: color,\n variant: variant,\n theme: theme\n }),\n wrenchTypography = _useStyles.wrenchTypography;\n return /*#__PURE__*/React.createElement(Component, Object.assign({\n className: wrenchTypography\n }, safeRest(rest), {\n ref: ref\n }), children);\n});\nTypography.propTypes = {\n /**\n * Align content\n */\n align: PropTypes.oneOf(ALIGNMENT),\n /**\n * Text content to be displayed\n */\n children: PropTypes.node.isRequired,\n /**\n * Color variants\n */\n color: PropTypes.oneOf(SEMANTIC_COLORS.concat(TYPE_COLORS)),\n /**\n * Must be one of the following components:\n */\n component: PropTypes.oneOf(COMPONENT_LIST),\n /**\n * Our variants of choice are:\n */\n variant: PropTypes.oneOf(VARIANTS)\n};\nTypography.defaultProps = {\n align: 'left',\n component: 'div',\n color: 'dark',\n variant: 'body'\n};\nTypography.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Typography\",\n \"props\": {\n \"align\": {\n \"defaultValue\": {\n \"value\": \"'left'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'center'\",\n \"computed\": false\n }, {\n \"value\": \"'left'\",\n \"computed\": false\n }, {\n \"value\": \"'right'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Align content\"\n },\n \"component\": {\n \"defaultValue\": {\n \"value\": \"'div'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'h1'\",\n \"computed\": false\n }, {\n \"value\": \"'h2'\",\n \"computed\": false\n }, {\n \"value\": \"'h3'\",\n \"computed\": false\n }, {\n \"value\": \"'h4'\",\n \"computed\": false\n }, {\n \"value\": \"'h5'\",\n \"computed\": false\n }, {\n \"value\": \"'h6'\",\n \"computed\": false\n }, {\n \"value\": \"'a'\",\n \"computed\": false\n }, {\n \"value\": \"'p'\",\n \"computed\": false\n }, {\n \"value\": \"'span'\",\n \"computed\": false\n }, {\n \"value\": \"'div'\",\n \"computed\": false\n }, {\n \"value\": \"'article'\",\n \"computed\": false\n }, {\n \"value\": \"'section'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Must be one of the following components:\"\n },\n \"color\": {\n \"defaultValue\": {\n \"value\": \"'dark'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"SEMANTIC_COLORS.concat(TYPE_COLORS)\"\n },\n \"required\": false,\n \"description\": \"Color variants\"\n },\n \"variant\": {\n \"defaultValue\": {\n \"value\": \"'body'\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"enum\",\n \"value\": [{\n \"value\": \"'body'\",\n \"computed\": false\n }, {\n \"value\": \"'bodySm'\",\n \"computed\": false\n }, {\n \"value\": \"'cardTitle'\",\n \"computed\": false\n }, {\n \"value\": \"'hero1'\",\n \"computed\": false\n }, {\n \"value\": \"'hero2'\",\n \"computed\": false\n }, {\n \"value\": \"'link'\",\n \"computed\": false\n }, {\n \"value\": \"'pageTitle'\",\n \"computed\": false\n }, {\n \"value\": \"'sectionTitle'\",\n \"computed\": false\n }]\n },\n \"required\": false,\n \"description\": \"Our variants of choice are:\"\n },\n \"children\": {\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": true,\n \"description\": \"Text content to be displayed\"\n }\n }\n};\nexport { Typography };","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoStyles, uniqueId, getState, safeRest } from '@wds/utils';\nimport { Typography } from '@wds/typography';\nimport { useTheme } from 'react-jss';\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n type = theme.type,\n spacing = theme.spacing,\n motion = theme.motion,\n radius = theme.radius;\n var radio = {\n bgColorOn: palette.primary.main,\n iconColorOn: palette.primary.contrast\n };\n var bounceFrames = {\n '@keyframes bounce': {\n '0%': {\n opacity: 0,\n transform: 'scale(0.6)',\n animationTimingFunction: 'cubic-bezier(0, 0, .1, 1)'\n },\n '10%': {\n opacity: 1\n },\n '33%': {\n opacity: 1,\n transform: 'scale(1.4)',\n animationTimingFunction: 'cubic-bezier(.2, 0, 0, 1)'\n },\n '100%': {\n opacity: 1,\n transform: 'scale(1)'\n }\n }\n };\n var scaleDownFrames = {\n '@keyframes scaleDown': {\n from: {\n opacity: 1,\n transform: 'scale(1)',\n animationTimingFunction: 'cubic-bezier(1, 0, 1, 1)'\n },\n '75%': {\n opacity: 1\n },\n '100%': {\n opacity: 0,\n transform: 'scale(0.4)'\n }\n }\n };\n return _objectSpread(_objectSpread(_objectSpread({}, bounceFrames), scaleDownFrames), {}, {\n wrenchRadio: function wrenchRadio() {\n return {\n position: 'relative',\n display: 'inline-block',\n minHeight: spacing[5],\n minWidth: spacing[5],\n whiteSpace: 'nowrap'\n };\n },\n wrenchRadioFaux: function wrenchRadioFaux() {\n return {\n content: '\"\"',\n display: 'inline-block',\n boxSizing: 'border-box',\n height: spacing[5],\n width: spacing[5],\n fontSize: type.fontSize.bodySm,\n border: \"1px solid \".concat(palette.border.main),\n background: palette.background.light,\n borderRadius: radius.large,\n transition: \"all 50ms \".concat(motion.curve.exit, \" 100ms\"),\n verticalAlign: 'top',\n textAlign: 'left',\n '&:after': {\n content: '\"\"',\n opacity: 0,\n fontFamily: type.fontFamily.icon,\n color: radio.iconColorOn,\n boxSizing: 'border-box',\n width: spacing[2],\n height: spacing[2],\n borderRadius: radius.large,\n textAlign: 'center',\n position: 'absolute',\n animation: \"$scaleDown 150ms forwards\",\n background: radio.iconColorOn,\n top: '50%',\n left: '50%',\n marginLeft: -spacing[1],\n marginTop: -spacing[1]\n }\n };\n },\n wrenchRadioLabel: function wrenchRadioLabel() {\n return {\n padding: [0, 0, 0, spacing[2]],\n whiteSpace: 'normal',\n display: 'inline-block',\n wordBreak: 'break-word'\n };\n },\n wrenchRadioNative: function wrenchRadioNative() {\n return {\n position: 'absolute',\n cursor: 'inherit',\n opacity: 0,\n width: '100%',\n height: '100%',\n zIndex: 2,\n left: 0,\n '&:focus + $wrenchRadioFaux, &:hover + $wrenchRadioFaux': {\n borderColor: palette.border.hover,\n transform: 'scale(1.1)',\n transition: \"transform 200ms \".concat(motion.curve.ease, \", border-color 75ms linear 50ms\")\n },\n '&:focus:checked + $wrenchRadioFaux': {\n borderColor: '#fff !important',\n boxShadow: \"0 0 0 1px \".concat(palette.primary.main, \" !important\")\n },\n '&:active + $wrenchRadioFaux': {\n transform: 'scale(0.7)',\n transition: \"transform 100ms \".concat(motion.curve.bounceStart)\n },\n '&:checked + $wrenchRadioFaux': {\n borderColor: radio.bgColorOn,\n background: radio.bgColorOn,\n transform: 'scale(1)',\n transition: \"transform 200ms \".concat(motion.curve.bounceEnd),\n '&:after': {\n animation: \"$bounce 200ms 50ms forwards\"\n }\n },\n '&:disabled + $wrenchRadioFaux, &:disabled ~ $wrenchRadioLabel': {\n opacity: '0.5',\n transform: 'scale(1)'\n }\n };\n }\n });\n});\nvar _excluded = [\"ariaLabel\", \"checked\", \"defaultChecked\", \"disabled\", \"id\", \"innerRef\", \"label\", \"name\", \"onBlur\", \"onChange\", \"value\"];\nvar Radio = function Radio(_ref) {\n var ariaLabel = _ref.ariaLabel,\n checked = _ref.checked,\n defaultChecked = _ref.defaultChecked,\n disabled = _ref.disabled,\n id = _ref.id,\n innerRef = _ref.innerRef,\n label = _ref.label,\n name = _ref.name,\n onBlur = _ref.onBlur,\n onChange = _ref.onChange,\n value = _ref.value,\n rest = _objectWithoutProperties(_ref, _excluded);\n var _useState = useState(!!defaultChecked),\n _useState2 = _slicedToArray(_useState, 2),\n isChecked = _useState2[0],\n setChecked = _useState2[1];\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isFocused = _useState4[0],\n setFocused = _useState4[1];\n var inputID = id || uniqueId('input');\n var checkedState = getState({\n isChecked: isChecked\n }, typeof checked !== 'undefined' && {\n isChecked: checked\n }).isChecked;\n var theme = useTheme();\n var classes = useStyles({\n theme: theme\n });\n var handleBlur = function handleBlur(e) {\n setFocused(!isFocused);\n e.persist();\n if (onBlur) onBlur(e);\n };\n var handleFocus = function handleFocus(e) {\n setFocused(!isFocused);\n e.persist();\n };\n var handleChange = function handleChange(e) {\n setChecked(!checkedState);\n e.persist();\n if (onChange) onChange(e);\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrenchRadio\n }, /*#__PURE__*/React.createElement(\"input\", Object.assign({\n \"aria-label\": ariaLabel,\n \"aria-checked\": checkedState,\n checked: checked && onChange && checkedState,\n defaultChecked: !!defaultChecked || (checked && !onChange ? checkedState : undefined),\n className: classes.wrenchRadioNative,\n disabled: disabled,\n id: inputID,\n name: name,\n onBlur: handleBlur,\n onFocus: handleFocus,\n onChange: handleChange,\n tabIndex: disabled ? -1 : 0,\n type: \"radio\",\n value: value,\n ref: innerRef\n }, safeRest(rest))), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrenchRadioFaux,\n \"aria-hidden\": \"true\"\n }), label ? /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrenchRadioLabel\n }, /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: inputID\n }, /*#__PURE__*/React.createElement(Typography, {\n variant: \"body\",\n component: \"span\"\n }, label))) : null);\n};\nRadio.displayName = \"Radio\";\nRadio.propTypes = {\n /**\n * Aria Label for component\n */\n ariaLabel: PropTypes.string,\n /**\n * if true, radio is checked\n */\n checked: PropTypes.bool,\n /**\n * Default state value for radio\n */\n defaultChecked: PropTypes.bool,\n /**\n * If true, radio will be disabled\n */\n disabled: PropTypes.bool,\n /**\n * identifier for input component\n */\n // eslint-disable-next-line consistent-return\n id: function id(props, propName) {\n if (typeof props[propName] !== 'string' && typeof props.label !== 'string' && typeof props.ariaLabel !== 'string') {\n return new Error('Accessibility Error: If `label` or `ariaLabel` is not provided the `id` prop is required.');\n }\n },\n /**\n * Label for component, aria-label is not required to be defined if this is\n */\n label: PropTypes.node,\n /**\n * Name passed to input component\n */\n name: PropTypes.string,\n /**\n * Callback fired when focus leaves component\n * function(event: object) => void\n */\n onBlur: PropTypes.func,\n /**\n * Callback fired when state is changed\n * function(event: object) => void\n */\n onChange: PropTypes.func,\n /**\n * Value of component\n */\n value: PropTypes.string,\n /**\n * Pass ref to the underlying input component\n */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string])\n};\nRadio.defaultProps = {\n ariaLabel: undefined,\n checked: undefined,\n defaultChecked: false,\n disabled: false,\n id: undefined,\n label: undefined,\n name: undefined,\n onBlur: undefined,\n onChange: undefined,\n value: undefined,\n innerRef: undefined\n};\nRadio.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Radio\",\n \"props\": {\n \"ariaLabel\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"Aria Label for component\"\n },\n \"checked\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"if true, radio is checked\"\n },\n \"defaultChecked\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"Default state value for radio\"\n },\n \"disabled\": {\n \"defaultValue\": {\n \"value\": \"false\",\n \"computed\": false\n },\n \"type\": {\n \"name\": \"bool\"\n },\n \"required\": false,\n \"description\": \"If true, radio will be disabled\"\n },\n \"id\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"custom\",\n \"raw\": \"(props, propName) => {\\n if (\\n typeof props[propName] !== 'string' &&\\n typeof props.label !== 'string' &&\\n typeof props.ariaLabel !== 'string'\\n ) {\\n return new Error(\\n 'Accessibility Error: If `label` or `ariaLabel` is not provided the `id` prop is required.'\\n );\\n }\\n}\"\n },\n \"required\": false,\n \"description\": \"identifier for input component\"\n },\n \"label\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": false,\n \"description\": \"Label for component, aria-label is not required to be defined if this is\"\n },\n \"name\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"Name passed to input component\"\n },\n \"onBlur\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"func\"\n },\n \"required\": false,\n \"description\": \"Callback fired when focus leaves component\\nfunction(event: object) => void\"\n },\n \"onChange\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"func\"\n },\n \"required\": false,\n \"description\": \"Callback fired when state is changed\\nfunction(event: object) => void\"\n },\n \"value\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"string\"\n },\n \"required\": false,\n \"description\": \"Value of component\"\n },\n \"innerRef\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"union\",\n \"value\": [{\n \"name\": \"func\"\n }, {\n \"name\": \"object\"\n }, {\n \"name\": \"string\"\n }]\n },\n \"required\": false,\n \"description\": \"Pass ref to the underlying input component\"\n }\n }\n};\nexport { Radio };","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { safeRest } from '@wds/utils';\nimport { useTheme } from 'react-jss';\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\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 return target;\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\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/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function (condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\nvar browser = invariant;\nvar camel2hyphen$1 = function (str) {\n return str.replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n }).toLowerCase();\n};\nvar camel2hyphen_1 = camel2hyphen$1;\nvar camel2hyphen = camel2hyphen_1;\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length - 1) {\n mq += ' and ';\n }\n });\n return mq;\n};\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length - 1) {\n mq += ', ';\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\nvar json2mq_1 = json2mq;\nvar MediaQueryListener = /*#__PURE__*/\nfunction () {\n function MediaQueryListener(targetWindow, query, listener) {\n var _this = this;\n this.nativeMediaQueryList = targetWindow.matchMedia(query);\n this.active = true; // Safari doesn't clear up listener with removeListener\n // when the listener is already waiting in the event queue.\n // Having an active flag to make sure the listener is not called\n // after we removeListener.\n\n this.cancellableListener = function () {\n _this.matches = _this.nativeMediaQueryList.matches;\n if (_this.active) {\n listener.apply(void 0, arguments);\n }\n };\n this.nativeMediaQueryList.addListener(this.cancellableListener);\n this.matches = this.nativeMediaQueryList.matches;\n }\n var _proto = MediaQueryListener.prototype;\n _proto.cancel = function cancel() {\n this.active = false;\n this.nativeMediaQueryList.removeListener(this.cancellableListener);\n };\n return MediaQueryListener;\n}();\nvar queryType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object.isRequired)]);\n/**\n * Conditionally renders based on whether or not a media query matches.\n */\n\nvar Media = /*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Media, _React$Component);\n function Media(props) {\n var _this;\n _this = _React$Component.call(this, props) || this;\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"queries\", []);\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getMatches\", function () {\n var result = _this.queries.reduce(function (acc, _ref) {\n var _extends2;\n var name = _ref.name,\n mqListener = _ref.mqListener;\n return _extends({}, acc, (_extends2 = {}, _extends2[name] = mqListener.matches, _extends2));\n }, {}); // return result;\n\n return unwrapSingleQuery(result);\n });\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"updateMatches\", function () {\n var newMatches = _this.getMatches();\n _this.setState(function () {\n return {\n matches: newMatches\n };\n }, _this.onChange);\n });\n !(!(!props.query && !props.queries) || props.query && props.queries) ? process.env.NODE_ENV !== \"production\" ? browser(false, ' must be supplied with either \"query\" or \"queries\"') : browser(false) : void 0;\n !(props.defaultMatches === undefined || !props.query || typeof props.defaultMatches === \"boolean\") ? process.env.NODE_ENV !== \"production\" ? browser(false, \" when query is set, defaultMatches must be a boolean, received \" + typeof props.defaultMatches) : browser(false) : void 0;\n !(props.defaultMatches === undefined || !props.queries || typeof props.defaultMatches === \"object\") ? process.env.NODE_ENV !== \"production\" ? browser(false, \" when queries is set, defaultMatches must be a object of booleans, received \" + typeof props.defaultMatches) : browser(false) : void 0;\n if (typeof window !== \"object\") {\n // In case we're rendering on the server, apply the default matches\n var matches;\n if (props.defaultMatches !== undefined) {\n matches = props.defaultMatches;\n } else if (props.query) {\n matches = true;\n }\n /* if (props.queries) */else {\n matches = Object.keys(_this.props.queries).reduce(function (acc, key) {\n var _extends3;\n return _extends({}, acc, (_extends3 = {}, _extends3[key] = true, _extends3));\n }, {});\n }\n _this.state = {\n matches: matches\n };\n return _assertThisInitialized(_this);\n }\n _this.initialize(); // Instead of calling this.updateMatches, we manually set the initial state to prevent\n // calling setState, which could trigger an unnecessary second render\n\n _this.state = {\n matches: _this.props.defaultMatches !== undefined ? _this.props.defaultMatches : _this.getMatches()\n };\n _this.onChange();\n return _this;\n }\n var _proto = Media.prototype;\n _proto.initialize = function initialize() {\n var _this2 = this;\n var targetWindow = this.props.targetWindow || window;\n !(typeof targetWindow.matchMedia === \"function\") ? process.env.NODE_ENV !== \"production\" ? browser(false, \" does not support `matchMedia`.\") : browser(false) : void 0;\n var queries = this.props.queries || wrapInQueryObject(this.props.query);\n this.queries = Object.keys(queries).map(function (name) {\n var query = queries[name];\n var qs = typeof query !== \"string\" ? json2mq_1(query) : query;\n var mqListener = new MediaQueryListener(targetWindow, qs, _this2.updateMatches);\n return {\n name: name,\n mqListener: mqListener\n };\n });\n };\n _proto.componentDidMount = function componentDidMount() {\n this.initialize(); // If props.defaultMatches has been set, ensure we trigger a two-pass render.\n // This is useful for SSR with mismatching defaultMatches vs actual matches from window.matchMedia\n // Details: https://github.com/ReactTraining/react-media/issues/81\n\n if (this.props.defaultMatches !== undefined) {\n this.updateMatches();\n }\n };\n _proto.onChange = function onChange() {\n var onChange = this.props.onChange;\n if (onChange) {\n onChange(this.state.matches);\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.queries.forEach(function (_ref2) {\n var mqListener = _ref2.mqListener;\n return mqListener.cancel();\n });\n };\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n render = _this$props.render;\n var matches = this.state.matches;\n var isAnyMatches = typeof matches === \"object\" ? Object.keys(matches).some(function (key) {\n return matches[key];\n }) : matches;\n return render ? isAnyMatches ? render(matches) : null : children ? typeof children === \"function\" ? children(matches) : !Array.isArray(children) || children.length // Preact defaults to empty children array\n ? isAnyMatches ?\n // We have to check whether child is a composite component or not to decide should we\n // provide `matches` as a prop or not\n React.Children.only(children) && typeof React.Children.only(children).type === \"string\" ? React.Children.only(children) : React.cloneElement(React.Children.only(children), {\n matches: matches\n }) : null : null : null;\n };\n return Media;\n}(React.Component);\n/**\n * Wraps a single query in an object. This is used to provide backward compatibility with\n * the old `query` prop (as opposed to `queries`). If only a single query is passed, the object\n * will be unpacked down the line, but this allows our internals to assume an object of queries\n * at all times.\n */\n\n_defineProperty(Media, \"propTypes\", {\n defaultMatches: PropTypes.oneOfType([PropTypes.bool, PropTypes.objectOf(PropTypes.bool)]),\n query: queryType,\n queries: PropTypes.objectOf(queryType),\n render: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n targetWindow: PropTypes.object,\n onChange: PropTypes.func\n});\nfunction wrapInQueryObject(query) {\n return {\n __DEFAULT__: query\n };\n}\n/**\n * Unwraps an object of queries, if it was originally passed as a single query.\n */\n\nfunction unwrapSingleQuery(queryObject) {\n var queryNames = Object.keys(queryObject);\n if (queryNames.length === 1 && queryNames[0] === \"__DEFAULT__\") {\n return queryObject.__DEFAULT__;\n }\n return queryObject;\n}\nvar _excluded = [\"children\", \"minWidth\", \"maxWidth\"];\nvar breakpointOptions = Object.freeze(['sm', 'md', 'lg', 'xl']);\nvar Responsive = function Responsive(_ref) {\n var children = _ref.children,\n minWidth = _ref.minWidth,\n maxWidth = _ref.maxWidth,\n rest = _objectWithoutProperties(_ref, _excluded);\n var _useTheme = useTheme(),\n breakpoints = _useTheme.breakpoints;\n var query = \"(min-width: \".concat(breakpoints[minWidth], \"px)\");\n var max = \"\".concat(breakpoints[maxWidth] - 1, \"px\");\n if (minWidth && maxWidth) {\n query = \"(min-width: \".concat(breakpoints[minWidth], \"px) and (max-width: \").concat(max, \")\");\n } else if (maxWidth) {\n query = \"(max-width: \".concat(max, \")\");\n }\n return /*#__PURE__*/React.createElement(Media, Object.assign({\n query: query\n }, safeRest(rest)), children);\n};\nResponsive.displayName = \"Responsive\";\nResponsive.propTypes = {\n children: PropTypes.node.isRequired,\n /**\n * Min Width Breakpoint\n */\n minWidth: PropTypes.oneOf(breakpointOptions),\n /**\n * Max Width Breakpoint\n */\n maxWidth: PropTypes.oneOf(breakpointOptions)\n};\nResponsive.defaultProps = {\n minWidth: undefined,\n maxWidth: undefined\n};\nResponsive.__docgenInfo = {\n \"description\": \"\",\n \"methods\": [],\n \"displayName\": \"Responsive\",\n \"props\": {\n \"minWidth\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"breakpointOptions\"\n },\n \"required\": false,\n \"description\": \"Min Width Breakpoint\"\n },\n \"maxWidth\": {\n \"defaultValue\": {\n \"value\": \"undefined\",\n \"computed\": true\n },\n \"type\": {\n \"name\": \"enum\",\n \"computed\": true,\n \"value\": \"breakpointOptions\"\n },\n \"required\": false,\n \"description\": \"Max Width Breakpoint\"\n },\n \"children\": {\n \"type\": {\n \"name\": \"node\"\n },\n \"required\": true,\n \"description\": \"\"\n }\n }\n};\nexport { Responsive };","import { createMemoStyles, withSpacing, clsx, safeRest } from '@wds/utils';\nimport React from 'react';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (_a) {\n var spacing = _a.spacing,\n border = _a.border,\n radius = _a.radius,\n shadow = _a.shadow,\n palette = _a.palette,\n type = _a.type;\n var section = {\n borderRadius: radius.small,\n boxShadow: shadow.none,\n border: border.muted,\n padding: spacing[5],\n bgColor: palette.background.light\n };\n return {\n wrenchSection: function () {\n return {\n fontFamily: type.fontFamily.base,\n fontSize: type.fontSize.body,\n '-webkit-font-smoothing': 'antialiased',\n backgroundColor: section.bgColor,\n border: section.border,\n borderRadius: section.borderRadius,\n boxShadow: section.boxShadow\n };\n },\n wrenchSectionHeader: function (_a) {\n var noRule = _a.noRule;\n return __assign(__assign({}, noRule ? {\n borderBottom: 'none'\n } : {\n borderBottom: border.muted\n }), {\n boxSizing: 'border-box',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n margin: '0',\n padding: [spacing[5]],\n minHeight: '72px',\n fontSize: type.fontSize.cardTitle,\n fontWeight: type.fontWeight.regular\n });\n },\n wrenchSectionBody: function () {\n return {\n padding: section.padding\n };\n },\n wrenchSectionAddon: function () {\n return {\n display: 'inline-flex',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n minHeight: '40px',\n margin: [0, 0, 'auto', spacing[4]],\n float: 'right'\n };\n }\n };\n});\nvar Section = function (_a) {\n var children = _a.children,\n _b = _a.title,\n title = _b === void 0 ? undefined : _b,\n _c = _a.padding,\n padding = _c === void 0 ? true : _c,\n _d = _a.addOn,\n addOn = _d === void 0 ? undefined : _d,\n _e = _a.noRule,\n noRule = _e === void 0 ? false : _e,\n _f = _a.spacingClass,\n spacingClass = _f === void 0 ? undefined : _f,\n rest = __rest(_a, [\"children\", \"title\", \"padding\", \"addOn\", \"noRule\", \"spacingClass\"]);\n var _g = useStyles({\n noRule: noRule\n }),\n wrenchSection = _g.wrenchSection,\n wrenchSectionBody = _g.wrenchSectionBody,\n wrenchSectionHeader = _g.wrenchSectionHeader,\n wrenchSectionAddon = _g.wrenchSectionAddon;\n var sectionAddon = React.createElement(\"div\", {\n className: wrenchSectionAddon\n }, addOn);\n var hadAddOn = !title && addOn && sectionAddon;\n var wrenchSectionWrapper = clsx(wrenchSection, spacingClass);\n return React.createElement(\"div\", __assign({\n className: wrenchSectionWrapper\n }, safeRest(rest)), title && React.createElement(\"header\", {\n className: wrenchSectionHeader\n }, title, addOn && sectionAddon), padding ? React.createElement(\"div\", {\n className: wrenchSectionBody\n }, hadAddOn, children) : React.createElement(React.Fragment, null, hadAddOn, children));\n};\nvar SectionWithSpacing = withSpacing(Section);\nexport { SectionWithSpacing as Section };","import React from 'react';\nimport { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent', 'primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.colorType,\n colorType = _d === void 0 ? 'semantic' : _d,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) c = color[semanticKey];else {\n // Check Semantic\n if (cType === 'semantic') {\n if (isSemanticColor(color)) c = palette[color][semanticKey];else cType = 'link';\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) c = palette[color][semanticKey];else cType = 'text';\n }\n if (cType === 'text') {\n if (isTypeColor(color)) c = palette[cType][color];else cType = 'background';\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) c = palette[cType][color];else cType = 'border';\n }\n if (cType === 'border') {\n if (isBorderColor(color)) c = palette[cType][color];else cType = 'data';\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) c = palette[cType][getDataColor(color)];\n if (isDataColor(color)) c = palette[cType][color];\n }\n }\n return c;\n};\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: 'transparent',\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n error: {\n main: '#F05B24',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: '#E5F9F1',\n success: '#E5F9F1',\n warning: '#FDEBE5',\n error: '#F8ECF2',\n info: '#E6F9FA',\n upgrade: '#FEF2CC',\n muted: '#EDEEEE'\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: 'transparent',\n primary: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF'\n },\n info: {\n main: '#2cb2f1',\n contrast: '#000000'\n },\n upgrade: {\n main: '#ffe11b',\n contrast: '#404040'\n },\n muted: {\n main: '#d0d0d0',\n contrast: '#404040'\n },\n link: {\n main: '#0a7cc1',\n contrast: '#FFFFFF'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#efefef',\n link: '#0a7cc1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#efefef',\n primary: '#E5F3E9',\n success: '#E5F3E9',\n warning: '#FFEEC0',\n error: '#FBEAEA',\n info: '#DCF0FF',\n upgrade: '#FFF9D1',\n muted: '#EFEFEF'\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#008323',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n return React.createElement(React.Fragment, null);\n};\nexport { BACKGROUND_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, getColor, getDataColor, isBackgroundColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import React, { useMemo } from 'react';\nimport { createMemoStyles, deprecate, uniqueId, safeRest } from '@wds/utils';\nimport { Label } from '@wds/label';\nimport { getColor } from '@wds/styles';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles = createMemoStyles(function (theme) {\n var palette = theme.palette,\n spacing = theme.spacing,\n radius = theme.radius,\n shadow = theme.shadow,\n type = theme.type;\n var textarea = {\n fontSize: type.fontSize.body,\n paddingSm: spacing[2],\n paddingMd: spacing[3],\n paddingLg: spacing[4],\n borderRadius: radius.small\n };\n return {\n wrenchTextarea: function (_a) {\n var color = _a.color,\n size = _a.size,\n stretched = _a.stretched,\n disabled = _a.disabled,\n resizable = _a.resizable;\n var padding = function (s) {\n return {\n sm: textarea.paddingSm,\n md: textarea.paddingMd,\n lg: textarea.paddingLg\n }[s !== null && s !== void 0 ? s : 'md'];\n };\n return {\n width: stretched ? '100%' : null,\n padding: padding(size),\n boxSizing: 'border-box',\n margin: 0,\n border: \"solid 1px \".concat(getColor(palette, color, {\n fallback: palette.border.main\n })),\n borderRadius: textarea.borderRadius,\n color: palette.text.dark,\n fontFamily: type.fontFamily.base,\n outline: 'none',\n '-webkit-appearance': 'none',\n '-webkit-font-smoothing': 'antialiased',\n '-moz-appearance': 'none',\n '-ms-appearance': 'none',\n appearance: 'none',\n boxShadow: 'none',\n backgroundColor: palette.background.light,\n fontSize: textarea.fontSize,\n pointerEvents: disabled ? 'none' : 'auto',\n opacity: disabled ? '0.4' : '1',\n resize: resizable ? null : 'none',\n '&:hover': {\n borderColor: getColor(palette, color, {\n fallback: palette.border.hover\n }),\n boxShadow: shadow.sky\n },\n '&:focus': {\n borderColor: getColor(palette, color, {\n fallback: palette.border.active\n })\n }\n };\n }\n };\n});\nvar Textarea = function (_a) {\n var _b = _a.color,\n color = _b === void 0 ? undefined : _b,\n _c = _a.label,\n label = _c === void 0 ? undefined : _c,\n _d = _a.id,\n id = _d === void 0 ? undefined : _d;\n _a.ariaLabel;\n var _f = _a.stretched,\n stretched = _f === void 0 ? false : _f,\n _g = _a.size,\n size = _g === void 0 ? 'md' : _g,\n _h = _a.disabled,\n disabled = _h === void 0 ? false : _h,\n _j = _a.resizable,\n resizable = _j === void 0 ? true : _j,\n rest = __rest(_a, [\"color\", \"label\", \"id\", \"ariaLabel\", \"stretched\", \"size\", \"disabled\", \"resizable\"]);\n deprecate({\n color: color\n }, 'color', 'warning', 'Textarea');\n var inputID = useMemo(function () {\n return id !== null && id !== void 0 ? id : uniqueId('textarea');\n }, [id]);\n var wrenchTextarea = useStyles({\n color: color,\n size: size,\n stretched: stretched,\n disabled: disabled,\n resizable: resizable\n }).wrenchTextarea;\n return React.createElement(React.Fragment, null, label && React.createElement(Label, {\n htmlFor: inputID\n }, label), React.createElement(\"textarea\", __assign({\n className: wrenchTextarea,\n id: inputID\n }, safeRest(rest))));\n};\nexport { Textarea };","import React, { useRef, useState, useEffect } from 'react';\nimport { createMemoStyles, defaultFonts, safeRest } from '@wds/utils';\nimport { IconInfoFilled, IconWarningFilled, IconError, IconCheck, IconLock } from '@wds/icons';\nimport { Slide } from '@wds/motion';\nimport { CloseButton } from '@wds/internal-components';\nimport PropTypes from 'prop-types';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar useStyles$3 = createMemoStyles(function (theme) {\n var palette = theme.palette,\n type = theme.type;\n var toast = {\n typeColor: palette.text.light,\n titleFontSize: type.fontSize.body\n };\n var toastStyles = {\n wrenchToastTitle: function () {\n return {\n color: toast.typeColor,\n fontSize: toast.titleFontSize\n // marginLeft: color && spacing[6],\n };\n }\n };\n\n return toastStyles;\n});\nvar ToastTitle = function (_a) {\n var children = _a.children,\n rest = __rest(_a, [\"children\"]);\n var wrenchToastTitle = useStyles$3().wrenchToastTitle;\n return React.createElement(\"div\", __assign({\n className: wrenchToastTitle\n }, rest), children);\n};\nToastTitle.propTypes = {\n children: PropTypes.node.isRequired\n};\nvar useStyles$2 = createMemoStyles(function (theme) {\n var palette = theme.palette,\n type = theme.type,\n spacing = theme.spacing;\n var toast = {\n typeColor: palette.text.light,\n bodyTypeSize: type.fontSize.bodySm,\n linkColor: palette.link.contrast\n };\n var toastStyles = {\n wrenchToastBody: function () {\n return {\n color: toast.typeColor,\n fontSize: toast.bodyTypeSize,\n marginTop: spacing[4],\n // marginLeft: color && spacing[6],\n '& > a': {\n color: toast.linkColor,\n textDecoration: 'underline'\n }\n };\n }\n };\n return toastStyles;\n});\nvar ToastBody = function (_a) {\n var children = _a.children,\n rest = __rest(_a, [\"children\"]);\n var wrenchToastBody = useStyles$2().wrenchToastBody;\n return React.createElement(\"div\", __assign({\n className: wrenchToastBody\n }, rest), children);\n};\nToastBody.propTypes = {\n children: PropTypes.node.isRequired\n};\nvar useStyles$1 = createMemoStyles(function (theme) {\n var spacing = theme.spacing;\n var toastStyles = {\n wrenchToastFooter: function () {\n return {\n marginTop: spacing[4],\n // marginLeft: color && spacing[6],\n '& > *': {\n marginRight: spacing[3]\n }\n };\n }\n };\n return toastStyles;\n});\nvar ToastFooter = function (_a) {\n var children = _a.children,\n rest = __rest(_a, [\"children\"]);\n var wrenchToastFooter = useStyles$1().wrenchToastFooter;\n return React.createElement(\"div\", __assign({\n className: wrenchToastFooter\n }, rest), children);\n};\nToastFooter.propTypes = {\n children: PropTypes.node.isRequired\n};\nvar useStyles = createMemoStyles(function (theme) {\n var _a;\n var palette = theme.palette,\n radius = theme.radius,\n shadow = theme.shadow,\n type = theme.type,\n spacing = theme.spacing,\n iconSize = theme.iconSize,\n breakpoints = theme.breakpoints;\n var toast = {\n padding: spacing[5],\n bgColor: palette.background.dark,\n typeColor: palette.text.light,\n borderRadius: radius.small,\n width: 350,\n titleFontSize: type.fontSize.body,\n bodyTypeSize: type.fontSize.bodySm,\n linkColor: palette.link.contrast,\n boxShadow: shadow.none\n };\n var toastStyles = {\n wrenchToastContainer: (_a = {\n position: 'fixed',\n right: spacing[3],\n bottom: spacing[3],\n left: spacing[3],\n zIndex: function (_a) {\n var elevation = _a.elevation;\n return elevation !== null && elevation !== void 0 ? elevation : theme.elevation.space;\n }\n }, _a[\"@media (min-width:\".concat(breakpoints.sm, \"px)\")] = {\n right: spacing[5],\n bottom: spacing[5],\n width: toast.width,\n left: 'auto'\n }, _a),\n wrenchToast: function () {\n return __assign(__assign({}, defaultFonts(theme)), {\n boxSizing: 'border-box',\n margin: 0,\n padding: toast.padding,\n backgroundColor: toast.bgColor,\n color: toast.typeColor,\n borderRadius: toast.borderRadius,\n boxShadow: toast.boxShadow\n });\n },\n wrenchToastIcon: function () {\n return {\n fontSize: iconSize.md,\n marginRight: spacing[3],\n float: 'left',\n display: 'inline-flex'\n };\n },\n wrenchToastContent: function () {\n return {\n display: 'inline-flex'\n };\n }\n };\n return toastStyles;\n});\nvar TIMEOUT_DELAY = 3000;\nvar Toast = function (_a) {\n var children = _a.children,\n _b = _a.color,\n color = _b === void 0 ? undefined : _b,\n _c = _a.onClose,\n onClose = _c === void 0 ? undefined : _c,\n _d = _a.autoClose,\n autoClose = _d === void 0 ? true : _d,\n _e = _a.dismissible,\n dismissible = _e === void 0 ? false : _e,\n _f = _a.show,\n show = _f === void 0 ? true : _f,\n _g = _a.elevation,\n elevation = _g === void 0 ? undefined : _g,\n _h = _a.ariaLabel,\n ariaLabel = _h === void 0 ? 'Close Toast' : _h,\n rest = __rest(_a, [\"children\", \"color\", \"onClose\", \"autoClose\", \"dismissible\", \"show\", \"elevation\", \"ariaLabel\"]);\n var timeoutRef = useRef({\n timeout: undefined\n });\n var _j = useState(show),\n localShow = _j[0],\n setLocalShow = _j[1];\n var _k = useStyles({\n color: color,\n elevation: elevation\n }),\n wrenchToastContainer = _k.wrenchToastContainer,\n wrenchToast = _k.wrenchToast,\n wrenchToastIcon = _k.wrenchToastIcon,\n wrenchToastContent = _k.wrenchToastContent;\n var ToastIcon = color ? {\n info: IconInfoFilled,\n warning: IconWarningFilled,\n error: IconError,\n success: IconCheck,\n upgrade: IconLock\n }[color] : IconInfoFilled;\n var handleClose = function () {\n if (timeoutRef.current.timeout) {\n clearTimeout(timeoutRef.current.timeout);\n }\n setLocalShow(false);\n if (onClose) {\n onClose();\n }\n };\n var handleMouseEnter = function () {\n if (autoClose && timeoutRef.current.timeout) {\n clearTimeout(timeoutRef.current.timeout);\n }\n };\n var handleMouseExit = function () {\n if (autoClose) {\n timeoutRef.current.timeout = setTimeout(function () {\n return handleClose();\n }, TIMEOUT_DELAY);\n }\n };\n useEffect(function () {\n if (autoClose && show) {\n timeoutRef.current.timeout = setTimeout(function () {\n return handleClose();\n }, TIMEOUT_DELAY);\n } else if (timeoutRef.current.timeout) {\n clearTimeout(timeoutRef.current.timeout);\n }\n setLocalShow(show);\n var timeEffectRef = timeoutRef.current.timeout;\n return function () {\n if (timeEffectRef) {\n clearTimeout(timeEffectRef);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [show]);\n return React.createElement(\"div\", {\n className: wrenchToastContainer\n }, React.createElement(Slide, {\n in: localShow,\n distance: \"far\"\n }, React.createElement(\"div\", null, React.createElement(\"div\", __assign({\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseExit,\n className: wrenchToast,\n role: \"alert\"\n }, safeRest(rest)), dismissible && React.createElement(CloseButton, {\n onClick: handleClose,\n label: ariaLabel,\n variant: \"light\"\n }), React.createElement(\"div\", {\n className: wrenchToastContent\n }, color && React.createElement(\"div\", {\n className: wrenchToastIcon\n }, React.createElement(ToastIcon, {\n color: color,\n onDark: true,\n title: \"\".concat(color, \" icon.\")\n })), React.createElement(\"div\", null, children))))));\n};\nToast.Title = ToastTitle;\nToast.Body = ToastBody;\nToast.Footer = ToastFooter;\nvar TOAST_COLORS = ['success', 'warning', 'error', 'info', 'upgrade'];\nexport { TOAST_COLORS, Toast };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import { createMemoStyles } from '@wds/utils';\n\n/// ///////////////////////// GENERIC START ////////////////////////////\nvar SIZES = ['xs', 'sm', 'md', 'lg', 'xl'];\n/// ///////////////////////// PALETTE START ////////////////////////////\nvar SEMANTIC_COLORS = ['primary', 'secondary', 'success', 'warning', 'upgrade', 'error', 'info', 'muted'];\nvar LINK_COLORS = ['link'];\nvar TYPE_COLORS = ['dark', 'light', 'darkMuted', 'lightMuted', 'link'];\nvar BACKGROUND_COLORS = ['main', 'light', 'dark', 'overlay', 'accent'];\nvar BACKGROUND_SEMANTIC_COLORS = ['primary', 'success', 'warning', 'error', 'info', 'upgrade', 'muted'];\nvar BORDER_COLORS = ['main', 'active', 'hover', 'muted'];\nvar DATA_COLORS = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];\n/// ///////////////////////// FONT TYPE START ////////////////////////////\nvar FONT_FAMILY_KEYS = ['base', 'headings', 'icon'];\nvar FONT_SIZES = ['caption', 'bodySm', 'body', 'cardTitle', 'sectionTitleSm', 'sectionTitle', 'pageTitle', 'hero2', 'hero1'];\nvar FONT_WEIGHTS = ['light', 'regular', 'medium'];\nvar FONT_ASSETS = ['base', 'path', 'name', 'versions'];\n/// ///////////////////////// SPACING START ////////////////////////////\nvar SPACING_KEYS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\nvar BORDER_KEYS = ['main', 'hover', 'active', 'muted', 'dark', 'light'];\n/// ///////////////////////// RADIUS START ////////////////////////////\nvar RADIUS_KEYS = ['zero', 'small', 'medium', 'large'];\n/// ///////////////////////// SHADOW START ////////////////////////////\nvar SHADOW_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// ELEVATION START ////////////////////////////\nvar ELEVATION_KEYS = ['none', 'sky', 'space'];\n/// ///////////////////////// DATA VIS ////////////////////////////\nvar dataTransform = function (arr) {\n return Object.freeze(arr.map(function (x) {\n return \"data-\".concat(x);\n }));\n};\nvar DATA_VIS_COLORS = dataTransform(DATA_COLORS);\nvar getDataColor = function (s) {\n return s.split('-')[1];\n};\n/// ///////////////////////// HELPERS ////////////////////////////\nvar readOnlyIncludes = function (arr, el) {\n return arr.includes(el);\n};\n/// ///////////////////////// TYPE GUARDS ////////////////////////////\nvar isColorShape = function (c) {\n return typeof c === 'object' && 'main' in c;\n};\nvar isSemanticColor = function (c) {\n return readOnlyIncludes(SEMANTIC_COLORS, c);\n};\nvar isLinkColor = function (c) {\n return c === 'link';\n};\nvar isTypeColor = function (c) {\n return readOnlyIncludes(TYPE_COLORS, c);\n};\nvar isBackgroundColor = function (c) {\n return readOnlyIncludes(BACKGROUND_COLORS, c);\n};\nvar isBackgroundSemanticColor = function (c) {\n return readOnlyIncludes(BACKGROUND_SEMANTIC_COLORS, c);\n};\nvar isBorderColor = function (c) {\n return readOnlyIncludes(BORDER_COLORS, c);\n};\nvar isDataColor = function (c) {\n return readOnlyIncludes(DATA_COLORS, c);\n};\nvar isDataVisColor = function (c) {\n return readOnlyIncludes(DATA_VIS_COLORS, c);\n};\nvar getColor = function (palette, color, _a, onDark) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.semanticKey,\n semanticKey = _c === void 0 ? 'main' : _c,\n _d = _b.semanticBackgroundKey,\n semanticBackgroundKey = _d === void 0 ? 'light' : _d,\n _e = _b.colorType,\n colorType = _e === void 0 ? 'semantic' : _e,\n _f = _b.semanticOnDarkKey,\n semanticOnDarkKey = _f === void 0 ? 'onDark' : _f,\n fallback = _b.fallback;\n var c = fallback !== null && fallback !== void 0 ? fallback : 'currentcolor';\n if (!color) return c;\n var cType = colorType;\n // if passed a portion of the Pallette that is the semantic color use that.\n if (isColorShape(color)) {\n c = color[semanticKey];\n } else {\n // Check Semantic\n if (cType === 'semantic') {\n if (onDark && isSemanticColor(color)) {\n c = palette[color][semanticOnDarkKey];\n } else if (isSemanticColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'link';\n }\n }\n // Check type and get Color\n if (cType === 'link') {\n if (isLinkColor(color)) {\n c = palette[color][semanticKey];\n } else {\n cType = 'text';\n }\n }\n if (cType === 'text') {\n if (isTypeColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'background';\n }\n }\n if (cType === 'background') {\n if (isBackgroundColor(color)) {\n c = palette[cType][color];\n } else if (isBackgroundSemanticColor(color)) {\n c = palette[cType][color][semanticBackgroundKey];\n } else {\n cType = 'border';\n }\n }\n if (cType === 'border') {\n if (isBorderColor(color)) {\n c = palette[cType][color];\n } else {\n cType = 'data';\n }\n }\n if (cType === 'data') {\n if (isDataVisColor(color)) {\n c = palette[cType][getDataColor(color)];\n } else if (isDataColor(color)) {\n c = palette[cType][color];\n }\n }\n }\n return c;\n};\nvar name$1 = 'Wrench';\nvar basePath$1 = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar fontSize = {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n};\nvar fontWeight = {\n light: 300,\n regular: 400,\n medium: 500\n};\nvar fontFamily = {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n};\nvar assets = {\n base: \"https://\".concat(basePath$1, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n};\nvar type$1 = {\n assets: assets,\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight\n};\nvar palette$1 = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(51,62,72,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n secondary: {\n main: '#6B787F',\n contrast: '#FFFFFF',\n onDark: '#D0D2D3'\n },\n success: {\n main: '#00BF6F',\n contrast: '#FFFFFF',\n onDark: '#00BF6F'\n },\n warning: {\n main: '#F05B24',\n contrast: '#FFFFFF',\n onDark: '#F48B64'\n },\n error: {\n main: '#AC145A',\n contrast: '#FFFFFF',\n onDark: '#D993B3'\n },\n info: {\n main: '#2DCCD3',\n contrast: '#333E48',\n onDark: '#2DCCD3'\n },\n upgrade: {\n main: '#F9BE00',\n contrast: '#333E48',\n onDark: '#F9BE00'\n },\n muted: {\n main: '#D0D2D3',\n contrast: '#333E48',\n onDark: '#D0D2D3'\n },\n link: {\n main: '#007FAA',\n contrast: '#FFFFFF',\n onDark: '#63B1CB'\n },\n text: {\n dark: '#333E48',\n light: '#FFFFFF',\n darkMuted: '#6B787F',\n lightMuted: '#D0D2D3',\n link: '#007FAA'\n },\n background: {\n main: '#F7F8FA',\n light: '#FFFFFF',\n dark: '#333E48',\n overlay: 'rgba(107, 120, 127, .86)',\n accent: '#EDEEEE',\n primary: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n success: {\n light: '#E5F9F1',\n medium: '#ADEBD1'\n },\n warning: {\n light: '#FDEBE5',\n medium: '#FBD8CA'\n },\n error: {\n light: '#F5E3EB',\n medium: '#EBC7D7'\n },\n info: {\n light: '#E6F9FA',\n medium: '#CDF3F4'\n },\n upgrade: {\n light: '#FEF2CC',\n medium: '#FDE599'\n },\n muted: {\n light: '#EDEEEE',\n medium: '#EDEEEE'\n }\n },\n border: {\n main: '#D0D2D3',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing$1 = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion$1 = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\nvar border$1 = {\n main: [1, 'solid', getColor(palette$1, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette$1, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette$1, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette$1, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette$1, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette$1, 'light', {\n colorType: 'background'\n })]\n};\nvar radius$1 = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow$1 = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0,0,0,0.14)'\n};\nvar breakpoints$1 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize$1 = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation$1 = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Surveymonkey theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme$1 = {\n name: name$1,\n type: type$1,\n palette: palette$1,\n spacing: spacing$1,\n motion: motion$1,\n border: border$1,\n radius: radius$1,\n shadow: shadow$1,\n breakpoints: breakpoints$1,\n iconSize: iconSize$1,\n elevation: elevation$1\n};\nvar name = 'Elevate';\nvar basePath = process.env.NODE_ENV !== 'production' ? 'cdn.mtassets.net' : 'cdn.smassets.net';\nvar type = {\n fontFamily: {\n base: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n headings: \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\",\n icon: 'Mateo'\n },\n fontSize: {\n caption: 12,\n bodySm: 14,\n body: 16,\n cardTitle: 20,\n sectionTitleSm: 24,\n sectionTitle: 28,\n pageTitle: 32,\n hero1: 48,\n hero2: 40\n },\n fontWeight: {\n light: 300,\n regular: 400,\n medium: 500\n },\n assets: {\n base: \"https://\".concat(basePath, \"/assets/wds-core_4_20_1\"),\n path: '/fonts/National2Web',\n name: \"'National 2'\",\n version: 2\n }\n};\nvar palette = {\n transparent: {\n clear: 'transparent',\n dark: 'rgba(64,64,64,0.2)',\n light: 'rgba(255, 255, 255, 0.2)'\n },\n primary: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n secondary: {\n main: '#757575',\n contrast: '#FFFFFF',\n onDark: '#D0D0D0'\n },\n success: {\n main: '#008323',\n contrast: '#FFFFFF',\n onDark: '#73BB86'\n },\n warning: {\n main: '#F7B500',\n contrast: '#404040',\n onDark: '#FAD366'\n },\n error: {\n main: '#CC0000',\n contrast: '#FFFFFF',\n onDark: '#EA9494'\n },\n info: {\n main: '#2CB2F1',\n contrast: '#000000',\n onDark: '#56C1F4'\n },\n upgrade: {\n main: '#FFE11B',\n contrast: '#404040',\n onDark: '#FFF3A4'\n },\n muted: {\n main: '#D0D0D0',\n contrast: '#404040',\n onDark: '#D0D0D0'\n },\n link: {\n main: '#0A7CC1',\n contrast: '#FFFFFF',\n onDark: '#71B3DB'\n },\n text: {\n dark: '#404040',\n light: '#FFFFFF',\n darkMuted: '#757575',\n lightMuted: '#EFEFEF',\n link: '#0A7CC1'\n },\n background: {\n main: '#f7f7f7',\n light: '#ffffff',\n dark: '#404040',\n overlay: 'rgba(117, 117, 117, .86)',\n accent: '#EFEFEF',\n primary: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n success: {\n light: '#E5F3E9',\n medium: '#C2E1CA'\n },\n warning: {\n light: '#FFEEC0',\n medium: '#FCE39E'\n },\n error: {\n light: '#FBEAEA',\n medium: '#F4C7C7'\n },\n info: {\n light: '#DCF0FF',\n medium: '#C4E0F0'\n },\n upgrade: {\n light: '#FFF9D1',\n medium: '#FFF3A4'\n },\n muted: {\n light: '#EFEFEF',\n medium: '#EFEFEF'\n }\n },\n border: {\n main: '#d0d0d0',\n active: '#404040',\n hover: '#757575',\n muted: '#EDEEEE'\n },\n data: {\n one: '#507CB6',\n two: '#00BF6F',\n three: '#6BC8CD',\n four: '#F9BE00',\n five: '#7D5E90',\n six: '#DB4D5C',\n seven: '#768086',\n eight: '#D25F90',\n nine: '#A38364',\n ten: '#FF8B4F'\n }\n};\nvar spacing = {\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 24,\n 6: 32,\n 7: 48,\n 8: 64,\n 9: 96,\n 10: 128\n};\nvar motion = {\n curve: {\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(1, 0, 1, 1)',\n ease: 'cubic-bezier(.2, 0, .1, 1)',\n easeReverse: 'cubic-bezier(.9, 0, .8, 1)',\n bounceStart: 'cubic-bezier(0, 0, .1, 1)',\n bounceEnd: 'cubic-bezier(.2, 0, 0, 1)'\n },\n fade: {\n speed: {\n slow: 300,\n normal: 200,\n fast: 100\n }\n },\n slide: {\n speed: {\n slow: 450,\n normal: 350,\n fast: 250\n },\n distance: {\n normal: 25,\n near: 5,\n far: 75\n }\n }\n};\ngetColor(palette, 'main', {\n colorType: 'border'\n});\nvar border = {\n main: [1, 'solid', getColor(palette, 'main', {\n colorType: 'border'\n })],\n hover: [1, 'solid', getColor(palette, 'hover', {\n colorType: 'border'\n })],\n active: [1, 'solid', getColor(palette, 'active', {\n colorType: 'border'\n })],\n muted: [1, 'solid', getColor(palette, 'muted', {\n colorType: 'border'\n })],\n dark: [1, 'solid', getColor(palette, 'dark', {\n colorType: 'background'\n })],\n light: [2, 'solid', getColor(palette, 'light', {\n colorType: 'background'\n })]\n};\nvar radius = {\n zero: 0,\n small: 4,\n medium: 24,\n large: '50%'\n};\nvar shadow = {\n none: 'none',\n sky: '0 2px 4px 0 rgba(0, 0, 0, 0.14)',\n space: '0 2px 8px 0 rgba(0, 0, 0, 0.14)'\n};\nvar breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nvar iconSize = {\n sm: 13,\n md: 16,\n lg: 24,\n xl: 32\n};\nvar elevation = {\n none: 0,\n sky: 999,\n space: 9999\n};\n/**\n * Exported theme is the Momentive theme.\n * See our storybook for more info on the theme shape/breakdown\n * @see {@link [Storybook](http://storybook.jungle.tech/wrench/index.html?path=/story/intro-theme-breakdown--page)}\n */\nvar theme = {\n name: name,\n type: type,\n palette: palette,\n spacing: spacing,\n motion: motion,\n border: border,\n radius: radius,\n shadow: shadow,\n breakpoints: breakpoints,\n iconSize: iconSize,\n elevation: elevation\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar react = {\n exports: {}\n};\nvar react_production_min = {};\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\nvar objectAssign;\nvar hasRequiredObjectAssign;\nfunction requireObjectAssign() {\n if (hasRequiredObjectAssign) return objectAssign;\n hasRequiredObjectAssign = 1;\n /* eslint-disable no-unused-vars */\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n return Object(val);\n }\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n }\n\n // Detect buggy property enumeration order in older V8 versions.\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n test1[5] = 'de';\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test2 = {};\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n if (order2.join('') !== '0123456789') {\n return false;\n }\n\n // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n objectAssign = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n return to;\n };\n return objectAssign;\n}\n\n/** @license React v17.0.2\n * react.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\nvar hasRequiredReact_production_min;\nfunction requireReact_production_min() {\n if (hasRequiredReact_production_min) return react_production_min;\n hasRequiredReact_production_min = 1;\n var l = requireObjectAssign(),\n n = 60103,\n p = 60106;\n react_production_min.Fragment = 60107;\n react_production_min.StrictMode = 60108;\n react_production_min.Profiler = 60114;\n var q = 60109,\n r = 60110,\n t = 60112;\n react_production_min.Suspense = 60113;\n var u = 60115,\n v = 60116;\n if (\"function\" === typeof Symbol && Symbol.for) {\n var w = Symbol.for;\n n = w(\"react.element\");\n p = w(\"react.portal\");\n react_production_min.Fragment = w(\"react.fragment\");\n react_production_min.StrictMode = w(\"react.strict_mode\");\n react_production_min.Profiler = w(\"react.profiler\");\n q = w(\"react.provider\");\n r = w(\"react.context\");\n t = w(\"react.forward_ref\");\n react_production_min.Suspense = w(\"react.suspense\");\n u = w(\"react.memo\");\n v = w(\"react.lazy\");\n }\n var x = \"function\" === typeof Symbol && Symbol.iterator;\n function y(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = x && a[x] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n }\n function z(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n }\n var A = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n B = {};\n function C(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n C.prototype.isReactComponent = {};\n C.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(z(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n };\n C.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n };\n function D() {}\n D.prototype = C.prototype;\n function E(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = B;\n this.updater = c || A;\n }\n var F = E.prototype = new D();\n F.constructor = E;\n l(F, C.prototype);\n F.isPureReactComponent = !0;\n var G = {\n current: null\n },\n H = Object.prototype.hasOwnProperty,\n I = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\n function J(a, b, c) {\n var e,\n d = {},\n k = null,\n h = null;\n if (null != b) for (e in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = \"\" + b.key), b) H.call(b, e) && !I.hasOwnProperty(e) && (d[e] = b[e]);\n var g = arguments.length - 2;\n if (1 === g) d.children = c;else if (1 < g) {\n for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];\n d.children = f;\n }\n if (a && a.defaultProps) for (e in g = a.defaultProps, g) void 0 === d[e] && (d[e] = g[e]);\n return {\n $$typeof: n,\n type: a,\n key: k,\n ref: h,\n props: d,\n _owner: G.current\n };\n }\n function K(a, b) {\n return {\n $$typeof: n,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n }\n function L(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === n;\n }\n function escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + a.replace(/[=:]/g, function (a) {\n return b[a];\n });\n }\n var M = /\\/+/g;\n function N(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(\"\" + a.key) : b.toString(36);\n }\n function O(a, b, c, e, d) {\n var k = typeof a;\n if (\"undefined\" === k || \"boolean\" === k) a = null;\n var h = !1;\n if (null === a) h = !0;else switch (k) {\n case \"string\":\n case \"number\":\n h = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case n:\n case p:\n h = !0;\n }\n }\n if (h) return h = a, d = d(h), a = \"\" === e ? \".\" + N(h, 0) : e, Array.isArray(d) ? (c = \"\", null != a && (c = a.replace(M, \"$&/\") + \"/\"), O(d, b, c, \"\", function (a) {\n return a;\n })) : null != d && (L(d) && (d = K(d, c + (!d.key || h && h.key === d.key ? \"\" : (\"\" + d.key).replace(M, \"$&/\") + \"/\") + a)), b.push(d)), 1;\n h = 0;\n e = \"\" === e ? \".\" : e + \":\";\n if (Array.isArray(a)) for (var g = 0; g < a.length; g++) {\n k = a[g];\n var f = e + N(k, g);\n h += O(k, b, c, f, d);\n } else if (f = y(a), \"function\" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = e + N(k, g++), h += O(k, b, c, f, d);else if (\"object\" === k) throw b = \"\" + a, Error(z(31, \"[object Object]\" === b ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : b));\n return h;\n }\n function P(a, b, c) {\n if (null == a) return a;\n var e = [],\n d = 0;\n O(a, e, \"\", \"\", function (a) {\n return b.call(c, a, d++);\n });\n return e;\n }\n function Q(a) {\n if (-1 === a._status) {\n var b = a._result;\n b = b();\n a._status = 0;\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n if (1 === a._status) return a._result;\n throw a._result;\n }\n var R = {\n current: null\n };\n function S() {\n var a = R.current;\n if (null === a) throw Error(z(321));\n return a;\n }\n var T = {\n ReactCurrentDispatcher: R,\n ReactCurrentBatchConfig: {\n transition: 0\n },\n ReactCurrentOwner: G,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n };\n react_production_min.Children = {\n map: P,\n forEach: function (a, b, c) {\n P(a, function () {\n b.apply(this, arguments);\n }, c);\n },\n count: function (a) {\n var b = 0;\n P(a, function () {\n b++;\n });\n return b;\n },\n toArray: function (a) {\n return P(a, function (a) {\n return a;\n }) || [];\n },\n only: function (a) {\n if (!L(a)) throw Error(z(143));\n return a;\n }\n };\n react_production_min.Component = C;\n react_production_min.PureComponent = E;\n react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T;\n react_production_min.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(z(267, a));\n var e = l({}, a.props),\n d = a.key,\n k = a.ref,\n h = a._owner;\n if (null != b) {\n void 0 !== b.ref && (k = b.ref, h = G.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var g = a.type.defaultProps;\n for (f in b) H.call(b, f) && !I.hasOwnProperty(f) && (e[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);\n }\n var f = arguments.length - 2;\n if (1 === f) e.children = c;else if (1 < f) {\n g = Array(f);\n for (var m = 0; m < f; m++) g[m] = arguments[m + 2];\n e.children = g;\n }\n return {\n $$typeof: n,\n type: a.type,\n key: d,\n ref: k,\n props: e,\n _owner: h\n };\n };\n react_production_min.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: r,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: q,\n _context: a\n };\n return a.Consumer = a;\n };\n react_production_min.createElement = J;\n react_production_min.createFactory = function (a) {\n var b = J.bind(null, a);\n b.type = a;\n return b;\n };\n react_production_min.createRef = function () {\n return {\n current: null\n };\n };\n react_production_min.forwardRef = function (a) {\n return {\n $$typeof: t,\n render: a\n };\n };\n react_production_min.isValidElement = L;\n react_production_min.lazy = function (a) {\n return {\n $$typeof: v,\n _payload: {\n _status: -1,\n _result: a\n },\n _init: Q\n };\n };\n react_production_min.memo = function (a, b) {\n return {\n $$typeof: u,\n type: a,\n compare: void 0 === b ? null : b\n };\n };\n react_production_min.useCallback = function (a, b) {\n return S().useCallback(a, b);\n };\n react_production_min.useContext = function (a, b) {\n return S().useContext(a, b);\n };\n react_production_min.useDebugValue = function () {};\n react_production_min.useEffect = function (a, b) {\n return S().useEffect(a, b);\n };\n react_production_min.useImperativeHandle = function (a, b, c) {\n return S().useImperativeHandle(a, b, c);\n };\n react_production_min.useLayoutEffect = function (a, b) {\n return S().useLayoutEffect(a, b);\n };\n react_production_min.useMemo = function (a, b) {\n return S().useMemo(a, b);\n };\n react_production_min.useReducer = function (a, b, c) {\n return S().useReducer(a, b, c);\n };\n react_production_min.useRef = function (a) {\n return S().useRef(a);\n };\n react_production_min.useState = function (a) {\n return S().useState(a);\n };\n react_production_min.version = \"17.0.2\";\n return react_production_min;\n}\nvar react_development = {};\n\n/** @license React v17.0.2\n * react.development.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\nvar hasRequiredReact_development;\nfunction requireReact_development() {\n if (hasRequiredReact_development) return react_development;\n hasRequiredReact_development = 1;\n (function (exports) {\n if (process.env.NODE_ENV !== \"production\") {\n (function () {\n var _assign = requireObjectAssign();\n\n // TODO: this is special because it gets imported during build.\n var ReactVersion = '17.0.2';\n\n // ATTENTION\n // When adding new symbols to this file,\n // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n // The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n // nor polyfill, then a plain number is used for performance.\n var REACT_ELEMENT_TYPE = 0xeac7;\n var REACT_PORTAL_TYPE = 0xeaca;\n exports.Fragment = 0xeacb;\n exports.StrictMode = 0xeacc;\n exports.Profiler = 0xead2;\n var REACT_PROVIDER_TYPE = 0xeacd;\n var REACT_CONTEXT_TYPE = 0xeace;\n var REACT_FORWARD_REF_TYPE = 0xead0;\n exports.Suspense = 0xead1;\n var REACT_SUSPENSE_LIST_TYPE = 0xead8;\n var REACT_MEMO_TYPE = 0xead3;\n var REACT_LAZY_TYPE = 0xead4;\n var REACT_BLOCK_TYPE = 0xead9;\n var REACT_SERVER_BLOCK_TYPE = 0xeada;\n var REACT_FUNDAMENTAL_TYPE = 0xead5;\n var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;\n var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;\n if (typeof Symbol === 'function' && Symbol.for) {\n var symbolFor = Symbol.for;\n REACT_ELEMENT_TYPE = symbolFor('react.element');\n REACT_PORTAL_TYPE = symbolFor('react.portal');\n exports.Fragment = symbolFor('react.fragment');\n exports.StrictMode = symbolFor('react.strict_mode');\n exports.Profiler = symbolFor('react.profiler');\n REACT_PROVIDER_TYPE = symbolFor('react.provider');\n REACT_CONTEXT_TYPE = symbolFor('react.context');\n REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');\n exports.Suspense = symbolFor('react.suspense');\n REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');\n REACT_MEMO_TYPE = symbolFor('react.memo');\n REACT_LAZY_TYPE = symbolFor('react.lazy');\n REACT_BLOCK_TYPE = symbolFor('react.block');\n REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');\n REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');\n symbolFor('react.scope');\n symbolFor('react.opaque.id');\n REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');\n symbolFor('react.offscreen');\n REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');\n }\n var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator';\n function getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n return null;\n }\n\n /**\n * Keeps track of the current dispatcher.\n */\n var ReactCurrentDispatcher = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n\n /**\n * Keeps track of the current batch's configuration such as how long an update\n * should suspend for if it needs to.\n */\n var ReactCurrentBatchConfig = {\n transition: 0\n };\n\n /**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n var ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n };\n var ReactDebugCurrentFrame = {};\n var currentExtraStackFrame = null;\n function setExtraStackFrame(stack) {\n {\n currentExtraStackFrame = stack;\n }\n }\n {\n ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {\n {\n currentExtraStackFrame = stack;\n }\n }; // Stack implementation injected by the current renderer.\n\n ReactDebugCurrentFrame.getCurrentStack = null;\n ReactDebugCurrentFrame.getStackAddendum = function () {\n var stack = ''; // Add an extra top frame while an element is being validated\n\n if (currentExtraStackFrame) {\n stack += currentExtraStackFrame;\n } // Delegate to the injected renderer-specific implementation\n\n var impl = ReactDebugCurrentFrame.getCurrentStack;\n if (impl) {\n stack += impl() || '';\n }\n return stack;\n };\n }\n\n /**\n * Used by act() to track whether you're inside an act() scope.\n */\n var IsSomeRendererActing = {\n current: false\n };\n var ReactSharedInternals = {\n ReactCurrentDispatcher: ReactCurrentDispatcher,\n ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n ReactCurrentOwner: ReactCurrentOwner,\n IsSomeRendererActing: IsSomeRendererActing,\n // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n assign: _assign\n };\n {\n ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;\n }\n\n // by calls to these methods by a Babel plugin.\n //\n // In PROD (or in packages without access to React internals),\n // they are left as they are instead.\n\n function warn(format) {\n {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n printWarning('warn', format, args);\n }\n }\n function error(format) {\n {\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 printWarning('error', format, args);\n }\n }\n function printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n }\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n }\n var didWarnStateUpdateForUnmountedComponent = {};\n function warnNoop(publicInstance, callerName) {\n {\n var _constructor = publicInstance.constructor;\n var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';\n var warningKey = componentName + \".\" + callerName;\n if (didWarnStateUpdateForUnmountedComponent[warningKey]) {\n return;\n }\n error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n didWarnStateUpdateForUnmountedComponent[warningKey] = true;\n }\n }\n /**\n * This is the abstract API for an update queue.\n */\n\n var ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function (publicInstance) {\n return false;\n },\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueForceUpdate: function (publicInstance, callback, callerName) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} callerName name of the calling function in the public API.\n * @internal\n */\n enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {\n warnNoop(publicInstance, 'replaceState');\n },\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @param {?function} callback Called after component is updated.\n * @param {?string} Name of the calling function in the public API.\n * @internal\n */\n enqueueSetState: function (publicInstance, partialState, callback, callerName) {\n warnNoop(publicInstance, 'setState');\n }\n };\n var emptyObject = {};\n {\n Object.freeze(emptyObject);\n }\n /**\n * Base class helpers for the updating state of a component.\n */\n\n function Component(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n }\n Component.prototype.isReactComponent = {};\n /**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\n Component.prototype.setState = function (partialState, callback) {\n if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {\n {\n throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n }\n }\n this.updater.enqueueSetState(this, partialState, callback, 'setState');\n };\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n Component.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n };\n /**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n var defineDeprecationWarning = function (methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n };\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n }\n function ComponentDummy() {}\n ComponentDummy.prototype = Component.prototype;\n /**\n * Convenience component with default shallow equality check for sCU.\n */\n\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context; // If a component has string refs, we will assign a different object later.\n\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();\n pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.\n\n _assign(pureComponentPrototype, Component.prototype);\n pureComponentPrototype.isPureReactComponent = true;\n\n // an immutable object with a single mutable value\n function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }\n function getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n }\n function getContextName(type) {\n return type.displayName || 'Context';\n }\n function getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n if (typeof type === 'string') {\n return type;\n }\n switch (type) {\n case exports.Fragment:\n return 'Fragment';\n case REACT_PORTAL_TYPE:\n return 'Portal';\n case exports.Profiler:\n return 'Profiler';\n case exports.StrictMode:\n return 'StrictMode';\n case exports.Suspense:\n return 'Suspense';\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_BLOCK_TYPE:\n return getComponentName(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n return getComponentName(init(payload));\n } catch (x) {\n return null;\n }\n }\n }\n }\n return null;\n }\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n };\n var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n {\n didWarnAboutStringRefs = {};\n }\n function hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.ref !== undefined;\n }\n function hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n return config.key !== undefined;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function () {\n {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n function defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function () {\n {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n }\n };\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n function warnIfStringRefCannotBeAutoConverted(config) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {\n var componentName = getComponentName(ReactCurrentOwner.current.type);\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n }\n /**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n var ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n return element;\n };\n /**\n * Create and return a new ReactElement of the given type.\n * See https://reactjs.org/docs/react-api.html#createelement\n */\n\n function createElement(type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n {\n warnIfStringRefCannotBeAutoConverted(config);\n }\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n props.children = childArray;\n } // Resolve default props\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n {\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n function cloneAndReplaceKey(oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n }\n /**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://reactjs.org/docs/react-api.html#cloneelement\n */\n\n function cloneElement(element, config, children) {\n if (!!(element === null || element === undefined)) {\n {\n throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n }\n }\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n var defaultProps;\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n var childrenLength = arguments.length - 2;\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n props.children = childArray;\n }\n return ReactElement(element.type, key, ref, self, source, owner, props);\n }\n /**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n var SEPARATOR = '.';\n var SUBSEPARATOR = ':';\n /**\n * Escape and wrap key so it is safe to use as a reactid\n *\n * @param {string} key to be escaped.\n * @return {string} the escaped key.\n */\n\n function escape(key) {\n var escapeRegex = /[=:]/g;\n var escaperLookup = {\n '=': '=0',\n ':': '=2'\n };\n var escapedString = key.replace(escapeRegex, function (match) {\n return escaperLookup[match];\n });\n return '$' + escapedString;\n }\n /**\n * TODO: Test that a single child and an array with one item have the same key\n * pattern.\n */\n\n var didWarnAboutMaps = false;\n var userProvidedKeyEscapeRegex = /\\/+/g;\n function escapeUserProvidedKey(text) {\n return text.replace(userProvidedKeyEscapeRegex, '$&/');\n }\n /**\n * Generate a key string that identifies a element within a set.\n *\n * @param {*} element A element that could contain a manual key.\n * @param {number} index Index that is used if a manual key is not provided.\n * @return {string}\n */\n\n function getElementKey(element, index) {\n // Do some typechecking here since we call this blindly. We want to ensure\n // that we don't block potential future ES APIs.\n if (typeof element === 'object' && element !== null && element.key != null) {\n // Explicit key\n return escape('' + element.key);\n } // Implicit key determined by the index in the set\n\n return index.toString(36);\n }\n function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (type === 'undefined' || type === 'boolean') {\n // All of the above are perceived as null.\n children = null;\n }\n var invokeCallback = false;\n if (children === null) {\n invokeCallback = true;\n } else {\n switch (type) {\n case 'string':\n case 'number':\n invokeCallback = true;\n break;\n case 'object':\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = true;\n }\n }\n }\n if (invokeCallback) {\n var _child = children;\n var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array\n // so that it's consistent if the number of children grows:\n\n var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;\n if (Array.isArray(mappedChild)) {\n var escapedChildKey = '';\n if (childKey != null) {\n escapedChildKey = escapeUserProvidedKey(childKey) + '/';\n }\n mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {\n return c;\n });\n } else if (mappedChild != null) {\n if (isValidElement(mappedChild)) {\n mappedChild = cloneAndReplaceKey(mappedChild,\n // Keep both the (mapped) and old keys if they differ, just as\n // traverseAllChildren used to do for objects as children\n escapedPrefix + (\n // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key\n mappedChild.key && (!_child || _child.key !== mappedChild.key) ?\n // $FlowFixMe Flow incorrectly thinks existing element's key can be a number\n escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);\n }\n array.push(mappedChild);\n }\n return 1;\n }\n var child;\n var nextName;\n var subtreeCount = 0; // Count of children found in the current subtree.\n\n var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n nextName = nextNamePrefix + getElementKey(child, i);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else {\n var iteratorFn = getIteratorFn(children);\n if (typeof iteratorFn === 'function') {\n var iterableChildren = children;\n {\n // Warn about using Maps as children\n if (iteratorFn === iterableChildren.entries) {\n if (!didWarnAboutMaps) {\n warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');\n }\n didWarnAboutMaps = true;\n }\n }\n var iterator = iteratorFn.call(iterableChildren);\n var step;\n var ii = 0;\n while (!(step = iterator.next()).done) {\n child = step.value;\n nextName = nextNamePrefix + getElementKey(child, ii++);\n subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);\n }\n } else if (type === 'object') {\n var childrenString = '' + children;\n {\n {\n throw Error(\"Objects are not valid as a React child (found: \" + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + \"). If you meant to render a collection of children, use an array instead.\");\n }\n }\n }\n }\n return subtreeCount;\n }\n\n /**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n function mapChildren(children, func, context) {\n if (children == null) {\n return children;\n }\n var result = [];\n var count = 0;\n mapIntoArray(children, result, '', '', function (child) {\n return func.call(context, child, count++);\n });\n return result;\n }\n /**\n * Count the number of children that are typically specified as\n * `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrencount\n *\n * @param {?*} children Children tree container.\n * @return {number} The number of children.\n */\n\n function countChildren(children) {\n var n = 0;\n mapChildren(children, function () {\n n++; // Don't return anything\n });\n\n return n;\n }\n\n /**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n function forEachChildren(children, forEachFunc, forEachContext) {\n mapChildren(children, function () {\n forEachFunc.apply(this, arguments); // Don't return anything.\n }, forEachContext);\n }\n /**\n * Flatten a children object (typically specified as `props.children`) and\n * return an array with appropriately re-keyed children.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrentoarray\n */\n\n function toArray(children) {\n return mapChildren(children, function (child) {\n return child;\n }) || [];\n }\n /**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenonly\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\n\n function onlyChild(children) {\n if (!isValidElement(children)) {\n {\n throw Error(\"React.Children.only expected to receive a single React element child.\");\n }\n }\n return children;\n }\n function createContext(defaultValue, calculateChangedBits) {\n if (calculateChangedBits === undefined) {\n calculateChangedBits = null;\n } else {\n {\n if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {\n error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n }\n }\n }\n var context = {\n $$typeof: REACT_CONTEXT_TYPE,\n _calculateChangedBits: calculateChangedBits,\n // As a workaround to support multiple concurrent renderers, we categorize\n // some renderers as primary and others as secondary. We only expect\n // there to be two concurrent renderers at most: React Native (primary) and\n // Fabric (secondary); React DOM (primary) and React ART (secondary).\n // Secondary renderers store their context values on separate fields.\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n // Used to track how many concurrent renderers this context currently\n // supports within in a single renderer. Such as parallel server rendering.\n _threadCount: 0,\n // These are circular\n Provider: null,\n Consumer: null\n };\n context.Provider = {\n $$typeof: REACT_PROVIDER_TYPE,\n _context: context\n };\n var hasWarnedAboutUsingNestedContextConsumers = false;\n var hasWarnedAboutUsingConsumerProvider = false;\n var hasWarnedAboutDisplayNameOnConsumer = false;\n {\n // A separate object, but proxies back to the original context object for\n // backwards compatibility. It has a different $$typeof, so we can properly\n // warn for the incorrect usage of Context as a Consumer.\n var Consumer = {\n $$typeof: REACT_CONTEXT_TYPE,\n _context: context,\n _calculateChangedBits: context._calculateChangedBits\n }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n Object.defineProperties(Consumer, {\n Provider: {\n get: function () {\n if (!hasWarnedAboutUsingConsumerProvider) {\n hasWarnedAboutUsingConsumerProvider = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Provider;\n },\n set: function (_Provider) {\n context.Provider = _Provider;\n }\n },\n _currentValue: {\n get: function () {\n return context._currentValue;\n },\n set: function (_currentValue) {\n context._currentValue = _currentValue;\n }\n },\n _currentValue2: {\n get: function () {\n return context._currentValue2;\n },\n set: function (_currentValue2) {\n context._currentValue2 = _currentValue2;\n }\n },\n _threadCount: {\n get: function () {\n return context._threadCount;\n },\n set: function (_threadCount) {\n context._threadCount = _threadCount;\n }\n },\n Consumer: {\n get: function () {\n if (!hasWarnedAboutUsingNestedContextConsumers) {\n hasWarnedAboutUsingNestedContextConsumers = true;\n error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?');\n }\n return context.Consumer;\n }\n },\n displayName: {\n get: function () {\n return context.displayName;\n },\n set: function (displayName) {\n if (!hasWarnedAboutDisplayNameOnConsumer) {\n warn('Setting `displayName` on Context.Consumer has no effect. ' + \"You should set it directly on the context with Context.displayName = '%s'.\", displayName);\n hasWarnedAboutDisplayNameOnConsumer = true;\n }\n }\n }\n }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n context.Consumer = Consumer;\n }\n {\n context._currentRenderer = null;\n context._currentRenderer2 = null;\n }\n return context;\n }\n var Uninitialized = -1;\n var Pending = 0;\n var Resolved = 1;\n var Rejected = 2;\n function lazyInitializer(payload) {\n if (payload._status === Uninitialized) {\n var ctor = payload._result;\n var thenable = ctor(); // Transition to the next state.\n\n var pending = payload;\n pending._status = Pending;\n pending._result = thenable;\n thenable.then(function (moduleObject) {\n if (payload._status === Pending) {\n var defaultExport = moduleObject.default;\n {\n if (defaultExport === undefined) {\n error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' +\n // Break up imports to avoid accidentally parsing them as dependencies.\n 'const MyComponent = lazy(() => imp' + \"ort('./MyComponent'))\", moduleObject);\n }\n } // Transition to the next state.\n\n var resolved = payload;\n resolved._status = Resolved;\n resolved._result = defaultExport;\n }\n }, function (error) {\n if (payload._status === Pending) {\n // Transition to the next state.\n var rejected = payload;\n rejected._status = Rejected;\n rejected._result = error;\n }\n });\n }\n if (payload._status === Resolved) {\n return payload._result;\n } else {\n throw payload._result;\n }\n }\n function lazy(ctor) {\n var payload = {\n // We use these fields to store the result.\n _status: -1,\n _result: ctor\n };\n var lazyType = {\n $$typeof: REACT_LAZY_TYPE,\n _payload: payload,\n _init: lazyInitializer\n };\n {\n // In production, this would just set it on the object.\n var defaultProps;\n var propTypes; // $FlowFixMe\n\n Object.defineProperties(lazyType, {\n defaultProps: {\n configurable: true,\n get: function () {\n return defaultProps;\n },\n set: function (newDefaultProps) {\n error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n defaultProps = newDefaultProps; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'defaultProps', {\n enumerable: true\n });\n }\n },\n propTypes: {\n configurable: true,\n get: function () {\n return propTypes;\n },\n set: function (newPropTypes) {\n error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n propTypes = newPropTypes; // Match production behavior more closely:\n // $FlowFixMe\n\n Object.defineProperty(lazyType, 'propTypes', {\n enumerable: true\n });\n }\n }\n });\n }\n return lazyType;\n }\n function forwardRef(render) {\n {\n if (render != null && render.$$typeof === REACT_MEMO_TYPE) {\n error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n } else if (typeof render !== 'function') {\n error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);\n } else {\n if (render.length !== 0 && render.length !== 2) {\n error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');\n }\n }\n if (render != null) {\n if (render.defaultProps != null || render.propTypes != null) {\n error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n }\n }\n }\n var elementType = {\n $$typeof: REACT_FORWARD_REF_TYPE,\n render: render\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (render.displayName == null) {\n render.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n\n // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.\n\n var enableScopeAPI = false; // Experimental Create Event Handle API.\n\n function isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {\n return true;\n }\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {\n return true;\n }\n }\n return false;\n }\n function memo(type, compare) {\n {\n if (!isValidElementType(type)) {\n error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);\n }\n }\n var elementType = {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: compare === undefined ? null : compare\n };\n {\n var ownName;\n Object.defineProperty(elementType, 'displayName', {\n enumerable: false,\n configurable: true,\n get: function () {\n return ownName;\n },\n set: function (name) {\n ownName = name;\n if (type.displayName == null) {\n type.displayName = name;\n }\n }\n });\n }\n return elementType;\n }\n function resolveDispatcher() {\n var dispatcher = ReactCurrentDispatcher.current;\n if (!(dispatcher !== null)) {\n {\n throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\");\n }\n }\n return dispatcher;\n }\n function useContext(Context, unstable_observedBits) {\n var dispatcher = resolveDispatcher();\n {\n if (unstable_observedBits !== undefined) {\n error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');\n } // TODO: add a more generic warning for invalid values.\n\n if (Context._context !== undefined) {\n var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs\n // and nobody should be using this in existing code.\n\n if (realContext.Consumer === Context) {\n error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n } else if (realContext.Provider === Context) {\n error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n }\n }\n }\n return dispatcher.useContext(Context, unstable_observedBits);\n }\n function useState(initialState) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useState(initialState);\n }\n function useReducer(reducer, initialArg, init) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useReducer(reducer, initialArg, init);\n }\n function useRef(initialValue) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useRef(initialValue);\n }\n function useEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useEffect(create, deps);\n }\n function useLayoutEffect(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useLayoutEffect(create, deps);\n }\n function useCallback(callback, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useCallback(callback, deps);\n }\n function useMemo(create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useMemo(create, deps);\n }\n function useImperativeHandle(ref, create, deps) {\n var dispatcher = resolveDispatcher();\n return dispatcher.useImperativeHandle(ref, create, deps);\n }\n function useDebugValue(value, formatterFn) {\n {\n var dispatcher = resolveDispatcher();\n return dispatcher.useDebugValue(value, formatterFn);\n }\n }\n\n // Helpers to patch console.logs to avoid logging during side-effect free\n // replaying on render function. This currently only patches the object\n // lazily which won't cover if the log function was extracted eagerly.\n // We could also eagerly patch the method.\n var disabledDepth = 0;\n var prevLog;\n var prevInfo;\n var prevWarn;\n var prevError;\n var prevGroup;\n var prevGroupCollapsed;\n var prevGroupEnd;\n function disabledLog() {}\n disabledLog.__reactDisabledLog = true;\n function disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n }\n function reenableLogs() {\n {\n disabledDepth--;\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: _assign({}, props, {\n value: prevLog\n }),\n info: _assign({}, props, {\n value: prevInfo\n }),\n warn: _assign({}, props, {\n value: prevWarn\n }),\n error: _assign({}, props, {\n value: prevError\n }),\n group: _assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: _assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: _assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n }\n var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;\n var prefix;\n function describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n return '\\n' + prefix + name;\n }\n }\n var reentry = false;\n var componentFrameCache;\n {\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n }\n function describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if (!fn || reentry) {\n return '';\n }\n {\n var frame = componentFrameCache.get(fn);\n if (frame !== undefined) {\n return frame;\n }\n }\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n {\n previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher$1.current = null;\n disableLogs();\n }\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at ');\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n break;\n }\n }\n }\n } finally {\n reentry = false;\n {\n ReactCurrentDispatcher$1.current = previousDispatcher;\n reenableLogs();\n }\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n return syntheticFrame;\n }\n function describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n }\n function shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n }\n function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n if (type == null) {\n return '';\n }\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n switch (type) {\n case exports.Suspense:\n return describeBuiltInComponentFrame('Suspense');\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n case REACT_BLOCK_TYPE:\n return describeFunctionComponentFrame(type._render);\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n return '';\n }\n var loggedTypeFailures = {};\n var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n function setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n }\n function checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n setCurrentlyValidatingElement(null);\n }\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n error('Failed %s type: %s', location, error$1.message);\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n }\n function setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n setExtraStackFrame(stack);\n } else {\n setExtraStackFrame(null);\n }\n }\n }\n var propTypesMisspellWarningShown;\n {\n propTypesMisspellWarningShown = false;\n }\n function getDeclarationErrorAddendum() {\n if (ReactCurrentOwner.current) {\n var name = getComponentName(ReactCurrentOwner.current.type);\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n return '';\n }\n function getSourceInfoErrorAddendum(source) {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n return '';\n }\n function getSourceInfoErrorAddendumForProps(elementProps) {\n if (elementProps !== null && elementProps !== undefined) {\n return getSourceInfoErrorAddendum(elementProps.__source);\n }\n return '';\n }\n /**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n var ownerHasKeyUseWarning = {};\n function getCurrentComponentErrorInfo(parentType) {\n var info = getDeclarationErrorAddendum();\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n return info;\n }\n /**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n function validateExplicitKey(element, parentType) {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n if (element && element._owner && element._owner !== ReactCurrentOwner.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n }\n {\n setCurrentlyValidatingElement$1(element);\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n setCurrentlyValidatingElement$1(null);\n }\n }\n /**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n function validateChildKeys(node, parentType) {\n if (typeof node !== 'object') {\n return;\n }\n if (Array.isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n /**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n function validatePropTypes(element) {\n {\n var type = element.type;\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n var propTypes;\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||\n // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentName(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentName(type);\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n }\n /**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n function validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n setCurrentlyValidatingElement$1(null);\n }\n }\n }\n function createElementWithValidation(type, props, children) {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n var sourceInfo = getSourceInfoErrorAddendumForProps(props);\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n var typeString;\n if (type === null) {\n typeString = 'null';\n } else if (Array.isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentName(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n {\n error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n }\n var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n if (validType) {\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], type);\n }\n }\n if (type === exports.Fragment) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n return element;\n }\n var didWarnAboutDeprecatedCreateFactory = false;\n function createFactoryWithValidation(type) {\n var validatedFactory = createElementWithValidation.bind(null, type);\n validatedFactory.type = type;\n {\n if (!didWarnAboutDeprecatedCreateFactory) {\n didWarnAboutDeprecatedCreateFactory = true;\n warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n } // Legacy hook: remove it\n\n Object.defineProperty(validatedFactory, 'type', {\n enumerable: false,\n get: function () {\n warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n Object.defineProperty(this, 'type', {\n value: type\n });\n return type;\n }\n });\n }\n return validatedFactory;\n }\n function cloneElementWithValidation(element, props, children) {\n var newElement = cloneElement.apply(this, arguments);\n for (var i = 2; i < arguments.length; i++) {\n validateChildKeys(arguments[i], newElement.type);\n }\n validatePropTypes(newElement);\n return newElement;\n }\n {\n try {\n var frozenObject = Object.freeze({});\n /* eslint-disable no-new */\n\n new Map([[frozenObject, null]]);\n new Set([frozenObject]);\n /* eslint-enable no-new */\n } catch (e) {}\n }\n var createElement$1 = createElementWithValidation;\n var cloneElement$1 = cloneElementWithValidation;\n var createFactory = createFactoryWithValidation;\n var Children = {\n map: mapChildren,\n forEach: forEachChildren,\n count: countChildren,\n toArray: toArray,\n only: onlyChild\n };\n exports.Children = Children;\n exports.Component = Component;\n exports.PureComponent = PureComponent;\n exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;\n exports.cloneElement = cloneElement$1;\n exports.createContext = createContext;\n exports.createElement = createElement$1;\n exports.createFactory = createFactory;\n exports.createRef = createRef;\n exports.forwardRef = forwardRef;\n exports.isValidElement = isValidElement;\n exports.lazy = lazy;\n exports.memo = memo;\n exports.useCallback = useCallback;\n exports.useContext = useContext;\n exports.useDebugValue = useDebugValue;\n exports.useEffect = useEffect;\n exports.useImperativeHandle = useImperativeHandle;\n exports.useLayoutEffect = useLayoutEffect;\n exports.useMemo = useMemo;\n exports.useReducer = useReducer;\n exports.useRef = useRef;\n exports.useState = useState;\n exports.version = ReactVersion;\n })();\n }\n })(react_development);\n return react_development;\n}\n(function (module) {\n if (process.env.NODE_ENV === 'production') {\n module.exports = requireReact_production_min();\n } else {\n module.exports = requireReact_development();\n }\n})(react);\nvar React = /*@__PURE__*/getDefaultExportFromCjs(react.exports);\n\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n assets = _b.assets,\n fontFamily = _b.fontFamily,\n fontWeight = _b.fontWeight,\n fontSize = _b.fontSize;\n var fontPath = \"\".concat(assets.base).concat(assets.path);\n var fontFaces = FONT_WEIGHTS.map(function (name) {\n // we need this because the font file names are all National2-.2.ext\n var upperCaseName = \"\".concat(name[0].toUpperCase()).concat(name.slice(1));\n var weight = fontWeight[name];\n return {\n fontFamily: assets.name,\n fontWeight: weight,\n fontDisplay: 'swap',\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff2) format('woff2')\"),\n fallbacks: [{\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".woff) format('woff')\")\n }, {\n src: \"url(\".concat(fontPath, \"-\").concat(upperCaseName, \".\").concat(assets.version, \".eot#iefix) format('embedded-opentype')\")\n }]\n };\n });\n return {\n '@font-face': fontFaces,\n '@global': {\n \"[class*='wrench'], [class*='wrench']::before, [class*='wrench']::after\": {\n fontFamily: fontFamily.base,\n '-webkit-font-smoothing': 'antialiased',\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n }\n };\n});\nvar GlobalStyles = function () {\n useStyles();\n // return null here for linting rule requirements\n return React.createElement(React.Fragment, null, null);\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar blueprintBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '16px',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar blueprintBoxStyleXl = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n padding: '40px 16px'\n};\nvar innerBoxStyle = {\n border: '2px dashed #2dccd3',\n backgroundColor: 'rgba(45,204,211,.6)',\n fontFamily: 'Roboto, Helvetica, Arial'\n};\nvar outerBoxStyle = __assign(__assign({}, innerBoxStyle), {\n marginBottom: '16px'\n});\nvar paddingBoxStyle = __assign(__assign({}, innerBoxStyle), {\n backgroundColor: '#ffffff',\n border: 'none'\n});\nvar flexBoxStyle = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8\n});\nvar flexBoxStyleSm = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 40\n});\nvar flexBoxStyleMd = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 80\n});\nvar flexBoxStyleLg = __assign(__assign({}, innerBoxStyle), {\n padding: 8,\n margin: 8,\n height: 120\n});\nexport { BACKGROUND_COLORS, BACKGROUND_SEMANTIC_COLORS, BORDER_COLORS, BORDER_KEYS, DATA_COLORS, DATA_VIS_COLORS, ELEVATION_KEYS, theme as ElevateTheme, FONT_ASSETS, FONT_FAMILY_KEYS, FONT_SIZES, FONT_WEIGHTS, GlobalStyles, LINK_COLORS, RADIUS_KEYS, SEMANTIC_COLORS, SHADOW_KEYS, SIZES, SPACING_KEYS, TYPE_COLORS, theme$1 as WrenchTheme, blueprintBoxStyle, blueprintBoxStyleXl, flexBoxStyle, flexBoxStyleLg, flexBoxStyleMd, flexBoxStyleSm, getColor, getDataColor, innerBoxStyle, isBackgroundColor, isBackgroundSemanticColor, isBorderColor, isColorShape, isDataColor, isDataVisColor, isLinkColor, isSemanticColor, isTypeColor, outerBoxStyle, paddingBoxStyle };","import { createMemoStyles, safeRest } from '@wds/utils';\nimport React, { forwardRef } from 'react';\nimport { getColor, FONT_SIZES, SEMANTIC_COLORS, LINK_COLORS, TYPE_COLORS } from '@wds/styles';\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nvar isNotLink = function (t) {\n return t !== 'link';\n};\nvar hasFontWeight = function (t) {\n return typeof t.fontWeight === 'string' || typeof t.fontWeight === 'number';\n};\nvar useStyles = createMemoStyles(function (_a) {\n var _b = _a.type,\n fontFamily = _b.fontFamily,\n fontSize = _b.fontSize,\n fontWeight = _b.fontWeight,\n palette = _a.palette;\n return {\n wrenchTypography: function (_a) {\n var align = _a.align,\n color = _a.color,\n variant = _a.variant,\n component = _a.component,\n weight = _a.weight,\n lineHeight = _a.lineHeight;\n var chosenColor = getColor(palette, color, {\n fallback: palette.text.dark\n });\n var variantStyle = {};\n if (variant) {\n if (isNotLink(variant)) {\n variantStyle = {\n fontSize: fontSize[variant],\n fontWeight: {\n hero1: fontWeight.regular,\n hero2: fontWeight.regular,\n title: fontWeight.regular,\n sectionTitle: fontWeight.regular,\n sectionTitleSm: fontWeight.regular,\n pageTitle: fontWeight.regular,\n cardTitle: fontWeight.regular,\n body: fontWeight.regular,\n bodySm: fontWeight.regular,\n caption: fontWeight.regular\n }[variant]\n };\n } else {\n variantStyle = {\n color: palette.link.main,\n textDecoration: 'none',\n border: 'none',\n background: 'none',\n outline: 'none',\n cursor: 'pointer',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n '&:hover, &:focus': {\n textDecoration: 'underline'\n }\n };\n }\n }\n var computedWeight = 'inherit';\n if (weight) {\n computedWeight = fontWeight[weight];\n } else if (component === 'strong' || component === 'b') {\n computedWeight = fontWeight.medium;\n } else if (hasFontWeight(variantStyle)) {\n computedWeight = variantStyle.fontWeight;\n }\n return __assign(__assign(__assign({\n fontFamily: fontFamily.base,\n fontSize: fontSize.body,\n boxSizing: 'border-box',\n '-webkit-font-smoothing': 'antialiased',\n color: chosenColor,\n textAlign: align,\n lineHeight: lineHeight !== null && lineHeight !== void 0 ? lineHeight : 1.5,\n margin: 0,\n padding: 0\n }, variantStyle), variant && (variant === 'hero1' || variant === 'hero2') && {\n fontFamily: fontFamily === null || fontFamily === void 0 ? void 0 : fontFamily.headings\n }), {\n fontWeight: computedWeight,\n '& > strong, & > b': {\n fontWeight: fontWeight.medium\n }\n });\n }\n };\n});\nvar Typography = forwardRef(function (_a, ref) {\n var _b = _a.align,\n align = _b === void 0 ? 'left' : _b,\n _c = _a.color,\n color = _c === void 0 ? 'dark' : _c,\n _d = _a.component,\n component = _d === void 0 ? 'div' : _d,\n _e = _a.variant,\n variant = _e === void 0 ? 'body' : _e,\n weight = _a.weight,\n lineHeight = _a.lineHeight,\n children = _a.children,\n rest = __rest(_a, [\"align\", \"color\", \"component\", \"variant\", \"weight\", \"lineHeight\", \"children\"]);\n var wrenchTypography = useStyles({\n align: align,\n color: color,\n variant: variant,\n component: component,\n weight: weight,\n lineHeight: lineHeight\n }).wrenchTypography;\n var Component = component;\n return React.createElement(Component, __assign({\n className: wrenchTypography\n }, safeRest(rest), {\n ref: ref\n }), children);\n});\nvar ALIGNMENTS = ['center', 'left', 'right'];\nvar VARIANTS = __spreadArray(__spreadArray([], FONT_SIZES, true), ['link'], false);\nvar TYPOGRAPHY_COLORS = __spreadArray(__spreadArray(__spreadArray([], SEMANTIC_COLORS, true), LINK_COLORS, true), TYPE_COLORS, true);\nvar COMPONENTS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'p', 'span', 'div', 'article', 'section', 'em', 'strong', 'label', 'b'];\nexport { ALIGNMENTS, COMPONENTS, TYPOGRAPHY_COLORS, Typography, VARIANTS };","export { default as clsx } from 'clsx';\nimport isEqual from 'lodash.isequal';\nimport React, { useRef, isValidElement, useEffect, useLayoutEffect } from 'react';\nimport { createUseStyles } from 'react-jss';\nimport isElement from 'lodash.iselement';\nexport { default as isElement } from 'lodash.iselement';\nimport { createPortal } from 'react-dom';\nvar clearfix = {\n '&:after': {\n content: '',\n display: 'block',\n clear: 'both'\n }\n};\nvar createMemoStyles = function (styles, options) {\n var useStyles = createUseStyles(styles, options);\n var useMemoStyles = function (data) {\n var ref = useRef(data);\n if (!ref.current || !isEqual(data, ref.current)) {\n ref.current = data;\n }\n return useStyles(ref.current);\n };\n return useMemoStyles;\n};\n\n/**\n * @description\n * This factory function creates a hook that will return the wrenchSpacing class to be used in the component\n * Simply import it and call at the component level to create the hook, then use the hook inside your component\n * Code example: https://code.corp.surveymonkey.com/wrench/wrench/blob/master/packages/box/Box\n */\nfunction createSpacingStyles() {\n return createMemoStyles(function (_a) {\n var spacing = _a.spacing;\n return {\n wrenchSpacing: function (_a) {\n var _b, _c, _d, _e, _f, _g, _h, _j;\n var m = _a.m,\n mx = _a.mx,\n my = _a.my,\n mt = _a.mt,\n mb = _a.mb,\n ml = _a.ml,\n mr = _a.mr,\n p = _a.p,\n px = _a.px,\n py = _a.py,\n pt = _a.pt,\n pb = _a.pb,\n pl = _a.pl,\n pr = _a.pr;\n var margin = {\n t: (_b = m !== null && m !== void 0 ? m : my) !== null && _b !== void 0 ? _b : mt,\n b: (_c = m !== null && m !== void 0 ? m : my) !== null && _c !== void 0 ? _c : mb,\n l: (_d = m !== null && m !== void 0 ? m : mx) !== null && _d !== void 0 ? _d : ml,\n r: (_e = m !== null && m !== void 0 ? m : mx) !== null && _e !== void 0 ? _e : mr\n };\n var padding = {\n t: (_f = p !== null && p !== void 0 ? p : py) !== null && _f !== void 0 ? _f : pt,\n b: (_g = p !== null && p !== void 0 ? p : py) !== null && _g !== void 0 ? _g : pb,\n l: (_h = p !== null && p !== void 0 ? p : px) !== null && _h !== void 0 ? _h : pl,\n r: (_j = p !== null && p !== void 0 ? p : px) !== null && _j !== void 0 ? _j : pr\n };\n return {\n marginTop: margin.t && spacing[margin.t],\n marginRight: margin.r && spacing[margin.r],\n marginBottom: margin.b && spacing[margin.b],\n marginLeft: margin.l && spacing[margin.l],\n paddingTop: padding.t && spacing[padding.t],\n paddingRight: padding.r && spacing[padding.r],\n paddingBottom: padding.b && spacing[padding.b],\n paddingLeft: padding.l && spacing[padding.l]\n };\n }\n };\n });\n}\n\n/* eslint-disable no-bitwise */\n/* Given a hex or rgb color value, checks if the contrasting color should be light or dark */\nvar getContrastColor = function (color) {\n var _a;\n var r = 0;\n var g = 0;\n var b = 0;\n // Check the format of the color, HEX or RGB?\n if (color.match(/^rgb/)) {\n var colorValues = (_a = color.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/)) !== null && _a !== void 0 ? _a : ['', '', ''];\n r = parseInt(colorValues[1], 10);\n g = parseInt(colorValues[2], 10);\n b = parseInt(colorValues[3], 10);\n } else {\n var colorReg = color.length < 5 ? /./g : '';\n var colorValues = +\"0x\".concat(color.slice(1).replace(colorReg, '$&$&'));\n r = colorValues >> 16;\n g = colorValues >> 8 & 255;\n b = colorValues & 255;\n }\n // HSP equation from http://alienryderflex.com/hsp.html\n var hsp = Math.sqrt(0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b));\n if (hsp > 160) {\n return 'dark';\n }\n return 'light';\n};\nfunction getDefaultExportFromCjs(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nvar darken$1 = {\n exports: {}\n};\nvar _curry = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = curry;\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\n function 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 function curry(f) {\n // eslint-disable-line no-redeclare\n return curried(f, f.length, []);\n }\n module.exports = exports.default;\n})(_curry, _curry.exports);\nvar _guard = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n function guard(lowerBoundary, upperBoundary, value) {\n return Math.max(lowerBoundary, Math.min(upperBoundary, value));\n }\n var _default = guard;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_guard, _guard.exports);\nvar parseToHsl = {\n exports: {}\n};\nvar parseToRgb = {\n exports: {}\n};\nvar _hslToRgb = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n function colorToInt(color) {\n return Math.round(color * 255);\n }\n function convertToInt(red, green, blue) {\n return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n }\n function hslToRgb(hue, saturation, lightness, convert) {\n if (convert === void 0) {\n convert = convertToInt;\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 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 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 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 var _default = hslToRgb;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_hslToRgb, _hslToRgb.exports);\nvar _nameToHex = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n var 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\n function nameToHex(color) {\n if (typeof color !== 'string') return color;\n var normalizedColorName = color.toLowerCase();\n return namedColorMap[normalizedColorName] ? \"#\" + namedColorMap[normalizedColorName] : color;\n }\n var _default = nameToHex;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_nameToHex, _nameToHex.exports);\nvar _errors = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n }\n function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n }\n function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\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 return _wrapNativeSuper(Class);\n }\n 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 return _construct.apply(null, arguments);\n }\n function _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 try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n }\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n }\n 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 }\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 */\n var 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 \"73\": \"Please provide a valid CSS variable.\\n\\n\",\n \"74\": \"CSS variable not found and no default was provided.\\n\\n\",\n \"75\": \"important requires a valid style object, got a %s instead.\\n\\n\",\n \"76\": \"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\\n\\n\",\n \"77\": \"remToPx expects a value in \\\"rem\\\" but you provided it in \\\"%s\\\".\\n\\n\",\n \"78\": \"base must be set in \\\"px\\\" or \\\"%\\\" but you set it in \\\"%s\\\".\\n\"\n };\n /**\n * super basic version of sprintf\n * @private\n */\n\n function format() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var a = args[0];\n var b = [];\n var c;\n for (c = 1; c < args.length; c += 1) {\n b.push(args[c]);\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 var PolishedError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(PolishedError, _Error);\n function PolishedError(code) {\n var _this;\n if (process.env.NODE_ENV === 'production') {\n _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/main/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 _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n }\n return _assertThisInitialized(_this);\n }\n return PolishedError;\n }( /*#__PURE__*/_wrapNativeSuper(Error));\n exports[\"default\"] = PolishedError;\n module.exports = exports.default;\n})(_errors, _errors.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = parseToRgb;\n var _hslToRgb$1 = /*#__PURE__*/_interopRequireDefault(_hslToRgb.exports);\n var _nameToHex$1 = /*#__PURE__*/_interopRequireDefault(_nameToHex.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n var hexRegex = /^#[a-fA-F0-9]{6}$/;\n var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;\n var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\n var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;\n var rgbRegex = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i;\n var rgbaRegex = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\n var hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i;\n var hslaRegex = /^hsl(?:a)?\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\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\n function parseToRgb(color) {\n if (typeof color !== 'string') {\n throw new _errors$1[\"default\"](3);\n }\n var normalizedColor = (0, _nameToHex$1[\"default\"])(color);\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 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 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 if (normalizedColor.match(reducedRgbaHexRegex)) {\n var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\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 var rgbMatched = rgbRegex.exec(normalizedColor);\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 var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));\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]) > 1 ? parseFloat(\"\" + rgbaMatched[4]) / 100 : parseFloat(\"\" + rgbaMatched[4])\n };\n }\n var hslMatched = hslRegex.exec(normalizedColor);\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(\" + (0, _hslToRgb$1[\"default\"])(hue, saturation, lightness) + \")\";\n var hslRgbMatched = rgbRegex.exec(rgbColorString);\n if (!hslRgbMatched) {\n throw new _errors$1[\"default\"](4, normalizedColor, rgbColorString);\n }\n return {\n red: parseInt(\"\" + hslRgbMatched[1], 10),\n green: parseInt(\"\" + hslRgbMatched[2], 10),\n blue: parseInt(\"\" + hslRgbMatched[3], 10)\n };\n }\n var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));\n if (hslaMatched) {\n var _hue = parseInt(\"\" + hslaMatched[1], 10);\n var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n var _rgbColorString = \"rgb(\" + (0, _hslToRgb$1[\"default\"])(_hue, _saturation, _lightness) + \")\";\n var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n if (!_hslRgbMatched) {\n throw new _errors$1[\"default\"](4, normalizedColor, _rgbColorString);\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]) > 1 ? parseFloat(\"\" + hslaMatched[4]) / 100 : parseFloat(\"\" + hslaMatched[4])\n };\n }\n throw new _errors$1[\"default\"](5);\n }\n module.exports = exports.default;\n})(parseToRgb, parseToRgb.exports);\nvar _rgbToHsl = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n function 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 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 var hue;\n var delta = max - min;\n var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n switch (max) {\n case red:\n hue = (green - blue) / delta + (green < blue ? 6 : 0);\n break;\n case green:\n hue = (blue - red) / delta + 2;\n break;\n default:\n // blue case\n hue = (red - green) / delta + 4;\n break;\n }\n hue *= 60;\n if (color.alpha !== undefined) {\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness,\n alpha: color.alpha\n };\n }\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness\n };\n }\n var _default = rgbToHsl;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_rgbToHsl, _rgbToHsl.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = parseToHsl;\n var _parseToRgb = /*#__PURE__*/_interopRequireDefault(parseToRgb.exports);\n var _rgbToHsl$1 = /*#__PURE__*/_interopRequireDefault(_rgbToHsl.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\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 */\n function 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 (0, _rgbToHsl$1[\"default\"])((0, _parseToRgb[\"default\"])(color));\n }\n module.exports = exports.default;\n})(parseToHsl, parseToHsl.exports);\nvar toColorString = {\n exports: {}\n};\nvar hsl = {\n exports: {}\n};\nvar _hslToHex = {\n exports: {}\n};\nvar _reduceHexValue = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n\n /**\n * Reduces hex values if possible e.g. #ff8866 to #f86\n * @private\n */\n var 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 return value;\n };\n var _default = reduceHexValue;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_reduceHexValue, _reduceHexValue.exports);\nvar _numberToHex = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n function numberToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? \"0\" + hex : hex;\n }\n var _default = numberToHex;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_numberToHex, _numberToHex.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n var _hslToRgb$1 = /*#__PURE__*/_interopRequireDefault(_hslToRgb.exports);\n var _reduceHexValue$1 = /*#__PURE__*/_interopRequireDefault(_reduceHexValue.exports);\n var _numberToHex$1 = /*#__PURE__*/_interopRequireDefault(_numberToHex.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n function colorToHex(color) {\n return (0, _numberToHex$1[\"default\"])(Math.round(color * 255));\n }\n function convertToHex(red, green, blue) {\n return (0, _reduceHexValue$1[\"default\"])(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n }\n function hslToHex(hue, saturation, lightness) {\n return (0, _hslToRgb$1[\"default\"])(hue, saturation, lightness, convertToHex);\n }\n var _default = hslToHex;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(_hslToHex, _hslToHex.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = hsl;\n var _hslToHex$1 = /*#__PURE__*/_interopRequireDefault(_hslToHex.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\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 */\n function hsl(value, saturation, lightness) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {\n return (0, _hslToHex$1[\"default\"])(value, saturation, lightness);\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {\n return (0, _hslToHex$1[\"default\"])(value.hue, value.saturation, value.lightness);\n }\n throw new _errors$1[\"default\"](1);\n }\n module.exports = exports.default;\n})(hsl, hsl.exports);\nvar hsla = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = hsla;\n var _hslToHex$1 = /*#__PURE__*/_interopRequireDefault(_hslToHex.exports);\n var _hslToRgb$1 = /*#__PURE__*/_interopRequireDefault(_hslToRgb.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\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 */\n function hsla(value, saturation, lightness, alpha) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {\n return alpha >= 1 ? (0, _hslToHex$1[\"default\"])(value, saturation, lightness) : \"rgba(\" + (0, _hslToRgb$1[\"default\"])(value, saturation, lightness) + \",\" + alpha + \")\";\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {\n return value.alpha >= 1 ? (0, _hslToHex$1[\"default\"])(value.hue, value.saturation, value.lightness) : \"rgba(\" + (0, _hslToRgb$1[\"default\"])(value.hue, value.saturation, value.lightness) + \",\" + value.alpha + \")\";\n }\n throw new _errors$1[\"default\"](2);\n }\n module.exports = exports.default;\n})(hsla, hsla.exports);\nvar rgb = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = rgb;\n var _reduceHexValue$1 = /*#__PURE__*/_interopRequireDefault(_reduceHexValue.exports);\n var _numberToHex$1 = /*#__PURE__*/_interopRequireDefault(_numberToHex.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\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 */\n function rgb(value, green, blue) {\n if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n return (0, _reduceHexValue$1[\"default\"])(\"#\" + (0, _numberToHex$1[\"default\"])(value) + (0, _numberToHex$1[\"default\"])(green) + (0, _numberToHex$1[\"default\"])(blue));\n } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n return (0, _reduceHexValue$1[\"default\"])(\"#\" + (0, _numberToHex$1[\"default\"])(value.red) + (0, _numberToHex$1[\"default\"])(value.green) + (0, _numberToHex$1[\"default\"])(value.blue));\n }\n throw new _errors$1[\"default\"](6);\n }\n module.exports = exports.default;\n})(rgb, rgb.exports);\nvar rgba = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = rgba;\n var _parseToRgb = /*#__PURE__*/_interopRequireDefault(parseToRgb.exports);\n var _rgb = /*#__PURE__*/_interopRequireDefault(rgb.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\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 */\n function rgba(firstValue, secondValue, thirdValue, fourthValue) {\n if (typeof firstValue === 'string' && typeof secondValue === 'number') {\n var rgbValue = (0, _parseToRgb[\"default\"])(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 ? (0, _rgb[\"default\"])(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 ? (0, _rgb[\"default\"])(firstValue.red, firstValue.green, firstValue.blue) : \"rgba(\" + firstValue.red + \",\" + firstValue.green + \",\" + firstValue.blue + \",\" + firstValue.alpha + \")\";\n }\n throw new _errors$1[\"default\"](7);\n }\n module.exports = exports.default;\n})(rgba, rgba.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = toColorString;\n var _hsl = /*#__PURE__*/_interopRequireDefault(hsl.exports);\n var _hsla = /*#__PURE__*/_interopRequireDefault(hsla.exports);\n var _rgb = /*#__PURE__*/_interopRequireDefault(rgb.exports);\n var _rgba = /*#__PURE__*/_interopRequireDefault(rgba.exports);\n var _errors$1 = /*#__PURE__*/_interopRequireDefault(_errors.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n var 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 var isRgba = function isRgba(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\n };\n var 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 var 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 function toColorString(color) {\n if (typeof color !== 'object') throw new _errors$1[\"default\"](8);\n if (isRgba(color)) return (0, _rgba[\"default\"])(color);\n if (isRgb(color)) return (0, _rgb[\"default\"])(color);\n if (isHsla(color)) return (0, _hsla[\"default\"])(color);\n if (isHsl(color)) return (0, _hsl[\"default\"])(color);\n throw new _errors$1[\"default\"](8);\n }\n module.exports = exports.default;\n})(toColorString, toColorString.exports);\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n var _curry$1 = /*#__PURE__*/_interopRequireDefault(_curry.exports);\n var _guard$1 = /*#__PURE__*/_interopRequireDefault(_guard.exports);\n var _parseToHsl = /*#__PURE__*/_interopRequireDefault(parseToHsl.exports);\n var _toColorString = /*#__PURE__*/_interopRequireDefault(toColorString.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\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 function darken(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = (0, _parseToHsl[\"default\"])(color);\n return (0, _toColorString[\"default\"])(_extends({}, hslColor, {\n lightness: (0, _guard$1[\"default\"])(0, 1, hslColor.lightness - parseFloat(amount))\n }));\n } // prettier-ignore\n\n var curriedDarken = /*#__PURE__*/(0, _curry$1[\"default\"]\n /* :: */)(darken);\n var _default = curriedDarken;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(darken$1, darken$1.exports);\nvar darken = /*@__PURE__*/getDefaultExportFromCjs(darken$1.exports);\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar defaultBaseline = {\n boxSizing: 'border-box',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n};\nvar defaultFonts = function (_a) {\n var type = _a.type;\n return {\n fontFamily: type.fontFamily.base,\n fontSize: type.fontSize.body,\n '-webkit-font-smoothing': 'antialiased'\n };\n};\nfunction deprecate(props, key, value, componentName) {\n if (props[key] === value) {\n // eslint-disable-next-line no-console\n console.warn(\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n \"[DEPRECATED]: The \".concat(componentName, \" prop \").concat(String(key), \" with value \\\"\").concat(value, \"\\\" is deprecated and will be removed in the future\"));\n }\n}\nfunction extractType(node) {\n if (isValidElement(node)) return node.type;\n return '';\n}\nfunction extractDisplayName(type) {\n var _a, _b;\n return (_b = (_a = type.displayName) !== null && _a !== void 0 ? _a : type.name) !== null && _b !== void 0 ? _b : 'Unknown';\n}\nvar getDisplayName = function (child) {\n var type = extractType(child);\n if (typeof type === 'function' || typeof type === 'object') {\n return extractDisplayName(type);\n }\n if (typeof type === 'symbol') {\n return type.toString();\n }\n return type;\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nvar getState = function (state, newState) {\n return __assign(__assign({}, state), newState);\n};\nvar isControlled = function (value) {\n return !(value === undefined || value === null);\n};\nvar isBrowser = typeof window !== 'undefined';\nvar guardElement = function (e) {\n return isElement(e);\n};\nvar lighten$1 = {\n exports: {}\n};\n(function (module, exports) {\n exports.__esModule = true;\n exports[\"default\"] = void 0;\n var _curry$1 = /*#__PURE__*/_interopRequireDefault(_curry.exports);\n var _guard$1 = /*#__PURE__*/_interopRequireDefault(_guard.exports);\n var _parseToHsl = /*#__PURE__*/_interopRequireDefault(parseToHsl.exports);\n var _toColorString = /*#__PURE__*/_interopRequireDefault(toColorString.exports);\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n }\n function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\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 function lighten(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = (0, _parseToHsl[\"default\"])(color);\n return (0, _toColorString[\"default\"])(_extends({}, hslColor, {\n lightness: (0, _guard$1[\"default\"])(0, 1, hslColor.lightness + parseFloat(amount))\n }));\n } // prettier-ignore\n\n var curriedLighten = /*#__PURE__*/(0, _curry$1[\"default\"]\n /* :: */)(lighten);\n var _default = curriedLighten;\n exports[\"default\"] = _default;\n module.exports = exports.default;\n})(lighten$1, lighten$1.exports);\nvar lighten = /*@__PURE__*/getDefaultExportFromCjs(lighten$1.exports);\nfunction removeUndefinedProperties(obj) {\n var result = {};\n Object.entries(obj).forEach(function (_a) {\n var key = _a[0],\n value = _a[1];\n if (value !== undefined) {\n result[key] = value;\n }\n });\n return result;\n}\nvar safeRest = function (_a) {\n _a.className;\n _a.style;\n var props = __rest(_a, [\"className\", \"style\"]);\n return props;\n};\nvar conditionGuard = function (what, conditional) {\n return conditional;\n};\nvar notEmpty = function (value) {\n return value !== null && value !== undefined;\n};\nvar handlePortal = function (content, renderTo) {\n if (!renderTo) return content;\n if (conditionGuard(renderTo, isElement(renderTo))) return createPortal(content, renderTo);\n if (renderTo.current) return createPortal(content, renderTo.current);\n return content;\n};\n\n// Taken from lodash: https://github.com/lodash/lodash/blob/master/uniqueId.js\nvar idCounter = 0;\nvar uniqueId = function (prefix) {\n var id = ++idCounter;\n if (prefix == null) {\n throw new Error('The value is missing in uniqueId() parameter');\n }\n return \"\".concat(prefix).concat(id);\n};\n\n// send in the state value as a parameter and get the previous value of that state\nvar usePreviousState = function (value) {\n var ref = useRef();\n useEffect(function () {\n ref.current = value;\n });\n return ref.current;\n};\n\n/**\n * SSR Safe version of `useLayoutEffect`\n *\n * falls back to `useEffect` when not run in a browser\n */\nvar useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\n\n// https://snook.ca/archives/html_and_css/hiding-content-for-accessibility\nvar visuallyHidden = {\n border: '0px',\n clip: 'rect(1px, 1px, 1px, 1px)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n};\nvar withNested = function (component, args) {\n return Object.assign(component, args);\n};\nfunction withSpacing(Component) {\n /**\n * JSS injects css styles in the order of `createUseStyles` usage\n * Hence, useStyles needs to be instantiated every single time while\n * using this HOC because it should be the last `createUseStyles` usage\n * for a component. With this mechanism, `withSpacing` overwrites the component\n * spacing. Not ideal for a design system, but we are waiting on the\n * below ticket.\n *\n * Note: https://jira.surveymonkey.com/browse/WRENCH-1107\n *\n * If the decision is have `withStyles` NOT overwrite the component spacing,\n * just move this declaration outside of this component. `withSpacing` will then\n * add to the styles and not overwrite them.\n */\n var useStyles = createMemoStyles(function (_a) {\n var spacing = _a.spacing;\n return {\n wrenchSpacing: function (_a) {\n var margin = _a.margin,\n padding = _a.padding;\n return {\n marginTop: margin.t && spacing[margin.t],\n marginRight: margin.r && spacing[margin.r],\n marginBottom: margin.b && spacing[margin.b],\n marginLeft: margin.l && spacing[margin.l],\n paddingTop: padding.t && spacing[padding.t],\n paddingRight: padding.r && spacing[padding.r],\n paddingBottom: padding.b && spacing[padding.b],\n paddingLeft: padding.l && spacing[padding.l]\n };\n }\n };\n });\n var WithSpacing = function (_a) {\n var _b, _c, _d, _e, _f, _g, _h, _j;\n var m = _a.m,\n mx = _a.mx,\n my = _a.my,\n mt = _a.mt,\n mb = _a.mb,\n ml = _a.ml,\n mr = _a.mr,\n p = _a.p,\n px = _a.px,\n py = _a.py,\n pt = _a.pt,\n pb = _a.pb,\n pl = _a.pl,\n pr = _a.pr,\n className = _a.className,\n rest = __rest(_a, [\"m\", \"mx\", \"my\", \"mt\", \"mb\", \"ml\", \"mr\", \"p\", \"px\", \"py\", \"pt\", \"pb\", \"pl\", \"pr\", \"className\"]);\n var margin = {\n t: (_b = m !== null && m !== void 0 ? m : my) !== null && _b !== void 0 ? _b : mt,\n b: (_c = m !== null && m !== void 0 ? m : my) !== null && _c !== void 0 ? _c : mb,\n l: (_d = m !== null && m !== void 0 ? m : mx) !== null && _d !== void 0 ? _d : ml,\n r: (_e = m !== null && m !== void 0 ? m : mx) !== null && _e !== void 0 ? _e : mr\n };\n var padding = {\n t: (_f = p !== null && p !== void 0 ? p : py) !== null && _f !== void 0 ? _f : pt,\n b: (_g = p !== null && p !== void 0 ? p : py) !== null && _g !== void 0 ? _g : pb,\n l: (_h = p !== null && p !== void 0 ? p : px) !== null && _h !== void 0 ? _h : pl,\n r: (_j = p !== null && p !== void 0 ? p : px) !== null && _j !== void 0 ? _j : pr\n };\n var classes = useStyles({\n margin: margin,\n padding: padding\n });\n var Element = Component;\n return React.createElement(Element, __assign({\n spacingClass: classes.wrenchSpacing,\n className: className\n }, safeRest(rest)));\n };\n WithSpacing.displayName = \"WithSpacing(\".concat(getDisplayName(Component), \")\");\n WithSpacing.getOriginalComponent = function () {\n return Component;\n };\n WithSpacing.defaultProps = {\n m: undefined,\n mx: undefined,\n my: undefined,\n mt: undefined,\n mb: undefined,\n ml: undefined,\n mr: undefined,\n p: undefined,\n px: undefined,\n py: undefined,\n pt: undefined,\n pb: undefined,\n pl: undefined,\n pr: undefined,\n className: undefined\n };\n return WithSpacing;\n}\nvar KEYS = {\n DOWN: 'ArrowDown',\n END: 'End',\n ESC: 'Escape',\n HOME: 'Home',\n LEFT: 'ArrowLeft',\n PAGE_DOWN: 'PageDown',\n PAGE_UP: 'PageUp',\n RIGHT: 'ArrowRight',\n UP: 'ArrowUp',\n ENTER: 'Enter',\n SPACE: ' ',\n BACKSPACE: 'Backspace',\n TAB: 'Tab'\n};\nexport { KEYS, clearfix, conditionGuard, createMemoStyles, createSpacingStyles, darken, defaultBaseline, defaultFonts, deprecate, extractDisplayName, extractType, getContrastColor, getDisplayName, getState, guardElement, handlePortal, isBrowser, isControlled, lighten, notEmpty, removeUndefinedProperties, safeRest, uniqueId, useIsomorphicLayoutEffect, usePreviousState, visuallyHidden, withNested, withSpacing };"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","useStyles","_a","spacing","border","wrenchBox","_b","_c","display","flexProperties","gridProperties","borderColor","gap","gridStyleProperties","_d","flexItemGrow","undefined","_e","flexWrap","flexStyleProperties","justifyContent","alignItems","flexGrow","useSpacingStyles","Box","props","containerRef","className","children","element","alignContent","flexDirection","flexJustify","flexAlign","gridTemplateColumns","gridTemplateRows","gridAutoFlow","placeItems","m","mx","my","mt","mb","ml","mr","px","py","pt","pb","pl","pr","rest","wrenchSpacing","Element","classNames","ref","defaultProps","getMarkedColor","color","palette","startsWith","data","replace","main","primary","useStyles$1","theme","motion","type","list","addonIconColor","background","dark","affordanceIconColor","secondary","itemHeight","itemMinHeight","itemDenseMinHeight","labelFontSize","fontSize","bodySm","markWidth","wrenchListRow","borderBottom","text","textDecoration","wrenchListItem","accordion","marked","menu","disabled","upgrade","interactive","isFocused","transparent","fontWeight","regular","medium","light","position","minHeight","cursor","transition","accent","opacity","pointerEvents","content","left","top","bottom","width","wrenchListAddon","padding","marginLeft","wrenchListAddonOnRight","paddingLeft","paddingRight","lightMuted","wrenchListAffordance","addOnLeft","concat","curve","ease","wrenchListLabel","lineHeight","minWidth","wrenchPaneHide","expanded","ListItem","forwardRef","addOnRight","affordance","component","id","index","navigationTarget","onClick","isNavigable","other","paneComponent","addOnClassNames","href","ListItemWrapper","interactiveProps","tabIndex","role","onKeyDown","key","displayName","wrenchList","dense","noRules","margin","List","newChildren","child","Item","__spreadArray","to","from","pack","ar","l","Array","slice","fontFamily","wrenchTypography","align","variant","weight","chosenColor","fallback","variantStyle","hero1","hero2","title","sectionTitle","sectionTitleSm","pageTitle","cardTitle","body","caption","link","outline","computedWeight","hasFontWeight","base","boxSizing","textAlign","headings","Typography","Component","AccordionItem","ariaControls","subtitle","titleSize","Accordion","multiple","onChange","areAnyItemsControlled","defaultExpandedCount","useState","Children","defaultExpanded","isValidElement","filter","val","expandedIndices","setExpandedIndices","isExpandedStateControlled","accListRef","useRef","uniqueAccName","useMemo","uniqueAccPaneName","console","error","handleOnChange","evt","itemId","isExpanding","currentTarget","newExpandedIndices","Number","isInteger","includes","item","renderAccordionElement","accordionName","accordionPaneName","paneChildren","labelledBy","paneId","panePadding","paneProps","hide","renderPane","titleVariant","childElements","cloneElement","ind","preventDefault","accList","current","map","acc","firstChild","accListLen","newFocusTarget","focus","handleKeyDown","accordionList","isExpandedItem","arr","SEMANTIC_COLORS","LINK_COLORS","TYPE_COLORS","BACKGROUND_COLORS","BACKGROUND_SEMANTIC_COLORS","BORDER_COLORS","DATA_COLORS","FONT_SIZES","FONT_WEIGHTS","DATA_VIS_COLORS","freeze","x","readOnlyIncludes","el","isSemanticColor","c","getColor","onDark","semanticKey","semanticBackgroundKey","colorType","_f","semanticOnDarkKey","cType","isColorShape","isLinkColor","isTypeColor","isBackgroundColor","isBackgroundSemanticColor","isBorderColor","isDataVisColor","isDataColor","split","palette$1","clear","contrast","success","warning","info","muted","darkMuted","overlay","active","hover","one","two","three","four","five","six","seven","eight","nine","ten","objectAssign","hasRequiredObjectAssign","hasRequiredReact_production_min","react","exports","react_production_min","requireReact_production_min","requireObjectAssign","propIsEnumerable","toObject","TypeError","shouldUseNative","test1","String","getOwnPropertyNames","test2","fromCharCode","join","test3","forEach","letter","keys","err","target","source","symbols","Fragment","StrictMode","Profiler","q","r","Suspense","u","v","Symbol","for","w","iterator","z","a","b","encodeURIComponent","A","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","B","C","context","refs","updater","D","E","isReactComponent","setState","Error","forceUpdate","F","constructor","isPureReactComponent","G","H","I","__self","__source","J","d","k","h","g","f","$$typeof","_owner","L","M","N","escape","toString","O","isArray","K","push","y","next","done","value","P","Q","_status","_result","then","default","R","S","T","ReactCurrentDispatcher","ReactCurrentBatchConfig","ReactCurrentOwner","IsSomeRendererActing","count","toArray","only","PureComponent","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","createElement","createFactory","bind","createRef","render","lazy","_payload","_init","memo","compare","useCallback","useContext","useDebugValue","useEffect","useImperativeHandle","useLayoutEffect","useReducer","version","assets","fontPath","path","name","upperCaseName","toUpperCase","fontDisplay","src","fallbacks","listStyle","innerBoxStyle","backgroundColor","marginBottom","height","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceKeys","sourceSymbolKeys","_defineProperty","obj","defineProperty","enumerable","configurable","writable","ownKeys","object","enumerableOnly","sym","getOwnPropertyDescriptor","_objectSpread","getOwnPropertyDescriptors","defineProperties","useStyles$2","_ref","wrenchCloseButton","_ref2","badge","right","banner","borderRadius","_excluded","CloseButton","label","propTypes","CloseButton$1","_typeof","radius","small","bgColor","typeColor","borderSize","wrenchBanner","_color","borderLeftWidth","wrenchBannerBody","showIcon","wrenchBannerActions","wrenchBannerIcon","marginTop","Banner","dismissible","show","onClose","closeButtonLabel","actions","_g","close","setClose","_h","bodyId","BannerIcon","in","direction","distance","displayProperty","displayOptions","flexDirectionOptions","flexJustifyOptions","flexAlignOptions","spacingClass","classes","__docgenInfo","Box$1","shadow","button","boxShadow","none","wrenchButtonGroup","radio","marginRight","zIndex","elevation","space","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderLeft","ButtonGroup","xs","sm","md","lg","fillColor","transform","strokeDasharray","strokeDashoffset","animationTimingFunction","wrenchProgressCircle","size","continuous","fill","wrenchCirclePath","wrenchCirclePathGroup","animation","transformOrigin","wrenchCirclePathBorder","stroke","wrenchCirclePathFill","animateOnLoad","strokeLinecap","wrenchCircleDisplay","ProgressCircle","percent","valueMax","valueMin","_j","valueText","_k","initialPercent","_l","setPercent","_m","_o","strokeWidth","circumference","Math","PI","valueNow","viewBox","cx","cy","iconPadding","wrenchButton","pressed","stretched","iconOnly","leftIcon","rightIcon","loading","buttonColor","pressedColor","textColor","sky","variantSolid","variantGhost","variantText","iconMargin","svgMargin","colorAlt","wrenchButtonLoading","Button","ariaPressed","buttonType","setPressed","rel","numberOfChildren","reactChildren","warn","isDisabled","colorValue","contrastColor","_arrayLikeToArray","len","arr2","SIZES","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","iter","_unsupportedIterableToArray","o","minLen","test","_nonIterableSpread","DOWN","END","ESC","HOME","LEFT","PAGE_DOWN","PAGE_UP","RIGHT","UP","ENTER","SPACE","BACKSPACE","TAB","speed","slow","normal","fast","near","far","alert","avatar","box","card","checkbox","coachmark","grid","icons","input","modal","multiselect","pagination","popout","responsive","select","sheet","slider","switch","table","tabs","textarea","toast","tooltip","typography","_theme$type","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_i","_s","_arr","_n","_nonIterableRest","bgColorOn","iconColorOn","wrenchCheckbox","wrenchCheckboxFaux","flexShrink","exit","verticalAlign","icon","wrenchCheckboxLabel","whiteSpace","wrenchCheckboxIndeterminate","bounceEnd","wrenchCheckboxNative","isIndeterminate","bounceStart","Checkbox","ariaLabel","checked","defaultChecked","indeterminate","innerRef","onBlur","_useState2","isChecked","setChecked","_useState4","setFocused","_useState6","setIndeterminate","checkedState","inputID","_useStyles","nativeClasses","handleBlur","onFocus","handleFocus","handleChange","persist","htmlFor","propName","toVal","mix","str","clsx","tmp","_setPrototypeOf","setPrototypeOf","__proto__","_getPrototypeOf","getPrototypeOf","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","_construct","Parent","args","Class","instance","Function","_wrapNativeSuper","_cache","Map","_isNativeFunction","fn","has","get","set","Wrapper","create","getState","state","newState","_excluded$1","safeRest","style","idCounter","uniqueId","prefix","visuallyHidden","clip","overflow","wordWrap","defaultFonts","defaultBaseline","commonjsGlobal","globalThis","window","self","funcProto","objectProto","funcToString","overArg","func","arg","lodash_isequal","module","HASH_UNDEFINED","MAX_SAFE_INTEGER","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","objectTag","promiseTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","reIsHostCtor","reIsUint","typedArrayTags","freeGlobal","freeSelf","root","freeExports","nodeType","freeModule","moduleExports","freeProcess","process","nodeUtil","binding","nodeIsTypedArray","isTypedArray","arraySome","array","predicate","mapToArray","result","setToArray","uid","arrayProto","coreJsData","maskSrcKey","exec","IE_PROTO","nativeObjectToString","reIsNative","RegExp","Buffer","Uint8Array","splice","symToStringTag","toStringTag","nativeGetSymbols","nativeIsBuffer","isBuffer","nativeKeys","DataView","getNative","Promise","Set","WeakMap","nativeCreate","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","Hash","entries","entry","ListCache","MapCache","SetCache","values","__data__","add","Stack","arrayLikeKeys","inherited","isArr","isArg","isArguments","isBuff","isType","skipIndexes","baseTimes","iteratee","isIndex","assocIndexOf","eq","baseGetTag","getRawTag","isOwn","tag","unmasked","objectToString","baseIsArguments","isObjectLike","baseIsEqual","bitmask","customizer","stack","baseIsEqualDeep","equalFunc","objIsArr","othIsArr","objTag","getTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","equalByTag","byteLength","byteOffset","buffer","message","convert","isPartial","stacked","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","equalObjects","objProps","getAllKeys","objLength","othLength","skipCtor","objValue","othValue","compared","objCtor","othCtor","baseIsNative","isObject","isMasked","isFunction","baseKeys","isPrototype","Ctor","proto","arrLength","seen","arrValue","othIndex","baseGetAllKeys","keysFunc","symbolsFunc","arrayPush","offset","getSymbols","getMapData","isKeyable","getValue","hashClear","hashDelete","hashGet","hashHas","hashSet","listCacheClear","listCacheDelete","pop","listCacheGet","listCacheHas","listCacheSet","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","setCacheAdd","setCacheHas","stackClear","stackDelete","stackGet","stackHas","stackSet","pairs","LARGE_ARRAY_SIZE","arrayFilter","resIndex","symbol","stubArray","ArrayBuffer","resolve","ctorString","stubFalse","isLength","baseUnary","baseIsTypedArray","isArrayLike","isEqual","isDeepEqual","createMemoStyles","styles","useMemoStyles","wrenchInputMessage","InputMessage","componentSpecificStyles","Overlay","pane","wrenchPane","wrenchPaneBody","Pane","wrenchLabel","plain","Label","dataTransform","getDataColor","useStyles$5","Overlay$1","useStyles$3","wrenchModalBody","overflowY","ModalBody","handleClick","wrenchModalFooter","borderTop","wrenchModalActions","ModalFooter","wrenchModalHeader","wrenchModalText","wrenchModalTitle","wrenchModalSubText","wrenchModalAddOn","ModalHeader","addOn","header","subHeader","modalWidth","xl","full","breakpoints","wrenchModal","wrenchModalContainer","maxWidth","maxHeight","fullPage","wrenchModalOverlayContainer","wrenchModalOverlay","Modal","modalBodyRef","prevShow","document","parent_1","getElementsByTagName","titleId","hasModalHeader","some","additionalProps","Body","Footer","Header","wrenchFade","transitionTime","enter","enterActive","exitActive","Fade","timeout","fade","animationClasses","unmountOnExit","speedAnimation","isEnter","bezier","directionAnimation","isZero","up","down","wrenchSlide","slideSpeed","slideDistance","Slide","slide","wrenchZoom","wrenchPageHeader","centered","flexFlow","wrenchPageHeaderText","flexBasis","wrenchPageHeaderAddOn","_ref3","centeredStyles","wrenchPageHeaderTitle","wrenchPageHeaderSubtitle","PageHeader","subTitle","headerId","CIRCLE_CIRCUMFERENCE","wrenchRadio","wrenchRadioFaux","large","wrenchRadioLabel","wordBreak","wrenchRadioNative","Radio","_extends","_assertThisInitialized","ReferenceError","browser","condition","format","argIndex","framesToPop","camel2hyphen","match","toLowerCase","obj2mq","mq","features","feature","isDimension","json2mq_1","query","MediaQueryListener","targetWindow","listener","_this","nativeMediaQueryList","matchMedia","cancellableListener","matches","addListener","cancel","removeListener","queryType","Media","_React$Component","unwrapSingleQuery","queryObject","queryNames","__DEFAULT__","queries","reduce","_extends2","mqListener","newMatches","getMatches","defaultMatches","_extends3","initialize","_inheritsLoose","subClass","superClass","_proto","_this2","wrapInQueryObject","qs","updateMatches","componentDidMount","componentWillUnmount","_this$props","isAnyMatches","breakpointOptions","Responsive","max","section","wrenchSection","wrenchSectionHeader","noRule","wrenchSectionBody","wrenchSectionAddon","float","SectionWithSpacing","sectionAddon","hadAddOn","wrenchSectionWrapper","theme$1","easeReverse","zero","iconSize","paddingSm","paddingMd","paddingLg","wrenchTextarea","resizable","appearance","resize","Textarea","titleFontSize","wrenchToastTitle","ToastTitle","bodyTypeSize","linkColor","wrenchToastBody","ToastBody","wrenchToastFooter","ToastFooter","wrenchToastContainer","wrenchToast","wrenchToastIcon","wrenchToastContent","Toast","autoClose","timeoutRef","localShow","setLocalShow","ToastIcon","handleClose","clearTimeout","setTimeout","timeEffectRef","onMouseEnter","onMouseLeave","Title","options","createSpacingStyles","paddingTop","paddingBottom","getContrastColor","colorValues","parseInt","colorReg","sqrt","getDefaultExportFromCjs","__esModule","darken$1","_curry","curried","combined","curry","_guard","_default","guard","lowerBoundary","upperBoundary","min","parseToHsl","parseToRgb","_hslToRgb","colorToInt","round","convertToInt","red","green","blue","hslToRgb","hue","saturation","lightness","huePrime","chroma","abs","secondComponent","lightnessModification","_nameToHex","namedColorMap","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","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","white","whitesmoke","yellow","yellowgreen","nameToHex","normalizedColorName","_errors","PolishedError","_Error","code","_errors$1","normalizedColor","_nameToHex$1","hexRegex","hexRgbaRegex","alpha","parseFloat","toFixed","reducedHexRegex","reducedRgbaHexRegex","_alpha","rgbMatched","rgbRegex","rgbaMatched","rgbaRegex","substring","hslMatched","hslRegex","rgbColorString","_hslToRgb$1","hslRgbMatched","hslaMatched","hslaRegex","_hue","_saturation","_lightness","_rgbColorString","_hslRgbMatched","_interopRequireDefault","_rgbToHsl","rgbToHsl","delta","_rgbToHsl$1","_parseToRgb","toColorString","hsl","_hslToHex","_reduceHexValue","reduceHexValue","_numberToHex","numberToHex","hex","_reduceHexValue$1","_numberToHex$1","colorToHex","convertToHex","hslToHex","_hslToHex$1","hsla","rgb","rgba","firstValue","secondValue","thirdValue","fourthValue","rgbValue","_rgb","isRgba","_rgba","isRgb","isHsla","_hsla","isHsl","_hsl","_curry$1","_guard$1","_parseToHsl","_toColorString","darken","amount","hslColor","deprecate","componentName","getDisplayName","extractType","node","extractDisplayName","isControlled","isBrowser","lighten$1","lighten","removeUndefinedProperties","conditionGuard","what","conditional","notEmpty","handlePortal","renderTo","createPortal","usePreviousState","useIsomorphicLayoutEffect","withNested","withSpacing","WithSpacing","getOriginalComponent","KEYS"],"sourceRoot":""}