@nuskin/react-loyalty-elements 1.0.7-react-import.1 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["/gitlab-runner-data/builds/nextgen-development/loyalty/npm/react-loyalty-elements/dist/CircularProgressBar/index.mjs","../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../src/CircularProgressBar/SubscriptionReward.tsx","../../src/CircularProgressBar/RewardProgressBar.tsx","../../src/CircularProgressBar/CircularProgressBar.styled.tsx","../../src/CircularProgressBar/RadialSeparator.tsx","../../src/Icons/SubscriptionVoucherIcon.tsx","../../src/Icons/SubscriptionVoucherIconGrey.tsx","../../src/CircularProgressBar/RewardSubscriptionMonthDescription.tsx","../../src/Utils/helper.ts","../../src/CircularProgressBar/RewardSubscriptionTotal.tsx","../../src/Icons/Info.tsx","../../node_modules/@mui/material/colors/common.js","../../node_modules/@mui/material/colors/red.js","../../node_modules/@mui/material/colors/purple.js","../../node_modules/@mui/material/colors/blue.js","../../node_modules/@mui/material/colors/lightBlue.js","../../node_modules/@mui/material/colors/green.js","../../node_modules/@mui/material/colors/orange.js","../../node_modules/@mui/material/colors/grey.js","../../node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/@mui/utils/esm/deepmerge.js","../../node_modules/@mui/utils/esm/formatMuiErrorMessage.js","../../node_modules/@mui/utils/esm/capitalize/capitalize.js","../../node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","../../node_modules/@mui/utils/esm/setRef.js","../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","../../node_modules/@mui/utils/esm/useId/useId.js","../../node_modules/@mui/utils/esm/useControlled/useControlled.js","../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../../node_modules/@mui/utils/esm/useIsFocusVisible.js","../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../../node_modules/@mui/material/styles/identifier.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js","../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js","../../node_modules/stylis/src/Enum.js","../../node_modules/stylis/src/Utility.js","../../node_modules/stylis/src/Tokenizer.js","../../node_modules/stylis/src/Parser.js","../../node_modules/stylis/src/Serializer.js","../../node_modules/stylis/src/Middleware.js","../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","../../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js","../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","../../node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","../../node_modules/@mui/styled-engine/index.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../node_modules/@mui/system/esm/createTheme/shape.js","../../node_modules/@mui/system/esm/merge.js","../../node_modules/@mui/system/esm/breakpoints.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js","../../node_modules/@mui/system/esm/style.js","../../node_modules/@mui/system/esm/memoize.js","../../node_modules/@mui/system/esm/spacing.js","../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../node_modules/@mui/system/esm/compose.js","../../node_modules/@mui/system/esm/borders.js","../../node_modules/@mui/system/esm/cssGrid.js","../../node_modules/@mui/system/esm/palette.js","../../node_modules/@mui/system/esm/sizing.js","../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../node_modules/@mui/system/esm/useTheme.js","../../node_modules/clsx/dist/clsx.mjs","../../node_modules/@mui/system/esm/createStyled.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js","../../node_modules/@mui/system/esm/colorManipulator.js","../../node_modules/@mui/material/styles/createMixins.js","../../node_modules/@mui/material/styles/createPalette.js","../../node_modules/@mui/material/styles/createTypography.js","../../node_modules/@mui/material/styles/shadows.js","../../node_modules/@mui/material/styles/createTransitions.js","../../node_modules/@mui/material/styles/zIndex.js","../../node_modules/@mui/material/styles/createTheme.js","../../node_modules/@mui/material/styles/useTheme.js","../../node_modules/@mui/material/styles/defaultTheme.js","../../node_modules/@mui/material/styles/useThemeProps.js","../../node_modules/@mui/material/styles/styled.js","../../node_modules/@mui/material/utils/capitalize.js","../../node_modules/@mui/material/utils/useId.js","../../node_modules/@mui/material/utils/useControlled.js","../../node_modules/@mui/material/utils/useEventCallback.js","../../node_modules/@mui/material/utils/useForkRef.js","../../node_modules/@mui/material/utils/useIsFocusVisible.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../node_modules/react-transition-group/esm/Transition.js","../../node_modules/react-transition-group/esm/config.js","../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../node_modules/react-transition-group/esm/utils/reflow.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../node_modules/react-transition-group/esm/TransitionGroup.js","../../node_modules/react-transition-group/esm/utils/ChildMapping.js","../../node_modules/@mui/material/transitions/utils.js","../../node_modules/@mui/material/ButtonBase/ButtonBase.js","../../node_modules/@mui/material/ButtonBase/TouchRipple.js","../../node_modules/@mui/material/ButtonBase/Ripple.js","../../node_modules/@mui/material/ButtonBase/touchRippleClasses.js","../../node_modules/@mui/material/ButtonBase/buttonBaseClasses.js","../../node_modules/@mui/material/IconButton/IconButton.js","../../node_modules/@mui/material/IconButton/iconButtonClasses.js","../../node_modules/@mui/base/utils/isHostComponent.js","../../node_modules/@mui/base/utils/appendOwnerState.js","../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../node_modules/@mui/base/utils/extractEventHandlers.js","../../node_modules/@mui/base/utils/resolveComponentProps.js","../../node_modules/@mui/base/utils/omitEventHandlers.js","../../node_modules/@mui/base/utils/mergeSlotProps.js","../../node_modules/@mui/base/utils/useSlotProps.js","../../node_modules/@mui/base/Popper/Popper.js","../../node_modules/@popperjs/core/lib/enums.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../node_modules/@popperjs/core/lib/utils/math.js","../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../node_modules/@popperjs/core/lib/utils/within.js","../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../node_modules/@popperjs/core/lib/utils/debounce.js","../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../node_modules/@popperjs/core/lib/createPopper.js","../../node_modules/@popperjs/core/lib/popper.js","../../node_modules/@mui/base/Portal/Portal.js","../../node_modules/@mui/base/Popper/popperClasses.js","../../node_modules/@mui/material/Popper/Popper.js","../../node_modules/@mui/material/Grow/Grow.js","../../node_modules/@mui/material/Tooltip/Tooltip.js","../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../src/CircularProgressBar/SubscriptionRewardMobile.tsx","../../src/Utils/application/application.ts","../../src/CircularProgressBar/logic/calculateMonthCompletionValues.ts"],"names":["a","la","b","Il","c","Fi","require_react_is_production_min","__commonJSMin","exports","z","u","$$typeof","type","l","m","e","g","f","p","k","n","t","r","h","d","A","Symbol","for","q","v","w","x","y","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require_react_is","module","ws","require_hoist_non_react_statics_cjs","getStatics","component","reactIs","MEMO_STATICS","TYPE_STATICS","REACT_STATICS","Cs","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","KNOWN_STATICS","name","length","prototype","caller","callee","arguments","arity","FORWARD_REF_STATICS","render","compare","defineProperty","Object","getOwnPropertyNames","getOwnPropertySymbols","getOwnPropertyDescriptor","getPrototypeOf","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","keys","concat","targetStatics","sourceStatics","i","key","descriptor","useState","React","CircularProgressbarWithChildren","buildStyles","styled","RewardProgressBarContainer","div","LoyaltyProgressSubContainer","StyledCard","Learn3XLink","ProgressBarCenter","RewardProgressTotalContainer","RewardProgressTotalButtonWithIcon","IconContainer","span","SeparatorCard","SeparatorInnerCard","jsx","Separator","props","style","transform","turns","children","RadialSeparators","count","Array","fill","map","_","index","RadialSeparator_default","FaExclamationTriangle","jsxs","SubscriptionVoucherIcon","width","height","viewBox","xmlns","SubscriptionVoucherIcon_default","SubscriptionVoucherIconGrey","SubscriptionVoucherIconGrey_default","replacePlaceholders","template","values","reduce","result","value","replace","RegExp","String","RewardSubscriptionMonthDescription","voucherValue","maxMonths","handleOpenSubscriptionRewardPopup","notQualifyForRewardThisMonth","translationConfig","voucherTargetAmount","monthsComplete","voucherEarned","learnMore","learn3xMore","callToAction","notQualify","approximateMonthly","approximateTotal","currentlyTrack","loyaltyLogoBlack","learnMoreConfig","tagLine","cardOneDescription","cardOneVoucherAmount","cardTwoDescription","cardTwoVoucherAmount","header","loyaltyLogoWhite","loyaltyBanner","currencyAbbreviate","currencyFormat","popupText","monthsCompleteText","completed_months","total_months","voucherEarnedText","className","src","alt","id","onClick","Component","RewardSubscriptionMonthDescription_default","NsTypography","RewardProgressBar","currency_symbol","voucher_amount","strokeWidth","background","styles","rotation","strokeLinecap","backgroundColor","pathColor","trailColor","color","variant","weight","RewardProgressBar_default","Info","fillRule","clipRule","x1","y1","x2","y2","stroke","Info_default","common","black","white","common_default","red","A100","A200","A400","A700","red_default","purple","purple_default","blue","blue_default","lightBlue","lightBlue_default","green","green_default","orange","orange_default","grey","grey_default","_extends","assign","bind","hasOwnProperty","call","apply","isPlainObject","item","constructor","deepClone","source","output","forEach","deepmerge","target","options","clone","formatMuiErrorMessage","code","url","encodeURIComponent","capitalize","string","Error","charAt","toUpperCase","slice","ownerDocument","node","document","setRef","ref","current","useEnhancedEffect","window","Jo","useLayoutEffect","useEffect","useEnhancedEffect_default","globalId","useGlobalId","idOverride","Or","defaultId","setDefaultId","maybeReactUseId","useId","reactId","useControlled","controlled","default","defaultProp","state","Kt","useRef","isControlled","valueState","setValue","setValueIfUncontrolled","useCallback","newValue","useEventCallback","fn","ha","args","useEventCallback_default","useForkRef","refs","Zi","useMemo","every","instance","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","text","search","tel","email","password","number","date","month","week","time","datetime","focusTriggersKeyboardModality","tagName","readOnly","isContentEditable","handleKeyDown","event","metaKey","altKey","ctrlKey","handlePointerDown","handleVisibilityChange","visibilityState","prepare","doc","addEventListener","isFocusVisible","matches","useIsFocusVisible","tn","isFocusVisibleRef","handleBlurVisible","clearTimeout","setTimeout","handleFocusVisible","onFocus","onBlur","composeClasses","slots","getUtilityClass","classes","slot","acc","utilityClass","push","join","defaultGenerator","componentName","createClassNameGenerator","generate","configure","generator","reset","ClassNameGenerator","ClassNameGenerator_default","globalStateClassesMapping","active","checked","completed","disabled","error","expanded","focused","focusVisible","open","required","selected","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","identifier_default","_objectWithoutPropertiesLoose","indexOf","useContext","forwardRef","isDevelopment","sheetForTag","tag","sheet","styleSheets","ownerNode","createStyleElement","createElement","setAttribute","nonce","appendChild","createTextNode","StyleSheet","_this","_insertTag","before","tags","insertionPoint","nextSibling","prepend","container","firstChild","insertBefore","isSpeedy","speedy","ctr","_proto","hydrate","nodes","insert","rule","insertRule","cssRules","flush","_tag$parentNode","parentNode","removeChild","MS","MOZ","WEBKIT","COMMENT","RULESET","DECLARATION","IMPORT","KEYFRAMES","LAYER","abs","Math","from","fromCharCode","hash","charat","trim","match","pattern","exec","replacement","indexof","charCodeAt","substr","begin","end","strlen","sizeof","append","array","combine","callback","line","column","position","character","characters","root","parent","return","copy","char","prev","next","peek","caret","token","alloc","dealloc","delimit","delimiter","whitespace","escaping","commenter","identifier","compile","parse","rules","rulesets","pseudo","points","declarations","offset","atrule","property","previous","variable","scanning","ampersand","reference","comment","declaration","ruleset","post","size","j","serialize","stringify","element","middleware","collection","rulesheet","memoize","cache","create","arg","identifierWithPointTracking","toRules","parsed","getRules","fixedElements","WeakMap","compat","isImplicitRule","get","set","parentRules","removeLabel","prefix","prefixer","defaultStylisPlugins","createCache","ssrStyles","querySelectorAll","dataEmotionAttribute","getAttribute","head","stylisPlugins","inserted","nodesToHydrate","attrib","split","_insert","omnipresentPlugins","currentSheet","finalizingPlugins","serializer","stylis","selector","serialized","shouldCache","registered","isBrowser","getRegisteredStyles","registeredStyles","classNames","rawClassName","registerStyles","isStringTag","insertStyles","murmur2","str","len","toString","unitlessKeys","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","hyphenateRegex","animationRegex","isCustomProperty","isProcessableValue","processStyleName","styleName","toLowerCase","processStyleValue","p1","p2","cursor","noComponentSelectorMessage","handleInterpolation","mergedProps","interpolation","componentSelector","__emotion_styles","keyframes","anim","serializedStyles","createStringFromObject","previousCursor","asString","cached","obj","isArray","_i","interpolated","labelPattern","serializeStyles","stringMode","strings","raw","asTemplateStringsArr","templateStringsArr","lastIndex","identifierName","syncFallback","useInsertionEffect","wn","useInsertionEffectAlwaysWithSyncFallback","EmotionCacheContext","We","createContext","HTMLElement","CacheProvider","Provider","withEmotionCache","func","ThemeContext","hasOwn","typePropName","createEmotionProps","newProps","_key","Insertion","_ref","Emotion","cssProp","css","WrappedComponent","_key2","Emotion$1","import_hoist_non_react_statics","Ns","Ur","argsLength","createElementArgArray","_jsx","JSX","_len","insertable","reactPropsRegex","isPropValid","prop","test","testOmitPropsOnStringTag","testOmitPropsOnComponent","getDefaultShouldForwardProp","composeShouldForwardProps","isReal","shouldForwardProp","optionsShouldForwardProp","__emotion_forwardProp","propName","createStyled","__emotion_real","baseTag","__emotion_base","targetClassName","label","defaultShouldForwardProp","shouldUseAs","Styled","FinalTag","as","classInterpolations","theme","Mt","finalShouldForwardProp","withComponent","nextTag","nextOptions","newStyled","internal_processStyles","processor","toStringTag","iterator","Aa","isValidElement","_excluded","sortBreakpointsValues","breakpointsAsArray","val","sort","breakpoint1","breakpoint2","createBreakpoints","breakpoints","xs","sm","md","lg","xl","unit","step","other","sortedValues","up","down","between","start","endIndex","only","not","keyIndex","shape","borderRadius","shape_default","merge","merge_default","defaultBreakpoints","handleBreakpoints","propValue","styleFromPropValue","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","vars","getStyleValue","themeMapping","propValueFinal","userValue","cssProperty","themeKey","filterProps","style_default","properties","directions","aliases","marginX","marginY","paddingX","paddingY","getCssProperties","direction","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","defaultValue","_getPath","themeSpacing","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","spacing","createSpacing","spacingInput","mui","argsInput","argument","compose","handlers","compose_default","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borders","gap","columnGap","rowGap","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","grid","paletteTransform","bgcolor","palette","sizingTransform","maxWidth","_props$theme","_props$theme2","minWidth","maxHeight","minHeight","sizeWidth","sizeHeight","boxSizing","sizing","defaultSxConfig","pt","pr","pb","pl","px","py","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd","mt","mr","mb","ml","mx","my","marginTop","marginRight","marginBottom","marginLeft","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","displayPrint","display","overflow","textOverflow","visibility","whiteSpace","flexBasis","flexDirection","flexWrap","justifyContent","alignItems","alignContent","alignSelf","justifyItems","justifySelf","top","right","bottom","left","boxShadow","fontFamily","fontSize","fontStyle","letterSpacing","textTransform","textAlign","typography","defaultSxConfig_default","objectsHaveSameKeys","objects","allKeys","object","union","Set","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","unstable_sxConfig","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","breakpointsValues","styleFunctionSx_default","applyStyles","getColorSchemeSelector","mode","createTheme","paletteInput","shapeInput","muiTheme","components","unstable_sx","createTheme_default","isObjectEmpty","useTheme","defaultTheme","contextTheme","ap","useThemeWithoutDefault_default","systemDefaultTheme","useTheme_default","o","clsx","clsx_default","_excluded2","_excluded3","isEmpty","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","ownerState","resolvedStylesArg","flatMap","resolvedStyle","variants","isMatch","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","__mui_systemSx","inputOptions","filter","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","shouldForwardPropOption","defaultStyledResolver","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","entries","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","muiName","withConfig","resolveProps","defaultSlotProps","slotProps","slotPropName","getThemeProps","params","useThemeProps","clamp","min","Number","MIN_SAFE_INTEGER","max","MAX_SAFE_INTEGER","clamp_default","clampWrapper","hexToRgb","re","colors","parseInt","round","decomposeColor","marker","substring","colorSpace","shift","parseFloat","recomposeColor","hslToRgb","s","rgb","getLuminance","toFixed","getContrastRatio","foreground","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","toolbar","light","primary","secondary","divider","paper","action","hover","hoverOpacity","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity","dark","icon","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","main","getDefaultPrimary","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","contrastThreshold","info","success","warning","getContrastText","augmentColor","mainShade","lightShade","darkShade","JSON","contrastText","modes","caseAllCaps","defaultFontFamily","createTypography","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem","pxToRem2","coef","buildVariant","casing","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline","inherit","createShadow","shadows","shadows_default","easing","easeInOut","easeOut","easeIn","sharp","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","delay","animatedProp","mobileStepper","fab","speedDial","appBar","drawer","modal","snackbar","tooltip","zIndex_default","mixinsInput","transitionsInput","transitions","typographyInput","systemTheme","defaultTheme_default","styled_default","capitalize_default","useId_default","useControlled_default","useForkRef_default","useIsFocusVisible_default","_setPrototypeOf","setPrototypeOf","__proto__","_inheritsLoose","ReactDOM","config_default","TransitionGroupContext_default","forceReflow","scrollTop","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","parentGroup","appear","isMounting","enter","initialStatus","appearStatus","in","unmountOnExit","mountOnEnter","status","nextCallback","prevState","nextIn","componentDidMount","updateStatus","componentDidUpdate","prevProps","nextStatus","componentWillUnmount","cancelNextCallback","getTimeouts","timeout","exit","mounting","nodeRef","findDOMNode","performEnter","performExit","setState","_this2","appearing","_ref2","maybeNode","maybeAppearing","timeouts","enterTimeout","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","_this3","onExited","onExit","onExiting","cancel","nextState","setNextCallback","_this4","handler","doesNotHaveTimeoutOrListener","addEndListener","_ref3","maybeNextCallback","_this$props","_in","_mountOnEnter","_unmountOnExit","_appear","_enter","_exit","_timeout","_addEndListener","_onEnter","_onEntering","_onEntered","_onExit","_onExiting","_onExited","_nodeRef","childProps","cloneElement","Children","noop","Transition_default","_assertThisInitialized","ReferenceError","getChildMapping","mapFn","mapper","child","mergeChildMappings","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","getProp","getInitialChildMapping","getNextChildMapping","nextProps","prevChildMapping","nextChildMapping","hasPrev","hasNext","prevChild","isLeaving","childFactory","TransitionGroup","handleExited","contextValue","firstRender","mounted","currentChildMapping","TransitionGroup_default","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","transitionDuration","transitionTimingFunction","transitionDelay","Ripple","pulsate","rippleX","rippleY","rippleSize","inProp","Un","leaving","setLeaving","rippleClassName","ripple","rippleVisible","ripplePulsate","rippleStyles","childClassName","childLeaving","childPulsate","timeoutId","Ripple_default","touchRippleClasses","touchRippleClasses_default","_t","_t2","_t3","_t4","DURATION","DELAY_RIPPLE","enterKeyframe","exitKeyframe","pulsateKeyframe","TouchRippleRoot","pointerEvents","TouchRippleRipple","TouchRipple","ee","inProps","centerProp","center","ripples","setRipples","rippleCallback","ignoringMouseDown","startTimer","startTimerCommit","startCommit","cb","oldRipples","fakeElement","rect","getBoundingClientRect","clientX","clientY","touches","sqrt","sizeX","clientWidth","sizeY","clientHeight","stop","useImperativeHandle","TouchRipple_default","getButtonBaseUtilityClass","buttonBaseClasses","buttonBaseClasses_default","_jsxs","useUtilityClasses","focusVisibleClassName","composedClasses","ButtonBaseRoot","WebkitTapHighlightColor","userSelect","verticalAlign","MozAppearance","WebkitAppearance","textDecoration","borderStyle","colorAdjust","ButtonBase","Re","centerRipple","disableRipple","disableTouchRipple","focusRipple","LinkComponent","onContextMenu","onDragLeave","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","buttonRef","rippleRef","handleRippleRef","focusVisibleRef","setFocusVisible","mountedState","setMountedState","enableTouchRipple","useRippleHandler","rippleAction","eventCallback","skipRippleAction","handleMouseDown","handleContextMenu","handleDragLeave","handleMouseUp","handleMouseLeave","preventDefault","handleTouchStart","handleTouchEnd","handleTouchMove","handleBlur","handleFocus","currentTarget","isNonNativeButton","href","keydownRef","handleKeyUp","defaultPrevented","ComponentProp","to","buttonProps","role","handleRef","ButtonBase_default","getIconButtonUtilityClass","iconButtonClasses","iconButtonClasses_default","edge","IconButtonRoot","transition","activeChannel","_palette","mainChannel","IconButton","zn","disableFocusRipple","IconButton_default","isHostComponent","appendOwnerState","elementType","otherProps","defaultContextValue","disableDefaultClasses","ClassNameConfiguratorContext","Io","useClassNamesOverride","extractEventHandlers","excludeKeys","includes","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","internalRef","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","auto","basePlacements","clippingParents","viewport","popper","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","nodeName","getWindow","defaultView","OwnElement","isHTMLElement","isShadowRoot","ShadowRoot","elements","attributes","removeAttribute","effect","initialStyles","strategy","arrow","styleProperties","attribute","applyStyles_default","enabled","phase","requires","getBasePlacement","getUAString","uaData","navigator","userAgentData","brands","brand","version","userAgent","isLayoutViewport","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","offsetHeight","visualViewport","addVisualOffsets","offsetLeft","offsetTop","getLayoutRect","contains","rootNode","getRootNode","isSameNode","host","getComputedStyle","isTableElement","getDocumentElement","documentElement","getParentNode","assignedSlot","getTrueOffsetParent","offsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","perspective","contain","willChange","getOffsetParent","getMainAxisFromPlacement","within","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","rects","_state$modifiersData$","arrowElement","popperOffsets","modifiersData","basePlacement","axis","isVertical","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","axisProp","centerOffset","_options$element","querySelector","arrow_default","requiresIfExists","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","devicePixelRatio","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles_default","data","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","update","removeEventListener","eventListeners_default","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","pageXOffset","pageYOffset","getWindowScrollBarX","getViewportRect","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","scrollWidth","scrollHeight","isScrollParent","_getComputedStyle","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","getInnerBoundingClientRect","clientTop","clientLeft","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","contextElement","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","referenceRect","checksMap","Map","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","fittingPlacement","find","_ret","flip_default","getSideOffsets","preventedOffsets","isAnySideFullyClipped","some","side","hide","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide_default","distanceAndSkiddingToXY","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset_default","popperOffsets_default","getAltAxis","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow_default","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","modifiers","visited","modifier","add","dep","has","depModifier","orderModifiers","orderedModifiers","debounce","pending","Promise","resolve","then","mergeByName","merged","existing","DEFAULT_OPTIONS","areValidElements","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","cleanupModifierEffects","runModifierEffects","forceUpdate","_state$elements","_state$orderedModifie","_state$orderedModifie2","destroy","onFirstUpdate","_ref$options","cleanupFn","noopFn","createPopper","getContainer","Ye","forwardedRef","disablePortal","mountNode","setMountNode","cl","createPortal","getPopperUtilityClass","popperClasses","flipPlacement","resolveAnchorEl","anchorEl","nodeType","defaultPopperOptions","PopperTooltip","de","_slots$root","initialPlacement","popperOptions","popperRef","popperRefProp","TransitionProps","tooltipRef","ownRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","popperModifiers","Root","rootProps","Popper","containerProp","keepMounted","exited","setExited","handleEnter","resolvedAnchorEl","transitionProps","PopperRoot","fl","componentsProps","RootComponent","Popper_default","getScale","entering","entered","isWebKit154","Grow","TransitionComponent","timer","autoTimeout","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","handleEntered","handleExiting","handleExit","handleAddEndListener","muiSupportAuto","Grow_default","getTooltipUtilityClass","tooltipClasses","tooltipClasses_default","disableInteractive","touch","TooltipPopper","popperInteractive","popperArrow","popperClose","transformOrigin","isRtl","TooltipTooltip","tooltipArrow","Tooltip","bg","wordWrap","TooltipArrow","content","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","W","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","openProp","PopperComponent","PopperComponentProp","PopperProps","title","TransitionComponentProp","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","WebkitUserSelect","handleOpen","handleClose","handleLeave","setChildIsFocusVisible","detectTouchStart","childrenProps","handleMouseOver","nativeEvent","handleMouseMove","onMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","onMouseOver","_PopperProps$popperOp","tooltipModifiers","TooltipComponent","ArrowComponent","Arrow","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip_default","RewardSubscriptionTotal","storeConfig","amountShow","estimateDisclaimer","tiers","consecutive_months","min_spend","max_spend","promo_code","currentlyTrackText","approximateTotalText","projected_month_spend","minAmount","minAmountShow","callToActionText","approximateMonthlyText","estimated_running_subscription_spend","amountShowText","colorOverride","noSpacing","RewardSubscriptionTotal_default","SubscriptionRewardMobile","setOpen","handleTooltipToggle","SubscriptionRewardMobile_default","IS_BROWSER","ApplicationStore","innerWidth","vertical","scrollY","horizontal","scrollX","isMobile","isPhone","applicationContainer","calculateMonthCompletionValues","maxAmount","minVoucher","maxVoucher","monthCompletionValue","today","currentMonthData","sortedRecords","csmMonthlySubsOrderTotal","year","hasCurrentMonthData","record","getMonth","getFullYear","sub","currentMonthTotalAmount","totalAmount","approxMonthTotal","approximateMonthlyTotalResponse","currentMonthTotal","currentMonthEligibleAmount","isCurrentMonthEligible","threeMonthsAgo","Date","threeMonthsRecords","promocode","lastThreeMonths","allMonthsAboveMaxAmount","promoCodes","allSamePromoCode","todayMonth","tier","todayYear","SubscriptionReward","rewardData","subscriptionData","show","setShow","calculatedMonthCompletionValue","calculatedVoucherValue","SubscriptionRewardModal","close","SubscriptionReward_default"],"mappings":"s/PAAA,OAAOA,KAAKC,CAAE,CAACC,KAAKC,CAAE,CAACC,KAAKC,CAAE,KAAK,u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SAAU,UACV3oB,UAAWirB,EACb,EACAG,UAAW,CACTzC,SAAU,UACV3oB,UAAWirB,EACb,EACAI,YAAa,CACX1C,SAAU,UACV3oB,UAAWirB,EACb,EACAK,aAAc,CACZ3C,SAAU,UACV3oB,UAAWirB,EACb,EACAM,WAAY,CACV5C,SAAU,UACV3oB,UAAWirB,EACb,EACAO,YAAa,CACX7C,SAAU,SACZ,EACA8C,eAAgB,CACd9C,SAAU,SACZ,EACA+C,iBAAkB,CAChB/C,SAAU,SACZ,EACAgD,kBAAmB,CACjBhD,SAAU,SACZ,EACAiD,gBAAiB,CACfjD,SAAU,SACZ,EACAkD,QAAS,CACPlD,SAAU,UACV3oB,UAAWirB,EACb,EACAa,aAAc,CACZnD,SAAU,SACZ,EACA5B,aAAc,CACZ4B,SAAU,qBACV5oB,MAAOgnB,EACT,EAEA7hB,MAAO,CACLyjB,SAAU,UACV3oB,UAAW2sB,EACb,EACAC,QAAS,CACPjE,SAAU,UACVD,YAAa,kBACb1oB,UAAW2sB,EACb,EACA5nB,gBAAiB,CACf4jB,SAAU,UACV3oB,UAAW2sB,EACb,EAEA9zB,EAAG,CACDkH,MAAOwqB,EACT,EACAmD,GAAI,CACF3tB,MAAOwqB,EACT,EACAoD,GAAI,CACF5tB,MAAOwqB,EACT,EACAqD,GAAI,CACF7tB,MAAOwqB,EACT,EACAsD,GAAI,CACF9tB,MAAOwqB,EACT,EACAuD,GAAI,CACF/tB,MAAOwqB,EACT,EACAwD,GAAI,CACFhuB,MAAOwqB,EACT,EACAA,QAAS,CACPxqB,MAAOwqB,EACT,EACAyD,WAAY,CACVjuB,MAAOwqB,EACT,EACA0D,aAAc,CACZluB,MAAOwqB,EACT,EACA2D,cAAe,CACbnuB,MAAOwqB,EACT,EACA4D,YAAa,CACXpuB,MAAOwqB,EACT,EACApB,SAAU,CACRppB,MAAOwqB,EACT,EACAnB,SAAU,CACRrpB,MAAOwqB,EACT,EACA6D,cAAe,CACbruB,MAAOwqB,EACT,EACA8D,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Content":["import{a as la,b as Il,c as Fi}from\"../chunk-4FHSDUA7.mjs\";var ws=la(F=>{\"use strict\";var ie=typeof Symbol==\"function\"&&Symbol.for,Pa=ie?Symbol.for(\"react.element\"):60103,wa=ie?Symbol.for(\"react.portal\"):60106,mn=ie?Symbol.for(\"react.fragment\"):60107,dn=ie?Symbol.for(\"react.strict_mode\"):60108,hn=ie?Symbol.for(\"react.profiler\"):60114,yn=ie?Symbol.for(\"react.provider\"):60109,gn=ie?Symbol.for(\"react.context\"):60110,Ea=ie?Symbol.for(\"react.async_mode\"):60111,xn=ie?Symbol.for(\"react.concurrent_mode\"):60111,bn=ie?Symbol.for(\"react.forward_ref\"):60112,vn=ie?Symbol.for(\"react.suspense\"):60113,Oc=ie?Symbol.for(\"react.suspense_list\"):60120,Tn=ie?Symbol.for(\"react.memo\"):60115,Pn=ie?Symbol.for(\"react.lazy\"):60116,Mc=ie?Symbol.for(\"react.block\"):60121,_c=ie?Symbol.for(\"react.fundamental\"):60117,Ac=ie?Symbol.for(\"react.responder\"):60118,Nc=ie?Symbol.for(\"react.scope\"):60119;function Ae(e){if(typeof e==\"object\"&&e!==null){var t=e.$$typeof;switch(t){case Pa:switch(e=e.type,e){case Ea:case xn:case mn:case hn:case dn:case vn:return e;default:switch(e=e&&e.$$typeof,e){case gn:case bn:case Pn:case Tn:case yn:return e;default:return t}}case wa:return t}}}function Ps(e){return Ae(e)===xn}F.AsyncMode=Ea;F.ConcurrentMode=xn;F.ContextConsumer=gn;F.ContextProvider=yn;F.Element=Pa;F.ForwardRef=bn;F.Fragment=mn;F.Lazy=Pn;F.Memo=Tn;F.Portal=wa;F.Profiler=hn;F.StrictMode=dn;F.Suspense=vn;F.isAsyncMode=function(e){return Ps(e)||Ae(e)===Ea};F.isConcurrentMode=Ps;F.isContextConsumer=function(e){return Ae(e)===gn};F.isContextProvider=function(e){return Ae(e)===yn};F.isElement=function(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===Pa};F.isForwardRef=function(e){return Ae(e)===bn};F.isFragment=function(e){return Ae(e)===mn};F.isLazy=function(e){return Ae(e)===Pn};F.isMemo=function(e){return Ae(e)===Tn};F.isPortal=function(e){return Ae(e)===wa};F.isProfiler=function(e){return Ae(e)===hn};F.isStrictMode=function(e){return Ae(e)===dn};F.isSuspense=function(e){return Ae(e)===vn};F.isValidElementType=function(e){return typeof e==\"string\"||typeof e==\"function\"||e===mn||e===xn||e===hn||e===dn||e===vn||e===Oc||typeof e==\"object\"&&e!==null&&(e.$$typeof===Pn||e.$$typeof===Tn||e.$$typeof===yn||e.$$typeof===gn||e.$$typeof===bn||e.$$typeof===_c||e.$$typeof===Ac||e.$$typeof===Nc||e.$$typeof===Mc)};F.typeOf=Ae});var Cs=la((Vy,Es)=>{\"use strict\";Es.exports=ws()});var Ns=la((Uy,As)=>{\"use strict\";var Ca=Cs(),kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Lc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ms={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ra={};Ra[Ca.ForwardRef]=Dc;Ra[Ca.Memo]=Ms;function Rs(e){return Ca.isMemo(e)?Ms:Ra[e.$$typeof]||kc}var Ic=Object.defineProperty,$c=Object.getOwnPropertyNames,Ss=Object.getOwnPropertySymbols,Bc=Object.getOwnPropertyDescriptor,jc=Object.getPrototypeOf,Os=Object.prototype;function _s(e,t,r){if(typeof t!=\"string\"){if(Os){var o=jc(t);o&&o!==Os&&_s(e,o,r)}var n=$c(t);Ss&&(n=n.concat(Ss(t)));for(var a=Rs(e),i=Rs(t),p=0;p<n.length;++p){var s=n[p];if(!Lc[s]&&!(r&&r[s])&&!(i&&i[s])&&!(a&&a[s])){var l=Bc(t,s);try{Ic(e,s,l)}catch{}}}}return e}As.exports=_s});import{useState as vd}from\"react\";import Hl from\"react\";import{CircularProgressbarWithChildren as Gl,buildStyles as Kl}from\"react-circular-progressbar\";import{styled as ot}from\"@nuskin/foundation-theme\";var Vi=ot.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n`,Ho=ot.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n`,vr=ot.div`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n`,Go=ot.div`\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n`,Tr=ot.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n`,Ko=ot.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n`,qo=ot.div`\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n`,mt=ot.span`\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n`,Ui=ot.div`\n position: absolute;\n height: 100%;\n`,Wi=ot.div`\n background: #fff;\n width: 6px;\n height: 17%;\n`;import{jsx as ca}from\"react/jsx-runtime\";function $l(e){return ca(Ui,{style:{transform:`rotate(${e.turns}turn)`},children:ca(Wi,{})})}function Bl(e){let t=1/e.count;return Array(e.count).fill(null).map((r,o)=>ca($l,{turns:o*t+.5},o))}var Yo=Bl;import{FaExclamationTriangle as ql}from\"react-icons/fa\";import{jsx as Pr,jsxs as Fl}from\"react/jsx-runtime\";function jl(){return Fl(\"svg\",{width:\"71\",height:\"42\",viewBox:\"0 0 71 42\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[Pr(\"path\",{d:\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\",fill:\"#405E50\"}),Pr(\"path\",{d:\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\",fill:\"#405E50\"}),Pr(\"path\",{d:\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\",fill:\"#405E50\"}),Pr(\"path\",{d:\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\",fill:\"#405E50\"}),Pr(\"path\",{d:\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\",fill:\"#405E50\"}),Pr(\"path\",{d:\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\",fill:\"#405E50\"})]})}var Xo=jl;import{jsx as wr,jsxs as Ul}from\"react/jsx-runtime\";function Vl(){return Ul(\"svg\",{width:\"71\",height:\"42\",viewBox:\"0 0 71 42\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[wr(\"path\",{d:\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\",fill:\"#B0B0B0\"}),wr(\"path\",{d:\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\",fill:\"#B0B0B0\"}),wr(\"path\",{d:\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\",fill:\"#B0B0B0\"}),wr(\"path\",{d:\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\",fill:\"#B0B0B0\"}),wr(\"path\",{d:\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\",fill:\"#B0B0B0\"}),wr(\"path\",{d:\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\",fill:\"#B0B0B0\"})]})}var Zo=Vl;import Wl from\"react\";var je=(e,t)=>Object.keys(t).reduce((r,o)=>{let n=t[o]??\"\";return r.replace(new RegExp(`%${o}%`,\"g\"),String(n))},e);import{jsx as co,jsxs as zl}from\"react/jsx-runtime\";var ua=class extends Wl.Component{constructor(t){super(t)}render(){let{value:t,voucherValue:r,maxMonths:o,handleOpenSubscriptionRewardPopup:n,notQualifyForRewardThisMonth:a,translationConfig:i={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\"},learnMoreConfig:p={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},currencyAbbreviate:s=!1,currencyFormat:l=()=>{}}=this.props,c=\"\";r===50&&!a?c=i.learn3xMore:r===150||a?c=p.learnMore:r==null&&(c=i.learnMore);let h=je(i.monthsComplete,{completed_months:t,total_months:o}),y=l(r||0,!0,s),u=i.voucherEarned.replace(\"%currency_symbol%%currency_amount%\",`${y}`);return zl(vr,{children:[co(\"img\",{className:\"reward-logo\",src:i.loyaltyLogoBlack,alt:\"Rewards Logo\"}),t===o?co(\"div\",{className:\"info-item\",children:u}):co(\"div\",{className:\"info-item\",children:h}),co(Go,{id:\"learnMore\",onClick:n,children:co(\"u\",{children:c})})]})}},zi=ua;import{NsTypography as Hi}from\"@nuskin/foundation-ui-components\";import{jsx as nt,jsxs as fa}from\"react/jsx-runtime\";var ma=class extends Hl.Component{constructor(t){super(t)}render(){let{value:t=0,voucherValue:r=0,maxMonths:o=0,handleOpenSubscriptionRewardPopup:n=()=>{},notQualifyForRewardThisMonth:a=!1,translationConfig:i={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\"},learnMoreConfig:p={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},currencyAbbreviate:s=!1,currencyFormat:l=()=>{}}=this.props,c=je(i.voucherTargetAmount,{currency_symbol:\"\",voucher_amount:\"\"}),f=l(r||0,!0,s);return fa(Ho,{children:[nt(\"div\",{className:\"reward-progress\",children:fa(Gl,{value:t/o*100,strokeWidth:12,background:!0,styles:Kl({rotation:.5,strokeLinecap:\"butt\",backgroundColor:t===o&&!a?\"rgb(195 240 194)\":\"#fff\",pathColor:\"#6BC56A\",trailColor:\"#E0E0E0\"}),children:[nt(Yo,{count:o}),t===o&&!a?nt(Xo,{}):a?nt(mt,{children:nt(ql,{className:\"outline-exclamation-icon\",color:\"#91ACC8\"})}):r!=null||r!=null?fa(Tr,{children:[nt(Hi,{component:\"div\",className:\"center-value-progress-bar-price\",variant:\"title-l\",weight:\"bold\",children:`${f}`}),nt(Hi,{variant:\"label-s\",weight:\"bold\",component:\"div\",className:\"center-value-progress-bar-voucher\",children:c})]}):nt(Tr,{children:nt(Zo,{})})]})}),nt(zi,{value:t,voucherValue:r,notQualifyForRewardThisMonth:a,handleOpenSubscriptionRewardPopup:n,maxMonths:o,translationConfig:i,learnMoreConfig:p,currencyAbbreviate:s,currencyFormat:l})]})}},Gi=ma;import dd from\"react\";import{FaExclamationTriangle as hd}from\"react-icons/fa\";import{NsTypography as dr}from\"@nuskin/foundation-ui-components\";import{jsx as da,jsxs as Xl}from\"react/jsx-runtime\";function Yl(){return Xl(\"svg\",{width:\"19\",height:\"19\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[da(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z\",fill:\"#4A6987\"}),da(\"line\",{x1:\"10.1667\",y1:\"9.375\",x2:\"10.1667\",y2:\"14.7917\",stroke:\"#4A6987\",strokeWidth:\"2\"}),da(\"path\",{d:\"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z\",fill:\"#4A6987\"})]})}var Qo=Yl;var Zl={black:\"#000\",white:\"#fff\"},Er=Zl;var Ql={50:\"#ffebee\",100:\"#ffcdd2\",200:\"#ef9a9a\",300:\"#e57373\",400:\"#ef5350\",500:\"#f44336\",600:\"#e53935\",700:\"#d32f2f\",800:\"#c62828\",900:\"#b71c1c\",A100:\"#ff8a80\",A200:\"#ff5252\",A400:\"#ff1744\",A700:\"#d50000\"},Vt=Ql;var Jl={50:\"#f3e5f5\",100:\"#e1bee7\",200:\"#ce93d8\",300:\"#ba68c8\",400:\"#ab47bc\",500:\"#9c27b0\",600:\"#8e24aa\",700:\"#7b1fa2\",800:\"#6a1b9a\",900:\"#4a148c\",A100:\"#ea80fc\",A200:\"#e040fb\",A400:\"#d500f9\",A700:\"#aa00ff\"},Ut=Jl;var ec={50:\"#e3f2fd\",100:\"#bbdefb\",200:\"#90caf9\",300:\"#64b5f6\",400:\"#42a5f5\",500:\"#2196f3\",600:\"#1e88e5\",700:\"#1976d2\",800:\"#1565c0\",900:\"#0d47a1\",A100:\"#82b1ff\",A200:\"#448aff\",A400:\"#2979ff\",A700:\"#2962ff\"},Wt=ec;var tc={50:\"#e1f5fe\",100:\"#b3e5fc\",200:\"#81d4fa\",300:\"#4fc3f7\",400:\"#29b6f6\",500:\"#03a9f4\",600:\"#039be5\",700:\"#0288d1\",800:\"#0277bd\",900:\"#01579b\",A100:\"#80d8ff\",A200:\"#40c4ff\",A400:\"#00b0ff\",A700:\"#0091ea\"},zt=tc;var rc={50:\"#e8f5e9\",100:\"#c8e6c9\",200:\"#a5d6a7\",300:\"#81c784\",400:\"#66bb6a\",500:\"#4caf50\",600:\"#43a047\",700:\"#388e3c\",800:\"#2e7d32\",900:\"#1b5e20\",A100:\"#b9f6ca\",A200:\"#69f0ae\",A400:\"#00e676\",A700:\"#00c853\"},Ht=rc;var oc={50:\"#fff3e0\",100:\"#ffe0b2\",200:\"#ffcc80\",300:\"#ffb74d\",400:\"#ffa726\",500:\"#ff9800\",600:\"#fb8c00\",700:\"#f57c00\",800:\"#ef6c00\",900:\"#e65100\",A100:\"#ffd180\",A200:\"#ffab40\",A400:\"#ff9100\",A700:\"#ff6d00\"},Cr=oc;var nc={50:\"#fafafa\",100:\"#f5f5f5\",200:\"#eeeeee\",300:\"#e0e0e0\",400:\"#bdbdbd\",500:\"#9e9e9e\",600:\"#757575\",700:\"#616161\",800:\"#424242\",900:\"#212121\",A100:\"#f5f5f5\",A200:\"#eeeeee\",A400:\"#bdbdbd\",A700:\"#616161\"},Ki=nc;function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},g.apply(null,arguments)}function Rr(e){return e!==null&&typeof e==\"object\"&&e.constructor===Object}function qi(e){if(!Rr(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=qi(e[r])}),t}function Ze(e,t,r={clone:!0}){let o=r.clone?g({},e):e;return Rr(e)&&Rr(t)&&Object.keys(t).forEach(n=>{n!==\"__proto__\"&&(Rr(t[n])&&n in e&&Rr(e[n])?o[n]=Ze(e[n],t[n],r):r.clone?o[n]=Rr(t[n])?qi(t[n]):t[n]:o[n]=t[n])}),o}function dt(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let r=1;r<arguments.length;r+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[r]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}function uo(e){if(typeof e!=\"string\")throw new Error(dt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Sr(e){return e&&e.ownerDocument||document}function Gt(e,t){typeof e==\"function\"?e(t):e&&(e.current=t)}import*as Jo from\"react\";var ac=typeof window<\"u\"?Jo.useLayoutEffect:Jo.useEffect,at=ac;import*as Or from\"react\";var Yi=0;function ic(e){let[t,r]=Or.useState(e),o=e||t;return Or.useEffect(()=>{t==null&&(Yi+=1,r(`mui-${Yi}`))},[t]),o}var Xi=Or.useId;function fo(e){if(Xi!==void 0){let t=Xi();return e??t}return ic(e)}import*as Kt from\"react\";function mo({controlled:e,default:t,name:r,state:o=\"value\"}){let{current:n}=Kt.useRef(e!==void 0),[a,i]=Kt.useState(t),p=n?e:a,s=Kt.useCallback(l=>{n||i(l)},[]);return[p,s]}import*as ha from\"react\";function sc(e){let t=ha.useRef(e);return at(()=>{t.current=e}),ha.useRef((...r)=>(0,t.current)(...r)).current}var en=sc;import*as Zi from\"react\";function Fe(...e){return Zi.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Gt(r,t)})},e)}import*as tn from\"react\";var rn=!0,ga=!1,Qi,pc={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,\"datetime-local\":!0};function lc(e){let{type:t,tagName:r}=e;return!!(r===\"INPUT\"&&pc[t]&&!e.readOnly||r===\"TEXTAREA\"&&!e.readOnly||e.isContentEditable)}function cc(e){e.metaKey||e.altKey||e.ctrlKey||(rn=!0)}function ya(){rn=!1}function uc(){this.visibilityState===\"hidden\"&&ga&&(rn=!0)}function fc(e){e.addEventListener(\"keydown\",cc,!0),e.addEventListener(\"mousedown\",ya,!0),e.addEventListener(\"pointerdown\",ya,!0),e.addEventListener(\"touchstart\",ya,!0),e.addEventListener(\"visibilitychange\",uc,!0)}function mc(e){let{target:t}=e;try{return t.matches(\":focus-visible\")}catch{}return rn||lc(t)}function on(){let e=tn.useCallback(n=>{n!=null&&fc(n.ownerDocument)},[]),t=tn.useRef(!1);function r(){return t.current?(ga=!0,window.clearTimeout(Qi),Qi=window.setTimeout(()=>{ga=!1},100),t.current=!1,!0):!1}function o(n){return mc(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:o,onBlur:r,ref:e}}function Ve(e,t,r=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,i)=>{if(i){let p=t(i);p!==\"\"&&a.push(p),r&&r[i]&&a.push(r[i])}return a},[]).join(\" \")}),o}var Ji=e=>e,dc=()=>{let e=Ji;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ji}}},hc=dc(),xa=hc;var yc={active:\"active\",checked:\"checked\",completed:\"completed\",disabled:\"disabled\",error:\"error\",expanded:\"expanded\",focused:\"focused\",focusVisible:\"focusVisible\",open:\"open\",readOnly:\"readOnly\",required:\"required\",selected:\"selected\"};function ge(e,t,r=\"Mui\"){let o=yc[t];return o?`${r}-${o}`:`${xa.generate(e)}-${t}`}function we(e,t,r=\"Mui\"){let o={};return t.forEach(n=>{o[n]=ge(e,n,r)}),o}var Mr=\"$$material\";function D(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function qt(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let r=1;r<arguments.length;r+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[r]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}import*as We from\"react\";import{useContext as qc,forwardRef as Yc}from\"react\";var gc=!1;function xc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bc(e){var t=document.createElement(\"style\");return t.setAttribute(\"data-emotion\",e.key),e.nonce!==void 0&&t.setAttribute(\"nonce\",e.nonce),t.appendChild(document.createTextNode(\"\")),t.setAttribute(\"data-s\",\"\"),t}var es=function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!gc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bc(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=xc(n);try{a.insertRule(o,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e}();var ue=\"-ms-\",ho=\"-moz-\",B=\"-webkit-\",nn=\"comm\",_r=\"rule\",Ar=\"decl\";var ts=\"@import\";var an=\"@keyframes\";var rs=\"@layer\";var os=Math.abs,Yt=String.fromCharCode,ns=Object.assign;function as(e,t){return J(e,0)^45?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}function sn(e){return e.trim()}function ba(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,r){return e.replace(t,r)}function yo(e,t){return e.indexOf(t)}function J(e,t){return e.charCodeAt(t)|0}function St(e,t,r){return e.slice(t,r)}function xe(e){return e.length}function Nr(e){return e.length}function kr(e,t){return t.push(e),e}function va(e,t){return e.map(t).join(\"\")}var pn=1,Lr=1,is=0,be=0,re=0,Ir=\"\";function go(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:pn,column:Lr,length:i,return:\"\"}}function $r(e,t){return ns(go(\"\",null,null,\"\",null,null,0),e,{length:-e.length},t)}function ss(){return re}function ps(){return re=be>0?J(Ir,--be):0,Lr--,re===10&&(Lr=1,pn--),re}function ve(){return re=be<is?J(Ir,be++):0,Lr++,re===10&&(Lr=1,pn++),re}function Ue(){return J(Ir,be)}function xo(){return be}function Br(e,t){return St(Ir,e,t)}function Dr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ln(e){return pn=Lr=1,is=xe(Ir=e),be=0,[]}function cn(e){return Ir=\"\",e}function jr(e){return sn(Br(be-1,Ta(e===91?e+2:e===40?e+1:e)))}function ls(e){for(;(re=Ue())&&re<33;)ve();return Dr(e)>2||Dr(re)>3?\"\":\" \"}function cs(e,t){for(;--t&&ve()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return Br(e,xo()+(t<6&&Ue()==32&&ve()==32))}function Ta(e){for(;ve();)switch(re){case e:return be;case 34:case 39:e!==34&&e!==39&&Ta(re);break;case 40:e===41&&Ta(e);break;case 92:ve();break}return be}function us(e,t){for(;ve()&&e+re!==57;)if(e+re===84&&Ue()===47)break;return\"/*\"+Br(t,be-1)+\"*\"+Yt(e===47?e:ve())}function fs(e){for(;!Dr(Ue());)ve();return Br(e,be)}function hs(e){return cn(un(\"\",null,null,null,[\"\"],e=ln(e),0,[0],e))}function un(e,t,r,o,n,a,i,p,s){for(var l=0,c=0,f=i,m=0,h=0,y=0,u=1,x=1,b=1,C=0,E=\"\",d=n,T=a,P=o,w=E;x;)switch(y=C,C=ve()){case 40:if(y!=108&&J(w,f-1)==58){yo(w+=I(jr(C),\"&\",\"&\\f\"),\"&\\f\")!=-1&&(b=-1);break}case 34:case 39:case 91:w+=jr(C);break;case 9:case 10:case 13:case 32:w+=ls(y);break;case 92:w+=cs(xo()-1,7);continue;case 47:switch(Ue()){case 42:case 47:kr(vc(us(ve(),xo()),t,r),s);break;default:w+=\"/\"}break;case 123*u:p[l++]=xe(w)*b;case 125*u:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+c:b==-1&&(w=I(w,/\\f/g,\"\")),h>0&&xe(w)-f&&kr(h>32?ds(w+\";\",o,r,f-1):ds(I(w,\" \",\"\")+\";\",o,r,f-2),s);break;case 59:w+=\";\";default:if(kr(P=ms(w,t,r,l,c,n,p,E,d=[],T=[],f),a),C===123)if(c===0)un(w,t,P,P,d,a,f,p,T);else switch(m===99&&J(w,3)===110?100:m){case 100:case 108:case 109:case 115:un(e,P,P,o&&kr(ms(e,P,P,0,0,n,p,E,n,d=[],f),T),n,T,f,p,o?d:T);break;default:un(w,P,P,P,[\"\"],T,0,p,T)}}l=c=h=0,u=b=1,E=w=\"\",f=i;break;case 58:f=1+xe(w),h=y;default:if(u<1){if(C==123)--u;else if(C==125&&u++==0&&ps()==125)continue}switch(w+=Yt(C),C*u){case 38:b=c>0?1:(w+=\"\\f\",-1);break;case 44:p[l++]=(xe(w)-1)*b,b=1;break;case 64:Ue()===45&&(w+=jr(ve())),m=Ue(),c=f=xe(E=w+=fs(xo())),C++;break;case 45:y===45&&xe(w)==2&&(u=0)}}return a}function ms(e,t,r,o,n,a,i,p,s,l,c){for(var f=n-1,m=n===0?a:[\"\"],h=Nr(m),y=0,u=0,x=0;y<o;++y)for(var b=0,C=St(e,f+1,f=os(u=i[y])),E=e;b<h;++b)(E=sn(u>0?m[b]+\" \"+C:I(C,/&\\f/g,m[b])))&&(s[x++]=E);return go(e,t,r,n===0?_r:p,s,l,c)}function vc(e,t,r){return go(e,t,r,nn,Yt(ss()),St(e,2,-2),0)}function ds(e,t,r,o){return go(e,t,r,Ar,St(e,0,o),St(e,o+1,-1),o)}function Xt(e,t){for(var r=\"\",o=Nr(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||\"\";return r}function ys(e,t,r,o){switch(e.type){case rs:if(e.children.length)break;case ts:case Ar:return e.return=e.return||e.value;case nn:return\"\";case an:return e.return=e.value+\"{\"+Xt(e.children,o)+\"}\";case _r:e.value=e.props.join(\",\")}return xe(r=Xt(e.children,o))?e.return=e.value+\"{\"+r+\"}\":\"\"}function gs(e){var t=Nr(e);return function(r,o,n,a){for(var i=\"\",p=0;p<t;p++)i+=e[p](r,o,n,a)||\"\";return i}}function xs(e){return function(t){t.root||(t=t.return)&&e(t)}}function fn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Tc=function(t,r,o){for(var n=0,a=0;n=a,a=Ue(),n===38&&a===12&&(r[o]=1),!Dr(a);)ve();return Br(t,be)},Pc=function(t,r){var o=-1,n=44;do switch(Dr(n)){case 0:n===38&&Ue()===12&&(r[o]=1),t[o]+=Tc(be-1,r,o);break;case 2:t[o]+=jr(n);break;case 4:if(n===44){t[++o]=Ue()===58?\"&\\f\":\"\",r[o]=t[o].length;break}default:t[o]+=Yt(n)}while(n=ve());return t},wc=function(t,r){return cn(Pc(ln(t),r))},bs=new WeakMap,Ec=function(t){if(!(t.type!==\"rule\"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!==\"rule\";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!bs.get(o))&&!n){bs.set(t,!0);for(var a=[],i=wc(r,a),p=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<p.length;c++,l++)t.props[l]=a[s]?i[s].replace(/&\\f/g,p[c]):p[c]+\" \"+i[s]}}},Cc=function(t){if(t.type===\"decl\"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return=\"\",t.value=\"\")}};function vs(e,t){switch(as(e,t)){case 5103:return B+\"print-\"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+ho+e+ue+e+e;case 6828:case 4268:return B+e+ue+e+e;case 6165:return B+e+ue+\"flex-\"+e+e;case 5187:return B+e+I(e,/(\\w+).+(:[^]+)/,B+\"box-$1$2\"+ue+\"flex-$1$2\")+e;case 5443:return B+e+ue+\"flex-item-\"+I(e,/flex-|-self/,\"\")+e;case 4675:return B+e+ue+\"flex-line-pack\"+I(e,/align-content|flex-|-self/,\"\")+e;case 5548:return B+e+ue+I(e,\"shrink\",\"negative\")+e;case 5292:return B+e+ue+I(e,\"basis\",\"preferred-size\")+e;case 6060:return B+\"box-\"+I(e,\"-grow\",\"\")+B+e+ue+I(e,\"grow\",\"positive\")+e;case 4554:return B+I(e,/([^-])(transform)/g,\"$1\"+B+\"$2\")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,B+\"$1\"),/(image-set)/,B+\"$1\"),e,\"\")+e;case 5495:case 3959:return I(e,/(image-set\\([^]*)/,B+\"$1$`$1\");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,B+\"box-pack:$3\"+ue+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+B+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,B+\"$1$2\")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(J(e,t+1)){case 109:if(J(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,\"$1\"+B+\"$2-$3$1\"+ho+(J(e,t+3)==108?\"$3\":\"$2-$3\"))+e;case 115:return~yo(e,\"stretch\")?vs(I(e,\"stretch\",\"fill-available\"),t)+e:e}break;case 4949:if(J(e,t+1)!==115)break;case 6444:switch(J(e,xe(e)-3-(~yo(e,\"!important\")&&10))){case 107:return I(e,\":\",\":\"+B)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,\"$1\"+B+(J(e,14)===45?\"inline-\":\"\")+\"box$3$1\"+B+\"$2$3$1\"+ue+\"$2box$3\")+e}break;case 5936:switch(J(e,t+11)){case 114:return B+e+ue+I(e,/[svh]\\w+-[tblr]{2}/,\"tb\")+e;case 108:return B+e+ue+I(e,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+e;case 45:return B+e+ue+I(e,/[svh]\\w+-[tblr]{2}/,\"lr\")+e}return B+e+ue+e+e}return e}var Rc=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case Ar:t.return=vs(t.value,t.length);break;case an:return Xt([$r(t,{value:I(t.value,\"@\",\"@\"+B)})],n);case _r:if(t.length)return va(t.props,function(a){switch(ba(a,/(::plac\\w+|:read-\\w+)/)){case\":read-only\":case\":read-write\":return Xt([$r(t,{props:[I(a,/:(read-\\w+)/,\":\"+ho+\"$1\")]})],n);case\"::placeholder\":return Xt([$r(t,{props:[I(a,/:(plac\\w+)/,\":\"+B+\"input-$1\")]}),$r(t,{props:[I(a,/:(plac\\w+)/,\":\"+ho+\"$1\")]}),$r(t,{props:[I(a,/:(plac\\w+)/,ue+\"input-$1\")]})],n)}return\"\"})}},Sc=[Rc],Ts=function(t){var r=t.key;if(r===\"css\"){var o=document.querySelectorAll(\"style[data-emotion]:not([data-s])\");Array.prototype.forEach.call(o,function(u){var x=u.getAttribute(\"data-emotion\");x.indexOf(\" \")!==-1&&(document.head.appendChild(u),u.setAttribute(\"data-s\",\"\"))})}var n=t.stylisPlugins||Sc,a={},i,p=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^=\"'+r+' \"]'),function(u){for(var x=u.getAttribute(\"data-emotion\").split(\" \"),b=1;b<x.length;b++)a[x[b]]=!0;p.push(u)});var s,l=[Ec,Cc];{var c,f=[ys,xs(function(u){c.insert(u)})],m=gs(l.concat(n,f)),h=function(x){return Xt(hs(x),m)};s=function(x,b,C,E){c=C,h(x?x+\"{\"+b.styles+\"}\":b.styles),E&&(y.inserted[b.name]=!0)}}var y={key:r,sheet:new es({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:s};return y.sheet.hydrate(p),y};var Fc=!0;function bo(e,t,r){var o=\"\";return r.split(\" \").forEach(function(n){e[n]!==void 0?t.push(e[n]+\";\"):n&&(o+=n+\" \")}),o}var Fr=function(t,r,o){var n=t.key+\"-\"+r.name;(o===!1||Fc===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},vo=function(t,r,o){Fr(t,r,o);var n=t.key+\"-\"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?\".\"+n:\"\",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function ks(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ls={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Vc=!1,Uc=/[A-Z]|^ms/g,Wc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bs=function(t){return t.charCodeAt(1)===45},Ds=function(t){return t!=null&&typeof t!=\"boolean\"},Sa=fn(function(e){return Bs(e)?e:e.replace(Uc,\"-$&\").toLowerCase()}),Is=function(t,r){switch(t){case\"animation\":case\"animationName\":if(typeof r==\"string\")return r.replace(Wc,function(o,n,a){return it={name:n,styles:a,next:it},n})}return Ls[t]!==1&&!Bs(t)&&typeof r==\"number\"&&r!==0?r+\"px\":r},zc=\"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.\";function To(e,t,r){if(r==null)return\"\";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case\"boolean\":return\"\";case\"object\":{var n=r;if(n.anim===1)return it={name:n.name,styles:n.styles,next:it},n.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)it={name:i.name,styles:i.styles,next:it},i=i.next;var p=a.styles+\";\";return p}return Hc(e,t,r)}case\"function\":{if(e!==void 0){var s=it,l=r(e);return it=s,To(e,t,l)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function Hc(e,t,r){var o=\"\";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=To(e,t,r[n])+\";\";else for(var a in r){var i=r[a];if(typeof i!=\"object\"){var p=i;t!=null&&t[p]!==void 0?o+=a+\"{\"+t[p]+\"}\":Ds(p)&&(o+=Sa(a)+\":\"+Is(a,p)+\";\")}else{if(a===\"NO_COMPONENT_SELECTOR\"&&Vc)throw new Error(zc);if(Array.isArray(i)&&typeof i[0]==\"string\"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Ds(i[s])&&(o+=Sa(a)+\":\"+Is(a,i[s])+\";\");else{var l=To(e,t,i);switch(a){case\"animation\":case\"animationName\":{o+=Sa(a)+\":\"+l+\";\";break}default:o+=a+\"{\"+l+\"}\"}}}}return o}var $s=/label:\\s*([^\\s;{]+)\\s*(;|$)/g,it;function Vr(e,t,r){if(e.length===1&&typeof e[0]==\"object\"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n=\"\";it=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,n+=To(r,t,a);else{var i=a;n+=i[0]}for(var p=1;p<e.length;p++)if(n+=To(r,t,e[p]),o){var s=a;n+=s[p]}$s.lastIndex=0;for(var l=\"\",c;(c=$s.exec(n))!==null;)l+=\"-\"+c[1];var f=ks(n)+l;return{name:f,styles:n,next:it}}import*as wn from\"react\";var Gc=function(t){return t()},Kc=wn.useInsertionEffect?wn.useInsertionEffect:!1,Po=Kc||Gc;var js=!1,Fs=We.createContext(typeof HTMLElement<\"u\"?Ts({key:\"css\"}):null),Xc=Fs.Provider;var wo=function(t){return Yc(function(r,o){var n=qc(Fs);return t(r,n,o)})},Ot=We.createContext({});var En={}.hasOwnProperty,Oa=\"__EMOTION_TYPE_PLEASE_DO_NOT_USE__\",Vs=function(t,r){var o={};for(var n in r)En.call(r,n)&&(o[n]=r[n]);return o[Oa]=t,o},Zc=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Fr(r,o,n),Po(function(){return vo(r,o,n)}),null},Qc=wo(function(e,t,r){var o=e.css;typeof o==\"string\"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[Oa],a=[o],i=\"\";typeof e.className==\"string\"?i=bo(t.registered,a,e.className):e.className!=null&&(i=e.className+\" \");var p=Vr(a,void 0,We.useContext(Ot));i+=t.key+\"-\"+p.name;var s={};for(var l in e)En.call(e,l)&&l!==\"css\"&&l!==Oa&&!js&&(s[l]=e[l]);return s.className=i,r&&(s.ref=r),We.createElement(We.Fragment,null,We.createElement(Zc,{cache:t,serialized:p,isStringTag:typeof n==\"string\"}),We.createElement(n,s))}),Us=Qc;import*as Ur from\"react\";var xg=Il(Ns()),Ws=function(t,r){var o=arguments;if(r==null||!En.call(r,\"css\"))return Ur.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=Us,a[1]=Vs(t,r);for(var i=2;i<n;i++)a[i]=o[i];return Ur.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ws||(Ws={}));function Ma(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Vr(t)}function Wr(){var e=Ma.apply(void 0,arguments),t=\"animation-\"+e.name;return{name:t,styles:\"@keyframes \"+t+\"{\"+e.styles+\"}\",anim:1,toString:function(){return\"_EMO_\"+this.name+\"_\"+this.styles+\"_EMO_\"}}}import*as Mt from\"react\";var Jc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zs=fn(function(e){return Jc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var eu=!1,tu=zs,ru=function(t){return t!==\"theme\"},Hs=function(t){return typeof t==\"string\"&&t.charCodeAt(0)>96?tu:ru},Gs=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!=\"function\"&&o&&(n=t.__emotion_forwardProp),n},ou=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Fr(r,o,n),Po(function(){return vo(r,o,n)}),null},Ks=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var p=Gs(t,r,o),s=p||Hs(n),l=!s(\"as\");return function(){var c=arguments,f=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push(\"label:\"+a+\";\"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{var m=c[0];f.push(m[0]);for(var h=c.length,y=1;y<h;y++)f.push(c[y],m[y])}var u=wo(function(x,b,C){var E=l&&x.as||n,d=\"\",T=[],P=x;if(x.theme==null){P={};for(var w in x)P[w]=x[w];P.theme=Mt.useContext(Ot)}typeof x.className==\"string\"?d=bo(b.registered,T,x.className):x.className!=null&&(d=x.className+\" \");var S=Vr(f.concat(T),b.registered,P);d+=b.key+\"-\"+S.name,i!==void 0&&(d+=\" \"+i);var v=l&&p===void 0?Hs(E):s,R={};for(var O in x)l&&O===\"as\"||v(O)&&(R[O]=x[O]);return R.className=d,C&&(R.ref=C),Mt.createElement(Mt.Fragment,null,Mt.createElement(ou,{cache:b,serialized:S,isStringTag:typeof E==\"string\"}),Mt.createElement(E,R))});return u.displayName=a!==void 0?a:\"Styled(\"+(typeof n==\"string\"?n:n.displayName||n.name||\"Component\")+\")\",u.defaultProps=t.defaultProps,u.__emotion_real=u,u.__emotion_base=n,u.__emotion_styles=f,u.__emotion_forwardProp=p,Object.defineProperty(u,\"toString\",{value:function(){return i===void 0&&eu?\"NO_COMPONENT_SELECTOR\":\".\"+i}}),u.withComponent=function(x,b){var C=e(x,g({},r,b,{shouldForwardProp:Gs(u,b,!0)}));return C.apply(void 0,f)},u}};import\"react\";var nu=[\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"big\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"html\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"keygen\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"marquee\",\"menu\",\"menuitem\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"section\",\"select\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"title\",\"tr\",\"track\",\"u\",\"ul\",\"var\",\"video\",\"wbr\",\"circle\",\"clipPath\",\"defs\",\"ellipse\",\"foreignObject\",\"g\",\"image\",\"line\",\"linearGradient\",\"mask\",\"path\",\"pattern\",\"polygon\",\"polyline\",\"radialGradient\",\"rect\",\"stop\",\"svg\",\"text\",\"tspan\"],Cn=Ks.bind(null);nu.forEach(function(e){Cn[e]=Cn(e)});function _a(e,t){return Cn(e,t)}var qs=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as Aa from\"react\";function _t(e){if(typeof e!=\"object\"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ys(e){if(Aa.isValidElement(e)||!_t(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=Ys(e[r])}),t}function At(e,t,r={clone:!0}){let o=r.clone?g({},e):e;return _t(e)&&_t(t)&&Object.keys(t).forEach(n=>{Aa.isValidElement(t[n])?o[n]=t[n]:_t(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&_t(e[n])?o[n]=At(e[n],t[n],r):r.clone?o[n]=_t(t[n])?Ys(t[n]):t[n]:o[n]=t[n]}),o}var au=[\"values\",\"unit\",\"step\"];var iu=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>g({},r,{[o.key]:o.val}),{})};function Na(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r=\"px\",step:o=5}=e,n=D(e,au),a=iu(t),i=Object.keys(a);function p(m){return`@media (min-width:${typeof t[m]==\"number\"?t[m]:m}${r})`}function s(m){return`@media (max-width:${(typeof t[m]==\"number\"?t[m]:m)-o/100}${r})`}function l(m,h){let y=i.indexOf(h);return`@media (min-width:${typeof t[m]==\"number\"?t[m]:m}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]==\"number\"?t[i[y]]:h)-o/100}${r})`}function c(m){return i.indexOf(m)+1<i.length?l(m,i[i.indexOf(m)+1]):p(m)}function f(m){let h=i.indexOf(m);return h===0?p(i[1]):h===i.length-1?s(i[h]):l(m,i[i.indexOf(m)+1]).replace(\"@media\",\"@media not all and\")}return g({keys:i,values:a,up:p,down:s,between:l,only:c,not:f,unit:r},n)}var su={borderRadius:4},Xs=su;function pu(e,t){return t?At(e,t,{clone:!1}):e}var Nt=pu;var Rn={xs:0,sm:600,md:900,lg:1200,xl:1536},Zs={keys:[\"xs\",\"sm\",\"md\",\"lg\",\"xl\"],up:e=>`@media (min-width:${Rn[e]}px)`};function Te(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let a=o.breakpoints||Zs;return t.reduce((i,p,s)=>(i[a.up(a.keys[s])]=r(t[s]),i),{})}if(typeof t==\"object\"){let a=o.breakpoints||Zs;return Object.keys(t).reduce((i,p)=>{if(Object.keys(a.values||Rn).indexOf(p)!==-1){let s=a.up(p);i[s]=r(t[p],p)}else{let s=p;i[s]=t[s]}return i},{})}return r(t)}function Qs(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Js(e,t){return e.reduce((r,o)=>{let n=r[o];return(!n||Object.keys(n).length===0)&&delete r[o],r},t)}function zr(e){if(typeof e!=\"string\")throw new Error(qt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Hr(e,t,r=!0){if(!t||typeof t!=\"string\")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(\".\").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return t.split(\".\").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function Eo(e,t,r,o=r){let n;return typeof e==\"function\"?n=e(r):Array.isArray(e)?n=e[r]||o:n=Hr(e,r)||o,t&&(n=t(n,o,e)),n}function lu(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,a=i=>{if(i[t]==null)return null;let p=i[t],s=i.theme,l=Hr(s,o)||{};return Te(i,p,f=>{let m=Eo(l,n,f);return f===m&&typeof f==\"string\"&&(m=Eo(l,n,`${t}${f===\"default\"?\"\":zr(f)}`,f)),r===!1?m:{[r]:m}})};return a.propTypes={},a.filterProps=[t],a}var z=lu;function ka(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var cu={m:\"margin\",p:\"padding\"},uu={t:\"Top\",r:\"Right\",b:\"Bottom\",l:\"Left\",x:[\"Left\",\"Right\"],y:[\"Top\",\"Bottom\"]},ep={marginX:\"mx\",marginY:\"my\",paddingX:\"px\",paddingY:\"py\"},fu=ka(e=>{if(e.length>2)if(ep[e])e=ep[e];else return[e];let[t,r]=e.split(\"\"),o=cu[t],n=uu[r]||\"\";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),La=[\"m\",\"mt\",\"mr\",\"mb\",\"ml\",\"mx\",\"my\",\"margin\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\",\"marginX\",\"marginY\",\"marginInline\",\"marginInlineStart\",\"marginInlineEnd\",\"marginBlock\",\"marginBlockStart\",\"marginBlockEnd\"],Da=[\"p\",\"pt\",\"pr\",\"pb\",\"pl\",\"px\",\"py\",\"padding\",\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",\"paddingX\",\"paddingY\",\"paddingInline\",\"paddingInlineStart\",\"paddingInlineEnd\",\"paddingBlock\",\"paddingBlockStart\",\"paddingBlockEnd\"],tp=[...La,...Da];function Zt(e,t,r,o){var n;let a=(n=Hr(e,t,!1))!=null?n:r;return typeof a==\"number\"?i=>typeof i==\"string\"?i:a*i:Array.isArray(a)?i=>typeof i==\"string\"?i:a[i]:typeof a==\"function\"?a:()=>{}}function Ia(e){return Zt(e,\"spacing\",8,\"spacing\")}function Qt(e,t){if(typeof t==\"string\"||t==null)return t;let r=Math.abs(t),o=e(r);return t>=0?o:typeof o==\"number\"?-o:`-${o}`}function mu(e,t){return r=>e.reduce((o,n)=>(o[n]=Qt(t,r),o),{})}function du(e,t,r,o){if(t.indexOf(r)===-1)return null;let n=fu(r),a=mu(n,o),i=e[r];return Te(e,i,a)}function $a(e,t){let r=Ia(e.theme);return Object.keys(e).map(o=>du(e,t,o,r)).reduce(Nt,{})}function q(e){return $a(e,La)}q.propTypes={};q.filterProps=La;function Y(e){return $a(e,Da)}Y.propTypes={};Y.filterProps=Da;function rp(e){return $a(e,tp)}rp.propTypes={};rp.filterProps=tp;function Ba(e=8){if(e.mui)return e;let t=Ia({spacing:e}),r=(...o)=>(o.length===0?[1]:o).map(a=>{let i=t(a);return typeof i==\"number\"?`${i}px`:i}).join(\" \");return r.mui=!0,r}function hu(...e){let t=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),r=o=>Object.keys(o).reduce((n,a)=>t[a]?Nt(n,t[a](o)):n,{});return r.propTypes={},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}var kt=hu;function Ne(e){return typeof e!=\"number\"?e:`${e}px solid`}function ze(e,t){return z({prop:e,themeKey:\"borders\",transform:t})}var yu=ze(\"border\",Ne),gu=ze(\"borderTop\",Ne),xu=ze(\"borderRight\",Ne),bu=ze(\"borderBottom\",Ne),vu=ze(\"borderLeft\",Ne),Tu=ze(\"borderColor\"),Pu=ze(\"borderTopColor\"),wu=ze(\"borderRightColor\"),Eu=ze(\"borderBottomColor\"),Cu=ze(\"borderLeftColor\"),Ru=ze(\"outline\",Ne),Su=ze(\"outlineColor\"),Co=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Zt(e.theme,\"shape.borderRadius\",4,\"borderRadius\"),r=o=>({borderRadius:Qt(t,o)});return Te(e,e.borderRadius,r)}return null};Co.propTypes={};Co.filterProps=[\"borderRadius\"];var Tx=kt(yu,gu,xu,bu,vu,Tu,Pu,wu,Eu,Cu,Co,Ru,Su);var Ro=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Zt(e.theme,\"spacing\",8,\"gap\"),r=o=>({gap:Qt(t,o)});return Te(e,e.gap,r)}return null};Ro.propTypes={};Ro.filterProps=[\"gap\"];var So=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Zt(e.theme,\"spacing\",8,\"columnGap\"),r=o=>({columnGap:Qt(t,o)});return Te(e,e.columnGap,r)}return null};So.propTypes={};So.filterProps=[\"columnGap\"];var Oo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Zt(e.theme,\"spacing\",8,\"rowGap\"),r=o=>({rowGap:Qt(t,o)});return Te(e,e.rowGap,r)}return null};Oo.propTypes={};Oo.filterProps=[\"rowGap\"];var Ou=z({prop:\"gridColumn\"}),Mu=z({prop:\"gridRow\"}),_u=z({prop:\"gridAutoFlow\"}),Au=z({prop:\"gridAutoColumns\"}),Nu=z({prop:\"gridAutoRows\"}),ku=z({prop:\"gridTemplateColumns\"}),Lu=z({prop:\"gridTemplateRows\"}),Du=z({prop:\"gridTemplateAreas\"}),Iu=z({prop:\"gridArea\"}),Sx=kt(Ro,So,Oo,Ou,Mu,_u,Au,Nu,ku,Lu,Du,Iu);function Jt(e,t){return t===\"grey\"?t:e}var $u=z({prop:\"color\",themeKey:\"palette\",transform:Jt}),Bu=z({prop:\"bgcolor\",cssProperty:\"backgroundColor\",themeKey:\"palette\",transform:Jt}),ju=z({prop:\"backgroundColor\",themeKey:\"palette\",transform:Jt}),Ax=kt($u,Bu,ju);function Ee(e){return e<=1&&e!==0?`${e*100}%`:e}var Fu=z({prop:\"width\",transform:Ee}),Sn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{var o,n;let a=((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[r])||Rn[r];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!==\"px\"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ee(r)}};return Te(e,e.maxWidth,t)}return null};Sn.filterProps=[\"maxWidth\"];var Vu=z({prop:\"minWidth\",transform:Ee}),Uu=z({prop:\"height\",transform:Ee}),Wu=z({prop:\"maxHeight\",transform:Ee}),zu=z({prop:\"minHeight\",transform:Ee}),Ix=z({prop:\"size\",cssProperty:\"width\",transform:Ee}),$x=z({prop:\"size\",cssProperty:\"height\",transform:Ee}),Hu=z({prop:\"boxSizing\"}),Bx=kt(Fu,Sn,Vu,Uu,Wu,zu,Hu);var Gu={border:{themeKey:\"borders\",transform:Ne},borderTop:{themeKey:\"borders\",transform:Ne},borderRight:{themeKey:\"borders\",transform:Ne},borderBottom:{themeKey:\"borders\",transform:Ne},borderLeft:{themeKey:\"borders\",transform:Ne},borderColor:{themeKey:\"palette\"},borderTopColor:{themeKey:\"palette\"},borderRightColor:{themeKey:\"palette\"},borderBottomColor:{themeKey:\"palette\"},borderLeftColor:{themeKey:\"palette\"},outline:{themeKey:\"borders\",transform:Ne},outlineColor:{themeKey:\"palette\"},borderRadius:{themeKey:\"shape.borderRadius\",style:Co},color:{themeKey:\"palette\",transform:Jt},bgcolor:{themeKey:\"palette\",cssProperty:\"backgroundColor\",transform:Jt},backgroundColor:{themeKey:\"palette\",transform:Jt},p:{style:Y},pt:{style:Y},pr:{style:Y},pb:{style:Y},pl:{style:Y},px:{style:Y},py:{style:Y},padding:{style:Y},paddingTop:{style:Y},paddingRight:{style:Y},paddingBottom:{style:Y},paddingLeft:{style:Y},paddingX:{style:Y},paddingY:{style:Y},paddingInline:{style:Y},paddingInlineStart:{style:Y},paddingInlineEnd:{style:Y},paddingBlock:{style:Y},paddingBlockStart:{style:Y},paddingBlockEnd:{style:Y},m:{style:q},mt:{style:q},mr:{style:q},mb:{style:q},ml:{style:q},mx:{style:q},my:{style:q},margin:{style:q},marginTop:{style:q},marginRight:{style:q},marginBottom:{style:q},marginLeft:{style:q},marginX:{style:q},marginY:{style:q},marginInline:{style:q},marginInlineStart:{style:q},marginInlineEnd:{style:q},marginBlock:{style:q},marginBlockStart:{style:q},marginBlockEnd:{style:q},displayPrint:{cssProperty:!1,transform:e=>({\"@media print\":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ro},rowGap:{style:Oo},columnGap:{style:So},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:\"zIndex\"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:\"shadows\"},width:{transform:Ee},maxWidth:{style:Sn},minWidth:{transform:Ee},height:{transform:Ee},maxHeight:{transform:Ee},minHeight:{transform:Ee},boxSizing:{},fontFamily:{themeKey:\"typography\"},fontSize:{themeKey:\"typography\"},fontStyle:{themeKey:\"typography\"},fontWeight:{themeKey:\"typography\"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:\"typography\"}},Lt=Gu;function Ku(...e){let t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function qu(e,t){return typeof e==\"function\"?e(t):e}function op(){function e(r,o,n,a){let i={[r]:o,theme:n},p=a[r];if(!p)return{[r]:o};let{cssProperty:s=r,themeKey:l,transform:c,style:f}=p;if(o==null)return null;if(l===\"typography\"&&o===\"inherit\")return{[r]:o};let m=Hr(n,l)||{};return f?f(i):Te(i,o,y=>{let u=Eo(m,c,y);return y===u&&typeof y==\"string\"&&(u=Eo(m,c,`${r}${y===\"default\"?\"\":zr(y)}`,y)),s===!1?u:{[s]:u}})}function t(r){var o;let{sx:n,theme:a={}}=r||{};if(!n)return null;let i=(o=a.unstable_sxConfig)!=null?o:Lt;function p(s){let l=s;if(typeof s==\"function\")l=s(a);else if(typeof s!=\"object\")return s;if(!l)return null;let c=Qs(a.breakpoints),f=Object.keys(c),m=c;return Object.keys(l).forEach(h=>{let y=qu(l[h],a);if(y!=null)if(typeof y==\"object\")if(i[h])m=Nt(m,e(h,y,a,i));else{let u=Te({theme:a},y,x=>({[h]:x}));Ku(u,y)?m[h]=t({sx:y,theme:a}):m=Nt(m,u)}else m=Nt(m,e(h,y,a,i))}),Js(f,m)}return Array.isArray(n)?n.map(p):p(n)}return t}var np=op();np.filterProps=[\"sx\"];var Dt=np;function ja(e,t){let r=this;return r.vars&&typeof r.getColorSchemeSelector==\"function\"?{[r.getColorSchemeSelector(e).replace(/(\\[[^\\]]+\\])/,\"*:where($1)\")]:t}:r.palette.mode===e?t:{}}var Yu=[\"breakpoints\",\"palette\",\"spacing\",\"shape\"];function Xu(e={},...t){let{breakpoints:r={},palette:o={},spacing:n,shape:a={}}=e,i=D(e,Yu),p=Na(r),s=Ba(n),l=At({breakpoints:p,direction:\"ltr\",components:{},palette:g({mode:\"light\"},o),spacing:s,shape:g({},Xs,a)},i);return l.applyStyles=ja,l=t.reduce((c,f)=>At(c,f),l),l.unstable_sxConfig=g({},Lt,i?.unstable_sxConfig),l.unstable_sx=function(f){return Dt({sx:f,theme:this})},l}var It=Xu;import*as ap from\"react\";function Zu(e){return Object.keys(e).length===0}function Qu(e=null){let t=ap.useContext(Ot);return!t||Zu(t)?e:t}var Mo=Qu;var Ju=It();function ef(e=Ju){return Mo(e)}var _o=ef;function ip(e){var t,r,o=\"\";if(typeof e==\"string\"||typeof e==\"number\")o+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ip(e[t]))&&(o&&(o+=\" \"),o+=r)}else for(r in e)e[r]&&(o&&(o+=\" \"),o+=r);return o}function tf(){for(var e,t,r=0,o=\"\",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ip(e))&&(o&&(o+=\" \"),o+=t);return o}var X=tf;var rf=[\"ownerState\"],of=[\"variants\"],nf=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function af(e){return Object.keys(e).length===0}function sf(e){return typeof e==\"string\"&&e.charCodeAt(0)>96}function Ao(e){return e!==\"ownerState\"&&e!==\"theme\"&&e!==\"sx\"&&e!==\"as\"}var pf=It(),lf=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function On({defaultTheme:e,theme:t,themeId:r}){return af(t)?e:t[r]||t}function cf(e){return e?(t,r)=>r[e]:null}function Mn(e,t){let{ownerState:r}=t,o=D(t,rf),n=typeof e==\"function\"?e(g({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap(a=>Mn(a,g({ownerState:r},o)));if(n&&typeof n==\"object\"&&Array.isArray(n.variants)){let{variants:a=[]}=n,p=D(n,of);return a.forEach(s=>{let l=!0;typeof s.props==\"function\"?l=s.props(g({ownerState:r},o,r)):Object.keys(s.props).forEach(c=>{r?.[c]!==s.props[c]&&o[c]!==s.props[c]&&(l=!1)}),l&&(Array.isArray(p)||(p=[p]),p.push(typeof s.style==\"function\"?s.style(g({ownerState:r},o,r)):s.style))}),p}return n}function _n(e={}){let{themeId:t,defaultTheme:r=pf,rootShouldForwardProp:o=Ao,slotShouldForwardProp:n=Ao}=e,a=i=>Dt(g({},i,{theme:On(g({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,p={})=>{qs(i,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));let{name:s,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:m=cf(lf(l))}=p,h=D(p,nf),y=c!==void 0?c:l&&l!==\"Root\"&&l!==\"root\"||!1,u=f||!1,x,b=Ao;l===\"Root\"||l===\"root\"?b=o:l?b=n:sf(i)&&(b=void 0);let C=_a(i,g({shouldForwardProp:b,label:x},h)),E=T=>typeof T==\"function\"&&T.__emotion_real!==T||_t(T)?P=>Mn(T,g({},P,{theme:On({theme:P.theme,defaultTheme:r,themeId:t})})):T,d=(T,...P)=>{let w=E(T),S=P?P.map(E):[];s&&m&&S.push(O=>{let M=On(g({},O,{defaultTheme:r,themeId:t}));if(!M.components||!M.components[s]||!M.components[s].styleOverrides)return null;let k=M.components[s].styleOverrides,V={};return Object.entries(k).forEach(([N,_])=>{V[N]=Mn(_,g({},O,{theme:M}))}),m(O,V)}),s&&!y&&S.push(O=>{var M;let k=On(g({},O,{defaultTheme:r,themeId:t})),V=k==null||(M=k.components)==null||(M=M[s])==null?void 0:M.variants;return Mn({variants:V},g({},O,{theme:k}))}),u||S.push(a);let v=S.length-P.length;if(Array.isArray(T)&&v>0){let O=new Array(v).fill(\"\");w=[...T,...O],w.raw=[...T.raw,...O]}let R=C(w,...S);return i.muiName&&(R.muiName=i.muiName),R};return C.withConfig&&(d.withConfig=C.withConfig),d}}function No(e,t){let r=g({},t);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))r[o]=g({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=t[o];r[o]={},!a||!Object.keys(a)?r[o]=n:!n||!Object.keys(n)?r[o]=a:(r[o]=g({},a),Object.keys(n).forEach(i=>{r[o][i]=No(n[i],a[i])}))}else r[o]===void 0&&(r[o]=e[o])}),r}function An(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:No(t.components[r].defaultProps,o)}function ko({props:e,name:t,defaultTheme:r,themeId:o}){let n=_o(r);return o&&(n=n[o]||n),An({theme:n,name:t,props:e})}function uf(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Fa=uf;function Va(e,t=0,r=1){return Fa(e,t,r)}function ff(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?\"a\":\"\"}(${r.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(\", \")})`:\"\"}function er(e){if(e.type)return e;if(e.charAt(0)===\"#\")return er(ff(e));let t=e.indexOf(\"(\"),r=e.substring(0,t);if([\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(r)===-1)throw new Error(qt(9,e));let o=e.substring(t+1,e.length-1),n;if(r===\"color\"){if(o=o.split(\" \"),n=o.shift(),o.length===4&&o[3].charAt(0)===\"/\"&&(o[3]=o[3].slice(1)),[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(n)===-1)throw new Error(qt(10,n))}else o=o.split(\",\");return o=o.map(a=>parseFloat(a)),{type:r,values:o,colorSpace:n}}function Nn(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.indexOf(\"rgb\")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf(\"hsl\")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.indexOf(\"color\")!==-1?o=`${r} ${o.join(\" \")}`:o=`${o.join(\", \")}`,`${t}(${o})`}function mf(e){e=er(e);let{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(l,c=(l+r/30)%12)=>n-a*Math.max(Math.min(c-3,9-c,1),-1),p=\"rgb\",s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type===\"hsla\"&&(p+=\"a\",s.push(t[3])),Nn({type:p,values:s})}function sp(e){e=er(e);let t=e.type===\"hsl\"||e.type===\"hsla\"?er(mf(e)).values:e.values;return t=t.map(r=>(e.type!==\"color\"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pp(e,t){let r=sp(e),o=sp(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function Gr(e,t){return e=er(e),t=Va(t),(e.type===\"rgb\"||e.type===\"hsl\")&&(e.type+=\"a\"),e.type===\"color\"?e.values[3]=`/${t}`:e.values[3]=t,Nn(e)}function lp(e,t){if(e=er(e),t=Va(t),e.type.indexOf(\"hsl\")!==-1)e.values[2]*=1-t;else if(e.type.indexOf(\"rgb\")!==-1||e.type.indexOf(\"color\")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Nn(e)}function cp(e,t){if(e=er(e),t=Va(t),e.type.indexOf(\"hsl\")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf(\"rgb\")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf(\"color\")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Nn(e)}function Ua(e,t){return g({toolbar:{minHeight:56,[e.up(\"xs\")]:{\"@media (orientation: landscape)\":{minHeight:48}},[e.up(\"sm\")]:{minHeight:64}}},t)}var df=[\"mode\",\"contrastThreshold\",\"tonalOffset\"],up={text:{primary:\"rgba(0, 0, 0, 0.87)\",secondary:\"rgba(0, 0, 0, 0.6)\",disabled:\"rgba(0, 0, 0, 0.38)\"},divider:\"rgba(0, 0, 0, 0.12)\",background:{paper:Er.white,default:Er.white},action:{active:\"rgba(0, 0, 0, 0.54)\",hover:\"rgba(0, 0, 0, 0.04)\",hoverOpacity:.04,selected:\"rgba(0, 0, 0, 0.08)\",selectedOpacity:.08,disabled:\"rgba(0, 0, 0, 0.26)\",disabledBackground:\"rgba(0, 0, 0, 0.12)\",disabledOpacity:.38,focus:\"rgba(0, 0, 0, 0.12)\",focusOpacity:.12,activatedOpacity:.12}},Wa={text:{primary:Er.white,secondary:\"rgba(255, 255, 255, 0.7)\",disabled:\"rgba(255, 255, 255, 0.5)\",icon:\"rgba(255, 255, 255, 0.5)\"},divider:\"rgba(255, 255, 255, 0.12)\",background:{paper:\"#121212\",default:\"#121212\"},action:{active:Er.white,hover:\"rgba(255, 255, 255, 0.08)\",hoverOpacity:.08,selected:\"rgba(255, 255, 255, 0.16)\",selectedOpacity:.16,disabled:\"rgba(255, 255, 255, 0.3)\",disabledBackground:\"rgba(255, 255, 255, 0.12)\",disabledOpacity:.38,focus:\"rgba(255, 255, 255, 0.12)\",focusOpacity:.12,activatedOpacity:.24}};function fp(e,t,r,o){let n=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t===\"light\"?e.light=cp(e.main,n):t===\"dark\"&&(e.dark=lp(e.main,a)))}function hf(e=\"light\"){return e===\"dark\"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[700],light:Wt[400],dark:Wt[800]}}function yf(e=\"light\"){return e===\"dark\"?{main:Ut[200],light:Ut[50],dark:Ut[400]}:{main:Ut[500],light:Ut[300],dark:Ut[700]}}function gf(e=\"light\"){return e===\"dark\"?{main:Vt[500],light:Vt[300],dark:Vt[700]}:{main:Vt[700],light:Vt[400],dark:Vt[800]}}function xf(e=\"light\"){return e===\"dark\"?{main:zt[400],light:zt[300],dark:zt[700]}:{main:zt[700],light:zt[500],dark:zt[900]}}function bf(e=\"light\"){return e===\"dark\"?{main:Ht[400],light:Ht[300],dark:Ht[700]}:{main:Ht[800],light:Ht[500],dark:Ht[900]}}function vf(e=\"light\"){return e===\"dark\"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:\"#ed6c02\",light:Cr[500],dark:Cr[900]}}function za(e){let{mode:t=\"light\",contrastThreshold:r=3,tonalOffset:o=.2}=e,n=D(e,df),a=e.primary||hf(t),i=e.secondary||yf(t),p=e.error||gf(t),s=e.info||xf(t),l=e.success||bf(t),c=e.warning||vf(t);function f(u){return pp(u,Wa.text.primary)>=r?Wa.text.primary:up.text.primary}let m=({color:u,name:x,mainShade:b=500,lightShade:C=300,darkShade:E=700})=>{if(u=g({},u),!u.main&&u[b]&&(u.main=u[b]),!u.hasOwnProperty(\"main\"))throw new Error(dt(11,x?` (${x})`:\"\",b));if(typeof u.main!=\"string\")throw new Error(dt(12,x?` (${x})`:\"\",JSON.stringify(u.main)));return fp(u,\"light\",C,o),fp(u,\"dark\",E,o),u.contrastText||(u.contrastText=f(u.main)),u},h={dark:Wa,light:up};return Ze(g({common:g({},Er),mode:t,primary:m({color:a,name:\"primary\"}),secondary:m({color:i,name:\"secondary\",mainShade:\"A400\",lightShade:\"A200\",darkShade:\"A700\"}),error:m({color:p,name:\"error\"}),warning:m({color:c,name:\"warning\"}),info:m({color:s,name:\"info\"}),success:m({color:l,name:\"success\"}),grey:Ki,contrastThreshold:r,getContrastText:f,augmentColor:m,tonalOffset:o},h[t]),n)}var Tf=[\"fontFamily\",\"fontSize\",\"fontWeightLight\",\"fontWeightRegular\",\"fontWeightMedium\",\"fontWeightBold\",\"htmlFontSize\",\"allVariants\",\"pxToRem\"];function Pf(e){return Math.round(e*1e5)/1e5}var mp={textTransform:\"uppercase\"},dp='\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';function Ha(e,t){let r=typeof t==\"function\"?t(e):t,{fontFamily:o=dp,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:p=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=r,m=D(r,Tf),h=n/14,y=f||(b=>`${b/l*h}rem`),u=(b,C,E,d,T)=>g({fontFamily:o,fontWeight:b,fontSize:y(C),lineHeight:E},o===dp?{letterSpacing:`${Pf(d/C)}em`}:{},T,c),x={h1:u(a,96,1.167,-1.5),h2:u(a,60,1.2,-.5),h3:u(i,48,1.167,0),h4:u(i,34,1.235,.25),h5:u(i,24,1.334,0),h6:u(p,20,1.6,.15),subtitle1:u(i,16,1.75,.15),subtitle2:u(p,14,1.57,.1),body1:u(i,16,1.5,.15),body2:u(i,14,1.43,.15),button:u(p,14,1.75,.4,mp),caption:u(i,12,1.66,.4),overline:u(i,12,2.66,1,mp),inherit:{fontFamily:\"inherit\",fontWeight:\"inherit\",fontSize:\"inherit\",lineHeight:\"inherit\",letterSpacing:\"inherit\"}};return Ze(g({htmlFontSize:l,pxToRem:y,fontFamily:o,fontSize:n,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:p,fontWeightBold:s},x),m,{clone:!1})}function H(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(\",\")}var wf=[\"none\",H(0,2,1,-1,0,1,1,0,0,1,3,0),H(0,3,1,-2,0,2,2,0,0,1,5,0),H(0,3,3,-2,0,3,4,0,0,1,8,0),H(0,2,4,-1,0,4,5,0,0,1,10,0),H(0,3,5,-1,0,5,8,0,0,1,14,0),H(0,3,5,-1,0,6,10,0,0,1,18,0),H(0,4,5,-2,0,7,10,1,0,2,16,1),H(0,5,5,-3,0,8,10,1,0,3,14,2),H(0,5,6,-3,0,9,12,1,0,3,16,2),H(0,6,6,-3,0,10,14,1,0,4,18,3),H(0,6,7,-4,0,11,15,1,0,4,20,3),H(0,7,8,-4,0,12,17,2,0,5,22,4),H(0,7,8,-4,0,13,19,2,0,5,24,4),H(0,7,9,-4,0,14,21,2,0,5,26,4),H(0,8,9,-5,0,15,22,2,0,6,28,5),H(0,8,10,-5,0,16,24,2,0,6,30,5),H(0,8,11,-5,0,17,26,2,0,6,32,5),H(0,9,11,-5,0,18,28,2,0,7,34,6),H(0,9,12,-6,0,19,29,2,0,7,36,6),H(0,10,13,-6,0,20,31,3,0,8,38,7),H(0,10,13,-6,0,21,33,3,0,8,40,7),H(0,10,14,-6,0,22,35,3,0,8,42,7),H(0,11,14,-7,0,23,36,3,0,9,44,8),H(0,11,15,-7,0,24,38,3,0,9,46,8)],hp=wf;var Ef=[\"duration\",\"easing\",\"delay\"],Cf={easeInOut:\"cubic-bezier(0.4, 0, 0.2, 1)\",easeOut:\"cubic-bezier(0.0, 0, 0.2, 1)\",easeIn:\"cubic-bezier(0.4, 0, 1, 1)\",sharp:\"cubic-bezier(0.4, 0, 0.6, 1)\"},Rf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yp(e){return`${Math.round(e)}ms`}function Sf(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ga(e){let t=g({},Cf,e.easing),r=g({},Rf,e.duration);return g({getAutoHeightDuration:Sf,create:(n=[\"all\"],a={})=>{let{duration:i=r.standard,easing:p=t.easeInOut,delay:s=0}=a,l=D(a,Ef);return(Array.isArray(n)?n:[n]).map(c=>`${c} ${typeof i==\"string\"?i:yp(i)} ${p} ${typeof s==\"string\"?s:yp(s)}`).join(\",\")}},e,{easing:t,duration:r})}var Of={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gp=Of;var Mf=[\"breakpoints\",\"mixins\",\"spacing\",\"palette\",\"transitions\",\"typography\",\"shape\"];function _f(e={},...t){let{mixins:r={},palette:o={},transitions:n={},typography:a={}}=e,i=D(e,Mf);if(e.vars)throw new Error(dt(18));let p=za(o),s=It(e),l=Ze(s,{mixins:Ua(s.breakpoints,r),palette:p,shadows:hp.slice(),typography:Ha(p,a),transitions:Ga(n),zIndex:g({},gp)});return l=Ze(l,i),l=t.reduce((c,f)=>Ze(c,f),l),l.unstable_sxConfig=g({},Lt,i?.unstable_sxConfig),l.unstable_sx=function(f){return Dt({sx:f,theme:this})},l}var xp=_f;import*as Nf from\"react\";var Af=xp(),Kr=Af;function Lo(){let e=_o(Kr);return e[Mr]||e}function He({props:e,name:t}){return ko({props:e,name:t,defaultTheme:Kr,themeId:Mr})}var kf=e=>Ao(e)&&e!==\"classes\";var Lf=_n({themeId:Mr,defaultTheme:Kr,rootShouldForwardProp:kf}),Ce=Lf;var st=uo;var bp=fo;var vp=mo;var tr=en;var rr=Fe;var kn=on;function Ln(e,t){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ln(e,t)}function Dn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ln(e,t)}import In from\"react\";import $n from\"react-dom\";var Ka={disabled:!1};import Df from\"react\";var qr=Df.createContext(null);var Tp=function(t){return t.scrollTop};var Do=\"unmounted\",or=\"exited\",nr=\"entering\",Xr=\"entered\",qa=\"exiting\",ht=function(e){Dn(t,e);function t(o,n){var a;a=e.call(this,o,n)||this;var i=n,p=i&&!i.isMounting?o.enter:o.appear,s;return a.appearStatus=null,o.in?p?(s=or,a.appearStatus=nr):s=Xr:o.unmountOnExit||o.mountOnEnter?s=Do:s=or,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,a){var i=n.in;return i&&a.status===Do?{status:or}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var a=null;if(n!==this.props){var i=this.state.status;this.props.in?i!==nr&&i!==Xr&&(a=nr):(i===nr||i===Xr)&&(a=qa)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,a,i,p;return a=i=p=n,n!=null&&typeof n!=\"number\"&&(a=n.exit,i=n.enter,p=n.appear!==void 0?n.appear:i),{exit:a,enter:i,appear:p}},r.updateStatus=function(n,a){if(n===void 0&&(n=!1),a!==null)if(this.cancelNextCallback(),a===nr){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this);i&&Tp(i)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Do})},r.performEnter=function(n){var a=this,i=this.props.enter,p=this.context?this.context.isMounting:n,s=this.props.nodeRef?[p]:[$n.findDOMNode(this),p],l=s[0],c=s[1],f=this.getTimeouts(),m=p?f.appear:f.enter;if(!n&&!i||Ka.disabled){this.safeSetState({status:Xr},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:nr},function(){a.props.onEntering(l,c),a.onTransitionEnd(m,function(){a.safeSetState({status:Xr},function(){a.props.onEntered(l,c)})})})},r.performExit=function(){var n=this,a=this.props.exit,i=this.getTimeouts(),p=this.props.nodeRef?void 0:$n.findDOMNode(this);if(!a||Ka.disabled){this.safeSetState({status:or},function(){n.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:qa},function(){n.props.onExiting(p),n.onTransitionEnd(i.exit,function(){n.safeSetState({status:or},function(){n.props.onExited(p)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,a){a=this.setNextCallback(a),this.setState(n,a)},r.setNextCallback=function(n){var a=this,i=!0;return this.nextCallback=function(p){i&&(i=!1,a.nextCallback=null,n(p))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(n,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this),p=n==null&&!this.props.addEndListener;if(!i||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=s[0],c=s[1];this.props.addEndListener(l,c)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===Do)return null;var a=this.props,i=a.children,p=a.in,s=a.mountOnEnter,l=a.unmountOnExit,c=a.appear,f=a.enter,m=a.exit,h=a.timeout,y=a.addEndListener,u=a.onEnter,x=a.onEntering,b=a.onEntered,C=a.onExit,E=a.onExiting,d=a.onExited,T=a.nodeRef,P=D(a,[\"children\",\"in\",\"mountOnEnter\",\"unmountOnExit\",\"appear\",\"enter\",\"exit\",\"timeout\",\"addEndListener\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\",\"nodeRef\"]);return In.createElement(qr.Provider,{value:null},typeof i==\"function\"?i(n,P):In.cloneElement(In.Children.only(i),P))},t}(In.Component);ht.contextType=qr;ht.propTypes={};function Yr(){}ht.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yr,onEntering:Yr,onEntered:Yr,onExit:Yr,onExiting:Yr,onExited:Yr};ht.UNMOUNTED=Do;ht.EXITED=or;ht.ENTERING=nr;ht.ENTERED=Xr;ht.EXITING=qa;var Ya=ht;function Pp(e){if(e===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}import Vn from\"react\";import{Children as If,cloneElement as Bn,isValidElement as jn}from\"react\";function Fn(e,t){var r=function(a){return t&&jn(a)?t(a):a},o=Object.create(null);return e&&If.map(e,function(n){return n}).forEach(function(n){o[n.key]=r(n)}),o}function $f(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var o=Object.create(null),n=[];for(var a in e)a in t?n.length&&(o[a]=n,n=[]):n.push(a);var i,p={};for(var s in t){if(o[s])for(i=0;i<o[s].length;i++){var l=o[s][i];p[o[s][i]]=r(l)}p[s]=r(s)}for(i=0;i<n.length;i++)p[n[i]]=r(n[i]);return p}function ar(e,t,r){return r[t]!=null?r[t]:e.props[t]}function wp(e,t){return Fn(e.children,function(r){return Bn(r,{onExited:t.bind(null,r),in:!0,appear:ar(r,\"appear\",e),enter:ar(r,\"enter\",e),exit:ar(r,\"exit\",e)})})}function Ep(e,t,r){var o=Fn(e.children),n=$f(t,o);return Object.keys(n).forEach(function(a){var i=n[a];if(jn(i)){var p=a in t,s=a in o,l=t[a],c=jn(l)&&!l.props.in;s&&(!p||c)?n[a]=Bn(i,{onExited:r.bind(null,i),in:!0,exit:ar(i,\"exit\",e),enter:ar(i,\"enter\",e)}):!s&&p&&!c?n[a]=Bn(i,{in:!1}):s&&p&&jn(l)&&(n[a]=Bn(i,{onExited:r.bind(null,i),in:l.props.in,exit:ar(i,\"exit\",e),enter:ar(i,\"enter\",e)}))}}),n}var Bf=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jf={component:\"div\",childFactory:function(t){return t}},Xa=function(e){Dn(t,e);function t(o,n){var a;a=e.call(this,o,n)||this;var i=a.handleExited.bind(Pp(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,a){var i=a.children,p=a.handleExited,s=a.firstRender;return{children:s?wp(n,p):Ep(n,i,p),firstRender:!1}},r.handleExited=function(n,a){var i=Fn(this.props.children);n.key in i||(n.props.onExited&&n.props.onExited(a),this.mounted&&this.setState(function(p){var s=g({},p.children);return delete s[n.key],{children:s}}))},r.render=function(){var n=this.props,a=n.component,i=n.childFactory,p=D(n,[\"component\",\"childFactory\"]),s=this.state.contextValue,l=Bf(this.state.children).map(i);return delete p.appear,delete p.enter,delete p.exit,a===null?Vn.createElement(qr.Provider,{value:s},l):Vn.createElement(qr.Provider,{value:s},Vn.createElement(a,p,l))},t}(Vn.Component);Xa.propTypes={};Xa.defaultProps=jf;var Za=Xa;var Cp=e=>e.scrollTop;function Qa(e,t){var r,o;let{timeout:n,easing:a,style:i={}}=e;return{duration:(r=i.transitionDuration)!=null?r:typeof n==\"number\"?n:n[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof a==\"object\"?a[t.mode]:a,delay:i.transitionDelay}}import*as Re from\"react\";import*as ee from\"react\";import*as Un from\"react\";import{jsx as Rp}from\"react/jsx-runtime\";function Ff(e){let{className:t,classes:r,pulsate:o=!1,rippleX:n,rippleY:a,rippleSize:i,in:p,onExited:s,timeout:l}=e,[c,f]=Un.useState(!1),m=X(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+n},y=X(r.child,c&&r.childLeaving,o&&r.childPulsate);return!p&&!c&&f(!0),Un.useEffect(()=>{if(!p&&s!=null){let u=setTimeout(s,l);return()=>{clearTimeout(u)}}},[s,p,l]),Rp(\"span\",{className:m,style:h,children:Rp(\"span\",{className:y})})}var Sp=Ff;var Vf=we(\"MuiTouchRipple\",[\"root\",\"ripple\",\"rippleVisible\",\"ripplePulsate\",\"child\",\"childLeaving\",\"childPulsate\"]),ke=Vf;import{jsx as Ja}from\"react/jsx-runtime\";var Uf=[\"center\",\"classes\",\"className\"],Wn=e=>e,Op,Mp,_p,Ap,ei=550,Wf=80,zf=Wr(Op||(Op=Wn`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`)),Hf=Wr(Mp||(Mp=Wn`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`)),Gf=Wr(_p||(_p=Wn`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`)),Kf=Ce(\"span\",{name:\"MuiTouchRipple\",slot:\"Root\"})({overflow:\"hidden\",pointerEvents:\"none\",position:\"absolute\",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:\"inherit\"}),qf=Ce(Sp,{name:\"MuiTouchRipple\",slot:\"Ripple\"})(Ap||(Ap=Wn`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`),ke.rippleVisible,zf,ei,({theme:e})=>e.transitions.easing.easeInOut,ke.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ke.child,ke.childLeaving,Hf,ei,({theme:e})=>e.transitions.easing.easeInOut,ke.childPulsate,Gf,({theme:e})=>e.transitions.easing.easeInOut),Yf=ee.forwardRef(function(t,r){let o=He({props:t,name:\"MuiTouchRipple\"}),{center:n=!1,classes:a={},className:i}=o,p=D(o,Uf),[s,l]=ee.useState([]),c=ee.useRef(0),f=ee.useRef(null);ee.useEffect(()=>{f.current&&(f.current(),f.current=null)},[s]);let m=ee.useRef(!1),h=ee.useRef(0),y=ee.useRef(null),u=ee.useRef(null);ee.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);let x=ee.useCallback(d=>{let{pulsate:T,rippleX:P,rippleY:w,rippleSize:S,cb:v}=d;l(R=>[...R,Ja(qf,{classes:{ripple:X(a.ripple,ke.ripple),rippleVisible:X(a.rippleVisible,ke.rippleVisible),ripplePulsate:X(a.ripplePulsate,ke.ripplePulsate),child:X(a.child,ke.child),childLeaving:X(a.childLeaving,ke.childLeaving),childPulsate:X(a.childPulsate,ke.childPulsate)},timeout:ei,pulsate:T,rippleX:P,rippleY:w,rippleSize:S},c.current)]),c.current+=1,f.current=v},[a]),b=ee.useCallback((d={},T={},P=()=>{})=>{let{pulsate:w=!1,center:S=n||T.pulsate,fakeElement:v=!1}=T;if(d?.type===\"mousedown\"&&m.current){m.current=!1;return}d?.type===\"touchstart\"&&(m.current=!0);let R=v?null:u.current,O=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0},M,k,V;if(S||d===void 0||d.clientX===0&&d.clientY===0||!d.clientX&&!d.touches)M=Math.round(O.width/2),k=Math.round(O.height/2);else{let{clientX:N,clientY:_}=d.touches&&d.touches.length>0?d.touches[0]:d;M=Math.round(N-O.left),k=Math.round(_-O.top)}if(S)V=Math.sqrt((2*O.width**2+O.height**2)/3),V%2===0&&(V+=1);else{let N=Math.max(Math.abs((R?R.clientWidth:0)-M),M)*2+2,_=Math.max(Math.abs((R?R.clientHeight:0)-k),k)*2+2;V=Math.sqrt(N**2+_**2)}d!=null&&d.touches?y.current===null&&(y.current=()=>{x({pulsate:w,rippleX:M,rippleY:k,rippleSize:V,cb:P})},h.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},Wf)):x({pulsate:w,rippleX:M,rippleY:k,rippleSize:V,cb:P})},[n,x]),C=ee.useCallback(()=>{b({},{pulsate:!0})},[b]),E=ee.useCallback((d,T)=>{if(clearTimeout(h.current),d?.type===\"touchend\"&&y.current){y.current(),y.current=null,h.current=setTimeout(()=>{E(d,T)});return}y.current=null,l(P=>P.length>0?P.slice(1):P),f.current=T},[]);return ee.useImperativeHandle(r,()=>({pulsate:C,start:b,stop:E}),[C,b,E]),Ja(Kf,g({className:X(ke.root,a.root,i),ref:u},p,{children:Ja(Za,{component:null,exit:!0,children:s})}))}),Np=Yf;function kp(e){return ge(\"MuiButtonBase\",e)}var Xf=we(\"MuiButtonBase\",[\"root\",\"disabled\",\"focusVisible\"]),Lp=Xf;import{jsx as Qf}from\"react/jsx-runtime\";import{jsxs as Jf}from\"react/jsx-runtime\";var Zf=[\"action\",\"centerRipple\",\"children\",\"className\",\"component\",\"disabled\",\"disableRipple\",\"disableTouchRipple\",\"focusRipple\",\"focusVisibleClassName\",\"LinkComponent\",\"onBlur\",\"onClick\",\"onContextMenu\",\"onDragLeave\",\"onFocus\",\"onFocusVisible\",\"onKeyDown\",\"onKeyUp\",\"onMouseDown\",\"onMouseLeave\",\"onMouseUp\",\"onTouchEnd\",\"onTouchMove\",\"onTouchStart\",\"tabIndex\",\"TouchRippleProps\",\"touchRippleRef\",\"type\"],em=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:o,classes:n}=e,i=Ve({root:[\"root\",t&&\"disabled\",r&&\"focusVisible\"]},kp,n);return r&&o&&(i.root+=` ${o}`),i},tm=Ce(\"button\",{name:\"MuiButtonBase\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",boxSizing:\"border-box\",WebkitTapHighlightColor:\"transparent\",backgroundColor:\"transparent\",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:\"pointer\",userSelect:\"none\",verticalAlign:\"middle\",MozAppearance:\"none\",WebkitAppearance:\"none\",textDecoration:\"none\",color:\"inherit\",\"&::-moz-focus-inner\":{borderStyle:\"none\"},[`&.${Lp.disabled}`]:{pointerEvents:\"none\",cursor:\"default\"},\"@media print\":{colorAdjust:\"exact\"}}),rm=Re.forwardRef(function(t,r){let o=He({props:t,name:\"MuiButtonBase\"}),{action:n,centerRipple:a=!1,children:i,className:p,component:s=\"button\",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:h=\"a\",onBlur:y,onClick:u,onContextMenu:x,onDragLeave:b,onFocus:C,onFocusVisible:E,onKeyDown:d,onKeyUp:T,onMouseDown:P,onMouseLeave:w,onMouseUp:S,onTouchEnd:v,onTouchMove:R,onTouchStart:O,tabIndex:M=0,TouchRippleProps:k,touchRippleRef:V,type:N}=o,_=D(o,Zf),$=Re.useRef(null),U=Re.useRef(null),K=rr(U,V),{isFocusVisibleRef:me,onFocus:Tt,onBlur:lt,ref:ct}=kn(),[le,he]=Re.useState(!1);l&&le&&he(!1),Re.useImperativeHandle(n,()=>({focusVisible:()=>{he(!0),$.current.focus()}}),[]);let[Le,tt]=Re.useState(!1);Re.useEffect(()=>{tt(!0)},[]);let ce=Le&&!c&&!l;Re.useEffect(()=>{le&&m&&!c&&Le&&U.current.pulsate()},[c,m,le,Le]);function Q(A,Be,ao=f){return tr(Rt=>(Be&&Be(Rt),!ao&&U.current&&U.current[A](Rt),!0))}let Pt=Q(\"start\",P),De=Q(\"stop\",x),no=Q(\"stop\",b),hr=Q(\"stop\",S),yr=Q(\"stop\",A=>{le&&A.preventDefault(),w&&w(A)}),Ie=Q(\"start\",O),wt=Q(\"stop\",v),gr=Q(\"stop\",R),ut=Q(\"stop\",A=>{lt(A),me.current===!1&&he(!1),y&&y(A)},!1),xr=tr(A=>{$.current||($.current=A.currentTarget),Tt(A),me.current===!0&&(he(!0),E&&E(A)),C&&C(A)}),ye=()=>{let A=$.current;return s&&s!==\"button\"&&!(A.tagName===\"A\"&&A.href)},rt=Re.useRef(!1),ft=tr(A=>{m&&!rt.current&&le&&U.current&&A.key===\" \"&&(rt.current=!0,U.current.stop(A,()=>{U.current.start(A)})),A.target===A.currentTarget&&ye()&&A.key===\" \"&&A.preventDefault(),d&&d(A),A.target===A.currentTarget&&ye()&&A.key===\"Enter\"&&!l&&(A.preventDefault(),u&&u(A))}),Et=tr(A=>{m&&A.key===\" \"&&U.current&&le&&!A.defaultPrevented&&(rt.current=!1,U.current.stop(A,()=>{U.current.pulsate(A)})),T&&T(A),u&&A.target===A.currentTarget&&ye()&&A.key===\" \"&&!A.defaultPrevented&&u(A)}),Oe=s;Oe===\"button\"&&(_.href||_.to)&&(Oe=h);let Me={};Oe===\"button\"?(Me.type=N===void 0?\"button\":N,Me.disabled=l):(!_.href&&!_.to&&(Me.role=\"button\"),l&&(Me[\"aria-disabled\"]=l));let $e=rr(r,ct,$),Ct=g({},o,{centerRipple:a,component:s,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:m,tabIndex:M,focusVisible:le}),br=em(Ct);return Jf(tm,g({as:Oe,className:X(br.root,p),ownerState:Ct,onBlur:ut,onClick:u,onContextMenu:De,onFocus:xr,onKeyDown:ft,onKeyUp:Et,onMouseDown:Pt,onMouseLeave:yr,onMouseUp:hr,onDragLeave:no,onTouchEnd:wt,onTouchMove:gr,onTouchStart:Ie,ref:$e,tabIndex:l?-1:M,type:N},Me,_,{children:[i,ce?Qf(Np,g({ref:K,center:a},k)):null]}))}),ti=rm;import*as zn from\"react\";function Dp(e){return ge(\"MuiIconButton\",e)}var om=we(\"MuiIconButton\",[\"root\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorError\",\"colorInfo\",\"colorSuccess\",\"colorWarning\",\"edgeStart\",\"edgeEnd\",\"sizeSmall\",\"sizeMedium\",\"sizeLarge\"]),Ip=om;import{jsx as am}from\"react/jsx-runtime\";var nm=[\"edge\",\"children\",\"className\",\"color\",\"disabled\",\"disableFocusRipple\",\"size\"],im=e=>{let{classes:t,disabled:r,color:o,edge:n,size:a}=e,i={root:[\"root\",r&&\"disabled\",o!==\"default\"&&`color${st(o)}`,n&&`edge${st(n)}`,`size${st(a)}`]};return Ve(i,Dp,t)},sm=Ce(ti,{name:\"MuiIconButton\",slot:\"Root\",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color!==\"default\"&&t[`color${st(r.color)}`],r.edge&&t[`edge${st(r.edge)}`],t[`size${st(r.size)}`]]}})(({theme:e,ownerState:t})=>g({textAlign:\"center\",flex:\"0 0 auto\",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:\"50%\",overflow:\"visible\",color:(e.vars||e).palette.action.active,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gr(e.palette.action.active,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},t.edge===\"start\"&&{marginLeft:t.size===\"small\"?-3:-12},t.edge===\"end\"&&{marginRight:t.size===\"small\"?-3:-12}),({theme:e,ownerState:t})=>{var r;let o=(r=(e.vars||e).palette)==null?void 0:r[t.color];return g({},t.color===\"inherit\"&&{color:\"inherit\"},t.color!==\"inherit\"&&t.color!==\"default\"&&g({color:o?.main},!t.disableRipple&&{\"&:hover\":g({},o&&{backgroundColor:e.vars?`rgba(${o.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gr(o.main,e.palette.action.hoverOpacity)},{\"@media (hover: none)\":{backgroundColor:\"transparent\"}})}),t.size===\"small\"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size===\"large\"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ip.disabled}`]:{backgroundColor:\"transparent\",color:(e.vars||e).palette.action.disabled}})}),pm=zn.forwardRef(function(t,r){let o=He({props:t,name:\"MuiIconButton\"}),{edge:n=!1,children:a,className:i,color:p=\"default\",disabled:s=!1,disableFocusRipple:l=!1,size:c=\"medium\"}=o,f=D(o,nm),m=g({},o,{edge:n,color:p,disabled:s,disableFocusRipple:l,size:c}),h=im(m);return am(sm,g({className:X(h.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:r,ownerState:m},f,{children:a}))}),Zr=pm;function $p(e){return typeof e==\"string\"}function $t(e,t,r){return e===void 0||$p(e)?t:g({},t,{ownerState:g({},t.ownerState,r)})}import*as Io from\"react\";import{jsx as dT}from\"react/jsx-runtime\";var lm={disableDefaultClasses:!1},cm=Io.createContext(lm);function Bp(e){let{disableDefaultClasses:t}=Io.useContext(cm);return r=>t?\"\":e(r)}function jp(e,t=[]){if(e===void 0)return{};let r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]==\"function\"&&!t.includes(o)).forEach(o=>{r[o]=e[o]}),r}function Fp(e,t,r){return typeof e==\"function\"?e(t,r):e}function ri(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]==\"function\")).forEach(r=>{t[r]=e[r]}),t}function Vp(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:a}=e;if(!t){let h=X(r?.className,a,n?.className,o?.className),y=g({},r?.style,n?.style,o?.style),u=g({},r,n,o);return h.length>0&&(u.className=h),Object.keys(y).length>0&&(u.style=y),{props:u,internalRef:void 0}}let i=jp(g({},n,o)),p=ri(o),s=ri(n),l=t(i),c=X(l?.className,r?.className,a,n?.className,o?.className),f=g({},l?.style,r?.style,n?.style,o?.style),m=g({},l,r,s,p);return c.length>0&&(m.className=c),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:l.ref}}var um=[\"elementType\",\"externalSlotProps\",\"ownerState\",\"skipResolvingSlotProps\"];function oi(e){var t;let{elementType:r,externalSlotProps:o,ownerState:n,skipResolvingSlotProps:a=!1}=e,i=D(e,um),p=a?{}:Fp(o,n),{props:s,internalRef:l}=Vp(g({},i,{externalSlotProps:p})),c=Fe(l,p?.ref,(t=e.additionalProps)==null?void 0:t.ref);return $t(r,g({},s,{ref:c}),n)}import*as de from\"react\";var Z=\"top\",ne=\"bottom\",oe=\"right\",te=\"left\",Hn=\"auto\",Bt=[Z,ne,oe,te],yt=\"start\",ir=\"end\",Up=\"clippingParents\",Gn=\"viewport\",Qr=\"popper\",Wp=\"reference\",ni=Bt.reduce(function(e,t){return e.concat([t+\"-\"+yt,t+\"-\"+ir])},[]),Kn=[].concat(Bt,[Hn]).reduce(function(e,t){return e.concat([t,t+\"-\"+yt,t+\"-\"+ir])},[]),fm=\"beforeRead\",mm=\"read\",dm=\"afterRead\",hm=\"beforeMain\",ym=\"main\",gm=\"afterMain\",xm=\"beforeWrite\",bm=\"write\",vm=\"afterWrite\",zp=[fm,mm,dm,hm,ym,gm,xm,bm,vm];function se(e){return e?(e.nodeName||\"\").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!==\"[object Window]\"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ge(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function ae(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Jr(e){if(typeof ShadowRoot>\"u\")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tm(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!ae(a)||!se(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(i){var p=n[i];p===!1?a.removeAttribute(i):a.setAttribute(i,p===!0?\"\":p)}))})}function Pm(e){var t=e.state,r={popper:{position:t.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),p=i.reduce(function(s,l){return s[l]=\"\",s},{});!ae(n)||!se(n)||(Object.assign(n.style,p),Object.keys(a).forEach(function(s){n.removeAttribute(s)}))})}}var Hp={name:\"applyStyles\",enabled:!0,phase:\"write\",fn:Tm,effect:Pm,requires:[\"computeStyles\"]};function pe(e){return e.split(\"-\")[0]}var Qe=Math.max,sr=Math.min,gt=Math.round;function eo(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+\"/\"+t.version}).join(\" \"):navigator.userAgent}function $o(){return!/^((?!chrome|android).)*safari/i.test(eo())}function Ke(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&ae(e)&&(n=e.offsetWidth>0&&gt(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&gt(o.height)/e.offsetHeight||1);var i=Ge(e)?G(e):window,p=i.visualViewport,s=!$o()&&r,l=(o.left+(s&&p?p.offsetLeft:0))/n,c=(o.top+(s&&p?p.offsetTop:0))/a,f=o.width/n,m=o.height/a;return{width:f,height:m,top:c,right:l+f,bottom:c+m,left:l,x:l,y:c}}function pr(e){var t=Ke(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Bo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Jr(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pe(e){return G(e).getComputedStyle(e)}function ai(e){return[\"table\",\"td\",\"th\"].indexOf(se(e))>=0}function fe(e){return((Ge(e)?e.ownerDocument:e.document)||window.document).documentElement}function xt(e){return se(e)===\"html\"?e:e.assignedSlot||e.parentNode||(Jr(e)?e.host:null)||fe(e)}function Gp(e){return!ae(e)||Pe(e).position===\"fixed\"?null:e.offsetParent}function wm(e){var t=/firefox/i.test(eo()),r=/Trident/i.test(eo());if(r&&ae(e)){var o=Pe(e);if(o.position===\"fixed\")return null}var n=xt(e);for(Jr(n)&&(n=n.host);ae(n)&&[\"html\",\"body\"].indexOf(se(n))<0;){var a=Pe(n);if(a.transform!==\"none\"||a.perspective!==\"none\"||a.contain===\"paint\"||[\"transform\",\"perspective\"].indexOf(a.willChange)!==-1||t&&a.willChange===\"filter\"||t&&a.filter&&a.filter!==\"none\")return n;n=n.parentNode}return null}function Je(e){for(var t=G(e),r=Gp(e);r&&ai(r)&&Pe(r).position===\"static\";)r=Gp(r);return r&&(se(r)===\"html\"||se(r)===\"body\"&&Pe(r).position===\"static\")?t:r||wm(e)||t}function lr(e){return[\"top\",\"bottom\"].indexOf(e)>=0?\"x\":\"y\"}function cr(e,t,r){return Qe(e,sr(t,r))}function Kp(e,t,r){var o=cr(e,t,r);return o>r?r:o}function jo(){return{top:0,right:0,bottom:0,left:0}}function Fo(e){return Object.assign({},jo(),e)}function Vo(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Em=function(t,r){return t=typeof t==\"function\"?t(Object.assign({},r.rects,{placement:r.placement})):t,Fo(typeof t!=\"number\"?t:Vo(t,Bt))};function Cm(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,p=pe(r.placement),s=lr(p),l=[te,oe].indexOf(p)>=0,c=l?\"height\":\"width\";if(!(!a||!i)){var f=Em(n.padding,r),m=pr(a),h=s===\"y\"?Z:te,y=s===\"y\"?ne:oe,u=r.rects.reference[c]+r.rects.reference[s]-i[s]-r.rects.popper[c],x=i[s]-r.rects.reference[s],b=Je(a),C=b?s===\"y\"?b.clientHeight||0:b.clientWidth||0:0,E=u/2-x/2,d=f[h],T=C-m[c]-f[y],P=C/2-m[c]/2+E,w=cr(d,P,T),S=s;r.modifiersData[o]=(t={},t[S]=w,t.centerOffset=w-P,t)}}function Rm(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?\"[data-popper-arrow]\":o;n!=null&&(typeof n==\"string\"&&(n=t.elements.popper.querySelector(n),!n)||Bo(t.elements.popper,n)&&(t.elements.arrow=n))}var qp={name:\"arrow\",enabled:!0,phase:\"main\",fn:Cm,effect:Rm,requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]};function qe(e){return e.split(\"-\")[1]}var Sm={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function Om(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:gt(r*n)/n||0,y:gt(o*n)/n||0}}function Yp(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,i=e.offsets,p=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,m=i.x,h=m===void 0?0:m,y=i.y,u=y===void 0?0:y,x=typeof c==\"function\"?c({x:h,y:u}):{x:h,y:u};h=x.x,u=x.y;var b=i.hasOwnProperty(\"x\"),C=i.hasOwnProperty(\"y\"),E=te,d=Z,T=window;if(l){var P=Je(r),w=\"clientHeight\",S=\"clientWidth\";if(P===G(r)&&(P=fe(r),Pe(P).position!==\"static\"&&p===\"absolute\"&&(w=\"scrollHeight\",S=\"scrollWidth\")),P=P,n===Z||(n===te||n===oe)&&a===ir){d=ne;var v=f&&P===T&&T.visualViewport?T.visualViewport.height:P[w];u-=v-o.height,u*=s?1:-1}if(n===te||(n===Z||n===ne)&&a===ir){E=oe;var R=f&&P===T&&T.visualViewport?T.visualViewport.width:P[S];h-=R-o.width,h*=s?1:-1}}var O=Object.assign({position:p},l&&Sm),M=c===!0?Om({x:h,y:u},G(r)):{x:h,y:u};if(h=M.x,u=M.y,s){var k;return Object.assign({},O,(k={},k[d]=C?\"0\":\"\",k[E]=b?\"0\":\"\",k.transform=(T.devicePixelRatio||1)<=1?\"translate(\"+h+\"px, \"+u+\"px)\":\"translate3d(\"+h+\"px, \"+u+\"px, 0)\",k))}return Object.assign({},O,(t={},t[d]=C?u+\"px\":\"\",t[E]=b?h+\"px\":\"\",t.transform=\"\",t))}function Mm(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,i=a===void 0?!0:a,p=r.roundOffsets,s=p===void 0?!0:p,l={placement:pe(t.placement),variation:qe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy===\"fixed\"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yp(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yp(Object.assign({},l,{offsets:t.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-placement\":t.placement})}var Xp={name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:Mm,data:{}};var qn={passive:!0};function _m(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,i=o.resize,p=i===void 0?!0:i,s=G(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener(\"scroll\",r.update,qn)}),p&&s.addEventListener(\"resize\",r.update,qn),function(){a&&l.forEach(function(c){c.removeEventListener(\"scroll\",r.update,qn)}),p&&s.removeEventListener(\"resize\",r.update,qn)}}var Zp={name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:_m,data:{}};var Am={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function to(e){return e.replace(/left|right|bottom|top/g,function(t){return Am[t]})}var Nm={start:\"end\",end:\"start\"};function Yn(e){return e.replace(/start|end/g,function(t){return Nm[t]})}function ur(e){var t=G(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function fr(e){return Ke(fe(e)).left+ur(e).scrollLeft}function ii(e,t){var r=G(e),o=fe(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,p=0,s=0;if(n){a=n.width,i=n.height;var l=$o();(l||!l&&t===\"fixed\")&&(p=n.offsetLeft,s=n.offsetTop)}return{width:a,height:i,x:p+fr(e),y:s}}function si(e){var t,r=fe(e),o=ur(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Qe(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=Qe(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),p=-o.scrollLeft+fr(e),s=-o.scrollTop;return Pe(n||r).direction===\"rtl\"&&(p+=Qe(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:p,y:s}}function mr(e){var t=Pe(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Xn(e){return[\"html\",\"body\",\"#document\"].indexOf(se(e))>=0?e.ownerDocument.body:ae(e)&&mr(e)?e:Xn(xt(e))}function jt(e,t){var r;t===void 0&&(t=[]);var o=Xn(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=G(o),i=n?[a].concat(a.visualViewport||[],mr(o)?o:[]):o,p=t.concat(i);return n?p:p.concat(jt(xt(i)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function km(e,t){var r=Ke(e,!1,t===\"fixed\");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qp(e,t,r){return t===Gn?ro(ii(e,r)):Ge(t)?km(t,r):ro(si(fe(e)))}function Lm(e){var t=jt(xt(e)),r=[\"absolute\",\"fixed\"].indexOf(Pe(e).position)>=0,o=r&&ae(e)?Je(e):e;return Ge(o)?t.filter(function(n){return Ge(n)&&Bo(n,o)&&se(n)!==\"body\"}):[]}function pi(e,t,r,o){var n=t===\"clippingParents\"?Lm(e):[].concat(t),a=[].concat(n,[r]),i=a[0],p=a.reduce(function(s,l){var c=Qp(e,l,o);return s.top=Qe(c.top,s.top),s.right=sr(c.right,s.right),s.bottom=sr(c.bottom,s.bottom),s.left=Qe(c.left,s.left),s},Qp(e,i,o));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Uo(e){var t=e.reference,r=e.element,o=e.placement,n=o?pe(o):null,a=o?qe(o):null,i=t.x+t.width/2-r.width/2,p=t.y+t.height/2-r.height/2,s;switch(n){case Z:s={x:i,y:t.y-r.height};break;case ne:s={x:i,y:t.y+t.height};break;case oe:s={x:t.x+t.width,y:p};break;case te:s={x:t.x-r.width,y:p};break;default:s={x:t.x,y:t.y}}var l=n?lr(n):null;if(l!=null){var c=l===\"y\"?\"height\":\"width\";switch(a){case yt:s[l]=s[l]-(t[c]/2-r[c]/2);break;case ir:s[l]=s[l]+(t[c]/2-r[c]/2);break;default:}}return s}function et(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,i=a===void 0?e.strategy:a,p=r.boundary,s=p===void 0?Up:p,l=r.rootBoundary,c=l===void 0?Gn:l,f=r.elementContext,m=f===void 0?Qr:f,h=r.altBoundary,y=h===void 0?!1:h,u=r.padding,x=u===void 0?0:u,b=Fo(typeof x!=\"number\"?x:Vo(x,Bt)),C=m===Qr?Wp:Qr,E=e.rects.popper,d=e.elements[y?C:m],T=pi(Ge(d)?d:d.contextElement||fe(e.elements.popper),s,c,i),P=Ke(e.elements.reference),w=Uo({reference:P,element:E,strategy:\"absolute\",placement:n}),S=ro(Object.assign({},E,w)),v=m===Qr?S:P,R={top:T.top-v.top+b.top,bottom:v.bottom-T.bottom+b.bottom,left:T.left-v.left+b.left,right:v.right-T.right+b.right},O=e.modifiersData.offset;if(m===Qr&&O){var M=O[n];Object.keys(R).forEach(function(k){var V=[oe,ne].indexOf(k)>=0?1:-1,N=[Z,ne].indexOf(k)>=0?\"y\":\"x\";R[k]+=M[N]*V})}return R}function li(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,i=r.padding,p=r.flipVariations,s=r.allowedAutoPlacements,l=s===void 0?Kn:s,c=qe(o),f=c?p?ni:ni.filter(function(y){return qe(y)===c}):Bt,m=f.filter(function(y){return l.indexOf(y)>=0});m.length===0&&(m=f);var h=m.reduce(function(y,u){return y[u]=et(e,{placement:u,boundary:n,rootBoundary:a,padding:i})[pe(u)],y},{});return Object.keys(h).sort(function(y,u){return h[y]-h[u]})}function Dm(e){if(pe(e)===Hn)return[];var t=to(e);return[Yn(e),t,Yn(t)]}function Im(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,i=r.altAxis,p=i===void 0?!0:i,s=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,m=r.altBoundary,h=r.flipVariations,y=h===void 0?!0:h,u=r.allowedAutoPlacements,x=t.options.placement,b=pe(x),C=b===x,E=s||(C||!y?[to(x)]:Dm(x)),d=[x].concat(E).reduce(function(le,he){return le.concat(pe(he)===Hn?li(t,{placement:he,boundary:c,rootBoundary:f,padding:l,flipVariations:y,allowedAutoPlacements:u}):he)},[]),T=t.rects.reference,P=t.rects.popper,w=new Map,S=!0,v=d[0],R=0;R<d.length;R++){var O=d[R],M=pe(O),k=qe(O)===yt,V=[Z,ne].indexOf(M)>=0,N=V?\"width\":\"height\",_=et(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:m,padding:l}),$=V?k?oe:te:k?ne:Z;T[N]>P[N]&&($=to($));var U=to($),K=[];if(a&&K.push(_[M]<=0),p&&K.push(_[$]<=0,_[U]<=0),K.every(function(le){return le})){v=O,S=!1;break}w.set(O,K)}if(S)for(var me=y?3:1,Tt=function(he){var Le=d.find(function(tt){var ce=w.get(tt);if(ce)return ce.slice(0,he).every(function(Q){return Q})});if(Le)return v=Le,\"break\"},lt=me;lt>0;lt--){var ct=Tt(lt);if(ct===\"break\")break}t.placement!==v&&(t.modifiersData[o]._skip=!0,t.placement=v,t.reset=!0)}}var Jp={name:\"flip\",enabled:!0,phase:\"main\",fn:Im,requiresIfExists:[\"offset\"],data:{_skip:!1}};function el(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function tl(e){return[Z,oe,ne,te].some(function(t){return e[t]>=0})}function $m(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=et(t,{elementContext:\"reference\"}),p=et(t,{altBoundary:!0}),s=el(i,o),l=el(p,n,a),c=tl(s),f=tl(l);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-reference-hidden\":c,\"data-popper-escaped\":f})}var rl={name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:$m};function Bm(e,t,r){var o=pe(e),n=[te,Z].indexOf(o)>=0?-1:1,a=typeof r==\"function\"?r(Object.assign({},t,{placement:e})):r,i=a[0],p=a[1];return i=i||0,p=(p||0)*n,[te,oe].indexOf(o)>=0?{x:p,y:i}:{x:i,y:p}}function jm(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,i=Kn.reduce(function(c,f){return c[f]=Bm(f,t.rects,a),c},{}),p=i[t.placement],s=p.x,l=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=i}var ol={name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:jm};function Fm(e){var t=e.state,r=e.name;t.modifiersData[r]=Uo({reference:t.rects.reference,element:t.rects.popper,strategy:\"absolute\",placement:t.placement})}var nl={name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:Fm,data:{}};function ci(e){return e===\"x\"?\"y\":\"x\"}function Vm(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,i=r.altAxis,p=i===void 0?!1:i,s=r.boundary,l=r.rootBoundary,c=r.altBoundary,f=r.padding,m=r.tether,h=m===void 0?!0:m,y=r.tetherOffset,u=y===void 0?0:y,x=et(t,{boundary:s,rootBoundary:l,padding:f,altBoundary:c}),b=pe(t.placement),C=qe(t.placement),E=!C,d=lr(b),T=ci(d),P=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,v=typeof u==\"function\"?u(Object.assign({},t.rects,{placement:t.placement})):u,R=typeof v==\"number\"?{mainAxis:v,altAxis:v}:Object.assign({mainAxis:0,altAxis:0},v),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(P){if(a){var k,V=d===\"y\"?Z:te,N=d===\"y\"?ne:oe,_=d===\"y\"?\"height\":\"width\",$=P[d],U=$+x[V],K=$-x[N],me=h?-S[_]/2:0,Tt=C===yt?w[_]:S[_],lt=C===yt?-S[_]:-w[_],ct=t.elements.arrow,le=h&&ct?pr(ct):{width:0,height:0},he=t.modifiersData[\"arrow#persistent\"]?t.modifiersData[\"arrow#persistent\"].padding:jo(),Le=he[V],tt=he[N],ce=cr(0,w[_],le[_]),Q=E?w[_]/2-me-ce-Le-R.mainAxis:Tt-ce-Le-R.mainAxis,Pt=E?-w[_]/2+me+ce+tt+R.mainAxis:lt+ce+tt+R.mainAxis,De=t.elements.arrow&&Je(t.elements.arrow),no=De?d===\"y\"?De.clientTop||0:De.clientLeft||0:0,hr=(k=O?.[d])!=null?k:0,yr=$+Q-hr-no,Ie=$+Pt-hr,wt=cr(h?sr(U,yr):U,$,h?Qe(K,Ie):K);P[d]=wt,M[d]=wt-$}if(p){var gr,ut=d===\"x\"?Z:te,xr=d===\"x\"?ne:oe,ye=P[T],rt=T===\"y\"?\"height\":\"width\",ft=ye+x[ut],Et=ye-x[xr],Oe=[Z,te].indexOf(b)!==-1,Me=(gr=O?.[T])!=null?gr:0,$e=Oe?ft:ye-w[rt]-S[rt]-Me+R.altAxis,Ct=Oe?ye+w[rt]+S[rt]-Me-R.altAxis:Et,br=h&&Oe?Kp($e,ye,Ct):cr(h?$e:ft,ye,h?Ct:Et);P[T]=br,M[T]=br-ye}t.modifiersData[o]=M}}var al={name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:Vm,requiresIfExists:[\"offset\"]};function ui(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fi(e){return e===G(e)||!ae(e)?ur(e):ui(e)}function Um(e){var t=e.getBoundingClientRect(),r=gt(t.width)/e.offsetWidth||1,o=gt(t.height)/e.offsetHeight||1;return r!==1||o!==1}function mi(e,t,r){r===void 0&&(r=!1);var o=ae(t),n=ae(t)&&Um(t),a=fe(t),i=Ke(e,n,r),p={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!r)&&((se(t)!==\"body\"||mr(a))&&(p=fi(t)),ae(t)?(s=Ke(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=fr(a))),{x:i.left+p.scrollLeft-s.x,y:i.top+p.scrollTop-s.y,width:i.width,height:i.height}}function Wm(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(p){if(!r.has(p)){var s=t.get(p);s&&n(s)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function di(e){var t=Wm(e);return zp.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function hi(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yi(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var il={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function sl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect==\"function\")})}function pl(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,n=t.defaultOptions,a=n===void 0?il:n;return function(p,s,l){l===void 0&&(l=a);var c={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},il,a),modifiersData:{},elements:{reference:p,popper:s},attributes:{},styles:{}},f=[],m=!1,h={state:c,setOptions:function(b){var C=typeof b==\"function\"?b(c.options):b;u(),c.options=Object.assign({},a,c.options,C),c.scrollParents={reference:Ge(p)?jt(p):p.contextElement?jt(p.contextElement):[],popper:jt(s)};var E=di(yi([].concat(o,c.options.modifiers)));return c.orderedModifiers=E.filter(function(d){return d.enabled}),y(),h.update()},forceUpdate:function(){if(!m){var b=c.elements,C=b.reference,E=b.popper;if(sl(C,E)){c.rects={reference:mi(C,Je(E),c.options.strategy===\"fixed\"),popper:pr(E)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var d=0;d<c.orderedModifiers.length;d++){if(c.reset===!0){c.reset=!1,d=-1;continue}var T=c.orderedModifiers[d],P=T.fn,w=T.options,S=w===void 0?{}:w,v=T.name;typeof P==\"function\"&&(c=P({state:c,options:S,name:v,instance:h})||c)}}}},update:hi(function(){return new Promise(function(x){h.forceUpdate(),x(c)})}),destroy:function(){u(),m=!0}};if(!sl(p,s))return h;h.setOptions(l).then(function(x){!m&&l.onFirstUpdate&&l.onFirstUpdate(x)});function y(){c.orderedModifiers.forEach(function(x){var b=x.name,C=x.options,E=C===void 0?{}:C,d=x.effect;if(typeof d==\"function\"){var T=d({state:c,name:b,instance:h,options:E}),P=function(){};f.push(T||P)}})}function u(){f.forEach(function(x){return x()}),f=[]}return h}}var zm=[Zp,nl,Xp,Hp,ol,Jp,al,qp,rl],gi=pl({defaultModifiers:zm});import*as Ye from\"react\";import*as cl from\"react-dom\";import{jsx as ll}from\"react/jsx-runtime\";function Hm(e){return typeof e==\"function\"?e():e}var xi=Ye.forwardRef(function(t,r){let{children:o,container:n,disablePortal:a=!1}=t,[i,p]=Ye.useState(null),s=Fe(Ye.isValidElement(o)?o.ref:null,r);return at(()=>{a||p(Hm(n)||document.body)},[n,a]),at(()=>{if(i&&!a)return Gt(r,i),()=>{Gt(r,null)}},[r,i,a]),a?Ye.isValidElement(o)?Ye.cloneElement(o,{ref:s}):ll(Ye.Fragment,{children:o}):ll(Ye.Fragment,{children:i&&cl.createPortal(o,i)})});function ul(e){return ge(\"MuiPopper\",e)}var WE=we(\"MuiPopper\",[\"root\"]);import{jsx as bi}from\"react/jsx-runtime\";var Gm=[\"anchorEl\",\"children\",\"direction\",\"disablePortal\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"slotProps\",\"slots\",\"TransitionProps\",\"ownerState\"],Km=[\"anchorEl\",\"children\",\"container\",\"direction\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"style\",\"transition\",\"slotProps\",\"slots\"];function qm(e,t){if(t===\"ltr\")return e;switch(e){case\"bottom-end\":return\"bottom-start\";case\"bottom-start\":return\"bottom-end\";case\"top-end\":return\"top-start\";case\"top-start\":return\"top-end\";default:return e}}function vi(e){return typeof e==\"function\"?e():e}function Ym(e){return e.nodeType!==void 0}var Xm=()=>Ve({root:[\"root\"]},Bp(ul)),Zm={},Qm=de.forwardRef(function(t,r){var o;let{anchorEl:n,children:a,direction:i,disablePortal:p,modifiers:s,open:l,placement:c,popperOptions:f,popperRef:m,slotProps:h={},slots:y={},TransitionProps:u}=t,x=D(t,Gm),b=de.useRef(null),C=Fe(b,r),E=de.useRef(null),d=Fe(E,m),T=de.useRef(d);at(()=>{T.current=d},[d]),de.useImperativeHandle(m,()=>E.current,[]);let P=qm(c,i),[w,S]=de.useState(P),[v,R]=de.useState(vi(n));de.useEffect(()=>{E.current&&E.current.forceUpdate()}),de.useEffect(()=>{n&&R(vi(n))},[n]),at(()=>{if(!v||!l)return;let N=U=>{S(U.placement)},_=[{name:\"preventOverflow\",options:{altBoundary:p}},{name:\"flip\",options:{altBoundary:p}},{name:\"onUpdate\",enabled:!0,phase:\"afterWrite\",fn:({state:U})=>{N(U)}}];s!=null&&(_=_.concat(s)),f&&f.modifiers!=null&&(_=_.concat(f.modifiers));let $=gi(v,b.current,g({placement:P},f,{modifiers:_}));return T.current($),()=>{$.destroy(),T.current(null)}},[v,p,s,l,f,P]);let O={placement:w};u!==null&&(O.TransitionProps=u);let M=Xm(),k=(o=y.root)!=null?o:\"div\",V=oi({elementType:k,externalSlotProps:h.root,externalForwardedProps:x,additionalProps:{role:\"tooltip\",ref:C},ownerState:t,className:M.root});return bi(k,g({},V,{children:typeof a==\"function\"?a(O):a}))}),Ti=de.forwardRef(function(t,r){let{anchorEl:o,children:n,container:a,direction:i=\"ltr\",disablePortal:p=!1,keepMounted:s=!1,modifiers:l,open:c,placement:f=\"bottom\",popperOptions:m=Zm,popperRef:h,style:y,transition:u=!1,slotProps:x={},slots:b={}}=t,C=D(t,Km),[E,d]=de.useState(!0),T=()=>{d(!1)},P=()=>{d(!0)};if(!s&&!c&&(!u||E))return null;let w;if(a)w=a;else if(o){let R=vi(o);w=R&&Ym(R)?Sr(R).body:Sr(null).body}let S=!c&&s&&(!u||E)?\"none\":void 0,v=u?{in:c,onEnter:T,onExited:P}:void 0;return bi(xi,{disablePortal:p,container:w,children:bi(Qm,g({anchorEl:o,direction:i,disablePortal:p,modifiers:l,ref:r,open:u?!E:c,placement:f,popperOptions:m,popperRef:h,slotProps:x,slots:b},C,{style:g({position:\"fixed\",top:0,left:0,display:S},y),TransitionProps:v,children:n}))})});import*as fl from\"react\";import{jsx as ed}from\"react/jsx-runtime\";var Jm=[\"anchorEl\",\"component\",\"components\",\"componentsProps\",\"container\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"transition\",\"slots\",\"slotProps\"],td=Ce(Ti,{name:\"MuiPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),rd=fl.forwardRef(function(t,r){var o;let n=Mo(),a=He({props:t,name:\"MuiPopper\"}),{anchorEl:i,component:p,components:s,componentsProps:l,container:c,disablePortal:f,keepMounted:m,modifiers:h,open:y,placement:u,popperOptions:x,popperRef:b,transition:C,slots:E,slotProps:d}=a,T=D(a,Jm),P=(o=E?.root)!=null?o:s?.Root,w=g({anchorEl:i,container:c,disablePortal:f,keepMounted:m,modifiers:h,open:y,placement:u,popperOptions:x,popperRef:b,transition:C},T);return ed(td,g({as:p,direction:n?.direction,slots:{root:P},slotProps:d??l},w,{ref:r}))}),Zn=rd;import*as pt from\"react\";import{jsx as nd}from\"react/jsx-runtime\";var od=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function wi(e){return`scale(${e}, ${e**2})`}var ad={entering:{opacity:1,transform:wi(1)},entered:{opacity:1,transform:\"none\"}},Pi=typeof navigator<\"u\"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\\/)15(.|_)4/i.test(navigator.userAgent),ml=pt.forwardRef(function(t,r){let{addEndListener:o,appear:n=!0,children:a,easing:i,in:p,onEnter:s,onEntered:l,onEntering:c,onExit:f,onExited:m,onExiting:h,style:y,timeout:u=\"auto\",TransitionComponent:x=Ya}=t,b=D(t,od),C=pt.useRef(),E=pt.useRef(),d=Lo(),T=pt.useRef(null),P=rr(T,a.ref,r),w=N=>_=>{if(N){let $=T.current;_===void 0?N($):N($,_)}},S=w(c),v=w((N,_)=>{Cp(N);let{duration:$,delay:U,easing:K}=Qa({style:y,timeout:u,easing:i},{mode:\"enter\"}),me;u===\"auto\"?(me=d.transitions.getAutoHeightDuration(N.clientHeight),E.current=me):me=$,N.style.transition=[d.transitions.create(\"opacity\",{duration:me,delay:U}),d.transitions.create(\"transform\",{duration:Pi?me:me*.666,delay:U,easing:K})].join(\",\"),s&&s(N,_)}),R=w(l),O=w(h),M=w(N=>{let{duration:_,delay:$,easing:U}=Qa({style:y,timeout:u,easing:i},{mode:\"exit\"}),K;u===\"auto\"?(K=d.transitions.getAutoHeightDuration(N.clientHeight),E.current=K):K=_,N.style.transition=[d.transitions.create(\"opacity\",{duration:K,delay:$}),d.transitions.create(\"transform\",{duration:Pi?K:K*.666,delay:Pi?$:$||K*.333,easing:U})].join(\",\"),N.style.opacity=0,N.style.transform=wi(.75),f&&f(N)}),k=w(m),V=N=>{u===\"auto\"&&(C.current=setTimeout(N,E.current||0)),o&&o(T.current,N)};return pt.useEffect(()=>()=>{clearTimeout(C.current)},[]),nd(x,g({appear:n,in:p,nodeRef:T,onEnter:v,onEntered:R,onEntering:S,onExit:M,onExited:k,onExiting:O,addEndListener:V,timeout:u===\"auto\"?null:u},b,{children:(N,_)=>pt.cloneElement(a,g({style:g({opacity:0,transform:wi(.75),visibility:N===\"exited\"&&!p?\"hidden\":void 0},ad[N],y,a.props.style),ref:P},_))}))});ml.muiSupportAuto=!0;var Qn=ml;import*as W from\"react\";function dl(e){return ge(\"MuiTooltip\",e)}var id=we(\"MuiTooltip\",[\"popper\",\"popperInteractive\",\"popperArrow\",\"popperClose\",\"tooltip\",\"tooltipArrow\",\"touch\",\"tooltipPlacementLeft\",\"tooltipPlacementRight\",\"tooltipPlacementTop\",\"tooltipPlacementBottom\",\"arrow\"]),bt=id;import{jsx as Jn}from\"react/jsx-runtime\";import{jsxs as hl}from\"react/jsx-runtime\";var sd=[\"arrow\",\"children\",\"classes\",\"components\",\"componentsProps\",\"describeChild\",\"disableFocusListener\",\"disableHoverListener\",\"disableInteractive\",\"disableTouchListener\",\"enterDelay\",\"enterNextDelay\",\"enterTouchDelay\",\"followCursor\",\"id\",\"leaveDelay\",\"leaveTouchDelay\",\"onClose\",\"onOpen\",\"open\",\"placement\",\"PopperComponent\",\"PopperProps\",\"slotProps\",\"slots\",\"title\",\"TransitionComponent\",\"TransitionProps\"];function pd(e){return Math.round(e*1e5)/1e5}var ld=e=>{let{classes:t,disableInteractive:r,arrow:o,touch:n,placement:a}=e,i={popper:[\"popper\",!r&&\"popperInteractive\",o&&\"popperArrow\"],tooltip:[\"tooltip\",o&&\"tooltipArrow\",n&&\"touch\",`tooltipPlacement${st(a.split(\"-\")[0])}`],arrow:[\"arrow\"]};return Ve(i,dl,t)},cd=Ce(Zn,{name:\"MuiTooltip\",slot:\"Popper\",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>g({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:\"none\"},!t.disableInteractive&&{pointerEvents:\"auto\"},!r&&{pointerEvents:\"none\"},t.arrow&&{[`&[data-popper-placement*=\"bottom\"] .${bt.arrow}`]:{top:0,marginTop:\"-0.71em\",\"&::before\":{transformOrigin:\"0 100%\"}},[`&[data-popper-placement*=\"top\"] .${bt.arrow}`]:{bottom:0,marginBottom:\"-0.71em\",\"&::before\":{transformOrigin:\"100% 0\"}},[`&[data-popper-placement*=\"right\"] .${bt.arrow}`]:g({},t.isRtl?{right:0,marginRight:\"-0.71em\"}:{left:0,marginLeft:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"100% 100%\"}}),[`&[data-popper-placement*=\"left\"] .${bt.arrow}`]:g({},t.isRtl?{left:0,marginLeft:\"-0.71em\"}:{right:0,marginRight:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"0 0\"}})})),ud=Ce(\"div\",{name:\"MuiTooltip\",slot:\"Tooltip\",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${st(r.placement.split(\"-\")[0])}`]]}})(({theme:e,ownerState:t})=>g({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Gr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:\"4px 8px\",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:\"break-word\",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:\"relative\",margin:0},t.touch&&{padding:\"8px 16px\",fontSize:e.typography.pxToRem(14),lineHeight:`${pd(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${bt.popper}[data-popper-placement*=\"left\"] &`]:g({transformOrigin:\"right center\"},t.isRtl?g({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"}):g({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"})),[`.${bt.popper}[data-popper-placement*=\"right\"] &`]:g({transformOrigin:\"left center\"},t.isRtl?g({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"}):g({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"})),[`.${bt.popper}[data-popper-placement*=\"top\"] &`]:g({transformOrigin:\"center bottom\",marginBottom:\"14px\"},t.touch&&{marginBottom:\"24px\"}),[`.${bt.popper}[data-popper-placement*=\"bottom\"] &`]:g({transformOrigin:\"center top\",marginTop:\"14px\"},t.touch&&{marginTop:\"24px\"})})),fd=Ce(\"span\",{name:\"MuiTooltip\",slot:\"Arrow\",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:\"hidden\",position:\"absolute\",width:\"1em\",height:\"0.71em\",boxSizing:\"border-box\",color:e.vars?e.vars.palette.Tooltip.bg:Gr(e.palette.grey[700],.9),\"&::before\":{content:'\"\"',margin:\"auto\",display:\"block\",width:\"100%\",height:\"100%\",backgroundColor:\"currentColor\",transform:\"rotate(45deg)\"}})),ea=!1,Ei=null,Wo={x:0,y:0};function ta(e,t){return r=>{t&&t(r),e(r)}}var md=W.forwardRef(function(t,r){var o,n,a,i,p,s,l,c,f,m,h,y,u,x,b,C,E,d,T;let P=He({props:t,name:\"MuiTooltip\"}),{arrow:w=!1,children:S,components:v={},componentsProps:R={},describeChild:O=!1,disableFocusListener:M=!1,disableHoverListener:k=!1,disableInteractive:V=!1,disableTouchListener:N=!1,enterDelay:_=100,enterNextDelay:$=0,enterTouchDelay:U=700,followCursor:K=!1,id:me,leaveDelay:Tt=0,leaveTouchDelay:lt=1500,onClose:ct,onOpen:le,open:he,placement:Le=\"bottom\",PopperComponent:tt,PopperProps:ce={},slotProps:Q={},slots:Pt={},title:De,TransitionComponent:no=Qn,TransitionProps:hr}=P,yr=D(P,sd),Ie=W.isValidElement(S)?S:Jn(\"span\",{children:S}),wt=Lo(),gr=wt.direction===\"rtl\",[ut,xr]=W.useState(),[ye,rt]=W.useState(null),ft=W.useRef(!1),Et=V||K,Oe=W.useRef(),Me=W.useRef(),$e=W.useRef(),Ct=W.useRef(),[br,A]=vp({controlled:he,default:!1,name:\"Tooltip\",state:\"open\"}),Be=br,ao=bp(me),Rt=W.useRef(),io=W.useCallback(()=>{Rt.current!==void 0&&(document.body.style.WebkitUserSelect=Rt.current,Rt.current=void 0),clearTimeout(Ct.current)},[]);W.useEffect(()=>()=>{clearTimeout(Oe.current),clearTimeout(Me.current),clearTimeout($e.current),io()},[io]);let Si=L=>{clearTimeout(Ei),ea=!0,A(!0),le&&!Be&&le(L)},zo=tr(L=>{clearTimeout(Ei),Ei=setTimeout(()=>{ea=!1},800+Tt),A(!1),ct&&Be&&ct(L),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{ft.current=!1},wt.transitions.duration.shortest)}),aa=L=>{ft.current&&L.type!==\"touchstart\"||(ut&&ut.removeAttribute(\"title\"),clearTimeout(Me.current),clearTimeout($e.current),_||ea&&$?Me.current=setTimeout(()=>{Si(L)},ea?$:_):Si(L))},Oi=L=>{clearTimeout(Me.current),clearTimeout($e.current),$e.current=setTimeout(()=>{zo(L)},Tt)},{isFocusVisibleRef:Mi,onBlur:El,onFocus:Cl,ref:Rl}=kn(),[,_i]=W.useState(!1),Ai=L=>{El(L),Mi.current===!1&&(_i(!1),Oi(L))},Ni=L=>{ut||xr(L.currentTarget),Cl(L),Mi.current===!0&&(_i(!0),aa(L))},ki=L=>{ft.current=!0;let _e=Ie.props;_e.onTouchStart&&_e.onTouchStart(L)},Li=aa,Di=Oi,Sl=L=>{ki(L),clearTimeout($e.current),clearTimeout(Oe.current),io(),Rt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=\"none\",Ct.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Rt.current,aa(L)},U)},Ol=L=>{Ie.props.onTouchEnd&&Ie.props.onTouchEnd(L),io(),clearTimeout($e.current),$e.current=setTimeout(()=>{zo(L)},lt)};W.useEffect(()=>{if(!Be)return;function L(_e){(_e.key===\"Escape\"||_e.key===\"Esc\")&&zo(_e)}return document.addEventListener(\"keydown\",L),()=>{document.removeEventListener(\"keydown\",L)}},[zo,Be]);let Ml=rr(Ie.ref,Rl,xr,r);!De&&De!==0&&(Be=!1);let ia=W.useRef(),_l=L=>{let _e=Ie.props;_e.onMouseMove&&_e.onMouseMove(L),Wo={x:L.clientX,y:L.clientY},ia.current&&ia.current.update()},so={},sa=typeof De==\"string\";O?(so.title=!Be&&sa&&!k?De:null,so[\"aria-describedby\"]=Be?ao:null):(so[\"aria-label\"]=sa?De:null,so[\"aria-labelledby\"]=Be&&!sa?ao:null);let Xe=g({},so,yr,Ie.props,{className:X(yr.className,Ie.props.className),onTouchStart:ki,ref:Ml},K?{onMouseMove:_l}:{}),po={};N||(Xe.onTouchStart=Sl,Xe.onTouchEnd=Ol),k||(Xe.onMouseOver=ta(Li,Xe.onMouseOver),Xe.onMouseLeave=ta(Di,Xe.onMouseLeave),Et||(po.onMouseOver=Li,po.onMouseLeave=Di)),M||(Xe.onFocus=ta(Ni,Xe.onFocus),Xe.onBlur=ta(Ai,Xe.onBlur),Et||(po.onFocus=Ni,po.onBlur=Ai));let Al=W.useMemo(()=>{var L;let _e=[{name:\"arrow\",enabled:!!ye,options:{element:ye,padding:4}}];return(L=ce.popperOptions)!=null&&L.modifiers&&(_e=_e.concat(ce.popperOptions.modifiers)),g({},ce.popperOptions,{modifiers:_e})},[ye,ce]),lo=g({},P,{isRtl:gr,arrow:w,disableInteractive:Et,placement:Le,PopperComponentProp:tt,touch:ft.current}),pa=ld(lo),Ii=(o=(n=Pt.popper)!=null?n:v.Popper)!=null?o:cd,$i=(a=(i=(p=Pt.transition)!=null?p:v.Transition)!=null?i:no)!=null?a:Qn,Bi=(s=(l=Pt.tooltip)!=null?l:v.Tooltip)!=null?s:ud,ji=(c=(f=Pt.arrow)!=null?f:v.Arrow)!=null?c:fd,Nl=$t(Ii,g({},ce,(m=Q.popper)!=null?m:R.popper,{className:X(pa.popper,ce?.className,(h=(y=Q.popper)!=null?y:R.popper)==null?void 0:h.className)}),lo),kl=$t($i,g({},hr,(u=Q.transition)!=null?u:R.transition),lo),Ll=$t(Bi,g({},(x=Q.tooltip)!=null?x:R.tooltip,{className:X(pa.tooltip,(b=(C=Q.tooltip)!=null?C:R.tooltip)==null?void 0:b.className)}),lo),Dl=$t(ji,g({},(E=Q.arrow)!=null?E:R.arrow,{className:X(pa.arrow,(d=(T=Q.arrow)!=null?T:R.arrow)==null?void 0:d.className)}),lo);return hl(W.Fragment,{children:[W.cloneElement(Ie,Xe),Jn(Ii,g({as:tt??Zn,placement:Le,anchorEl:K?{getBoundingClientRect:()=>({top:Wo.y,left:Wo.x,right:Wo.x,bottom:Wo.y,width:0,height:0})}:ut,popperRef:ia,open:ut?Be:!1,id:ao,transition:!0},po,Nl,{popperOptions:Al,children:({TransitionProps:L})=>Jn($i,g({timeout:wt.transitions.duration.shorter},L,kl,{children:hl(Bi,g({},Ll,{children:[De,w?Jn(ji,g({},Dl,{ref:rt})):null]}))}))}))]})}),oo=md;import{Fragment as yl,jsx as Se,jsxs as ra}from\"react/jsx-runtime\";var Ci=class extends dd.Component{constructor(t){super(t)}render(){let{value:t,voucherValue:r,maxMonths:o,notQualifyForRewardThisMonth:n,amountShow:a,translationConfig:i={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\",estimateDisclaimer:\"\"},storeConfig:p={tiers:[{consecutive_months:0,min_spend:0,max_spend:0,promo_code:\"\"},{consecutive_months:0,min_spend:0,promo_code:\"\"}]},currencyAbbreviate:s=!1,currencyFormat:l=()=>{}}=this.props,c=l(r||0,!0,s),f=i.currentlyTrack.replace(\"%currency_symbol%%currency_amount%\",`${c}`),m=je(i.approximateTotal,{currency_symbol:\"\",projected_month_spend:\"\"}),h=parseFloat(String(p?.tiers?.[0]?.min_spend))||0,y=l(h,!0,s),u=i.callToAction.replace(\"%currency_symbol%%current_spend_target%\",`${y}`),x=je(i.approximateMonthly,{currency_symbol:\"\",estimated_running_subscription_spend:\"\"}),b=l(a??0,!1,!1);return ra(Ko,{children:[Se(qo,{children:n?ra(yl,{children:[Se(mt,{children:Se(hd,{className:\"loyalty-warning-icon\",color:\"#4A6987\"})}),Se(dr,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#293A4A\",noSpacing:!0,children:i.notQualify})]}):ra(yl,{children:[Se(dr,{variant:\"body-s\",weight:\"normal\",colorOverride:\"#252525\",className:\"reward-subtitle\",component:\"span\",noSpacing:!0,children:x}),\"\\xA0\",Se(dr,{weight:\"bold\",className:\"button-price\",variant:\"body-s\",component:\"span\",children:`${b}`}),Se(mt,{children:Se(oo,{slotProps:{tooltip:{sx:{color:\"#FFFFFF\",backgroundColor:\"#252525\",fontFamily:\"Inter\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",\"& .MuiTooltip-arrow\":{color:\"#252525\"}}}},title:i.estimateDisclaimer,arrow:!0,placement:\"top\",children:Se(\"span\",{className:\"info-icon\",children:Se(Zr,{children:Se(Qo,{})})})})})]})}),t===o?\"\":n?ra(dr,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#252525\",component:\"div\",children:[m,\"\\xA0\",Se(dr,{component:\"span\",className:\"button-price\",variant:\"body-s\",weight:\"bold\",children:`${b}`})]}):r!=null||r!=null?Se(dr,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:f}):Se(dr,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:u})]})}},gl=Ci;import{useState as yd}from\"react\";import{FaExclamationTriangle as xl}from\"react-icons/fa\";import{NsTypography as vt}from\"@nuskin/foundation-ui-components\";import{CircularProgressbarWithChildren as gd,buildStyles as xd}from\"react-circular-progressbar\";import{Fragment as bl,jsx as j,jsxs as Ft}from\"react/jsx-runtime\";var bd=e=>{let[t,r]=yd(!1),o=()=>{r(!t)},{handleOpenSubscriptionRewardPopup:n=()=>{},notQualifyForRewardThisMonth:a=!1,value:i=0,voucherValue:p=0,amountShow:s,maxMonths:l=0,translationConfig:c={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\",estimateDisclaimer:\"\"},learnMoreConfig:f={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},storeConfig:m={tiers:[{consecutive_months:\"\",min_spend:\"\",max_spend:\"\",promo_code:\"\"},{consecutive_months:\"\",min_spend:\"\",promo_code:\"\"}]},currencyAbbreviate:h=!1,currencyFormat:y=()=>{}}=e,u=\"\";p===50&&!a?u=c.learn3xMore:p===150||a?u=f.learnMore:p==null&&(u=c.learnMore);let C=je(c.monthsComplete,{completed_months:i,total_months:l}),E=y(p||0,!0,h),d=c.voucherEarned.replace(\"%currency_symbol%%currency_amount%\",`${E}`),T=c.currentlyTrack.replace(\"%currency_symbol%%currency_amount%\",`${E}`),P=je(c.approximateTotal,{currency_symbol:\"\",projected_month_spend:\"\"}),w=parseFloat(String(m?.tiers?.[0]?.min_spend))||0,S=y(w,!0,h),v=c.callToAction.replace(\"%currency_symbol%%current_spend_target%\",`${S}`),R=je(c.approximateMonthly,{currency_symbol:\"\",estimated_running_subscription_spend:\"\"}),O=je(c.voucherTargetAmount,{currency_symbol:\"\",voucher_amount:\"\"}),M=y(s??0,!1,!1);return Ft(Ho,{children:[j(vr,{children:j(\"img\",{className:\"reward-logo\",src:c.loyaltyLogoBlack,alt:\"Rewards Logo\"})}),j(\"div\",{className:\"reward-progress\",children:Ft(gd,{value:i/l*100,strokeWidth:12,background:!0,styles:xd({rotation:.5,strokeLinecap:\"butt\",backgroundColor:i===l&&!a?\"rgb(195 240 194)\":\"#fff\",pathColor:\"#6BC56A\",trailColor:\"#E0E0E0\"}),children:[j(Yo,{count:l}),i===l&&!a?j(Xo,{}):a?j(mt,{children:j(xl,{className:\"outline-exclamation-icon\",color:\"#91ACC8\"})}):p!=null||p!=null?Ft(Tr,{children:[j(vt,{component:\"div\",className:\"center-value-progress-bar-price\",variant:\"title-l\",weight:\"bold\",children:`${E}`}),j(vt,{variant:\"label-s\",weight:\"bold\",component:\"div\",className:\"center-value-progress-bar-voucher\",children:O})]}):j(Tr,{children:j(Zo,{})})]})}),j(vr,{children:i===l&&s!==void 0&&s>w?j(\"div\",{className:\"info-item\",children:d}):j(\"div\",{className:\"info-item\",children:C})}),Ft(Ko,{children:[i===l?\"\":a?Ft(vt,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#252525\",component:\"div\",children:[P,\" \",j(vt,{component:\"span\",className:\"button-price\",variant:\"body-s\",weight:\"bold\",children:`${M}`})]}):p!=null||p!=null?j(vt,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:T}):j(vt,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:v}),j(qo,{children:a?Ft(bl,{children:[j(mt,{children:j(xl,{className:\"loyalty-warning-icon\",color:\"#4A6987\"})}),j(vt,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#293A4A\",noSpacing:!0,children:c.notQualify})]}):Ft(bl,{children:[Ft(vt,{variant:\"body-s\",weight:\"normal\",colorOverride:\"#252525\",className:\"reward-subtitle\",component:\"span\",noSpacing:!0,children:[R,\" \"]}),\"\\xA0\",j(vt,{weight:\"bold\",className:\"button-price\",variant:\"body-s\",component:\"span\",children:`${M}`}),j(mt,{children:j(oo,{slotProps:{tooltip:{sx:{color:\"#FFFFFF\",backgroundColor:\"#252525\",fontFamily:\"Inter\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",\"& .MuiTooltip-arrow\":{color:\"#252525\"}}}},title:c.estimateDisclaimer,arrow:!0,placement:\"top\",open:t,onClose:()=>r(!1),children:j(\"span\",{className:\"info-icon\",children:j(Zr,{onClick:o,children:j(Qo,{})})})})})]})})]}),j(vr,{children:j(Go,{onClick:n,children:j(\"u\",{children:u})})})]})},vl=bd;var oa=typeof window==\"object\",Ri=class{constructor(){this.width=oa?window.innerWidth:0;this.scroll={vertical:oa?window.scrollY:0,horizontal:oa?window.scrollX:0,direction:\"none\"}}get isMobile(){return this.isPhone}get isPhone(){return oa?window.innerWidth<768:this.width<768}},Tl=new Ri;var Pl=(e,t,r,o,n,a,i,p,s)=>{if(e){let l=e?.csmMonthlySubsOrderTotal?.sort((v,R)=>v.year===R.year?R.month-v.month:R.year-v.year),c=l?.some(v=>v.month===s.getMonth()+1&&v.year===s.getFullYear()),f=l?.filter(v=>v.month===s.getMonth()+1&&v.year===s.getFullYear()),m=f?.map(v=>v.totalAmount)?.[0]??0,h=parseInt(e?.approximateMonthlyTotalResponse?.currentMonthTotal??\"0\"),y=0;h>r?y=r:y=t;let u=f?.some(v=>v.totalAmount>=y),x=c&&u?new Date(s.getFullYear(),s.getMonth()-(p-1),1):new Date(s.getFullYear(),s.getMonth()-p,1),b=l?.filter(v=>new Date(v.year,v.month-1)>=x);b=b?.filter(v=>v.promocode===null||v.promocode===void 0||v.promocode===\"\"),u||(b=b?.filter(v=>!(v.month===s.getMonth()+1&&v.year===s.getFullYear())));let C=b?.slice(0,p),E=C?.every(v=>v.totalAmount>=r),d=C?.map(v=>v?.promocode),P=!d?.some(v=>v===void 0)?!1:d?.every(v=>v===d[0]),w=u?s.getMonth():s.getMonth()-1,S=2;if(C!=null&&d!=null)for(let v=0;v<C?.length;v++){let O=C[v]?.totalAmount,M=s.getFullYear();if(C[v]?.month&&C[v]?.month!==new Date(M,w-v).getMonth()+1)return{monthCompletionValue:i,voucherValue:a};if(P&&(d[v]!==void 0||d[v]!==\"\"||d[v]!==null))return{monthCompletionValue:0,voucherValue:a};if(O>=t&&(!d[v]||d[v]===void 0||d[v]===\"\"||d[v]===null))i=i+1,E||S===2&&O>=r?a=n:(a=o,S=1);else if(O<t)return{monthCompletionValue:i,voucherValue:a}}(!c||!u)&&a!==o&&(h>=r?a=n:a=o),!u&&a===o&&i<p&&m>=t&&(i=i+1)}return{monthCompletionValue:i,voucherValue:a}};import{Fragment as wd,jsx as na,jsxs as wl}from\"react/jsx-runtime\";var Td=e=>{let{title:t,subscriptionData:r,translationConfig:o,learnMoreConfig:n,storeConfig:a,currencyFormat:i}=e,p=2,s=a?.tiers?.[0]?.max_spend??0,l=a?.tiers?.[0]?.min_spend??0,c=a?.tiers?.[0]?.consecutive_months??0,[f,m]=vd(!1),h=()=>m(!0),y=()=>m(!1),u=r,x=0,b=0,C=0;a?.tiers?.map(S=>{S.min_spend<l&&(l=S.min_spend),\"max_spend\"in S&&S.max_spend>s&&(s=S.max_spend)}),a?.tiers?.map(S=>{if(S.min_spend===l){let v=S.promo_code;v=v?.split(\"-\")?.[0]?.replace(\"NSR\",\"\"),x=parseInt(v)}if(S.min_spend===s){let v=S.promo_code;v=v?.split(\"-\")?.[0]?.replace(\"NSR\",\"\"),b=parseInt(v)}});let E=0,d=parseFloat(u?.approximateMonthlyTotalResponse?.currentMonthTotal??\"0\");d<l||d<s?E=x:d>s?E=b:E=0;let T=d<l&&E!==0&&p!==c,{monthCompletionValue:P,voucherValue:w}=Pl(u,l,s,x,b,E,C,c,new Date);return p=P,E=w,wl(Vi,{children:[Tl.isMobile?na(vl,{value:p,title:t,voucherValue:E,maxMonths:c,handleOpenSubscriptionRewardPopup:h,storeConfig:a,amountShow:d,notQualifyForRewardThisMonth:T,translationConfig:o,learnMoreConfig:n,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:i}):wl(wd,{children:[na(Gi,{value:p,title:t,notQualifyForRewardThisMonth:T,monthCompletionValue:C,storeConfig:a,maxMonths:c,voucherValue:E,handleOpenSubscriptionRewardPopup:h,translationConfig:o,learnMoreConfig:n,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:i}),na(gl,{notQualifyForRewardThisMonth:T,value:p,voucherValue:E,maxMonths:c,title:t,monthCompletionValue:C,storeConfig:a,translationConfig:o,learnMoreConfig:n,handleOpenSubscriptionRewardPopup:h,amountShow:d,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:i})]}),na(Fi,{show:f,close:y,amountShow:d,learnMoreConfig:n,translationConfig:o})]})},Pd=Td;export{Pd as SubscriptionReward};\n/*! Bundled license information:\n\nreact-is/cjs/react-is.production.min.js:\n (** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *)\n\n@mui/styled-engine/index.js:\n (**\n * @mui/styled-engine v5.16.14\n *\n * @license MIT\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@mui/material/index.js:\n (**\n * @mui/material v5.14.16\n *\n * @license MIT\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","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","import React, { useState } from 'react';\nimport { SubscriptionRewardModal } from '../SubscriptionRewardModal';\nimport RewardProgressBar from './RewardProgressBar';\nimport RewardSubscriptionTotal from './RewardSubscriptionTotal';\nimport { RewardProgressBarContainer } from './CircularProgressBar.styled';\nimport { RewardProgressBarProps } from './types';\nimport SubscriptionRewardMobile from './SubscriptionRewardMobile';\nimport { application } from '../Utils/application';\nimport { calculateMonthCompletionValues } from './logic/calculateMonthCompletionValues';\n\nconst SubscriptionReward = (props: RewardProgressBarProps) => {\n const { title, subscriptionData, translationConfig, learnMoreConfig, storeConfig, currencyFormat } = props;\n let value = 2;\n let maxAmount = storeConfig?.tiers?.[0]?.max_spend ?? 0;\n let minAmount = storeConfig?.tiers?.[0]?.min_spend ?? 0;\n const maxMonths = storeConfig?.tiers?.[0]?.consecutive_months ?? 0;\n const [show, setShow] = useState(false);\n const handleOpen = () => setShow(true);\n const handleClose = () => setShow(false);\n const rewardData = subscriptionData;\n let minVoucher = 0;\n let maxVoucher = 0;\n const monthCompletionValue = 0;\n\n storeConfig?.tiers?.map((tier) => {\n if (tier.min_spend < minAmount) {\n minAmount = tier.min_spend;\n }\n // Check if 'max_spend' exists before trying to access it\n if ('max_spend' in tier && tier.max_spend > maxAmount) {\n maxAmount = tier.max_spend;\n }\n });\n\n storeConfig?.tiers?.map((tier) => {\n if (tier.min_spend === minAmount) {\n let promocode = tier.promo_code;\n promocode = promocode?.split('-')?.[0]?.replace('NSR', '');\n minVoucher = parseInt(promocode);\n }\n if (tier.min_spend === maxAmount) {\n let promocode = tier.promo_code;\n promocode = promocode?.split('-')?.[0]?.replace('NSR', '');\n maxVoucher = parseInt(promocode);\n }\n });\n let voucherValue = 0;\n const amountShow = parseFloat(rewardData?.approximateMonthlyTotalResponse?.currentMonthTotal ?? '0');\n if (amountShow < minAmount) {\n voucherValue = minVoucher;\n } else if (amountShow < maxAmount) {\n voucherValue = minVoucher;\n } else if (amountShow > maxAmount) {\n voucherValue = maxVoucher;\n } else {\n voucherValue = 0;\n }\n const notQualifyForRewardThisMonth = amountShow < minAmount && voucherValue !== 0 && value !== maxMonths;\n\n // Calculate monthCompletionValue and voucherValue\n const { monthCompletionValue: calculatedMonthCompletionValue, voucherValue: calculatedVoucherValue } =\n calculateMonthCompletionValues(\n rewardData,\n minAmount,\n maxAmount,\n minVoucher,\n maxVoucher,\n voucherValue,\n monthCompletionValue,\n maxMonths,\n new Date(),\n );\n\n // Use the calculated values\n value = calculatedMonthCompletionValue; // or however you want to use it\n voucherValue = calculatedVoucherValue;\n return (\n <RewardProgressBarContainer>\n {application.isMobile ? (\n <SubscriptionRewardMobile\n value={value}\n title={title}\n voucherValue={voucherValue}\n maxMonths={maxMonths}\n handleOpenSubscriptionRewardPopup={handleOpen}\n storeConfig={storeConfig}\n amountShow={amountShow}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n ) : (\n <>\n <RewardProgressBar\n value={value}\n title={title}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n monthCompletionValue={monthCompletionValue}\n storeConfig={storeConfig}\n maxMonths={maxMonths}\n voucherValue={voucherValue}\n handleOpenSubscriptionRewardPopup={handleOpen}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n <RewardSubscriptionTotal\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n value={value}\n voucherValue={voucherValue}\n maxMonths={maxMonths}\n title={title}\n monthCompletionValue={monthCompletionValue}\n storeConfig={storeConfig}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n handleOpenSubscriptionRewardPopup={handleOpen}\n amountShow={amountShow}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n </>\n )}\n <SubscriptionRewardModal\n show={show}\n close={handleClose}\n amountShow={amountShow}\n learnMoreConfig={learnMoreConfig}\n translationConfig={translationConfig}\n />\n </RewardProgressBarContainer>\n );\n};\n\nexport default SubscriptionReward;\nexport { SubscriptionReward };\n","import React from 'react';\nimport { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar';\nimport RadialSeparators from './RadialSeparator';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport SubscriptionVoucherIcon from '../Icons/SubscriptionVoucherIcon';\nimport SubscriptionVoucherIconGrey from '../Icons/SubscriptionVoucherIconGrey';\nimport { IconContainer, LoyaltyProgressSubContainer, ProgressBarCenter } from './CircularProgressBar.styled';\nimport RewardSubscriptionMonthDescription from './RewardSubscriptionMonthDescription';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { RewardProgressBarProps } from './types';\nimport { replacePlaceholders } from '../Utils/helper';\n\nclass RewardProgressBar extends React.Component<RewardProgressBarProps> {\n constructor(props: RewardProgressBarProps) {\n super(props);\n }\n\n render() {\n const {\n value = 0,\n voucherValue = 0,\n maxMonths = 0,\n handleOpenSubscriptionRewardPopup = () => {},\n notQualifyForRewardThisMonth = false,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n const voucherTargetAmount = replacePlaceholders(translationConfig.voucherTargetAmount, {\n currency_symbol: '',\n voucher_amount: '',\n });\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n return (\n <LoyaltyProgressSubContainer>\n <div className=\"reward-progress\">\n <CircularProgressbarWithChildren\n value={(value / maxMonths) * 100}\n strokeWidth={12}\n background\n styles={buildStyles({\n rotation: 0.5,\n strokeLinecap: 'butt',\n backgroundColor: (() => {\n if (value === maxMonths && !notQualifyForRewardThisMonth) {\n return 'rgb(195 240 194)';\n }\n if (notQualifyForRewardThisMonth) {\n return '#fff';\n }\n return '#fff';\n })(),\n pathColor: '#6BC56A',\n trailColor: '#E0E0E0',\n })}\n >\n <RadialSeparators count={maxMonths} />\n {(() => {\n if (value === maxMonths && !notQualifyForRewardThisMonth) {\n return <SubscriptionVoucherIcon />;\n } else if (notQualifyForRewardThisMonth) {\n return (\n <IconContainer>\n <FaExclamationTriangle className=\"outline-exclamation-icon\" color=\"#91ACC8\" />\n </IconContainer>\n );\n } else if (voucherValue != null || voucherValue != undefined) {\n return (\n <ProgressBarCenter>\n <NsTypography\n component=\"div\"\n className=\"center-value-progress-bar-price\"\n variant=\"title-l\"\n weight=\"bold\"\n >{`${voucherEarned}`}</NsTypography>\n <NsTypography\n variant=\"label-s\"\n weight=\"bold\"\n component=\"div\"\n className=\"center-value-progress-bar-voucher\"\n >\n {voucherTargetAmount}\n </NsTypography>\n </ProgressBarCenter>\n );\n } else {\n return (\n <ProgressBarCenter>\n <SubscriptionVoucherIconGrey />\n </ProgressBarCenter>\n );\n }\n })()}\n </CircularProgressbarWithChildren>\n </div>\n <RewardSubscriptionMonthDescription\n value={value}\n voucherValue={voucherValue}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n handleOpenSubscriptionRewardPopup={handleOpenSubscriptionRewardPopup}\n maxMonths={maxMonths}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n </LoyaltyProgressSubContainer>\n );\n }\n}\n\nexport default RewardProgressBar;\nexport { RewardProgressBar };\n","import { styled } from '@nuskin/foundation-theme';\n\nexport const RewardProgressBarContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n`;\n\nexport const LoyaltyProgressSubContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n`;\nexport const StyledCard = styled.div`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n`;\nexport const Learn3XLink = styled.div`\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n`;\nexport const ProgressBarCenter = styled.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n`;\nexport const RewardProgressTotalContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n`;\n\nexport const RewardProgressTotalButtonWithIcon = styled.div`\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n`;\n\nexport const IconContainer = styled.span`\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n`;\n\nexport const SeparatorCard = styled.div`\n position: absolute;\n height: 100%;\n`;\n\nexport const SeparatorInnerCard = styled.div`\n background: #fff;\n width: 6px;\n height: 17%;\n`;\n","import React from 'react';\nimport { SeparatorCard, SeparatorInnerCard } from './CircularProgressBar.styled';\n\nfunction Separator(props: { readonly turns: number }) {\n return (\n <SeparatorCard\n style={{\n transform: `rotate(${props.turns}turn)`,\n }}\n >\n <SeparatorInnerCard />\n </SeparatorCard>\n );\n}\n\nfunction RadialSeparators(props: { count: number }) {\n const turns = 1 / props.count;\n return Array(props.count)\n .fill(null)\n .map((_, index) => <Separator key={index} turns={index * turns + 0.5} />);\n}\n\nexport default RadialSeparators;\n","import React from 'react';\n\nfunction SubscriptionVoucherIcon() {\n return (\n <svg width=\"71\" height=\"42\" viewBox=\"0 0 71 42\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\"\n fill=\"#405E50\"\n />\n <path d=\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\" fill=\"#405E50\" />\n </svg>\n );\n}\n\nexport default SubscriptionVoucherIcon;\n","import React from 'react';\n\nfunction SubscriptionVoucherIconGrey() {\n return (\n <svg width=\"71\" height=\"42\" viewBox=\"0 0 71 42\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\"\n fill=\"#B0B0B0\"\n />\n <path d=\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\" fill=\"#B0B0B0\" />\n </svg>\n );\n}\n\nexport default SubscriptionVoucherIconGrey;\n","import React from 'react';\nimport { Learn3XLink, StyledCard } from './CircularProgressBar.styled';\nimport { RewardSubscriptionMonthDescriptionProps } from './types';\nimport { replacePlaceholders } from '../Utils/helper';\n\nclass RewardSubscriptionMonthDescription extends React.Component<RewardSubscriptionMonthDescriptionProps> {\n constructor(props: RewardSubscriptionMonthDescriptionProps) {\n super(props);\n }\n\n render() {\n const {\n value,\n voucherValue,\n maxMonths,\n handleOpenSubscriptionRewardPopup,\n notQualifyForRewardThisMonth,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n\n let popupText = '';\n const minVoucher = 50;\n const maxVoucher = 150;\n if (voucherValue === minVoucher && !notQualifyForRewardThisMonth) {\n popupText = translationConfig.learn3xMore;\n } else if (voucherValue === maxVoucher || notQualifyForRewardThisMonth) {\n popupText = learnMoreConfig.learnMore;\n } else if (voucherValue === null || voucherValue === undefined) {\n popupText = translationConfig.learnMore;\n }\n const monthsCompleteText = replacePlaceholders(translationConfig.monthsComplete, {\n completed_months: value,\n total_months: maxMonths,\n });\n\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n const voucherEarnedText = translationConfig.voucherEarned.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n\n return (\n <StyledCard>\n <img className=\"reward-logo\" src={translationConfig.loyaltyLogoBlack} alt=\"Rewards Logo\" />\n {value === maxMonths ? (\n <div className=\"info-item\">{voucherEarnedText}</div>\n ) : (\n <div className=\"info-item\">{monthsCompleteText}</div>\n )}\n <Learn3XLink id=\"learnMore\" onClick={handleOpenSubscriptionRewardPopup}>\n <u>{popupText}</u>\n </Learn3XLink>\n </StyledCard>\n );\n }\n}\n\nexport default RewardSubscriptionMonthDescription;\nexport { RewardSubscriptionMonthDescription };\n","export const replacePlaceholders = (\n template: string,\n values: { [key: string]: string | number | null }, // Add null\n) => {\n return Object.keys(values).reduce((result, key) => {\n const value = values[key] ?? ''; // Replace null with empty string\n return result.replace(new RegExp(`%${key}%`, 'g'), String(value));\n }, template);\n};\n\nexport const currencySymbol = () => {\n return '$';\n};\n","import React from 'react';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport {\n IconContainer,\n RewardProgressTotalButtonWithIcon,\n RewardProgressTotalContainer,\n} from './CircularProgressBar.styled';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { RewardProgressBarProps } from './types';\nimport Info from '../Icons/Info';\nimport { Tooltip, IconButton } from '@mui/material';\nimport { replacePlaceholders } from '../Utils/helper';\nclass RewardSubscriptionTotal extends React.Component<RewardProgressBarProps> {\n constructor(props: RewardProgressBarProps) {\n super(props);\n }\n\n render() {\n const {\n value,\n voucherValue,\n maxMonths,\n notQualifyForRewardThisMonth,\n amountShow,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n estimateDisclaimer: '',\n },\n storeConfig = {\n tiers: [\n {\n consecutive_months: 0,\n min_spend: 0,\n max_spend: 0,\n promo_code: '',\n },\n {\n consecutive_months: 0,\n min_spend: 0,\n promo_code: '',\n },\n ],\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n const currentlyTrackText = translationConfig.currentlyTrack.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const approximateTotalText = replacePlaceholders(translationConfig.approximateTotal, {\n currency_symbol: '',\n projected_month_spend: '',\n });\n const minAmount = parseFloat(String(storeConfig?.tiers?.[0]?.min_spend)) || 0;\n const minAmountShow = currencyFormat(minAmount, true, currencyAbbreviate);\n const callToActionText = translationConfig.callToAction.replace(\n '%currency_symbol%%current_spend_target%',\n `${minAmountShow}`,\n );\n const approximateMonthlyText = replacePlaceholders(translationConfig.approximateMonthly, {\n currency_symbol: '',\n estimated_running_subscription_spend: '',\n });\n const amountShowText = currencyFormat(amountShow ?? 0, false, false);\n return (\n <RewardProgressTotalContainer>\n <RewardProgressTotalButtonWithIcon>\n {notQualifyForRewardThisMonth ? (\n <>\n <IconContainer>\n <FaExclamationTriangle className=\"loyalty-warning-icon\" color=\"#4A6987\" />\n </IconContainer>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#293A4A\"\n noSpacing\n >\n {translationConfig.notQualify}\n </NsTypography>\n </>\n ) : (\n <>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n colorOverride=\"#252525\"\n className=\"reward-subtitle\"\n component=\"span\"\n noSpacing\n >\n {approximateMonthlyText}\n </NsTypography>\n &nbsp;\n <NsTypography weight=\"bold\" className=\"button-price\" variant=\"body-s\" component=\"span\">\n {`${amountShowText}`}\n </NsTypography>\n <IconContainer>\n <Tooltip\n slotProps={{\n tooltip: {\n sx: {\n color: '#FFFFFF',\n backgroundColor: '#252525',\n fontFamily: 'Inter',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n '& .MuiTooltip-arrow': {\n color: '#252525',\n },\n },\n },\n }}\n title={translationConfig.estimateDisclaimer}\n arrow\n placement=\"top\"\n >\n <span className=\"info-icon\">\n <IconButton>\n <Info />\n </IconButton>\n </span>\n </Tooltip>\n </IconContainer>\n </>\n )}\n </RewardProgressTotalButtonWithIcon>\n {(() => {\n if (value === maxMonths) {\n return '';\n } else if (notQualifyForRewardThisMonth) {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n component=\"div\"\n >\n {approximateTotalText}&nbsp;\n <NsTypography component=\"span\" className=\"button-price\" variant=\"body-s\" weight=\"bold\">\n {`${amountShowText}`}\n </NsTypography>\n </NsTypography>\n );\n } else if (voucherValue != null || voucherValue != undefined) {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"bold\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n >\n {currentlyTrackText}\n </NsTypography>\n );\n } else {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"bold\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n >\n {callToActionText}\n </NsTypography>\n );\n }\n })()}\n </RewardProgressTotalContainer>\n );\n }\n}\n\nexport default RewardSubscriptionTotal;\nexport { RewardSubscriptionTotal };\n","import React from 'react';\n\nfunction Info() {\n return (\n <svg width=\"19\" height=\"19\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z\"\n fill=\"#4A6987\"\n />\n <line x1=\"10.1667\" y1=\"9.375\" x2=\"10.1667\" y2=\"14.7917\" stroke=\"#4A6987\" strokeWidth=\"2\" />\n <path\n d=\"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z\"\n fill=\"#4A6987\"\n />\n </svg>\n );\n}\n\nexport default Info;\n","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function isPlainObject(item) {\n return item !== null && typeof item === 'object' && item.constructor === Object;\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe iff we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","import _formatMuiErrorMessage from \"../formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n // tslint:disable-next-line:ban-comma-operator\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nlet hadFocusVisibleRecentlyTimeout;\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(() => {\n hadFocusVisibleRecently = false;\n }, 100);\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\n\n// If GlobalStateSlot is changed, GLOBAL_STATE_CLASSES in\n// \\packages\\api-docs-builder\\utils\\parseSlotsAndClasses.ts must be updated accordingly.\nconst globalStateClassesMapping = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClassesMapping[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","export default '$$material';","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","import * as React from 'react';\nimport { useContext, forwardRef } from 'react';\nimport createCache from '@emotion/cache';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport weakMemoize from '@emotion/weak-memoize';\nimport hoistNonReactStatics from '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\n\nvar isDevelopment = false;\n\nvar EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case\n// because this module is primarily intended for the browser and node\n// but it's also required in react native and similar environments sometimes\n// and we could have a special build just for that\n// but this is much easier and the native packages\n// might use a different theme context in the future anyway\ntypeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({\n key: 'css'\n}) : null);\n\nvar CacheProvider = EmotionCacheContext.Provider;\nvar __unsafe_useEmotionCache = function useEmotionCache() {\n return useContext(EmotionCacheContext);\n};\n\nvar withEmotionCache = function withEmotionCache(func) {\n return /*#__PURE__*/forwardRef(function (props, ref) {\n // the cache will never be null in the browser\n var cache = useContext(EmotionCacheContext);\n return func(props, cache, ref);\n });\n};\n\nvar ThemeContext = /* #__PURE__ */React.createContext({});\n\nvar useTheme = function useTheme() {\n return React.useContext(ThemeContext);\n};\n\nvar getTheme = function getTheme(outerTheme, theme) {\n if (typeof theme === 'function') {\n var mergedTheme = theme(outerTheme);\n\n return mergedTheme;\n }\n\n return _extends({}, outerTheme, theme);\n};\n\nvar createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {\n return weakMemoize(function (theme) {\n return getTheme(outerTheme, theme);\n });\n});\nvar ThemeProvider = function ThemeProvider(props) {\n var theme = React.useContext(ThemeContext);\n\n if (props.theme !== theme) {\n theme = createCacheWithTheme(theme)(props.theme);\n }\n\n return /*#__PURE__*/React.createElement(ThemeContext.Provider, {\n value: theme\n }, props.children);\n};\nfunction withTheme(Component) {\n var componentName = Component.displayName || Component.name || 'Component';\n var WithTheme = /*#__PURE__*/React.forwardRef(function render(props, ref) {\n var theme = React.useContext(ThemeContext);\n return /*#__PURE__*/React.createElement(Component, _extends({\n theme: theme,\n ref: ref\n }, props));\n });\n WithTheme.displayName = \"WithTheme(\" + componentName + \")\";\n return hoistNonReactStatics(WithTheme, Component);\n}\n\nvar hasOwn = {}.hasOwnProperty;\n\nvar typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\n\n var newProps = {};\n\n for (var _key in props) {\n if (hasOwn.call(props, _key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:\n\n return newProps;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {\n var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works\n // not passing the registered cache to serializeStyles because it would\n // make certain babel optimisations not possible\n\n if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {\n cssProp = cache.registered[cssProp];\n }\n\n var WrappedComponent = props[typePropName];\n var registeredStyles = [cssProp];\n var className = '';\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, registeredStyles, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));\n\n className += cache.key + \"-\" + serialized.name;\n var newProps = {};\n\n for (var _key2 in props) {\n if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {\n newProps[_key2] = props[_key2];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof WrappedComponent === 'string'\n }), /*#__PURE__*/React.createElement(WrappedComponent, newProps));\n});\n\nvar Emotion$1 = Emotion;\n\nexport { CacheProvider as C, Emotion$1 as E, ThemeContext as T, __unsafe_useEmotionCache as _, ThemeProvider as a, withTheme as b, createEmotionProps as c, hasOwn as h, isDevelopment as i, useTheme as u, withEmotionCache as w };\n","var isDevelopment = false;\n\n/*\n\nBased off glamor's StyleSheet, thanks Sunil ❤️\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n\n// usage\n\nimport { StyleSheet } from '@emotion/sheet'\n\nlet styleSheet = new StyleSheet({ key: '', container: document.head })\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n /* istanbul ignore next */\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n } // this function should always return with a value\n // TS can't understand it though so we make it stop complaining here\n\n\n return undefined;\n}\n\nfunction createStyleElement(options) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', options.key);\n\n if (options.nonce !== undefined) {\n tag.setAttribute('nonce', options.nonce);\n }\n\n tag.appendChild(document.createTextNode(''));\n tag.setAttribute('data-s', '');\n return tag;\n}\n\nvar StyleSheet = /*#__PURE__*/function () {\n // Using Node instead of HTMLElement since container may be a ShadowRoot\n function StyleSheet(options) {\n var _this = this;\n\n this._insertTag = function (tag) {\n var before;\n\n if (_this.tags.length === 0) {\n if (_this.insertionPoint) {\n before = _this.insertionPoint.nextSibling;\n } else if (_this.prepend) {\n before = _this.container.firstChild;\n } else {\n before = _this.before;\n }\n } else {\n before = _this.tags[_this.tags.length - 1].nextSibling;\n }\n\n _this.container.insertBefore(tag, before);\n\n _this.tags.push(tag);\n };\n\n this.isSpeedy = options.speedy === undefined ? !isDevelopment : options.speedy;\n this.tags = [];\n this.ctr = 0;\n this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets\n\n this.key = options.key;\n this.container = options.container;\n this.prepend = options.prepend;\n this.insertionPoint = options.insertionPoint;\n this.before = null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.hydrate = function hydrate(nodes) {\n nodes.forEach(this._insertTag);\n };\n\n _proto.insert = function insert(rule) {\n // the max length is how many rules we have per style tag, it's 65000 in speedy mode\n // it's 1 in dev because we insert source maps that map a single rule to a location\n // and you can only have one source map per style tag\n if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {\n this._insertTag(createStyleElement(this));\n }\n\n var tag = this.tags[this.tags.length - 1];\n\n if (this.isSpeedy) {\n var sheet = sheetForTag(tag);\n\n try {\n // this is the ultrafast version, works across browsers\n // the big drawback is that the css won't be editable in devtools\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n }\n } else {\n tag.appendChild(document.createTextNode(rule));\n }\n\n this.ctr++;\n };\n\n _proto.flush = function flush() {\n this.tags.forEach(function (tag) {\n var _tag$parentNode;\n\n return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0;\n };\n\n return StyleSheet;\n}();\n\nexport { StyleSheet };\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @return {object}\n */\nexport function comment (value, root, parent) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @return {object}\n */\nexport function declaration (value, root, parent, length) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)\n}\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {MS, MOZ, WEBKIT, RULESET, KEYFRAMES, DECLARATION} from './Enum.js'\nimport {match, charat, substr, strlen, sizeof, replace, combine} from './Utility.js'\nimport {copy, tokenize} from './Tokenizer.js'\nimport {serialize} from './Serializer.js'\nimport {prefix} from './Prefixer.js'\n\n/**\n * @param {function[]} collection\n * @return {function}\n */\nexport function middleware (collection) {\n\tvar length = sizeof(collection)\n\n\treturn function (element, index, children, callback) {\n\t\tvar output = ''\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\toutput += collection[i](element, index, children, callback) || ''\n\n\t\treturn output\n\t}\n}\n\n/**\n * @param {function} callback\n * @return {function}\n */\nexport function rulesheet (callback) {\n\treturn function (element) {\n\t\tif (!element.root)\n\t\t\tif (element = element.return)\n\t\t\t\tcallback(element)\n\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n */\nexport function prefixer (element, index, children, callback) {\n\tif (element.length > -1)\n\t\tif (!element.return)\n\t\t\tswitch (element.type) {\n\t\t\t\tcase DECLARATION: element.return = prefix(element.value, element.length, children)\n\t\t\t\t\treturn\n\t\t\t\tcase KEYFRAMES:\n\t\t\t\t\treturn serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)\n\t\t\t\tcase RULESET:\n\t\t\t\t\tif (element.length)\n\t\t\t\t\t\treturn combine(element.props, function (value) {\n\t\t\t\t\t\t\tswitch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n\t\t\t\t\t\t\t\t// :read-(only|write)\n\t\t\t\t\t\t\t\tcase ':read-only': case ':read-write':\n\t\t\t\t\t\t\t\t\treturn serialize([copy(element, {props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]})], callback)\n\t\t\t\t\t\t\t\t// :placeholder\n\t\t\t\t\t\t\t\tcase '::placeholder':\n\t\t\t\t\t\t\t\t\treturn serialize([\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]}),\n\t\t\t\t\t\t\t\t\t\tcopy(element, {props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]})\n\t\t\t\t\t\t\t\t\t], callback)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn ''\n\t\t\t\t\t\t})\n\t\t\t}\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n */\nexport function namespace (element) {\n\tswitch (element.type) {\n\t\tcase RULESET:\n\t\t\telement.props = element.props.map(function (value) {\n\t\t\t\treturn combine(tokenize(value), function (value, index, children) {\n\t\t\t\t\tswitch (charat(value, 0)) {\n\t\t\t\t\t\t// \\f\n\t\t\t\t\t\tcase 12:\n\t\t\t\t\t\t\treturn substr(value, 1, strlen(value))\n\t\t\t\t\t\t// \\0 ( + > ~\n\t\t\t\t\t\tcase 0: case 40: case 43: case 62: case 126:\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t// :\n\t\t\t\t\t\tcase 58:\n\t\t\t\t\t\t\tif (children[++index] === 'global')\n\t\t\t\t\t\t\t\tchildren[index] = '', children[++index] = '\\f' + substr(children[index], index = 1, -1)\n\t\t\t\t\t\t// \\s\n\t\t\t\t\t\tcase 32:\n\t\t\t\t\t\t\treturn index === 1 ? '' : value\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tswitch (index) {\n\t\t\t\t\t\t\t\tcase 0: element = value\n\t\t\t\t\t\t\t\t\treturn sizeof(children) > 1 ? '' : value\n\t\t\t\t\t\t\t\tcase index = sizeof(children) - 1: case 2:\n\t\t\t\t\t\t\t\t\treturn index === 2 ? value + element + element : value + element\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t})\n\t}\n}\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import { StyleSheet } from '@emotion/sheet';\nimport { dealloc, alloc, next, token, from, peek, delimit, slice, position, RULESET, combine, match, serialize, copy, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, hash, charat, strlen, indexof, stringify, rulesheet, middleware, compile } from 'stylis';\nimport '@emotion/weak-memoize';\nimport '@emotion/memoize';\n\nvar identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {\n var previous = 0;\n var character = 0;\n\n while (true) {\n previous = character;\n character = peek(); // &\\f\n\n if (previous === 38 && character === 12) {\n points[index] = 1;\n }\n\n if (token(character)) {\n break;\n }\n\n next();\n }\n\n return slice(begin, position);\n};\n\nvar toRules = function toRules(parsed, points) {\n // pretend we've started with a comma\n var index = -1;\n var character = 44;\n\n do {\n switch (token(character)) {\n case 0:\n // &\\f\n if (character === 38 && peek() === 12) {\n // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings\n // stylis inserts \\f after & to know when & where it should replace this sequence with the context selector\n // and when it should just concatenate the outer and inner selectors\n // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here\n points[index] = 1;\n }\n\n parsed[index] += identifierWithPointTracking(position - 1, points, index);\n break;\n\n case 2:\n parsed[index] += delimit(character);\n break;\n\n case 4:\n // comma\n if (character === 44) {\n // colon\n parsed[++index] = peek() === 58 ? '&\\f' : '';\n points[index] = parsed[index].length;\n break;\n }\n\n // fallthrough\n\n default:\n parsed[index] += from(character);\n }\n } while (character = next());\n\n return parsed;\n};\n\nvar getRules = function getRules(value, points) {\n return dealloc(toRules(alloc(value), points));\n}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11\n\n\nvar fixedElements = /* #__PURE__ */new WeakMap();\nvar compat = function compat(element) {\n if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n element.length < 1) {\n return;\n }\n\n var value = element.value;\n var parent = element.parent;\n var isImplicitRule = element.column === parent.column && element.line === parent.line;\n\n while (parent.type !== 'rule') {\n parent = parent.parent;\n if (!parent) return;\n } // short-circuit for the simplest case\n\n\n if (element.props.length === 1 && value.charCodeAt(0) !== 58\n /* colon */\n && !fixedElements.get(parent)) {\n return;\n } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)\n // then the props has already been manipulated beforehand as they that array is shared between it and its \"rule parent\"\n\n\n if (isImplicitRule) {\n return;\n }\n\n fixedElements.set(element, true);\n var points = [];\n var rules = getRules(value, points);\n var parentRules = parent.props;\n\n for (var i = 0, k = 0; i < rules.length; i++) {\n for (var j = 0; j < parentRules.length; j++, k++) {\n element.props[k] = points[i] ? rules[i].replace(/&\\f/g, parentRules[j]) : parentRules[j] + \" \" + rules[i];\n }\n }\n};\nvar removeLabel = function removeLabel(element) {\n if (element.type === 'decl') {\n var value = element.value;\n\n if ( // charcode for l\n value.charCodeAt(0) === 108 && // charcode for b\n value.charCodeAt(2) === 98) {\n // this ignores label\n element[\"return\"] = '';\n element.value = '';\n }\n }\n};\n\n/* eslint-disable no-fallthrough */\n\nfunction prefix(value, length) {\n switch (hash(value, length)) {\n // color-adjust\n case 5103:\n return WEBKIT + 'print-' + value + value;\n // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)\n\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break\n\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,\n\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)\n\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return WEBKIT + value + value;\n // appearance, user-select, transform, hyphens, text-size-adjust\n\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return WEBKIT + value + MOZ + value + MS + value + value;\n // flex, flex-direction\n\n case 6828:\n case 4268:\n return WEBKIT + value + MS + value + value;\n // order\n\n case 6165:\n return WEBKIT + value + MS + 'flex-' + value + value;\n // align-items\n\n case 5187:\n return WEBKIT + value + replace(value, /(\\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;\n // align-self\n\n case 5443:\n return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;\n // align-content\n\n case 4675:\n return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;\n // flex-shrink\n\n case 5548:\n return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;\n // flex-basis\n\n case 5292:\n return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;\n // flex-grow\n\n case 6060:\n return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;\n // transition\n\n case 4554:\n return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;\n // cursor\n\n case 6187:\n return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;\n // background, background-image\n\n case 5495:\n case 3959:\n return replace(value, /(image-set\\([^]*)/, WEBKIT + '$1' + '$`$1');\n // justify-content\n\n case 4968:\n return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;\n // (margin|padding)-inline-(start|end)\n\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;\n // (min|max)?(width|height|inline-size|block-size)\n\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n // stretch, max-content, min-content, fill-available\n if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {\n // (m)ax-content, (m)in-content\n case 109:\n // -\n if (charat(value, length + 4) !== 45) break;\n // (f)ill-available, (f)it-content\n\n case 102:\n return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;\n // (s)tretch\n\n case 115:\n return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;\n }\n break;\n // position: sticky\n\n case 4949:\n // (s)ticky?\n if (charat(value, length + 1) !== 115) break;\n // display: (flex|inline-flex)\n\n case 6444:\n switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {\n // stic(k)y\n case 107:\n return replace(value, ':', ':' + WEBKIT) + value;\n // (inline-)?fl(e)x\n\n case 101:\n return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;\n }\n\n break;\n // writing-mode\n\n case 5936:\n switch (charat(value, length + 11)) {\n // vertical-l(r)\n case 114:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb') + value;\n // vertical-r(l)\n\n case 108:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'tb-rl') + value;\n // horizontal(-)tb\n\n case 45:\n return WEBKIT + value + MS + replace(value, /[svh]\\w+-[tblr]{2}/, 'lr') + value;\n }\n\n return WEBKIT + value + MS + value + value;\n }\n\n return value;\n}\n\nvar prefixer = function prefixer(element, index, children, callback) {\n if (element.length > -1) if (!element[\"return\"]) switch (element.type) {\n case DECLARATION:\n element[\"return\"] = prefix(element.value, element.length);\n break;\n\n case KEYFRAMES:\n return serialize([copy(element, {\n value: replace(element.value, '@', '@' + WEBKIT)\n })], callback);\n\n case RULESET:\n if (element.length) return combine(element.props, function (value) {\n switch (match(value, /(::plac\\w+|:read-\\w+)/)) {\n // :read-(only|write)\n case ':read-only':\n case ':read-write':\n return serialize([copy(element, {\n props: [replace(value, /:(read-\\w+)/, ':' + MOZ + '$1')]\n })], callback);\n // :placeholder\n\n case '::placeholder':\n return serialize([copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + WEBKIT + 'input-$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, ':' + MOZ + '$1')]\n }), copy(element, {\n props: [replace(value, /:(plac\\w+)/, MS + 'input-$1')]\n })], callback);\n }\n\n return '';\n });\n }\n};\n\nvar defaultStylisPlugins = [prefixer];\n\nvar createCache = function createCache(options) {\n var key = options.key;\n\n if (key === 'css') {\n var ssrStyles = document.querySelectorAll(\"style[data-emotion]:not([data-s])\"); // get SSRed styles out of the way of React's hydration\n // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)\n // note this very very intentionally targets all style elements regardless of the key to ensure\n // that creating a cache works inside of render of a React component\n\n Array.prototype.forEach.call(ssrStyles, function (node) {\n // we want to only move elements which have a space in the data-emotion attribute value\n // because that indicates that it is an Emotion 11 server-side rendered style elements\n // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector\n // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)\n // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles\n // will not result in the Emotion 10 styles being destroyed\n var dataEmotionAttribute = node.getAttribute('data-emotion');\n\n if (dataEmotionAttribute.indexOf(' ') === -1) {\n return;\n }\n\n document.head.appendChild(node);\n node.setAttribute('data-s', '');\n });\n }\n\n var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;\n\n var inserted = {};\n var container;\n var nodesToHydrate = [];\n\n {\n container = options.container || document.head;\n Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll(\"style[data-emotion^=\\\"\" + key + \" \\\"]\"), function (node) {\n var attrib = node.getAttribute(\"data-emotion\").split(' ');\n\n for (var i = 1; i < attrib.length; i++) {\n inserted[attrib[i]] = true;\n }\n\n nodesToHydrate.push(node);\n });\n }\n\n var _insert;\n\n var omnipresentPlugins = [compat, removeLabel];\n\n {\n var currentSheet;\n var finalizingPlugins = [stringify, rulesheet(function (rule) {\n currentSheet.insert(rule);\n })];\n var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));\n\n var stylis = function stylis(styles) {\n return serialize(compile(styles), serializer);\n };\n\n _insert = function insert(selector, serialized, sheet, shouldCache) {\n currentSheet = sheet;\n\n stylis(selector ? selector + \"{\" + serialized.styles + \"}\" : serialized.styles);\n\n if (shouldCache) {\n cache.inserted[serialized.name] = true;\n }\n };\n }\n\n var cache = {\n key: key,\n sheet: new StyleSheet({\n key: key,\n container: container,\n nonce: options.nonce,\n speedy: options.speedy,\n prepend: options.prepend,\n insertionPoint: options.insertionPoint\n }),\n nonce: options.nonce,\n inserted: inserted,\n registered: {},\n insert: _insert\n };\n cache.sheet.hydrate(nodesToHydrate);\n return cache;\n};\n\nexport { createCache as default };\n","var isBrowser = true;\n\nfunction getRegisteredStyles(registered, registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (registered[className] !== undefined) {\n registeredStyles.push(registered[className] + \";\");\n } else if (className) {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n}\nvar registerStyles = function registerStyles(cache, serialized, isStringTag) {\n var className = cache.key + \"-\" + serialized.name;\n\n if ( // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (isStringTag === false || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n isBrowser === false ) && cache.registered[className] === undefined) {\n cache.registered[className] = serialized.styles;\n }\n};\nvar insertStyles = function insertStyles(cache, serialized, isStringTag) {\n registerStyles(cache, serialized, isStringTag);\n var className = cache.key + \"-\" + serialized.name;\n\n if (cache.inserted[serialized.name] === undefined) {\n var current = serialized;\n\n do {\n cache.insert(serialized === current ? \".\" + className : '', current, cache.sheet, true);\n\n current = current.next;\n } while (current !== undefined);\n }\n};\n\nexport { getRegisteredStyles, insertStyles, registerStyles };\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isDevelopment } from './emotion-element-f0de968e.browser.esm.js';\nexport { C as CacheProvider, T as ThemeContext, a as ThemeProvider, _ as __unsafe_useEmotionCache, u as useTheme, w as withEmotionCache, b as withTheme } from './emotion-element-f0de968e.browser.esm.js';\nimport * as React from 'react';\nimport { insertStyles, registerStyles, getRegisteredStyles } from '@emotion/utils';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { serializeStyles } from '@emotion/serialize';\nimport '@emotion/cache';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/weak-memoize';\nimport '../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js';\nimport 'hoist-non-react-statics';\n\nvar jsx = function jsx(type, props) {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n\n if (props == null || !hasOwn.call(props, 'css')) {\n return React.createElement.apply(undefined, args);\n }\n\n var argsLength = args.length;\n var createElementArgArray = new Array(argsLength);\n createElementArgArray[0] = Emotion;\n createElementArgArray[1] = createEmotionProps(type, props);\n\n for (var i = 2; i < argsLength; i++) {\n createElementArgArray[i] = args[i];\n }\n\n return React.createElement.apply(null, createElementArgArray);\n};\n\n(function (_jsx) {\n var JSX;\n\n (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));\n})(jsx || (jsx = {}));\n\n// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild\n// initial client-side render from SSR, use place of hydrating tag\n\nvar Global = /* #__PURE__ */withEmotionCache(function (props, cache) {\n\n var styles = props.styles;\n var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));\n // but it is based on a constant that will never change at runtime\n // it's effectively like having two implementations and switching them out\n // so it's not actually breaking anything\n\n\n var sheetRef = React.useRef();\n useInsertionEffectWithLayoutFallback(function () {\n var key = cache.key + \"-global\"; // use case of https://github.com/emotion-js/emotion/issues/2675\n\n var sheet = new cache.sheet.constructor({\n key: key,\n nonce: cache.sheet.nonce,\n container: cache.sheet.container,\n speedy: cache.sheet.isSpeedy\n });\n var rehydrating = false;\n var node = document.querySelector(\"style[data-emotion=\\\"\" + key + \" \" + serialized.name + \"\\\"]\");\n\n if (cache.sheet.tags.length) {\n sheet.before = cache.sheet.tags[0];\n }\n\n if (node !== null) {\n rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s\n\n node.setAttribute('data-emotion', key);\n sheet.hydrate([node]);\n }\n\n sheetRef.current = [sheet, rehydrating];\n return function () {\n sheet.flush();\n };\n }, [cache]);\n useInsertionEffectWithLayoutFallback(function () {\n var sheetRefCurrent = sheetRef.current;\n var sheet = sheetRefCurrent[0],\n rehydrating = sheetRefCurrent[1];\n\n if (rehydrating) {\n sheetRefCurrent[1] = false;\n return;\n }\n\n if (serialized.next !== undefined) {\n // insert keyframes\n insertStyles(cache, serialized.next, true);\n }\n\n if (sheet.tags.length) {\n // if this doesn't exist then it will be null so the style element will be appended\n var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;\n sheet.before = element;\n sheet.flush();\n }\n\n cache.insert(\"\", serialized, sheet, false);\n }, [cache, serialized.name]);\n return null;\n});\n\nfunction css() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return serializeStyles(args);\n}\n\nfunction keyframes() {\n var insertable = css.apply(void 0, arguments);\n var name = \"animation-\" + insertable.name;\n return {\n name: name,\n styles: \"@keyframes \" + name + \"{\" + insertable.styles + \"}\",\n anim: 1,\n toString: function toString() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\n\nfunction merge(registered, css, className) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registered, registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles);\n}\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serializedArr = _ref.serializedArr;\n useInsertionEffectAlwaysWithSyncFallback(function () {\n\n for (var i = 0; i < serializedArr.length; i++) {\n insertStyles(cache, serializedArr[i], false);\n }\n });\n\n return null;\n};\n\nvar ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {\n var hasRendered = false;\n var serializedArr = [];\n\n var css = function css() {\n if (hasRendered && isDevelopment) {\n throw new Error('css can only be used during render');\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var serialized = serializeStyles(args, cache.registered);\n serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`\n\n registerStyles(cache, serialized, false);\n return cache.key + \"-\" + serialized.name;\n };\n\n var cx = function cx() {\n if (hasRendered && isDevelopment) {\n throw new Error('cx can only be used during render');\n }\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return merge(cache.registered, css, classnames(args));\n };\n\n var content = {\n css: css,\n cx: cx,\n theme: React.useContext(ThemeContext)\n };\n var ele = props.children(content);\n hasRendered = true;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serializedArr: serializedArr\n }), ele);\n});\n\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport { withEmotionCache, ThemeContext } from '@emotion/react';\nimport { serializeStyles } from '@emotion/serialize';\nimport { useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport { getRegisteredStyles, registerStyles, insertStyles } from '@emotion/utils';\nimport * as React from 'react';\nimport isPropValid from '@emotion/is-prop-valid';\n\nvar isDevelopment = false;\n\nvar testOmitPropsOnStringTag = isPropValid;\n\nvar testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {\n return key !== 'theme';\n};\n\nvar getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {\n return typeof tag === 'string' && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;\n};\nvar composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {\n var shouldForwardProp;\n\n if (options) {\n var optionsShouldForwardProp = options.shouldForwardProp;\n shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {\n return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);\n } : optionsShouldForwardProp;\n }\n\n if (typeof shouldForwardProp !== 'function' && isReal) {\n shouldForwardProp = tag.__emotion_forwardProp;\n }\n\n return shouldForwardProp;\n};\n\nvar Insertion = function Insertion(_ref) {\n var cache = _ref.cache,\n serialized = _ref.serialized,\n isStringTag = _ref.isStringTag;\n registerStyles(cache, serialized, isStringTag);\n useInsertionEffectAlwaysWithSyncFallback(function () {\n return insertStyles(cache, serialized, isStringTag);\n });\n\n return null;\n};\n\nvar createStyled = function createStyled(tag, options) {\n\n var isReal = tag.__emotion_real === tag;\n var baseTag = isReal && tag.__emotion_base || tag;\n var identifierName;\n var targetClassName;\n\n if (options !== undefined) {\n identifierName = options.label;\n targetClassName = options.target;\n }\n\n var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);\n var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);\n var shouldUseAs = !defaultShouldForwardProp('as');\n return function () {\n // eslint-disable-next-line prefer-rest-params\n var args = arguments;\n var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];\n\n if (identifierName !== undefined) {\n styles.push(\"label:\" + identifierName + \";\");\n }\n\n if (args[0] == null || args[0].raw === undefined) {\n // eslint-disable-next-line prefer-spread\n styles.push.apply(styles, args);\n } else {\n var templateStringsArr = args[0];\n\n styles.push(templateStringsArr[0]);\n var len = args.length;\n var i = 1;\n\n for (; i < len; i++) {\n\n styles.push(args[i], templateStringsArr[i]);\n }\n }\n\n var Styled = withEmotionCache(function (props, cache, ref) {\n var FinalTag = shouldUseAs && props.as || baseTag;\n var className = '';\n var classInterpolations = [];\n var mergedProps = props;\n\n if (props.theme == null) {\n mergedProps = {};\n\n for (var key in props) {\n mergedProps[key] = props[key];\n }\n\n mergedProps.theme = React.useContext(ThemeContext);\n }\n\n if (typeof props.className === 'string') {\n className = getRegisteredStyles(cache.registered, classInterpolations, props.className);\n } else if (props.className != null) {\n className = props.className + \" \";\n }\n\n var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);\n className += cache.key + \"-\" + serialized.name;\n\n if (targetClassName !== undefined) {\n className += \" \" + targetClassName;\n }\n\n var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;\n var newProps = {};\n\n for (var _key in props) {\n if (shouldUseAs && _key === 'as') continue;\n\n if (finalShouldForwardProp(_key)) {\n newProps[_key] = props[_key];\n }\n }\n\n newProps.className = className;\n\n if (ref) {\n newProps.ref = ref;\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {\n cache: cache,\n serialized: serialized,\n isStringTag: typeof FinalTag === 'string'\n }), /*#__PURE__*/React.createElement(FinalTag, newProps));\n });\n Styled.displayName = identifierName !== undefined ? identifierName : \"Styled(\" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + \")\";\n Styled.defaultProps = tag.defaultProps;\n Styled.__emotion_real = Styled;\n Styled.__emotion_base = baseTag;\n Styled.__emotion_styles = styles;\n Styled.__emotion_forwardProp = shouldForwardProp;\n Object.defineProperty(Styled, 'toString', {\n value: function value() {\n if (targetClassName === undefined && isDevelopment) {\n return 'NO_COMPONENT_SELECTOR';\n }\n\n return \".\" + targetClassName;\n }\n });\n\n Styled.withComponent = function (nextTag, nextOptions) {\n var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {\n shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)\n }));\n return newStyled.apply(void 0, styles);\n };\n\n return Styled;\n };\n};\n\nexport { createStyled as default };\n","import memoize from '@emotion/memoize';\n\n// eslint-disable-next-line no-undef\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n","import createStyled from '../base/dist/emotion-styled-base.browser.esm.js';\nimport '@babel/runtime/helpers/extends';\nimport '@emotion/react';\nimport '@emotion/serialize';\nimport '@emotion/use-insertion-effect-with-fallbacks';\nimport '@emotion/utils';\nimport 'react';\nimport '@emotion/is-prop-valid';\n\nvar tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr', // SVG\n'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];\n\n// bind it to avoid mutating the original function\nvar newStyled = createStyled.bind(null);\ntags.forEach(function (tagName) {\n newStyled[tagName] = newStyled(tagName);\n});\n\nexport { newStyled as default };\n","/**\n * @mui/styled-engine v5.16.14\n *\n * @license MIT\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'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const internal_processStyles = (tag, processor) => {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n};\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from './StyledEngineProvider';\nexport { default as GlobalStyles } from './GlobalStyles';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if ( /*#__PURE__*/React.isValidElement(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if ( /*#__PURE__*/React.isValidElement(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={theme => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '../generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import { unstable_capitalize as capitalize } from '@mui/utils';\nexport default capitalize;","'use client';\n\nimport { unstable_useId as useId } from '@mui/utils';\nexport default useId;","'use client';\n\nimport { unstable_useControlled as useControlled } from '@mui/utils';\nexport default useControlled;","'use client';\n\nimport { unstable_useEventCallback as useEventCallback } from '@mui/utils';\nexport default useEventCallback;","'use client';\n\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nexport default useForkRef;","'use client';\n\nimport { unstable_useIsFocusVisible as useIsFocusVisible } from '@mui/utils';\nexport default useIsFocusVisible;","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `<CSSTransition>` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\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\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nexport { _assertThisInitialized as default };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `<TransitionGroup>` renders a `<div>` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `<div>` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n\n /**\n * A set of `<Transition>` components, that are toggled `in` and out as they\n * leave. the `<TransitionGroup>` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `<Transition>` as\n * with our `<Fade>` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"action\", \"centerRipple\", \"children\", \"className\", \"component\", \"disabled\", \"disableRipple\", \"disableTouchRipple\", \"focusRipple\", \"focusVisibleClassName\", \"LinkComponent\", \"onBlur\", \"onClick\", \"onContextMenu\", \"onDragLeave\", \"onFocus\", \"onFocusVisible\", \"onKeyDown\", \"onKeyUp\", \"onMouseDown\", \"onMouseLeave\", \"onMouseUp\", \"onTouchEnd\", \"onTouchMove\", \"onTouchStart\", \"tabIndex\", \"TouchRippleProps\", \"touchRippleRef\", \"type\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementTypeAcceptingRef, refType } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport TouchRipple from './TouchRipple';\nimport buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n focusVisible,\n focusVisibleClassName,\n classes\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']\n };\n const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);\n if (focusVisible && focusVisibleClassName) {\n composedClasses.root += ` ${focusVisibleClassName}`;\n }\n return composedClasses;\n};\nexport const ButtonBaseRoot = styled('button', {\n name: 'MuiButtonBase',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n boxSizing: 'border-box',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n textDecoration: 'none',\n // So we take precedent over the style of a native <a /> element.\n color: 'inherit',\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n\n [`&.${buttonBaseClasses.disabled}`]: {\n pointerEvents: 'none',\n // Disable link interactions\n cursor: 'default'\n },\n '@media print': {\n colorAdjust: 'exact'\n }\n});\n\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\nconst ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiButtonBase'\n });\n const {\n action,\n centerRipple = false,\n children,\n className,\n component = 'button',\n disabled = false,\n disableRipple = false,\n disableTouchRipple = false,\n focusRipple = false,\n LinkComponent = 'a',\n onBlur,\n onClick,\n onContextMenu,\n onDragLeave,\n onFocus,\n onFocusVisible,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n onMouseLeave,\n onMouseUp,\n onTouchEnd,\n onTouchMove,\n onTouchStart,\n tabIndex = 0,\n TouchRippleProps,\n touchRippleRef,\n type\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const buttonRef = React.useRef(null);\n const rippleRef = React.useRef(null);\n const handleRippleRef = useForkRef(rippleRef, touchRippleRef);\n const {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n const [focusVisible, setFocusVisible] = React.useState(false);\n if (disabled && focusVisible) {\n setFocusVisible(false);\n }\n React.useImperativeHandle(action, () => ({\n focusVisible: () => {\n setFocusVisible(true);\n buttonRef.current.focus();\n }\n }), []);\n const [mountedState, setMountedState] = React.useState(false);\n React.useEffect(() => {\n setMountedState(true);\n }, []);\n const enableTouchRipple = mountedState && !disableRipple && !disabled;\n React.useEffect(() => {\n if (focusVisible && focusRipple && !disableRipple && mountedState) {\n rippleRef.current.pulsate();\n }\n }, [disableRipple, focusRipple, focusVisible, mountedState]);\n function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {\n return useEventCallback(event => {\n if (eventCallback) {\n eventCallback(event);\n }\n const ignore = skipRippleAction;\n if (!ignore && rippleRef.current) {\n rippleRef.current[rippleAction](event);\n }\n return true;\n });\n }\n const handleMouseDown = useRippleHandler('start', onMouseDown);\n const handleContextMenu = useRippleHandler('stop', onContextMenu);\n const handleDragLeave = useRippleHandler('stop', onDragLeave);\n const handleMouseUp = useRippleHandler('stop', onMouseUp);\n const handleMouseLeave = useRippleHandler('stop', event => {\n if (focusVisible) {\n event.preventDefault();\n }\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n });\n const handleTouchStart = useRippleHandler('start', onTouchStart);\n const handleTouchEnd = useRippleHandler('stop', onTouchEnd);\n const handleTouchMove = useRippleHandler('stop', onTouchMove);\n const handleBlur = useRippleHandler('stop', event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n }, false);\n const handleFocus = useEventCallback(event => {\n // Fix for https://github.com/facebook/react/issues/7769\n if (!buttonRef.current) {\n buttonRef.current = event.currentTarget;\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setFocusVisible(true);\n if (onFocusVisible) {\n onFocusVisible(event);\n }\n }\n if (onFocus) {\n onFocus(event);\n }\n });\n const isNonNativeButton = () => {\n const button = buttonRef.current;\n return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n };\n\n /**\n * IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat\n */\n const keydownRef = React.useRef(false);\n const handleKeyDown = useEventCallback(event => {\n // Check if key is already down to avoid repeats being counted as multiple activations\n if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {\n keydownRef.current = true;\n rippleRef.current.stop(event, () => {\n rippleRef.current.start(event);\n });\n }\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n event.preventDefault();\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n event.preventDefault();\n if (onClick) {\n onClick(event);\n }\n }\n });\n const handleKeyUp = useEventCallback(event => {\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0\n if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {\n keydownRef.current = false;\n rippleRef.current.stop(event, () => {\n rippleRef.current.pulsate(event);\n });\n }\n if (onKeyUp) {\n onKeyUp(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {\n onClick(event);\n }\n });\n let ComponentProp = component;\n if (ComponentProp === 'button' && (other.href || other.to)) {\n ComponentProp = LinkComponent;\n }\n const buttonProps = {};\n if (ComponentProp === 'button') {\n buttonProps.type = type === undefined ? 'button' : type;\n buttonProps.disabled = disabled;\n } else {\n if (!other.href && !other.to) {\n buttonProps.role = 'button';\n }\n if (disabled) {\n buttonProps['aria-disabled'] = disabled;\n }\n }\n const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (enableTouchRipple && !rippleRef.current) {\n console.error(['MUI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\\n'));\n }\n }, [enableTouchRipple]);\n }\n const ownerState = _extends({}, props, {\n centerRipple,\n component,\n disabled,\n disableRipple,\n disableTouchRipple,\n focusRipple,\n tabIndex,\n focusVisible\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(ButtonBaseRoot, _extends({\n as: ComponentProp,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n onBlur: handleBlur,\n onClick: onClick,\n onContextMenu: handleContextMenu,\n onFocus: handleFocus,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n onMouseDown: handleMouseDown,\n onMouseLeave: handleMouseLeave,\n onMouseUp: handleMouseUp,\n onDragLeave: handleDragLeave,\n onTouchEnd: handleTouchEnd,\n onTouchMove: handleTouchMove,\n onTouchStart: handleTouchStart,\n ref: handleRef,\n tabIndex: disabled ? -1 : tabIndex,\n type: type\n }, buttonProps, other, {\n children: [children, enableTouchRipple ?\n /*#__PURE__*/\n /* TouchRipple is only needed client-side, x2 boost on the server. */\n _jsx(TouchRipple, _extends({\n ref: handleRippleRef,\n center: centerRipple\n }, TouchRippleProps)) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonBase.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: refType,\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n href: PropTypes /* @typescript-to-proptypes-ignore */.any,\n /**\n * The component used to render a link when the `href` prop is provided.\n * @default 'a'\n */\n LinkComponent: PropTypes.elementType,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onContextMenu: PropTypes.func,\n /**\n * @ignore\n */\n onDragLeave: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * @ignore\n */\n onMouseDown: PropTypes.func,\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n /**\n * @ignore\n */\n onMouseUp: PropTypes.func,\n /**\n * @ignore\n */\n onTouchEnd: PropTypes.func,\n /**\n * @ignore\n */\n onTouchMove: PropTypes.func,\n /**\n * @ignore\n */\n onTouchStart: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])\n} : void 0;\nexport default ButtonBase;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"center\", \"classes\", \"className\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport { keyframes } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport Ripple from './Ripple';\nimport touchRippleClasses from './touchRippleClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes(_t || (_t = _`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`));\nconst exitKeyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`));\nconst pulsateKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`));\nexport const TouchRippleRoot = styled('span', {\n name: 'MuiTouchRipple',\n slot: 'Root'\n})({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n name: 'MuiTouchRipple',\n slot: 'Ripple'\n})(_t4 || (_t4 = _`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({\n theme\n}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({\n theme\n}) => theme.transitions.easing.easeInOut);\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTouchRipple'\n });\n const {\n center: centerProp = false,\n classes = {},\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const [ripples, setRipples] = React.useState([]);\n const nextKey = React.useRef(0);\n const rippleCallback = React.useRef(null);\n React.useEffect(() => {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]);\n\n // Used to filter out mouse emulated events on mobile.\n const ignoringMouseDown = React.useRef(false);\n // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n const startTimer = React.useRef(0);\n\n // This is the hook called once the previous timeout is ready.\n const startTimerCommit = React.useRef(null);\n const container = React.useRef(null);\n React.useEffect(() => {\n return () => {\n if (startTimer.current) {\n clearTimeout(startTimer.current);\n }\n };\n }, []);\n const startCommit = React.useCallback(params => {\n const {\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n } = params;\n setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n classes: {\n ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n child: clsx(classes.child, touchRippleClasses.child),\n childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n },\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n }, nextKey.current)]);\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n const {\n pulsate = false,\n center = centerProp || options.pulsate,\n fakeElement = false // For test purposes\n } = options;\n if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n if ((event == null ? void 0 : event.type) === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n const element = fakeElement ? null : container.current;\n const rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n };\n\n // Get the size of the ripple\n let rippleX;\n let rippleY;\n let rippleSize;\n if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n const {\n clientX,\n clientY\n } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n if (center) {\n rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n // For some reason the animation is broken on Mobile Chrome if the size is even.\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n }\n\n // Touche devices\n if (event != null && event.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = () => {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n };\n // Delay the execution of the ripple effect.\n startTimer.current = setTimeout(() => {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n }, DELAY_RIPPLE); // We have to make a tradeoff with this value.\n }\n } else {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n }\n }, [centerProp, startCommit]);\n const pulsate = React.useCallback(() => {\n start({}, {\n pulsate: true\n });\n }, [start]);\n const stop = React.useCallback((event, cb) => {\n clearTimeout(startTimer.current);\n\n // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.current = setTimeout(() => {\n stop(event, cb);\n });\n return;\n }\n startTimerCommit.current = null;\n setRipples(oldRipples => {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, []);\n React.useImperativeHandle(ref, () => ({\n pulsate,\n start,\n stop\n }), [pulsate, start, stop]);\n return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({\n className: clsx(touchRippleClasses.root, classes.root, className),\n ref: container\n }, other, {\n children: /*#__PURE__*/_jsx(TransitionGroup, {\n component: null,\n exit: true,\n children: ripples\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default TouchRipple;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction Ripple(props) {\n const {\n className,\n classes,\n pulsate = false,\n rippleX,\n rippleY,\n rippleSize,\n in: inProp,\n onExited,\n timeout\n } = props;\n const [leaving, setLeaving] = React.useState(false);\n const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);\n const rippleStyles = {\n width: rippleSize,\n height: rippleSize,\n top: -(rippleSize / 2) + rippleY,\n left: -(rippleSize / 2) + rippleX\n };\n const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);\n if (!inProp && !leaving) {\n setLeaving(true);\n }\n React.useEffect(() => {\n if (!inProp && onExited != null) {\n // react-transition-group#onExited\n const timeoutId = setTimeout(onExited, timeout);\n return () => {\n clearTimeout(timeoutId);\n };\n }\n return undefined;\n }, [onExited, inProp, timeout]);\n return /*#__PURE__*/_jsx(\"span\", {\n className: rippleClassName,\n style: rippleStyles,\n children: /*#__PURE__*/_jsx(\"span\", {\n className: childClassName\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? Ripple.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n /**\n * @ignore - injected from TransitionGroup\n */\n in: PropTypes.bool,\n /**\n * @ignore - injected from TransitionGroup\n */\n onExited: PropTypes.func,\n /**\n * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.\n */\n pulsate: PropTypes.bool,\n /**\n * Diameter of the ripple.\n */\n rippleSize: PropTypes.number,\n /**\n * Horizontal position of the ripple center.\n */\n rippleX: PropTypes.number,\n /**\n * Vertical position of the ripple center.\n */\n rippleY: PropTypes.number,\n /**\n * exit delay\n */\n timeout: PropTypes.number.isRequired\n} : void 0;\nexport default Ripple;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getTouchRippleUtilityClass(slot) {\n return generateUtilityClass('MuiTouchRipple', slot);\n}\nconst touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);\nexport default touchRippleClasses;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getButtonBaseUtilityClass(slot) {\n return generateUtilityClass('MuiButtonBase', slot);\n}\nconst buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);\nexport default buttonBaseClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"edge\", \"children\", \"className\", \"color\", \"disabled\", \"disableFocusRipple\", \"size\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport iconButtonClasses, { getIconButtonUtilityClass } from './iconButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n color,\n edge,\n size\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]\n };\n return composeClasses(slots, getIconButtonUtilityClass, classes);\n};\nconst IconButtonRoot = styled(ButtonBase, {\n name: 'MuiIconButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n textAlign: 'center',\n flex: '0 0 auto',\n fontSize: theme.typography.pxToRem(24),\n padding: 8,\n borderRadius: '50%',\n overflow: 'visible',\n // Explicitly set the default value to solve a bug on IE11.\n color: (theme.vars || theme).palette.action.active,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n })\n}, !ownerState.disableRipple && {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n}, ownerState.edge === 'start' && {\n marginLeft: ownerState.size === 'small' ? -3 : -12\n}, ownerState.edge === 'end' && {\n marginRight: ownerState.size === 'small' ? -3 : -12\n}), ({\n theme,\n ownerState\n}) => {\n var _palette;\n const palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];\n return _extends({}, ownerState.color === 'inherit' && {\n color: 'inherit'\n }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({\n color: palette == null ? void 0 : palette.main\n }, !ownerState.disableRipple && {\n '&:hover': _extends({}, palette && {\n backgroundColor: theme.vars ? `rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(palette.main, theme.palette.action.hoverOpacity)\n }, {\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n })\n }), ownerState.size === 'small' && {\n padding: 5,\n fontSize: theme.typography.pxToRem(18)\n }, ownerState.size === 'large' && {\n padding: 12,\n fontSize: theme.typography.pxToRem(28)\n }, {\n [`&.${iconButtonClasses.disabled}`]: {\n backgroundColor: 'transparent',\n color: (theme.vars || theme).palette.action.disabled\n }\n });\n});\n\n/**\n * Refer to the [Icons](/material-ui/icons/) section of the documentation\n * regarding the available icon options.\n */\nconst IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiIconButton'\n });\n const {\n edge = false,\n children,\n className,\n color = 'default',\n disabled = false,\n disableFocusRipple = false,\n size = 'medium'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n edge,\n color,\n disabled,\n disableFocusRipple,\n size\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(IconButtonRoot, _extends({\n className: clsx(classes.root, className),\n centerRipple: true,\n focusRipple: !disableFocusRipple,\n disabled: disabled,\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? IconButton.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The icon to display.\n */\n children: chainPropTypes(PropTypes.node, props => {\n const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);\n if (found) {\n return new Error(['MUI: You are providing an onClick event listener to a child of a button element.', 'Prefer applying it to the IconButton directly.', 'This guarantees that the whole <button> will be responsive to click events.'].join('\\n'));\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default IconButton;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getIconButtonUtilityClass(slot) {\n return generateUtilityClass('MuiIconButton', slot);\n}\nconst iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);\nexport default iconButtonClasses;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass('MuiPopper', slot);\n}\nexport const popperClasses = generateUtilityClasses('MuiPopper', ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = React.useRef();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.current = setTimeout(next, autoTimeout.current || 0);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n React.useEffect(() => {\n return () => {\n clearTimeout(timer.current);\n };\n }, []);\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nlet hystersisTimer = null;\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n clearTimeout(hystersisTimer);\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = React.useRef();\n const enterTimer = React.useRef();\n const leaveTimer = React.useRef();\n const touchTimer = React.useRef();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = React.useCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n clearTimeout(touchTimer.current);\n }, []);\n React.useEffect(() => {\n return () => {\n clearTimeout(closeTimer.current);\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n stopTouchInteraction();\n };\n }, [stopTouchInteraction]);\n const handleOpen = event => {\n clearTimeout(hystersisTimer);\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n clearTimeout(hystersisTimer);\n hystersisTimer = setTimeout(() => {\n hystersisOpen = false;\n }, 800 + leaveDelay);\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n clearTimeout(closeTimer.current);\n closeTimer.current = setTimeout(() => {\n ignoreNonTouchEvents.current = false;\n }, theme.transitions.duration.shortest);\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.current = setTimeout(() => {\n handleOpen(event);\n }, hystersisOpen ? enterNextDelay : enterDelay);\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n leaveTimer.current = setTimeout(() => {\n handleClose(event);\n }, leaveDelay);\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n clearTimeout(leaveTimer.current);\n clearTimeout(closeTimer.current);\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.current = setTimeout(() => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n }, enterTouchDelay);\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n clearTimeout(leaveTimer.current);\n leaveTimer.current = setTimeout(() => {\n handleClose(event);\n }, leaveTouchDelay);\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of <Tooltip />.', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","import React, { useState } from 'react';\nimport {\n IconContainer,\n Learn3XLink,\n LoyaltyProgressSubContainer,\n ProgressBarCenter,\n StyledCard,\n} from './CircularProgressBar.styled';\nimport { RewardProgressBarProps } from './types';\nimport RadialSeparators from './RadialSeparator';\nimport SubscriptionVoucherIcon from '../Icons/SubscriptionVoucherIcon';\nimport SubscriptionVoucherIconGrey from '../Icons/SubscriptionVoucherIconGrey';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar';\nimport { RewardProgressTotalButtonWithIcon, RewardProgressTotalContainer } from './CircularProgressBar.styled';\nimport Info from '../Icons/Info';\nimport { Tooltip, IconButton } from '@mui/material';\nimport { replacePlaceholders } from '../Utils/helper';\n\nconst SubscriptionRewardMobile = (props: RewardProgressBarProps) => {\n const [open, setOpen] = useState(false);\n const handleTooltipToggle = () => {\n setOpen(!open);\n };\n const {\n handleOpenSubscriptionRewardPopup = () => {},\n notQualifyForRewardThisMonth = false,\n value = 0,\n voucherValue = 0,\n amountShow,\n maxMonths = 0,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n estimateDisclaimer: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n storeConfig = {\n tiers: [\n {\n consecutive_months: '',\n min_spend: '',\n max_spend: '',\n promo_code: '',\n },\n {\n consecutive_months: '',\n min_spend: '',\n promo_code: '',\n },\n ],\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = props;\n\n let popupText = '';\n const minVoucher = 50;\n const maxVoucher = 150;\n if (voucherValue === minVoucher && !notQualifyForRewardThisMonth) {\n popupText = translationConfig.learn3xMore;\n } else if (voucherValue === maxVoucher || notQualifyForRewardThisMonth) {\n popupText = learnMoreConfig.learnMore;\n } else if (voucherValue === null || voucherValue === undefined) {\n popupText = translationConfig.learnMore;\n }\n\n const monthsCompleteText = replacePlaceholders(translationConfig.monthsComplete, {\n completed_months: value,\n total_months: maxMonths,\n });\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n const voucherEarnedText = translationConfig.voucherEarned.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const currentlyTrackText = translationConfig.currentlyTrack.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const approximateTotalText = replacePlaceholders(translationConfig.approximateTotal, {\n currency_symbol: '',\n projected_month_spend: '',\n });\n const minAmount = parseFloat(String(storeConfig?.tiers?.[0]?.min_spend)) || 0;\n const minAmountShow = currencyFormat(minAmount, true, currencyAbbreviate);\n const callToActionText = translationConfig.callToAction.replace(\n '%currency_symbol%%current_spend_target%',\n `${minAmountShow}`,\n );\n const approximateMonthlyText = replacePlaceholders(translationConfig.approximateMonthly, {\n currency_symbol: '',\n estimated_running_subscription_spend: '',\n });\n const voucherTargetAmount = replacePlaceholders(translationConfig.voucherTargetAmount, {\n currency_symbol: '',\n voucher_amount: '',\n });\n const amountShowText = currencyFormat(amountShow ?? 0, false, false);\n\n return (\n <LoyaltyProgressSubContainer>\n <StyledCard>\n <img className=\"reward-logo\" src={translationConfig.loyaltyLogoBlack} alt=\"Rewards Logo\" />\n </StyledCard>\n <div className=\"reward-progress\">\n <CircularProgressbarWithChildren\n value={(value / maxMonths) * 100}\n strokeWidth={12}\n background\n styles={buildStyles({\n rotation: 0.5,\n strokeLinecap: 'butt',\n backgroundColor:\n value === maxMonths && !notQualifyForRewardThisMonth\n ? 'rgb(195 240 194)'\n : notQualifyForRewardThisMonth\n ? '#fff'\n : '#fff',\n pathColor: '#6BC56A',\n trailColor: '#E0E0E0',\n })}\n >\n <RadialSeparators count={maxMonths} />\n {value === maxMonths && !notQualifyForRewardThisMonth ? (\n <SubscriptionVoucherIcon />\n ) : notQualifyForRewardThisMonth ? (\n <IconContainer>\n <FaExclamationTriangle className=\"outline-exclamation-icon\" color=\"#91ACC8\" />\n </IconContainer>\n ) : voucherValue != null || voucherValue != undefined ? (\n <ProgressBarCenter>\n <NsTypography\n component=\"div\"\n className=\"center-value-progress-bar-price\"\n variant=\"title-l\"\n weight=\"bold\"\n >{`${voucherEarned}`}</NsTypography>\n <NsTypography\n variant=\"label-s\"\n weight=\"bold\"\n component=\"div\"\n className=\"center-value-progress-bar-voucher\"\n >\n {voucherTargetAmount}\n </NsTypography>\n </ProgressBarCenter>\n ) : (\n <ProgressBarCenter>\n <SubscriptionVoucherIconGrey />\n </ProgressBarCenter>\n )}\n </CircularProgressbarWithChildren>\n </div>\n <StyledCard>\n {value === maxMonths && amountShow !== undefined && amountShow > minAmount ? (\n <div className=\"info-item\">{voucherEarnedText}</div>\n ) : (\n <div className=\"info-item\">{monthsCompleteText}</div>\n )}\n </StyledCard>\n <RewardProgressTotalContainer>\n {value === maxMonths ? (\n ''\n ) : notQualifyForRewardThisMonth ? (\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n component=\"div\"\n >\n {approximateTotalText}{' '}\n <NsTypography component=\"span\" className=\"button-price\" variant=\"body-s\" weight=\"bold\">\n {`${amountShowText}`}\n </NsTypography>\n </NsTypography>\n ) : voucherValue != null || voucherValue != undefined ? (\n <NsTypography variant=\"body-s\" weight=\"bold\" className=\"reward-subtitle\" colorOverride=\"#252525\">\n {currentlyTrackText}\n </NsTypography>\n ) : (\n <NsTypography variant=\"body-s\" weight=\"bold\" className=\"reward-subtitle\" colorOverride=\"#252525\">\n {callToActionText}\n </NsTypography>\n )}\n <RewardProgressTotalButtonWithIcon>\n {notQualifyForRewardThisMonth ? (\n <>\n <IconContainer>\n <FaExclamationTriangle className=\"loyalty-warning-icon\" color=\"#4A6987\" />\n </IconContainer>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#293A4A\"\n noSpacing\n >\n {translationConfig.notQualify}\n </NsTypography>\n </>\n ) : (\n <>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n colorOverride=\"#252525\"\n className=\"reward-subtitle\"\n component=\"span\"\n noSpacing\n >\n {approximateMonthlyText}{' '}\n </NsTypography>\n &nbsp;\n <NsTypography weight=\"bold\" className=\"button-price\" variant=\"body-s\" component=\"span\">\n {`${amountShowText}`}\n </NsTypography>\n <IconContainer>\n <Tooltip\n slotProps={{\n tooltip: {\n sx: {\n color: '#FFFFFF',\n backgroundColor: '#252525',\n fontFamily: 'Inter',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n '& .MuiTooltip-arrow': {\n color: '#252525',\n },\n },\n },\n }}\n title={translationConfig.estimateDisclaimer}\n arrow\n placement=\"top\"\n open={open}\n onClose={() => setOpen(false)}\n >\n <span className=\"info-icon\">\n <IconButton onClick={handleTooltipToggle}>\n <Info />\n </IconButton>\n </span>\n </Tooltip>\n </IconContainer>\n </>\n )}\n </RewardProgressTotalButtonWithIcon>\n </RewardProgressTotalContainer>\n <StyledCard>\n <Learn3XLink onClick={handleOpenSubscriptionRewardPopup}>\n <u>{popupText}</u>\n </Learn3XLink>\n </StyledCard>\n </LoyaltyProgressSubContainer>\n );\n};\n\nexport default SubscriptionRewardMobile;\nexport { SubscriptionRewardMobile };\n","const IS_BROWSER = typeof window === 'object';\n\nclass ApplicationStore {\n width = IS_BROWSER ? window.innerWidth : 0;\n\n scroll = {\n vertical: IS_BROWSER ? window.scrollY : 0,\n horizontal: IS_BROWSER ? window.scrollX : 0,\n direction: 'none',\n };\n\n get isMobile() {\n return this.isPhone;\n }\n\n get isPhone() {\n return IS_BROWSER ? window.innerWidth < 768 : this.width < 768;\n }\n}\n\nconst applicationContainer = new ApplicationStore();\nexport { IS_BROWSER, ApplicationStore, applicationContainer, applicationContainer as application };\nexport default applicationContainer;\n","import { MonthlyData } from '../types';\n\nexport const calculateMonthCompletionValues = (\n data: MonthlyData | null | undefined,\n minAmount: number,\n maxAmount: number,\n minVoucher: number,\n maxVoucher: number,\n voucherValue: number,\n monthCompletionValue: number,\n maxMonths: number,\n today: Date,\n) => {\n if (data) {\n const sortedRecords = data?.csmMonthlySubsOrderTotal?.sort(\n (a: { year: number; month: number }, b: { year: number; month: number }) => {\n if (a.year === b.year) {\n return b.month - a.month;\n }\n return b.year - a.year;\n },\n );\n\n const hasCurrentMonthData = sortedRecords?.some(\n (record: { year: number; month: number }) =>\n record.month === today.getMonth() + 1 && record.year === today.getFullYear(),\n );\n const currentMonthData = sortedRecords?.filter((sub: { year: number; month: number }) => {\n return sub.month === today.getMonth() + 1 && sub.year === today.getFullYear();\n });\n const currentMonthTotalAmount =\n currentMonthData?.map((sub: { totalAmount: number }) => {\n return sub.totalAmount;\n })?.[0] ?? 0;\n const approxMonthTotal = parseInt(data?.approximateMonthlyTotalResponse?.currentMonthTotal ?? '0');\n let currentMonthEligibleAmount = 0;\n if (approxMonthTotal > maxAmount) {\n currentMonthEligibleAmount = maxAmount;\n } else {\n currentMonthEligibleAmount = minAmount;\n }\n const isCurrentMonthEligible = currentMonthData?.some(\n (sub: { totalAmount: number }) => sub.totalAmount >= currentMonthEligibleAmount,\n );\n const threeMonthsAgo =\n hasCurrentMonthData && isCurrentMonthEligible\n ? new Date(today.getFullYear(), today.getMonth() - (maxMonths - 1), 1)\n : new Date(today.getFullYear(), today.getMonth() - maxMonths, 1);\n let threeMonthsRecords = sortedRecords?.filter((sub: { year: number; month: number }) => {\n const subDate = new Date(sub.year, sub.month - 1);\n return subDate >= threeMonthsAgo;\n });\n threeMonthsRecords = threeMonthsRecords?.filter((sub: { promocode: string | null }) => {\n return sub.promocode === null || sub.promocode === undefined || sub.promocode === '';\n });\n if (!isCurrentMonthEligible) {\n threeMonthsRecords = threeMonthsRecords?.filter((sub: { year: number; month: number }) => {\n return !(sub.month === today.getMonth() + 1 && sub.year === today.getFullYear());\n });\n }\n const lastThreeMonths = threeMonthsRecords?.slice(0, maxMonths);\n const allMonthsAboveMaxAmount = lastThreeMonths?.every(\n (sub: { totalAmount: number }) => sub.totalAmount >= maxAmount,\n );\n\n const promoCodes = lastThreeMonths?.map((sub: { promocode: string | null }) => sub?.promocode);\n const isValid = !promoCodes?.some((code: string | null) => code === undefined);\n // Ensure you have at least two promo codes to compare.\n const allSamePromoCode = !isValid ? promoCodes?.every((code: string | null) => code === promoCodes[0]) : false;\n const todayMonth = isCurrentMonthEligible ? today.getMonth() : today.getMonth() - 1;\n let tier = 2;\n\n if (lastThreeMonths != undefined && promoCodes != undefined) {\n for (let i = 0; i < lastThreeMonths?.length; i++) {\n const currentMonthData = lastThreeMonths[i];\n\n const totalAmount = currentMonthData?.totalAmount;\n const todayYear = today.getFullYear();\n\n if (\n lastThreeMonths[i]?.month &&\n lastThreeMonths[i]?.month !== new Date(todayYear, todayMonth - i).getMonth() + 1\n ) {\n return { monthCompletionValue, voucherValue };\n }\n\n if (\n allSamePromoCode &&\n (promoCodes[i] !== undefined || promoCodes[i] !== '' || promoCodes[i] !== null)\n ) {\n return { monthCompletionValue: 0, voucherValue };\n } else {\n if (\n totalAmount >= minAmount &&\n (!promoCodes[i] ||\n promoCodes[i] === undefined ||\n promoCodes[i] === '' ||\n promoCodes[i] === null)\n ) {\n monthCompletionValue = monthCompletionValue + 1;\n if (allMonthsAboveMaxAmount) {\n voucherValue = maxVoucher;\n } else {\n if (tier === 2 && totalAmount >= maxAmount) {\n voucherValue = maxVoucher;\n } else {\n voucherValue = minVoucher;\n tier = 1;\n }\n }\n } else {\n if (totalAmount < minAmount) {\n return { monthCompletionValue, voucherValue };\n }\n }\n }\n }\n }\n if ((!hasCurrentMonthData || !isCurrentMonthEligible) && voucherValue !== minVoucher) {\n if (approxMonthTotal >= maxAmount) {\n voucherValue = maxVoucher;\n } else {\n voucherValue = minVoucher;\n }\n }\n if (\n !isCurrentMonthEligible &&\n voucherValue === minVoucher &&\n monthCompletionValue < maxMonths &&\n currentMonthTotalAmount >= minAmount\n ) {\n monthCompletionValue = monthCompletionValue + 1;\n }\n }\n\n return { monthCompletionValue, voucherValue };\n};\n"]}
1
+ {"version":3,"sources":["/gitlab-runner-data/builds/nextgen-development/loyalty/npm/react-loyalty-elements/dist/CircularProgressBar/index.mjs","../../src/CircularProgressBar/SubscriptionReward.tsx","../../src/CircularProgressBar/RewardProgressBar.tsx","../../src/CircularProgressBar/CircularProgressBar.styled.tsx","../../src/CircularProgressBar/RadialSeparator.tsx","../../src/Icons/SubscriptionVoucherIcon.tsx","../../src/Icons/SubscriptionVoucherIconGrey.tsx","../../src/CircularProgressBar/RewardSubscriptionMonthDescription.tsx","../../src/Utils/helper.ts","../../src/CircularProgressBar/RewardSubscriptionTotal.tsx","../../src/Icons/Info.tsx","../../node_modules/@mui/material/colors/common.js","../../node_modules/@mui/material/colors/red.js","../../node_modules/@mui/material/colors/purple.js","../../node_modules/@mui/material/colors/blue.js","../../node_modules/@mui/material/colors/lightBlue.js","../../node_modules/@mui/material/colors/green.js","../../node_modules/@mui/material/colors/orange.js","../../node_modules/@mui/material/colors/grey.js","../../node_modules/@mui/utils/esm/deepmerge.js","../../node_modules/@mui/utils/esm/formatMuiErrorMessage.js","../../node_modules/@mui/utils/esm/capitalize/capitalize.js","../../node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","../../node_modules/@mui/utils/esm/setRef.js","../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","../../node_modules/@mui/utils/esm/useId/useId.js","../../node_modules/@mui/utils/esm/useControlled/useControlled.js","../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../../node_modules/@mui/utils/esm/useIsFocusVisible.js","../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../../node_modules/@mui/material/styles/identifier.js","../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../../node_modules/@mui/styled-engine/index.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../node_modules/@mui/system/esm/createTheme/shape.js","../../node_modules/@mui/system/esm/merge.js","../../node_modules/@mui/system/esm/breakpoints.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js","../../node_modules/@mui/system/esm/style.js","../../node_modules/@mui/system/esm/memoize.js","../../node_modules/@mui/system/esm/spacing.js","../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../node_modules/@mui/system/esm/compose.js","../../node_modules/@mui/system/esm/borders.js","../../node_modules/@mui/system/esm/cssGrid.js","../../node_modules/@mui/system/esm/palette.js","../../node_modules/@mui/system/esm/sizing.js","../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../node_modules/@mui/system/esm/useTheme.js","../../node_modules/clsx/dist/clsx.mjs","../../node_modules/@mui/system/esm/createStyled.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js","../../node_modules/@mui/system/esm/colorManipulator.js","../../node_modules/@mui/material/styles/createMixins.js","../../node_modules/@mui/material/styles/createPalette.js","../../node_modules/@mui/material/styles/createTypography.js","../../node_modules/@mui/material/styles/shadows.js","../../node_modules/@mui/material/styles/createTransitions.js","../../node_modules/@mui/material/styles/zIndex.js","../../node_modules/@mui/material/styles/createTheme.js","../../node_modules/@mui/material/styles/useTheme.js","../../node_modules/@mui/material/styles/defaultTheme.js","../../node_modules/@mui/material/styles/useThemeProps.js","../../node_modules/@mui/material/styles/styled.js","../../node_modules/@mui/material/utils/capitalize.js","../../node_modules/@mui/material/utils/useId.js","../../node_modules/@mui/material/utils/useControlled.js","../../node_modules/@mui/material/utils/useEventCallback.js","../../node_modules/@mui/material/utils/useForkRef.js","../../node_modules/@mui/material/utils/useIsFocusVisible.js","../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../node_modules/react-transition-group/esm/Transition.js","../../node_modules/react-transition-group/esm/config.js","../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../node_modules/react-transition-group/esm/utils/reflow.js","../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../node_modules/react-transition-group/esm/TransitionGroup.js","../../node_modules/react-transition-group/esm/utils/ChildMapping.js","../../node_modules/@mui/material/transitions/utils.js","../../node_modules/@mui/material/ButtonBase/ButtonBase.js","../../node_modules/@mui/material/ButtonBase/TouchRipple.js","../../node_modules/@mui/material/ButtonBase/Ripple.js","../../node_modules/@mui/material/ButtonBase/touchRippleClasses.js","../../node_modules/@mui/material/ButtonBase/buttonBaseClasses.js","../../node_modules/@mui/material/IconButton/IconButton.js","../../node_modules/@mui/material/IconButton/iconButtonClasses.js","../../node_modules/@mui/base/utils/isHostComponent.js","../../node_modules/@mui/base/utils/appendOwnerState.js","../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../node_modules/@mui/base/utils/extractEventHandlers.js","../../node_modules/@mui/base/utils/resolveComponentProps.js","../../node_modules/@mui/base/utils/omitEventHandlers.js","../../node_modules/@mui/base/utils/mergeSlotProps.js","../../node_modules/@mui/base/utils/useSlotProps.js","../../node_modules/@mui/base/Popper/Popper.js","../../node_modules/@popperjs/core/lib/enums.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../node_modules/@popperjs/core/lib/utils/math.js","../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../node_modules/@popperjs/core/lib/utils/within.js","../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../node_modules/@popperjs/core/lib/utils/debounce.js","../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../node_modules/@popperjs/core/lib/createPopper.js","../../node_modules/@popperjs/core/lib/popper.js","../../node_modules/@mui/base/Portal/Portal.js","../../node_modules/@mui/base/Popper/popperClasses.js","../../node_modules/@mui/material/Popper/Popper.js","../../node_modules/@mui/material/Grow/Grow.js","../../node_modules/@mui/material/Tooltip/Tooltip.js","../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../src/CircularProgressBar/SubscriptionRewardMobile.tsx","../../src/Utils/application/application.ts","../../src/CircularProgressBar/logic/calculateMonthCompletionValues.ts"],"names":["a","d","b","en","c","to","Te","e","Ta","useState","React","CircularProgressbarWithChildren","buildStyles","RewardProgressBarContainer","newStyled","div","LoyaltyProgressSubContainer","StyledCard","Learn3XLink","ProgressBarCenter","RewardProgressTotalContainer","RewardProgressTotalButtonWithIcon","IconContainer","span","SeparatorCard","SeparatorInnerCard","TooltipStyles","tooltip","sx","color","backgroundColor","fontFamily","fontWeight","fontSize","lineHeight","jsx","Separator","props","style","transform","turns","children","RadialSeparators","count","separatorNumber","Array","from","length","_","index","map","turn","RadialSeparator_default","FaExclamationTriangle","jsxs","SubscriptionVoucherIcon","width","height","viewBox","fill","xmlns","SubscriptionVoucherIcon_default","SubscriptionVoucherIconGrey","SubscriptionVoucherIconGrey_default","replacePlaceholders","template","values","Object","keys","reduce","result","key","value","replace","RegExp","String","RewardSubscriptionMonthDescription","render","voucherValue","maxMonths","handleOpenSubscriptionRewardPopup","notQualifyForRewardThisMonth","translationConfig","voucherTargetAmount","monthsComplete","voucherEarned","learnMore","learn3xMore","callToAction","notQualify","approximateMonthly","approximateTotal","currentlyTrack","loyaltyLogoBlack","learnMoreConfig","tagLine","cardOneDescription","cardOneVoucherAmount","cardTwoDescription","cardTwoVoucherAmount","header","loyaltyLogoWhite","loyaltyBanner","currencyAbbreviate","currencyFormat","popupText","monthsCompleteText","completed_months","total_months","voucherEarnedText","className","src","alt","id","onClick","Component","RewardSubscriptionMonthDescription_default","NsTypography","RewardProgressBar","currency_symbol","voucher_amount","strokeWidth","background","styles","rotation","strokeLinecap","pathColor","trailColor","component","variant","weight","RewardProgressBar_default","Info","fillRule","clipRule","x1","y1","x2","y2","stroke","Info_default","common","black","white","common_default","red","A100","A200","A400","A700","red_default","purple","purple_default","blue","blue_default","lightBlue","lightBlue_default","green","green_default","orange","orange_default","grey","grey_default","isPlainObject","item","constructor","deepClone","source","output","forEach","deepmerge","target","options","clone","_extends","formatMuiErrorMessage","code","url","i","arguments","encodeURIComponent","capitalize","string","Error","charAt","toUpperCase","slice","ownerDocument","node","document","setRef","ref","current","useEnhancedEffect","window","cr","useLayoutEffect","useEffect","useEnhancedEffect_default","globalId","useGlobalId","idOverride","uo","defaultId","setDefaultId","maybeReactUseId","useId","reactId","useControlled","controlled","default","defaultProp","name","state","_t","useRef","isControlled","valueState","setValue","setValueIfUncontrolled","useCallback","newValue","useEventCallback","fn","sn","args","useEventCallback_default","useForkRef","refs","ka","useMemo","every","instance","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","text","search","tel","email","password","number","date","month","week","time","datetime","focusTriggersKeyboardModality","type","tagName","readOnly","isContentEditable","handleKeyDown","event","metaKey","altKey","ctrlKey","handlePointerDown","handleVisibilityChange","visibilityState","prepare","doc","addEventListener","isFocusVisible","matches","useIsFocusVisible","dr","isFocusVisibleRef","handleBlurVisible","clearTimeout","setTimeout","handleFocusVisible","onFocus","onBlur","composeClasses","slots","getUtilityClass","classes","slot","acc","utilityClass","push","join","defaultGenerator","componentName","createClassNameGenerator","generate","configure","generator","reset","ClassNameGenerator","ClassNameGenerator_default","globalStateClassesMapping","active","checked","completed","disabled","error","expanded","focused","focusVisible","open","required","selected","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","identifier_default","_objectWithoutPropertiesLoose","r","t","n","hasOwnProperty","call","indexOf","styled","tag","internal_processStyles","processor","isArray","__emotion_styles","prototype","getPrototypeOf","Symbol","toStringTag","iterator","cn","isValidElement","_excluded","sortBreakpointsValues","breakpointsAsArray","val","sort","breakpoint1","breakpoint2","obj","createBreakpoints","breakpoints","xs","sm","md","lg","xl","unit","step","other","sortedValues","up","down","between","start","end","endIndex","only","not","keyIndex","shape","borderRadius","shape_default","merge","merge_default","defaultBreakpoints","handleBreakpoints","propValue","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","vars","split","getStyleValue","themeMapping","propValueFinal","userValue","prop","cssProperty","themeKey","propTypes","filterProps","style_default","memoize","cache","arg","properties","m","p","directions","l","x","y","aliases","marginX","marginY","paddingX","paddingY","getCssProperties","property","direction","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","defaultValue","propName","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","Math","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","spacing","createSpacing","spacingInput","mui","argsInput","argument","compose","handlers","concat","compose_default","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borders","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","grid","paletteTransform","bgcolor","palette","sizingTransform","maxWidth","_props$theme","_props$theme2","minWidth","maxHeight","minHeight","sizeWidth","sizeHeight","boxSizing","sizing","defaultSxConfig","pt","pr","pb","pl","px","py","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd","mt","mr","mb","ml","mx","my","marginTop","marginRight","marginBottom","marginLeft","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","displayPrint","display","overflow","textOverflow","visibility","whiteSpace","flexBasis","flexDirection","flexWrap","justifyContent","alignItems","alignContent","order","flex","flexGrow","flexShrink","alignSelf","justifyItems","justifySelf","position","zIndex","top","right","bottom","left","boxShadow","fontStyle","letterSpacing","textTransform","textAlign","typography","defaultSxConfig_default","objectsHaveSameKeys","objects","allKeys","object","union","Set","size","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","unstable_sxConfig","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","css","styleKey","breakpointsValues","styleFunctionSx_default","applyStyles","getColorSchemeSelector","mode","createTheme","paletteInput","shapeInput","muiTheme","components","unstable_sx","createTheme_default","isObjectEmpty","useTheme","defaultTheme","contextTheme","Ka","useContext","ThemeContext","useThemeWithoutDefault_default","systemDefaultTheme","useTheme_default","f","o","clsx","clsx_default","_excluded2","_excluded3","isEmpty","isStringTag","charCodeAt","shouldForwardProp","lowercaseFirstLetter","toLowerCase","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","_ref","ownerState","resolvedStylesArg","flatMap","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","__mui_systemSx","inputOptions","filter","componentSlot","skipVariantsResolver","inputSkipVariantsResolver","skipSx","inputSkipSx","overridesResolver","label","shouldForwardPropOption","defaultStyledResolver","transformStyleArg","stylesArg","__emotion_real","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","entries","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","raw","muiName","withConfig","resolveProps","defaultProps","toString","match","defaultSlotProps","slotProps","slotPropName","getThemeProps","params","useThemeProps","clamp","min","Number","MIN_SAFE_INTEGER","max","MAX_SAFE_INTEGER","clamp_default","clampWrapper","hexToRgb","re","colors","parseInt","round","decomposeColor","marker","substring","colorSpace","shift","parseFloat","recomposeColor","hslToRgb","h","s","k","rgb","getLuminance","toFixed","getContrastRatio","foreground","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","toolbar","light","primary","secondary","divider","paper","action","hover","hoverOpacity","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity","dark","icon","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","main","getDefaultPrimary","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","contrastThreshold","info","success","warning","getContrastText","augmentColor","mainShade","lightShade","darkShade","JSON","stringify","contrastText","modes","caseAllCaps","defaultFontFamily","createTypography","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem","pxToRem2","coef","buildVariant","casing","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline","inherit","createShadow","shadows","shadows_default","easing","easeInOut","easeOut","easeIn","sharp","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","create","durationOption","easingOption","delay","animatedProp","mobileStepper","fab","speedDial","appBar","drawer","modal","snackbar","zIndex_default","mixinsInput","transitionsInput","transitions","typographyInput","systemTheme","defaultTheme_default","styled_default","capitalize_default","useId_default","useControlled_default","useForkRef_default","useIsFocusVisible_default","_setPrototypeOf","setPrototypeOf","bind","__proto__","_inheritsLoose","ReactDOM","config_default","TransitionGroupContext_default","createContext","forceReflow","scrollTop","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","parentGroup","appear","isMounting","enter","initialStatus","appearStatus","in","unmountOnExit","mountOnEnter","status","nextCallback","getDerivedStateFromProps","prevState","nextIn","_proto","componentDidMount","updateStatus","componentDidUpdate","prevProps","nextStatus","componentWillUnmount","cancelNextCallback","getTimeouts","timeout","exit","mounting","nodeRef","findDOMNode","performEnter","performExit","setState","_this2","appearing","_ref2","maybeNode","maybeAppearing","timeouts","enterTimeout","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","_this3","onExited","onExit","onExiting","cancel","nextState","callback","setNextCallback","_this4","handler","doesNotHaveTimeoutOrListener","addEndListener","_ref3","maybeNextCallback","_this$props","_in","_mountOnEnter","_unmountOnExit","_appear","_enter","_exit","_timeout","_addEndListener","_onEnter","_onEntering","_onEntered","_onExit","_onExiting","_onExited","_nodeRef","childProps","createElement","Provider","cloneElement","Children","contextType","noop","Transition_default","_assertThisInitialized","ReferenceError","getChildMapping","mapFn","mapper","child","mergeChildMappings","prev","next","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","getProp","getInitialChildMapping","getNextChildMapping","nextProps","prevChildMapping","nextChildMapping","hasPrev","hasNext","prevChild","isLeaving","childFactory","TransitionGroup","handleExited","contextValue","firstRender","mounted","currentChildMapping","TransitionGroup_default","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","transitionDuration","transitionTimingFunction","transitionDelay","_jsx","Ripple","pulsate","rippleX","rippleY","rippleSize","inProp","kr","leaving","setLeaving","rippleClassName","ripple","rippleVisible","ripplePulsate","rippleStyles","childClassName","childLeaving","childPulsate","timeoutId","Ripple_default","touchRippleClasses","touchRippleClasses_default","_t2","_t3","_t4","DURATION","DELAY_RIPPLE","enterKeyframe","keyframes","exitKeyframe","pulsateKeyframe","TouchRippleRoot","pointerEvents","TouchRippleRipple","TouchRipple","q","forwardRef","inProps","centerProp","center","ripples","setRipples","rippleCallback","ignoringMouseDown","startTimer","startTimerCommit","container","startCommit","cb","oldRipples","fakeElement","element","rect","getBoundingClientRect","clientX","clientY","touches","sqrt","sizeX","clientWidth","sizeY","clientHeight","stop","useImperativeHandle","root","TouchRipple_default","getButtonBaseUtilityClass","buttonBaseClasses","buttonBaseClasses_default","_jsxs","useUtilityClasses","focusVisibleClassName","composedClasses","ButtonBaseRoot","WebkitTapHighlightColor","cursor","userSelect","verticalAlign","MozAppearance","WebkitAppearance","textDecoration","borderStyle","colorAdjust","ButtonBase","ye","centerRipple","disableRipple","disableTouchRipple","focusRipple","LinkComponent","onContextMenu","onDragLeave","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","buttonRef","rippleRef","handleRippleRef","focusVisibleRef","setFocusVisible","mountedState","setMountedState","enableTouchRipple","useRippleHandler","rippleAction","eventCallback","skipRippleAction","handleMouseDown","handleContextMenu","handleDragLeave","handleMouseUp","handleMouseLeave","preventDefault","handleTouchStart","handleTouchEnd","handleTouchMove","handleBlur","handleFocus","currentTarget","isNonNativeButton","href","keydownRef","handleKeyUp","defaultPrevented","ComponentProp","buttonProps","role","handleRef","as","ButtonBase_default","getIconButtonUtilityClass","iconButtonClasses","iconButtonClasses_default","edge","IconButtonRoot","transition","activeChannel","_palette","mainChannel","IconButton","Lr","disableFocusRipple","IconButton_default","isHostComponent","appendOwnerState","elementType","otherProps","defaultContextValue","disableDefaultClasses","ClassNameConfiguratorContext","Yo","useClassNamesOverride","extractEventHandlers","excludeKeys","includes","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","internalRef","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","nodeName","getWindow","defaultView","isElement","OwnElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","elements","attributes","assign","removeAttribute","setAttribute","effect","initialStyles","strategy","arrow","styleProperties","attribute","applyStyles_default","enabled","phase","requires","getBasePlacement","getUAString","uaData","navigator","userAgentData","brands","brand","version","userAgent","isLayoutViewport","test","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","offsetWidth","offsetHeight","visualViewport","addVisualOffsets","offsetLeft","offsetTop","getLayoutRect","contains","parent","rootNode","getRootNode","isSameNode","parentNode","host","getComputedStyle","isTableElement","getDocumentElement","documentElement","getParentNode","assignedSlot","getTrueOffsetParent","offsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","perspective","contain","willChange","getOffsetParent","getMainAxisFromPlacement","within","withinMaxClamp","v","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","rects","_state$modifiersData$","arrowElement","popperOffsets","modifiersData","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","offset","axisProp","centerOffset","_options$element","querySelector","arrow_default","requiresIfExists","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","devicePixelRatio","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles_default","data","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","update","removeEventListener","eventListeners_default","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","pageXOffset","pageYOffset","getWindowScrollBarX","getViewportRect","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","scrollWidth","scrollHeight","isScrollParent","_getComputedStyle","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","getInnerBoundingClientRect","clientTop","clientLeft","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","contextElement","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","referenceRect","checksMap","Map","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","set","numberOfChecks","_loop","_i","fittingPlacement","find","get","_ret","flip_default","getSideOffsets","preventedOffsets","isAnySideFullyClipped","some","side","hide","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide_default","distanceAndSkiddingToXY","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset_default","popperOffsets_default","getAltAxis","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow_default","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","modifiers","visited","modifier","add","dep","has","depModifier","orderModifiers","orderedModifiers","debounce","pending","Promise","resolve","then","mergeByName","merged","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","cleanupModifierEffects","runModifierEffects","forceUpdate","_state$elements","_state$orderedModifie","_state$orderedModifie2","destroy","onFirstUpdate","_ref$options","cleanupFn","noopFn","createPopper","getContainer","Portal","Ie","forwardedRef","disablePortal","mountNode","setMountNode","Fragment","Qs","createPortal","getPopperUtilityClass","popperClasses","flipPlacement","resolveAnchorEl","anchorEl","nodeType","defaultPopperOptions","PopperTooltip","pe","_slots$root","initialPlacement","popperOptions","popperRef","popperRefProp","TransitionProps","tooltipRef","ownRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","popperModifiers","Root","rootProps","Popper","containerProp","keepMounted","exited","setExited","handleEnter","resolvedAnchorEl","transitionProps","PopperRoot","ei","componentsProps","RootComponent","Popper_default","getScale","entering","opacity","entered","isWebKit154","Grow","Ze","TransitionComponent","timer","autoTimeout","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","handleEntered","handleExiting","handleExit","handleAddEndListener","muiSupportAuto","Grow_default","getTooltipUtilityClass","tooltipClasses","tooltipClasses_default","disableInteractive","touch","TooltipPopper","popperInteractive","popperArrow","popperClose","transformOrigin","isRtl","TooltipTooltip","tooltipArrow","Tooltip","bg","wordWrap","TooltipArrow","content","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","$","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","openProp","PopperComponent","PopperComponentProp","PopperProps","title","TransitionComponentProp","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","prevUserSelect","stopTouchInteraction","WebkitUserSelect","handleOpen","handleClose","handleLeave","setChildIsFocusVisible","detectTouchStart","childrenProps","handleMouseOver","nativeEvent","handleMouseMove","onMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","onMouseOver","_PopperProps$popperOp","tooltipModifiers","TooltipComponent","ArrowComponent","Arrow","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip_default","RewardSubscriptionTotal","storeConfig","amountShow","estimateDisclaimer","tiers","consecutive_months","min_spend","max_spend","promo_code","currentlyTrackText","approximateTotalText","projected_month_spend","minAmount","minAmountShow","callToActionText","approximateMonthlyText","estimated_running_subscription_spend","amountShowText","colorOverride","noSpacing","RewardSubscriptionTotal_default","resolvePopupText","minVoucher","maxVoucher","learnMoreText","translationLearnMore","renderCenterContent","isComplete","hasVoucherValue","renderInfoItem","renderTotalSummary","renderTotalButton","translationNotQualify","handleTooltipToggle","handleTooltipClose","SubscriptionRewardMobile","setOpen","formatCurrency","price","withoutDecimal","abbreviate","centerContent","infoItem","totalSummary","totalButton","SubscriptionRewardMobile_default","IS_BROWSER","ApplicationStore","innerWidth","vertical","scrollY","horizontal","scrollX","isMobile","isPhone","applicationContainer","sortRecordsByDateDesc","records","year","isSameMonthYear","record","getMonth","getFullYear","getCurrentMonthRecords","today","getCurrentMonthTotal","totalAmount","getApproxMonthTotal","approximateMonthlyTotalResponse","currentMonthTotal","getCurrentMonthEligibleAmount","approxMonthTotal","maxAmount","isMonthEligible","eligibleAmount","getWindowStartDate","includeCurrentMonth","Date","filterRecentRecords","windowStart","filterPromoFreeRecords","promocode","dropCurrentMonthIfIneligible","isCurrentMonthEligible","sliceRecentMonths","areAllPromoCodesSameWhenInvalid","promoCodes","expectedMonthForIndex","todayMonth","hasPromoValue","isPromoBlank","shouldStopForMonthMismatch","expectedMonth","shouldInvalidateForSamePromo","allSamePromoCode","promoCode","applyEligibleRecordUpdate","recordTotal","tier","monthCompletionValue","nextTier","allMonthsAboveMaxAmount","evaluateRecentRecords","meetsAmount","noPromo","calculateMonthCompletionValues","initialVoucherValue","initialMonthCompletionValue","lastMonths","sortedRecords","csmMonthlySubsOrderTotal","currentMonthRecords","hasCurrentMonthData","currentMonthTotalAmount","currentMonthEligibleAmount","recentRecords","promoFreeRecords","eligibleRecords","resolveInitialVoucherValue","SubscriptionReward","rewardData","subscriptionData","show","setShow","SubscriptionRewardModal","close","SubscriptionReward_default"],"mappings":"s/PAAA,OAAOA,KAAKC,CAAC,CAACC,KAAKC,CAAE,CAACC,KAAKC,CAAE,CAACJ,KAAKK,CAAE,CAACC,KAAKC,CAAE,KAAK,uBCAlD,QAAgBC,YAAAA,CAAAA,KAAgB,OCAhC,QAAOC,MAAW,OAClB,QAASC,mCAAAA,CAAAA,CAAiCC,eAAAA,CAAAA,KAAmB,4BCCtD,CAAA,IAAMC,EAA6BC,EAAOC,GAA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T,EACAA,QAAS,CACPzY,MAAOyY,EACT,EACA4D,WAAY,CACVrc,MAAOyY,EACT,EACA6D,aAAc,CACZtc,MAAOyY,EACT,EACA8D,cAAe,CACbvc,MAAOyY,EACT,EACA+D,YAAa,CACXxc,MAAOyY,EACT,EACAxB,SAAU,CACRjX,MAAOyY,EACT,EACAvB,SAAU,CACRlX,MAAOyY,EACT,EACAgE,cAAe,CACbzc,MAAOyY,EACT,EACAiE,mBAAoB,CAClB1c,MAAOyY,EACT,EACAkE,iBAAkB,CAChB3c,MAAOyY,EACT,EACAmE,aAAc,CACZ5c,MAAOyY,EACT,EACAoE,kBAAmB,CACjB7c,MAAOyY,EACT,EACAqE,gBAAiB,CACf9c,MAAOyY,EACT,EACAjC,EAAG,CACDxW,MAAOwY,EACT,EACAuE,GAAI,CACF/c,MAAOwY,EACT,EACAwE,GAAI,CACFhd,MAAOwY,EACT,EACAyE,GAAI,CACFjd,MAAOwY,EACT,EACA0E,GAAI,CACFld,MAAOwY,EACT,EACA2E,GAAI,CACFnd,MAAOwY,EACT,EACA4E,GAAI,CACFpd,MAAOwY,EACT,EACAA,OAAQ,CACNxY,MAAOwY,EACT,EACA6E,UAAW,CACTrd,MAAOwY,EACT,EACA8E,YAAa,CACXtd,MAAOwY,EACT,EACA+E,aAAc,CACZvd,MAAOwY,EACT,EACAgF,WAAY,CACVxd,MAAOwY,EACT,EACAzB,QAAS,CACP/W,MAAOwY,EACT,EACAxB,QAAS,CACPhX,MAAOwY,EACT,EACAiF,aAAc,CACZzd,MAAOwY,EACT,EACAkF,kBAAmB,CACjB1d,MAAOwY,EACT,EACAmF,gBAAiB,CACf3d,MAAOwY,EACT,EACAoF,YAAa,CACX5d,MAAOwY,EACT,EACAqF,iBAAkB,CAChB7d,MAAOwY,EACT,EACAsF,eAAgB,CACd9d,MAAOwY,EACT,EAEAuF,aAAc,CACZhI,YAAa,CAAA,EACb9V,UAAWiC,SAAAA,SAAU,CACnB,eAAgB,CACd8b,QAAS9b,CACX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AAOA,EACPnjD,aAAcA,EACdC,UAAWA,EACXC,kCAAmCikD,EACnCyB,YAAaA,EACbC,WAAYA,EACZ1lD,6BAA8BA,EAC9BC,kBAAmBA,EACnBY,gBAAiBA,EACjBS,kBAAA,CAAoBmkD,UAAAA,kBAAAA,EAAankD,kBAAA,CACjCC,eAAgBA,CAAAA,GAGpBlD,GAAAm9C,GAAA,CACIh+C,SAAA,CAAAN,GAACgG,GAAA,CACG3D,MAAOA,EACPyjD,MAAOA,EACPhjD,6BAA8BA,EAC9B2rD,qBAAsBA,EACtBlG,YAAaA,EACb3lD,UAAWA,EACXD,aAAcA,EACdE,kCAAmCikD,EACnC/jD,kBAAmBA,EACnBY,gBAAiBA,EACjBS,kBAAA,CAAoBmkD,UAAAA,kBAAAA,EAAankD,kBAAA,CACjCC,eAAgBA,CAAAA,GAEpBrE,GAAC0pD,GAAA,CACG5mD,6BAA8BA,EAC9BT,MAAOA,EACPM,aAAcA,EACdC,UAAWA,EACXkjD,MAAOA,EACP2I,qBAAsBA,EACtBlG,YAAaA,EACbxlD,kBAAmBA,EACnBY,gBAAiBA,EACjBd,kCAAmCikD,EACnC0B,WAAYA,EACZpkD,kBAAA,CAAoBmkD,UAAAA,kBAAAA,EAAankD,kBAAA,CACjCC,eAAgBA,CAAAA,GACpB,GAGRrE,GAACkwD,EAAA,CACGF,KAAMA,EACNG,MAAOpJ,EACPyB,WAAYA,EACZ7kD,gBAAiBA,EACjBZ,kBAAmBA,CAAAA,GACvB,EAGZ,EAEOqtD,GAAQP,UAAAA,MAAAA,kBAAAA,CD0Ff;;;;;;;;;;;;;;;;;;;AAmBA","sourcesContent":["import{a as d,b as en,c as to,d as Te,e as Ta}from\"../chunk-Z6ATMGBY.mjs\";import{useState as Hf}from\"react\";import ki from\"react\";import{CircularProgressbarWithChildren as Bi,buildStyles as Li}from\"react-circular-progressbar\";var Pa=Te.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n`,nr=Te.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n`,oo=Te.div`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n`,ar=Te.div`\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n`,ro=Te.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n`,sr=Te.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n`,ir=Te.div`\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n`,et=Te.span`\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n`,Ca=Te.div`\n position: absolute;\n height: 100%;\n`,wa=Te.div`\n background: #fff;\n width: 6px;\n height: 17%;\n`,Ea={tooltip:{sx:{color:\"#FFFFFF\",backgroundColor:\"#252525\",fontFamily:\"Inter\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",\"& .MuiTooltip-arrow\":{color:\"#252525\"}}}};import{jsx as tn}from\"react/jsx-runtime\";function Ei(e){return tn(Ca,{style:{transform:`rotate(${e.turns}turn)`},children:tn(wa,{})})}function Ri(e){let t=1/e.count,o=.5;return Array.from({length:e.count},(n,a)=>a*t+o).map(n=>tn(Ei,{turns:n},n))}var pr=Ri;import{FaExclamationTriangle as Di}from\"react-icons/fa\";import{jsx as no,jsxs as Si}from\"react/jsx-runtime\";function Oi(){return Si(\"svg\",{width:\"71\",height:\"42\",viewBox:\"0 0 71 42\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[no(\"path\",{d:\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\",fill:\"#405E50\"}),no(\"path\",{d:\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\",fill:\"#405E50\"}),no(\"path\",{d:\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\",fill:\"#405E50\"}),no(\"path\",{d:\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\",fill:\"#405E50\"}),no(\"path\",{d:\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\",fill:\"#405E50\"}),no(\"path\",{d:\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\",fill:\"#405E50\"})]})}var lr=Oi;import{jsx as ao,jsxs as _i}from\"react/jsx-runtime\";function Mi(){return _i(\"svg\",{width:\"71\",height:\"42\",viewBox:\"0 0 71 42\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[ao(\"path\",{d:\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\",fill:\"#B0B0B0\"}),ao(\"path\",{d:\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\",fill:\"#B0B0B0\"}),ao(\"path\",{d:\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\",fill:\"#B0B0B0\"}),ao(\"path\",{d:\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\",fill:\"#B0B0B0\"}),ao(\"path\",{d:\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\",fill:\"#B0B0B0\"}),ao(\"path\",{d:\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\",fill:\"#B0B0B0\"})]})}var ur=Mi;import Ni from\"react\";var Me=(e,t)=>Object.keys(t).reduce((o,r)=>{let n=t[r]??\"\";return o.replace(new RegExp(`%${r}%`,\"g\"),String(n))},e);import{jsx as ko,jsxs as Ai}from\"react/jsx-runtime\";var on=class extends Ni.Component{render(){let{value:t,voucherValue:o,maxMonths:r,handleOpenSubscriptionRewardPopup:n,notQualifyForRewardThisMonth:a,translationConfig:s={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\"},learnMoreConfig:p={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},currencyAbbreviate:i=!1,currencyFormat:l=()=>{}}=this.props,u=\"\";o===50&&!a?u=s.learn3xMore:o===150||a?u=p.learnMore:o==null&&(u=s.learnMore);let h=Me(s.monthsComplete,{completed_months:t,total_months:r}),x=l(o||0,!0,i),m=s.voucherEarned.replace(\"%currency_symbol%%currency_amount%\",`${x}`);return Ai(oo,{children:[ko(\"img\",{className:\"reward-logo\",src:s.loyaltyLogoBlack,alt:\"Rewards Logo\"}),t===r?ko(\"div\",{className:\"info-item\",children:m}):ko(\"div\",{className:\"info-item\",children:h}),ko(ar,{id:\"learnMore\",onClick:n,children:ko(\"u\",{children:u})})]})}},Ra=on;import{NsTypography as Oa}from\"@nuskin/foundation-ui-components\";import{jsx as Xe,jsxs as rn}from\"react/jsx-runtime\";var nn=class extends ki.Component{render(){let{value:t=0,voucherValue:o=0,maxMonths:r=0,handleOpenSubscriptionRewardPopup:n=()=>{},notQualifyForRewardThisMonth:a=!1,translationConfig:s={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\"},learnMoreConfig:p={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},currencyAbbreviate:i=!1,currencyFormat:l=()=>{}}=this.props,u=Me(s.voucherTargetAmount,{currency_symbol:\"\",voucher_amount:\"\"}),c=l(o||0,!0,i);return rn(nr,{children:[Xe(\"div\",{className:\"reward-progress\",children:rn(Bi,{value:t/r*100,strokeWidth:12,background:!0,styles:Li({rotation:.5,strokeLinecap:\"butt\",backgroundColor:t===r&&!a?\"rgb(195 240 194)\":\"#fff\",pathColor:\"#6BC56A\",trailColor:\"#E0E0E0\"}),children:[Xe(pr,{count:r}),t===r&&!a?Xe(lr,{}):a?Xe(et,{children:Xe(Di,{className:\"outline-exclamation-icon\",color:\"#91ACC8\"})}):o!=null||o!=null?rn(ro,{children:[Xe(Oa,{component:\"div\",className:\"center-value-progress-bar-price\",variant:\"title-l\",weight:\"bold\",children:`${c}`}),Xe(Oa,{variant:\"label-s\",weight:\"bold\",component:\"div\",className:\"center-value-progress-bar-voucher\",children:u})]}):Xe(ro,{children:Xe(ur,{})})]})}),Xe(Ra,{value:t,voucherValue:o,notQualifyForRewardThisMonth:a,handleOpenSubscriptionRewardPopup:n,maxMonths:r,translationConfig:s,learnMoreConfig:p,currencyAbbreviate:i,currencyFormat:l})]})}},Sa=nn;import hf from\"react\";import{FaExclamationTriangle as yf}from\"react-icons/fa\";import{NsTypography as Yt}from\"@nuskin/foundation-ui-components\";import{jsx as an,jsxs as ji}from\"react/jsx-runtime\";function Ii(){return ji(\"svg\",{width:\"19\",height:\"19\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[an(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z\",fill:\"#4A6987\"}),an(\"line\",{x1:\"10.1667\",y1:\"9.375\",x2:\"10.1667\",y2:\"14.7917\",stroke:\"#4A6987\",strokeWidth:\"2\"}),an(\"path\",{d:\"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z\",fill:\"#4A6987\"})]})}var fr=Ii;var Vi={black:\"#000\",white:\"#fff\"},so=Vi;var $i={50:\"#ffebee\",100:\"#ffcdd2\",200:\"#ef9a9a\",300:\"#e57373\",400:\"#ef5350\",500:\"#f44336\",600:\"#e53935\",700:\"#d32f2f\",800:\"#c62828\",900:\"#b71c1c\",A100:\"#ff8a80\",A200:\"#ff5252\",A400:\"#ff1744\",A700:\"#d50000\"},wt=$i;var Fi={50:\"#f3e5f5\",100:\"#e1bee7\",200:\"#ce93d8\",300:\"#ba68c8\",400:\"#ab47bc\",500:\"#9c27b0\",600:\"#8e24aa\",700:\"#7b1fa2\",800:\"#6a1b9a\",900:\"#4a148c\",A100:\"#ea80fc\",A200:\"#e040fb\",A400:\"#d500f9\",A700:\"#aa00ff\"},Et=Fi;var Ui={50:\"#e3f2fd\",100:\"#bbdefb\",200:\"#90caf9\",300:\"#64b5f6\",400:\"#42a5f5\",500:\"#2196f3\",600:\"#1e88e5\",700:\"#1976d2\",800:\"#1565c0\",900:\"#0d47a1\",A100:\"#82b1ff\",A200:\"#448aff\",A400:\"#2979ff\",A700:\"#2962ff\"},Rt=Ui;var Wi={50:\"#e1f5fe\",100:\"#b3e5fc\",200:\"#81d4fa\",300:\"#4fc3f7\",400:\"#29b6f6\",500:\"#03a9f4\",600:\"#039be5\",700:\"#0288d1\",800:\"#0277bd\",900:\"#01579b\",A100:\"#80d8ff\",A200:\"#40c4ff\",A400:\"#00b0ff\",A700:\"#0091ea\"},Ot=Wi;var zi={50:\"#e8f5e9\",100:\"#c8e6c9\",200:\"#a5d6a7\",300:\"#81c784\",400:\"#66bb6a\",500:\"#4caf50\",600:\"#43a047\",700:\"#388e3c\",800:\"#2e7d32\",900:\"#1b5e20\",A100:\"#b9f6ca\",A200:\"#69f0ae\",A400:\"#00e676\",A700:\"#00c853\"},St=zi;var Hi={50:\"#fff3e0\",100:\"#ffe0b2\",200:\"#ffcc80\",300:\"#ffb74d\",400:\"#ffa726\",500:\"#ff9800\",600:\"#fb8c00\",700:\"#f57c00\",800:\"#ef6c00\",900:\"#e65100\",A100:\"#ffd180\",A200:\"#ffab40\",A400:\"#ff9100\",A700:\"#ff6d00\"},io=Hi;var Gi={50:\"#fafafa\",100:\"#f5f5f5\",200:\"#eeeeee\",300:\"#e0e0e0\",400:\"#bdbdbd\",500:\"#9e9e9e\",600:\"#757575\",700:\"#616161\",800:\"#424242\",900:\"#212121\",A100:\"#f5f5f5\",A200:\"#eeeeee\",A400:\"#bdbdbd\",A700:\"#616161\"},Ma=Gi;function po(e){return e!==null&&typeof e==\"object\"&&e.constructor===Object}function _a(e){if(!po(e))return e;let t={};return Object.keys(e).forEach(o=>{t[o]=_a(e[o])}),t}function Fe(e,t,o={clone:!0}){let r=o.clone?d({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach(n=>{n!==\"__proto__\"&&(po(t[n])&&n in e&&po(e[n])?r[n]=Fe(e[n],t[n],o):o.clone?r[n]=po(t[n])?_a(t[n]):t[n]:r[n]=t[n])}),r}function tt(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let o=1;o<arguments.length;o+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[o]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}function Bo(e){if(typeof e!=\"string\")throw new Error(tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lo(e){return e&&e.ownerDocument||document}function Mt(e,t){typeof e==\"function\"?e(t):e&&(e.current=t)}import*as cr from\"react\";var Ki=typeof window<\"u\"?cr.useLayoutEffect:cr.useEffect,Ye=Ki;import*as uo from\"react\";var Na=0;function Xi(e){let[t,o]=uo.useState(e),r=e||t;return uo.useEffect(()=>{t==null&&(Na+=1,o(`mui-${Na}`))},[t]),r}var Aa=uo.useId;function Lo(e){if(Aa!==void 0){let t=Aa();return e??t}return Xi(e)}import*as _t from\"react\";function Do({controlled:e,default:t,name:o,state:r=\"value\"}){let{current:n}=_t.useRef(e!==void 0),[a,s]=_t.useState(t),p=n?e:a,i=_t.useCallback(l=>{n||s(l)},[]);return[p,i]}import*as sn from\"react\";function Yi(e){let t=sn.useRef(e);return Ye(()=>{t.current=e}),sn.useRef((...o)=>(0,t.current)(...o)).current}var mr=Yi;import*as ka from\"react\";function _e(...e){return ka.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(o=>{Mt(o,t)})},e)}import*as dr from\"react\";var hr=!0,ln=!1,Ba,qi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,\"datetime-local\":!0};function Zi(e){let{type:t,tagName:o}=e;return!!(o===\"INPUT\"&&qi[t]&&!e.readOnly||o===\"TEXTAREA\"&&!e.readOnly||e.isContentEditable)}function Qi(e){e.metaKey||e.altKey||e.ctrlKey||(hr=!0)}function pn(){hr=!1}function Ji(){this.visibilityState===\"hidden\"&&ln&&(hr=!0)}function ep(e){e.addEventListener(\"keydown\",Qi,!0),e.addEventListener(\"mousedown\",pn,!0),e.addEventListener(\"pointerdown\",pn,!0),e.addEventListener(\"touchstart\",pn,!0),e.addEventListener(\"visibilitychange\",Ji,!0)}function tp(e){let{target:t}=e;try{return t.matches(\":focus-visible\")}catch{}return hr||Zi(t)}function yr(){let e=dr.useCallback(n=>{n!=null&&ep(n.ownerDocument)},[]),t=dr.useRef(!1);function o(){return t.current?(ln=!0,window.clearTimeout(Ba),Ba=window.setTimeout(()=>{ln=!1},100),t.current=!1,!0):!1}function r(n){return tp(n)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:o,ref:e}}function Ne(e,t,o=void 0){let r={};return Object.keys(e).forEach(n=>{r[n]=e[n].reduce((a,s)=>{if(s){let p=t(s);p!==\"\"&&a.push(p),o&&o[s]&&a.push(o[s])}return a},[]).join(\" \")}),r}var La=e=>e,op=()=>{let e=La;return{configure(t){e=t},generate(t){return e(t)},reset(){e=La}}},rp=op(),un=rp;var np={active:\"active\",checked:\"checked\",completed:\"completed\",disabled:\"disabled\",error:\"error\",expanded:\"expanded\",focused:\"focused\",focusVisible:\"focusVisible\",open:\"open\",readOnly:\"readOnly\",required:\"required\",selected:\"selected\"};function ue(e,t,o=\"Mui\"){let r=np[t];return r?`${o}-${r}`:`${un.generate(e)}-${t}`}function me(e,t,o=\"Mui\"){let r={};return t.forEach(n=>{r[n]=ue(e,n,o)}),r}var fo=\"$$material\";function L(e,t){if(e==null)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;o[r]=e[r]}return o}function Nt(e){let t=\"https://mui.com/production-error/?code=\"+e;for(let o=1;o<arguments.length;o+=1)t+=\"&args[]=\"+encodeURIComponent(arguments[o]);return\"Minified MUI error #\"+e+\"; visit \"+t+\" for the full message.\"}function fn(e,t){return Te(e,t)}var Da=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};import*as cn from\"react\";function mt(e){if(typeof e!=\"object\"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ia(e){if(cn.isValidElement(e)||!mt(e))return e;let t={};return Object.keys(e).forEach(o=>{t[o]=Ia(e[o])}),t}function dt(e,t,o={clone:!0}){let r=o.clone?d({},e):e;return mt(e)&&mt(t)&&Object.keys(t).forEach(n=>{cn.isValidElement(t[n])?r[n]=t[n]:mt(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&mt(e[n])?r[n]=dt(e[n],t[n],o):o.clone?r[n]=mt(t[n])?Ia(t[n]):t[n]:r[n]=t[n]}),r}var sp=[\"values\",\"unit\",\"step\"];var ip=e=>{let t=Object.keys(e).map(o=>({key:o,val:e[o]}))||[];return t.sort((o,r)=>o.val-r.val),t.reduce((o,r)=>d({},o,{[r.key]:r.val}),{})};function mn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o=\"px\",step:r=5}=e,n=L(e,sp),a=ip(t),s=Object.keys(a);function p(f){return`@media (min-width:${typeof t[f]==\"number\"?t[f]:f}${o})`}function i(f){return`@media (max-width:${(typeof t[f]==\"number\"?t[f]:f)-r/100}${o})`}function l(f,h){let x=s.indexOf(h);return`@media (min-width:${typeof t[f]==\"number\"?t[f]:f}${o}) and (max-width:${(x!==-1&&typeof t[s[x]]==\"number\"?t[s[x]]:h)-r/100}${o})`}function u(f){return s.indexOf(f)+1<s.length?l(f,s[s.indexOf(f)+1]):p(f)}function c(f){let h=s.indexOf(f);return h===0?p(s[1]):h===s.length-1?i(s[h]):l(f,s[s.indexOf(f)+1]).replace(\"@media\",\"@media not all and\")}return d({keys:s,values:a,up:p,down:i,between:l,only:u,not:c,unit:o},n)}var pp={borderRadius:4},ja=pp;function lp(e,t){return t?dt(e,t,{clone:!1}):e}var ht=lp;var xr={xs:0,sm:600,md:900,lg:1200,xl:1536},Va={keys:[\"xs\",\"sm\",\"md\",\"lg\",\"xl\"],up:e=>`@media (min-width:${xr[e]}px)`};function fe(e,t,o){let r=e.theme||{};if(Array.isArray(t)){let a=r.breakpoints||Va;return t.reduce((s,p,i)=>(s[a.up(a.keys[i])]=o(t[i]),s),{})}if(typeof t==\"object\"){let a=r.breakpoints||Va;return Object.keys(t).reduce((s,p)=>{if(Object.keys(a.values||xr).indexOf(p)!==-1){let i=a.up(p);s[i]=o(t[p],p)}else{let i=p;s[i]=t[i]}return s},{})}return o(t)}function $a(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,n)=>{let a=e.up(n);return r[a]={},r},{}))||{}}function Fa(e,t){return e.reduce((o,r)=>{let n=o[r];return(!n||Object.keys(n).length===0)&&delete o[r],o},t)}function co(e){if(typeof e!=\"string\")throw new Error(Nt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mo(e,t,o=!0){if(!t||typeof t!=\"string\")return null;if(e&&e.vars&&o){let r=`vars.${t}`.split(\".\").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(r!=null)return r}return t.split(\".\").reduce((r,n)=>r&&r[n]!=null?r[n]:null,e)}function Io(e,t,o,r=o){let n;return typeof e==\"function\"?n=e(o):Array.isArray(e)?n=e[o]||r:n=mo(e,o)||r,t&&(n=t(n,r,e)),n}function up(e){let{prop:t,cssProperty:o=e.prop,themeKey:r,transform:n}=e,a=s=>{if(s[t]==null)return null;let p=s[t],i=s.theme,l=mo(i,r)||{};return fe(s,p,c=>{let f=Io(l,n,c);return c===f&&typeof c==\"string\"&&(f=Io(l,n,`${t}${c===\"default\"?\"\":co(c)}`,c)),o===!1?f:{[o]:f}})};return a.propTypes={},a.filterProps=[t],a}var U=up;function dn(e){let t={};return o=>(t[o]===void 0&&(t[o]=e(o)),t[o])}var fp={m:\"margin\",p:\"padding\"},cp={t:\"Top\",r:\"Right\",b:\"Bottom\",l:\"Left\",x:[\"Left\",\"Right\"],y:[\"Top\",\"Bottom\"]},Ua={marginX:\"mx\",marginY:\"my\",paddingX:\"px\",paddingY:\"py\"},mp=dn(e=>{if(e.length>2)if(Ua[e])e=Ua[e];else return[e];let[t,o]=e.split(\"\"),r=fp[t],n=cp[o]||\"\";return Array.isArray(n)?n.map(a=>r+a):[r+n]}),hn=[\"m\",\"mt\",\"mr\",\"mb\",\"ml\",\"mx\",\"my\",\"margin\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\",\"marginX\",\"marginY\",\"marginInline\",\"marginInlineStart\",\"marginInlineEnd\",\"marginBlock\",\"marginBlockStart\",\"marginBlockEnd\"],yn=[\"p\",\"pt\",\"pr\",\"pb\",\"pl\",\"px\",\"py\",\"padding\",\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",\"paddingX\",\"paddingY\",\"paddingInline\",\"paddingInlineStart\",\"paddingInlineEnd\",\"paddingBlock\",\"paddingBlockStart\",\"paddingBlockEnd\"],Wa=[...hn,...yn];function At(e,t,o,r){var n;let a=(n=mo(e,t,!1))!=null?n:o;return typeof a==\"number\"?s=>typeof s==\"string\"?s:a*s:Array.isArray(a)?s=>typeof s==\"string\"?s:a[s]:typeof a==\"function\"?a:()=>{}}function xn(e){return At(e,\"spacing\",8,\"spacing\")}function kt(e,t){if(typeof t==\"string\"||t==null)return t;let o=Math.abs(t),r=e(o);return t>=0?r:typeof r==\"number\"?-r:`-${r}`}function dp(e,t){return o=>e.reduce((r,n)=>(r[n]=kt(t,o),r),{})}function hp(e,t,o,r){if(t.indexOf(o)===-1)return null;let n=mp(o),a=dp(n,r),s=e[o];return fe(e,s,a)}function gn(e,t){let o=xn(e.theme);return Object.keys(e).map(r=>hp(e,t,r,o)).reduce(ht,{})}function H(e){return gn(e,hn)}H.propTypes={};H.filterProps=hn;function G(e){return gn(e,yn)}G.propTypes={};G.filterProps=yn;function za(e){return gn(e,Wa)}za.propTypes={};za.filterProps=Wa;function bn(e=8){if(e.mui)return e;let t=xn({spacing:e}),o=(...r)=>(r.length===0?[1]:r).map(a=>{let s=t(a);return typeof s==\"number\"?`${s}px`:s}).join(\" \");return o.mui=!0,o}function yp(...e){let t=e.reduce((r,n)=>(n.filterProps.forEach(a=>{r[a]=n}),r),{}),o=r=>Object.keys(r).reduce((n,a)=>t[a]?ht(n,t[a](r)):n,{});return o.propTypes={},o.filterProps=e.reduce((r,n)=>r.concat(n.filterProps),[]),o}var yt=yp;function Pe(e){return typeof e!=\"number\"?e:`${e}px solid`}function Ae(e,t){return U({prop:e,themeKey:\"borders\",transform:t})}var xp=Ae(\"border\",Pe),gp=Ae(\"borderTop\",Pe),bp=Ae(\"borderRight\",Pe),vp=Ae(\"borderBottom\",Pe),Tp=Ae(\"borderLeft\",Pe),Pp=Ae(\"borderColor\"),Cp=Ae(\"borderTopColor\"),wp=Ae(\"borderRightColor\"),Ep=Ae(\"borderBottomColor\"),Rp=Ae(\"borderLeftColor\"),Op=Ae(\"outline\",Pe),Sp=Ae(\"outlineColor\"),jo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=At(e.theme,\"shape.borderRadius\",4,\"borderRadius\"),o=r=>({borderRadius:kt(t,r)});return fe(e,e.borderRadius,o)}return null};jo.propTypes={};jo.filterProps=[\"borderRadius\"];var Od=yt(xp,gp,bp,vp,Tp,Pp,Cp,wp,Ep,Rp,jo,Op,Sp);var Vo=e=>{if(e.gap!==void 0&&e.gap!==null){let t=At(e.theme,\"spacing\",8,\"gap\"),o=r=>({gap:kt(t,r)});return fe(e,e.gap,o)}return null};Vo.propTypes={};Vo.filterProps=[\"gap\"];var $o=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=At(e.theme,\"spacing\",8,\"columnGap\"),o=r=>({columnGap:kt(t,r)});return fe(e,e.columnGap,o)}return null};$o.propTypes={};$o.filterProps=[\"columnGap\"];var Fo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=At(e.theme,\"spacing\",8,\"rowGap\"),o=r=>({rowGap:kt(t,r)});return fe(e,e.rowGap,o)}return null};Fo.propTypes={};Fo.filterProps=[\"rowGap\"];var Mp=U({prop:\"gridColumn\"}),_p=U({prop:\"gridRow\"}),Np=U({prop:\"gridAutoFlow\"}),Ap=U({prop:\"gridAutoColumns\"}),kp=U({prop:\"gridAutoRows\"}),Bp=U({prop:\"gridTemplateColumns\"}),Lp=U({prop:\"gridTemplateRows\"}),Dp=U({prop:\"gridTemplateAreas\"}),Ip=U({prop:\"gridArea\"}),kd=yt(Vo,$o,Fo,Mp,_p,Np,Ap,kp,Bp,Lp,Dp,Ip);function Bt(e,t){return t===\"grey\"?t:e}var jp=U({prop:\"color\",themeKey:\"palette\",transform:Bt}),Vp=U({prop:\"bgcolor\",cssProperty:\"backgroundColor\",themeKey:\"palette\",transform:Bt}),$p=U({prop:\"backgroundColor\",themeKey:\"palette\",transform:Bt}),Id=yt(jp,Vp,$p);function de(e){return e<=1&&e!==0?`${e*100}%`:e}var Fp=U({prop:\"width\",transform:de}),gr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=o=>{var r,n;let a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[o])||xr[o];return a?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!==\"px\"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:de(o)}};return fe(e,e.maxWidth,t)}return null};gr.filterProps=[\"maxWidth\"];var Up=U({prop:\"minWidth\",transform:de}),Wp=U({prop:\"height\",transform:de}),zp=U({prop:\"maxHeight\",transform:de}),Hp=U({prop:\"minHeight\",transform:de}),Ud=U({prop:\"size\",cssProperty:\"width\",transform:de}),Wd=U({prop:\"size\",cssProperty:\"height\",transform:de}),Gp=U({prop:\"boxSizing\"}),zd=yt(Fp,gr,Up,Wp,zp,Hp,Gp);var Kp={border:{themeKey:\"borders\",transform:Pe},borderTop:{themeKey:\"borders\",transform:Pe},borderRight:{themeKey:\"borders\",transform:Pe},borderBottom:{themeKey:\"borders\",transform:Pe},borderLeft:{themeKey:\"borders\",transform:Pe},borderColor:{themeKey:\"palette\"},borderTopColor:{themeKey:\"palette\"},borderRightColor:{themeKey:\"palette\"},borderBottomColor:{themeKey:\"palette\"},borderLeftColor:{themeKey:\"palette\"},outline:{themeKey:\"borders\",transform:Pe},outlineColor:{themeKey:\"palette\"},borderRadius:{themeKey:\"shape.borderRadius\",style:jo},color:{themeKey:\"palette\",transform:Bt},bgcolor:{themeKey:\"palette\",cssProperty:\"backgroundColor\",transform:Bt},backgroundColor:{themeKey:\"palette\",transform:Bt},p:{style:G},pt:{style:G},pr:{style:G},pb:{style:G},pl:{style:G},px:{style:G},py:{style:G},padding:{style:G},paddingTop:{style:G},paddingRight:{style:G},paddingBottom:{style:G},paddingLeft:{style:G},paddingX:{style:G},paddingY:{style:G},paddingInline:{style:G},paddingInlineStart:{style:G},paddingInlineEnd:{style:G},paddingBlock:{style:G},paddingBlockStart:{style:G},paddingBlockEnd:{style:G},m:{style:H},mt:{style:H},mr:{style:H},mb:{style:H},ml:{style:H},mx:{style:H},my:{style:H},margin:{style:H},marginTop:{style:H},marginRight:{style:H},marginBottom:{style:H},marginLeft:{style:H},marginX:{style:H},marginY:{style:H},marginInline:{style:H},marginInlineStart:{style:H},marginInlineEnd:{style:H},marginBlock:{style:H},marginBlockStart:{style:H},marginBlockEnd:{style:H},displayPrint:{cssProperty:!1,transform:e=>({\"@media print\":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vo},rowGap:{style:Fo},columnGap:{style:$o},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:\"zIndex\"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:\"shadows\"},width:{transform:de},maxWidth:{style:gr},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},fontFamily:{themeKey:\"typography\"},fontSize:{themeKey:\"typography\"},fontStyle:{themeKey:\"typography\"},fontWeight:{themeKey:\"typography\"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:\"typography\"}},xt=Kp;function Xp(...e){let t=e.reduce((r,n)=>r.concat(Object.keys(n)),[]),o=new Set(t);return e.every(r=>o.size===Object.keys(r).length)}function Yp(e,t){return typeof e==\"function\"?e(t):e}function Ha(){function e(o,r,n,a){let s={[o]:r,theme:n},p=a[o];if(!p)return{[o]:r};let{cssProperty:i=o,themeKey:l,transform:u,style:c}=p;if(r==null)return null;if(l===\"typography\"&&r===\"inherit\")return{[o]:r};let f=mo(n,l)||{};return c?c(s):fe(s,r,x=>{let m=Io(f,u,x);return x===m&&typeof x==\"string\"&&(m=Io(f,u,`${o}${x===\"default\"?\"\":co(x)}`,x)),i===!1?m:{[i]:m}})}function t(o){var r;let{sx:n,theme:a={}}=o||{};if(!n)return null;let s=(r=a.unstable_sxConfig)!=null?r:xt;function p(i){let l=i;if(typeof i==\"function\")l=i(a);else if(typeof i!=\"object\")return i;if(!l)return null;let u=$a(a.breakpoints),c=Object.keys(u),f=u;return Object.keys(l).forEach(h=>{let x=Yp(l[h],a);if(x!=null)if(typeof x==\"object\")if(s[h])f=ht(f,e(h,x,a,s));else{let m=fe({theme:a},x,T=>({[h]:T}));Xp(m,x)?f[h]=t({sx:x,theme:a}):f=ht(f,m)}else f=ht(f,e(h,x,a,s))}),Fa(c,f)}return Array.isArray(n)?n.map(p):p(n)}return t}var Ga=Ha();Ga.filterProps=[\"sx\"];var gt=Ga;function vn(e,t){let o=this;return o.vars&&typeof o.getColorSchemeSelector==\"function\"?{[o.getColorSchemeSelector(e).replace(/(\\[[^\\]]+\\])/,\"*:where($1)\")]:t}:o.palette.mode===e?t:{}}var qp=[\"breakpoints\",\"palette\",\"spacing\",\"shape\"];function Zp(e={},...t){let{breakpoints:o={},palette:r={},spacing:n,shape:a={}}=e,s=L(e,qp),p=mn(o),i=bn(n),l=dt({breakpoints:p,direction:\"ltr\",components:{},palette:d({mode:\"light\"},r),spacing:i,shape:d({},ja,a)},s);return l.applyStyles=vn,l=t.reduce((u,c)=>dt(u,c),l),l.unstable_sxConfig=d({},xt,s?.unstable_sxConfig),l.unstable_sx=function(c){return gt({sx:c,theme:this})},l}var bt=Zp;import*as Ka from\"react\";function Qp(e){return Object.keys(e).length===0}function Jp(e=null){let t=Ka.useContext(en);return!t||Qp(t)?e:t}var Uo=Jp;var el=bt();function tl(e=el){return Uo(e)}var Wo=tl;function Xa(e){var t,o,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Xa(e[t]))&&(r&&(r+=\" \"),r+=o)}else for(o in e)e[o]&&(r&&(r+=\" \"),r+=o);return r}function ol(){for(var e,t,o=0,r=\"\",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Xa(e))&&(r&&(r+=\" \"),r+=t);return r}var K=ol;var rl=[\"ownerState\"],nl=[\"variants\"],al=[\"name\",\"slot\",\"skipVariantsResolver\",\"skipSx\",\"overridesResolver\"];function sl(e){return Object.keys(e).length===0}function il(e){return typeof e==\"string\"&&e.charCodeAt(0)>96}function zo(e){return e!==\"ownerState\"&&e!==\"theme\"&&e!==\"sx\"&&e!==\"as\"}var pl=bt(),ll=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function br({defaultTheme:e,theme:t,themeId:o}){return sl(t)?e:t[o]||t}function ul(e){return e?(t,o)=>o[e]:null}function vr(e,t){let{ownerState:o}=t,r=L(t,rl),n=typeof e==\"function\"?e(d({ownerState:o},r)):e;if(Array.isArray(n))return n.flatMap(a=>vr(a,d({ownerState:o},r)));if(n&&typeof n==\"object\"&&Array.isArray(n.variants)){let{variants:a=[]}=n,p=L(n,nl);return a.forEach(i=>{let l=!0;typeof i.props==\"function\"?l=i.props(d({ownerState:o},r,o)):Object.keys(i.props).forEach(u=>{o?.[u]!==i.props[u]&&r[u]!==i.props[u]&&(l=!1)}),l&&(Array.isArray(p)||(p=[p]),p.push(typeof i.style==\"function\"?i.style(d({ownerState:o},r,o)):i.style))}),p}return n}function Tr(e={}){let{themeId:t,defaultTheme:o=pl,rootShouldForwardProp:r=zo,slotShouldForwardProp:n=zo}=e,a=s=>gt(d({},s,{theme:br(d({},s,{defaultTheme:o,themeId:t}))}));return a.__mui_systemSx=!0,(s,p={})=>{Da(s,g=>g.filter(v=>!(v!=null&&v.__mui_systemSx)));let{name:i,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:f=ul(ll(l))}=p,h=L(p,al),x=u!==void 0?u:l&&l!==\"Root\"&&l!==\"root\"||!1,m=c||!1,T,b=zo;l===\"Root\"||l===\"root\"?b=r:l?b=n:il(s)&&(b=void 0);let w=fn(s,d({shouldForwardProp:b,label:T},h)),C=g=>typeof g==\"function\"&&g.__emotion_real!==g||mt(g)?v=>vr(g,d({},v,{theme:br({theme:v.theme,defaultTheme:o,themeId:t})})):g,y=(g,...v)=>{let P=C(g),R=v?v.map(C):[];i&&f&&R.push(O=>{let k=br(d({},O,{defaultTheme:o,themeId:t}));if(!k.components||!k.components[i]||!k.components[i].styleOverrides)return null;let A=k.components[i].styleOverrides,I={};return Object.entries(A).forEach(([S,M])=>{I[S]=vr(M,d({},O,{theme:k}))}),f(O,I)}),i&&!x&&R.push(O=>{var k;let A=br(d({},O,{defaultTheme:o,themeId:t})),I=A==null||(k=A.components)==null||(k=k[i])==null?void 0:k.variants;return vr({variants:I},d({},O,{theme:A}))}),m||R.push(a);let _=R.length-v.length;if(Array.isArray(g)&&_>0){let O=new Array(_).fill(\"\");P=[...g,...O],P.raw=[...g.raw,...O]}let E=w(P,...R);return s.muiName&&(E.muiName=s.muiName),E};return w.withConfig&&(y.withConfig=w.withConfig),y}}function Ho(e,t){let o=d({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))o[r]=d({},e[r],o[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){let n=e[r]||{},a=t[r];o[r]={},!a||!Object.keys(a)?o[r]=n:!n||!Object.keys(n)?o[r]=a:(o[r]=d({},a),Object.keys(n).forEach(s=>{o[r][s]=Ho(n[s],a[s])}))}else o[r]===void 0&&(o[r]=e[r])}),o}function Pr(e){let{theme:t,name:o,props:r}=e;return!t||!t.components||!t.components[o]||!t.components[o].defaultProps?r:Ho(t.components[o].defaultProps,r)}function Go({props:e,name:t,defaultTheme:o,themeId:r}){let n=Wo(o);return r&&(n=n[r]||n),Pr({theme:n,name:t,props:e})}function fl(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}var Tn=fl;function Pn(e,t=0,o=1){return Tn(e,t,o)}function cl(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,\"g\"),o=e.match(t);return o&&o[0].length===1&&(o=o.map(r=>r+r)),o?`rgb${o.length===4?\"a\":\"\"}(${o.map((r,n)=>n<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(\", \")})`:\"\"}function Lt(e){if(e.type)return e;if(e.charAt(0)===\"#\")return Lt(cl(e));let t=e.indexOf(\"(\"),o=e.substring(0,t);if([\"rgb\",\"rgba\",\"hsl\",\"hsla\",\"color\"].indexOf(o)===-1)throw new Error(Nt(9,e));let r=e.substring(t+1,e.length-1),n;if(o===\"color\"){if(r=r.split(\" \"),n=r.shift(),r.length===4&&r[3].charAt(0)===\"/\"&&(r[3]=r[3].slice(1)),[\"srgb\",\"display-p3\",\"a98-rgb\",\"prophoto-rgb\",\"rec-2020\"].indexOf(n)===-1)throw new Error(Nt(10,n))}else r=r.split(\",\");return r=r.map(a=>parseFloat(a)),{type:o,values:r,colorSpace:n}}function Cr(e){let{type:t,colorSpace:o}=e,{values:r}=e;return t.indexOf(\"rgb\")!==-1?r=r.map((n,a)=>a<3?parseInt(n,10):n):t.indexOf(\"hsl\")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf(\"color\")!==-1?r=`${o} ${r.join(\" \")}`:r=`${r.join(\", \")}`,`${t}(${r})`}function ml(e){e=Lt(e);let{values:t}=e,o=t[0],r=t[1]/100,n=t[2]/100,a=r*Math.min(n,1-n),s=(l,u=(l+o/30)%12)=>n-a*Math.max(Math.min(u-3,9-u,1),-1),p=\"rgb\",i=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type===\"hsla\"&&(p+=\"a\",i.push(t[3])),Cr({type:p,values:i})}function Ya(e){e=Lt(e);let t=e.type===\"hsl\"||e.type===\"hsla\"?Lt(ml(e)).values:e.values;return t=t.map(o=>(e.type!==\"color\"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qa(e,t){let o=Ya(e),r=Ya(t);return(Math.max(o,r)+.05)/(Math.min(o,r)+.05)}function ho(e,t){return e=Lt(e),t=Pn(t),(e.type===\"rgb\"||e.type===\"hsl\")&&(e.type+=\"a\"),e.type===\"color\"?e.values[3]=`/${t}`:e.values[3]=t,Cr(e)}function Za(e,t){if(e=Lt(e),t=Pn(t),e.type.indexOf(\"hsl\")!==-1)e.values[2]*=1-t;else if(e.type.indexOf(\"rgb\")!==-1||e.type.indexOf(\"color\")!==-1)for(let o=0;o<3;o+=1)e.values[o]*=1-t;return Cr(e)}function Qa(e,t){if(e=Lt(e),t=Pn(t),e.type.indexOf(\"hsl\")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf(\"rgb\")!==-1)for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(e.type.indexOf(\"color\")!==-1)for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return Cr(e)}function Cn(e,t){return d({toolbar:{minHeight:56,[e.up(\"xs\")]:{\"@media (orientation: landscape)\":{minHeight:48}},[e.up(\"sm\")]:{minHeight:64}}},t)}var dl=[\"mode\",\"contrastThreshold\",\"tonalOffset\"],Ja={text:{primary:\"rgba(0, 0, 0, 0.87)\",secondary:\"rgba(0, 0, 0, 0.6)\",disabled:\"rgba(0, 0, 0, 0.38)\"},divider:\"rgba(0, 0, 0, 0.12)\",background:{paper:so.white,default:so.white},action:{active:\"rgba(0, 0, 0, 0.54)\",hover:\"rgba(0, 0, 0, 0.04)\",hoverOpacity:.04,selected:\"rgba(0, 0, 0, 0.08)\",selectedOpacity:.08,disabled:\"rgba(0, 0, 0, 0.26)\",disabledBackground:\"rgba(0, 0, 0, 0.12)\",disabledOpacity:.38,focus:\"rgba(0, 0, 0, 0.12)\",focusOpacity:.12,activatedOpacity:.12}},wn={text:{primary:so.white,secondary:\"rgba(255, 255, 255, 0.7)\",disabled:\"rgba(255, 255, 255, 0.5)\",icon:\"rgba(255, 255, 255, 0.5)\"},divider:\"rgba(255, 255, 255, 0.12)\",background:{paper:\"#121212\",default:\"#121212\"},action:{active:so.white,hover:\"rgba(255, 255, 255, 0.08)\",hoverOpacity:.08,selected:\"rgba(255, 255, 255, 0.16)\",selectedOpacity:.16,disabled:\"rgba(255, 255, 255, 0.3)\",disabledBackground:\"rgba(255, 255, 255, 0.12)\",disabledOpacity:.38,focus:\"rgba(255, 255, 255, 0.12)\",focusOpacity:.12,activatedOpacity:.24}};function es(e,t,o,r){let n=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(o)?e[t]=e[o]:t===\"light\"?e.light=Qa(e.main,n):t===\"dark\"&&(e.dark=Za(e.main,a)))}function hl(e=\"light\"){return e===\"dark\"?{main:Rt[200],light:Rt[50],dark:Rt[400]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function yl(e=\"light\"){return e===\"dark\"?{main:Et[200],light:Et[50],dark:Et[400]}:{main:Et[500],light:Et[300],dark:Et[700]}}function xl(e=\"light\"){return e===\"dark\"?{main:wt[500],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[400],dark:wt[800]}}function gl(e=\"light\"){return e===\"dark\"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[700],light:Ot[500],dark:Ot[900]}}function bl(e=\"light\"){return e===\"dark\"?{main:St[400],light:St[300],dark:St[700]}:{main:St[800],light:St[500],dark:St[900]}}function vl(e=\"light\"){return e===\"dark\"?{main:io[400],light:io[300],dark:io[700]}:{main:\"#ed6c02\",light:io[500],dark:io[900]}}function En(e){let{mode:t=\"light\",contrastThreshold:o=3,tonalOffset:r=.2}=e,n=L(e,dl),a=e.primary||hl(t),s=e.secondary||yl(t),p=e.error||xl(t),i=e.info||gl(t),l=e.success||bl(t),u=e.warning||vl(t);function c(m){return qa(m,wn.text.primary)>=o?wn.text.primary:Ja.text.primary}let f=({color:m,name:T,mainShade:b=500,lightShade:w=300,darkShade:C=700})=>{if(m=d({},m),!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty(\"main\"))throw new Error(tt(11,T?` (${T})`:\"\",b));if(typeof m.main!=\"string\")throw new Error(tt(12,T?` (${T})`:\"\",JSON.stringify(m.main)));return es(m,\"light\",w,r),es(m,\"dark\",C,r),m.contrastText||(m.contrastText=c(m.main)),m},h={dark:wn,light:Ja};return Fe(d({common:d({},so),mode:t,primary:f({color:a,name:\"primary\"}),secondary:f({color:s,name:\"secondary\",mainShade:\"A400\",lightShade:\"A200\",darkShade:\"A700\"}),error:f({color:p,name:\"error\"}),warning:f({color:u,name:\"warning\"}),info:f({color:i,name:\"info\"}),success:f({color:l,name:\"success\"}),grey:Ma,contrastThreshold:o,getContrastText:c,augmentColor:f,tonalOffset:r},h[t]),n)}var Tl=[\"fontFamily\",\"fontSize\",\"fontWeightLight\",\"fontWeightRegular\",\"fontWeightMedium\",\"fontWeightBold\",\"htmlFontSize\",\"allVariants\",\"pxToRem\"];function Pl(e){return Math.round(e*1e5)/1e5}var ts={textTransform:\"uppercase\"},os='\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';function Rn(e,t){let o=typeof t==\"function\"?t(e):t,{fontFamily:r=os,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:p=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:u,pxToRem:c}=o,f=L(o,Tl),h=n/14,x=c||(b=>`${b/l*h}rem`),m=(b,w,C,y,g)=>d({fontFamily:r,fontWeight:b,fontSize:x(w),lineHeight:C},r===os?{letterSpacing:`${Pl(y/w)}em`}:{},g,u),T={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(p,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(p,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(p,14,1.75,.4,ts),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ts),inherit:{fontFamily:\"inherit\",fontWeight:\"inherit\",fontSize:\"inherit\",lineHeight:\"inherit\",letterSpacing:\"inherit\"}};return Fe(d({htmlFontSize:l,pxToRem:x,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:p,fontWeightBold:i},T),f,{clone:!1})}function W(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(\",\")}var Cl=[\"none\",W(0,2,1,-1,0,1,1,0,0,1,3,0),W(0,3,1,-2,0,2,2,0,0,1,5,0),W(0,3,3,-2,0,3,4,0,0,1,8,0),W(0,2,4,-1,0,4,5,0,0,1,10,0),W(0,3,5,-1,0,5,8,0,0,1,14,0),W(0,3,5,-1,0,6,10,0,0,1,18,0),W(0,4,5,-2,0,7,10,1,0,2,16,1),W(0,5,5,-3,0,8,10,1,0,3,14,2),W(0,5,6,-3,0,9,12,1,0,3,16,2),W(0,6,6,-3,0,10,14,1,0,4,18,3),W(0,6,7,-4,0,11,15,1,0,4,20,3),W(0,7,8,-4,0,12,17,2,0,5,22,4),W(0,7,8,-4,0,13,19,2,0,5,24,4),W(0,7,9,-4,0,14,21,2,0,5,26,4),W(0,8,9,-5,0,15,22,2,0,6,28,5),W(0,8,10,-5,0,16,24,2,0,6,30,5),W(0,8,11,-5,0,17,26,2,0,6,32,5),W(0,9,11,-5,0,18,28,2,0,7,34,6),W(0,9,12,-6,0,19,29,2,0,7,36,6),W(0,10,13,-6,0,20,31,3,0,8,38,7),W(0,10,13,-6,0,21,33,3,0,8,40,7),W(0,10,14,-6,0,22,35,3,0,8,42,7),W(0,11,14,-7,0,23,36,3,0,9,44,8),W(0,11,15,-7,0,24,38,3,0,9,46,8)],rs=Cl;var wl=[\"duration\",\"easing\",\"delay\"],El={easeInOut:\"cubic-bezier(0.4, 0, 0.2, 1)\",easeOut:\"cubic-bezier(0.0, 0, 0.2, 1)\",easeIn:\"cubic-bezier(0.4, 0, 1, 1)\",sharp:\"cubic-bezier(0.4, 0, 0.6, 1)\"},Rl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ns(e){return`${Math.round(e)}ms`}function Ol(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function On(e){let t=d({},El,e.easing),o=d({},Rl,e.duration);return d({getAutoHeightDuration:Ol,create:(n=[\"all\"],a={})=>{let{duration:s=o.standard,easing:p=t.easeInOut,delay:i=0}=a,l=L(a,wl);return(Array.isArray(n)?n:[n]).map(u=>`${u} ${typeof s==\"string\"?s:ns(s)} ${p} ${typeof i==\"string\"?i:ns(i)}`).join(\",\")}},e,{easing:t,duration:o})}var Sl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},as=Sl;var Ml=[\"breakpoints\",\"mixins\",\"spacing\",\"palette\",\"transitions\",\"typography\",\"shape\"];function _l(e={},...t){let{mixins:o={},palette:r={},transitions:n={},typography:a={}}=e,s=L(e,Ml);if(e.vars)throw new Error(tt(18));let p=En(r),i=bt(e),l=Fe(i,{mixins:Cn(i.breakpoints,o),palette:p,shadows:rs.slice(),typography:Rn(p,a),transitions:On(n),zIndex:d({},as)});return l=Fe(l,s),l=t.reduce((u,c)=>Fe(u,c),l),l.unstable_sxConfig=d({},xt,s?.unstable_sxConfig),l.unstable_sx=function(c){return gt({sx:c,theme:this})},l}var ss=_l;import*as Al from\"react\";var Nl=ss(),yo=Nl;function Ko(){let e=Wo(yo);return e[fo]||e}function ke({props:e,name:t}){return Go({props:e,name:t,defaultTheme:yo,themeId:fo})}var kl=e=>zo(e)&&e!==\"classes\";var Bl=Tr({themeId:fo,defaultTheme:yo,rootShouldForwardProp:kl}),he=Bl;var qe=Bo;var is=Lo;var ps=Do;var Dt=mr;var It=_e;var wr=yr;function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Er(e,t)}function Rr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Er(e,t)}import Or from\"react\";import Sr from\"react-dom\";var Sn={disabled:!1};import Ll from\"react\";var xo=Ll.createContext(null);var ls=function(t){return t.scrollTop};var Xo=\"unmounted\",jt=\"exited\",Vt=\"entering\",bo=\"entered\",Mn=\"exiting\",ot=function(e){Rr(t,e);function t(r,n){var a;a=e.call(this,r,n)||this;var s=n,p=s&&!s.isMounting?r.enter:r.appear,i;return a.appearStatus=null,r.in?p?(i=jt,a.appearStatus=Vt):i=bo:r.unmountOnExit||r.mountOnEnter?i=Xo:i=jt,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,a){var s=n.in;return s&&a.status===Xo?{status:jt}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(n){var a=null;if(n!==this.props){var s=this.state.status;this.props.in?s!==Vt&&s!==bo&&(a=Vt):(s===Vt||s===bo)&&(a=Mn)}this.updateStatus(!1,a)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var n=this.props.timeout,a,s,p;return a=s=p=n,n!=null&&typeof n!=\"number\"&&(a=n.exit,s=n.enter,p=n.appear!==void 0?n.appear:s),{exit:a,enter:s,appear:p}},o.updateStatus=function(n,a){if(n===void 0&&(n=!1),a!==null)if(this.cancelNextCallback(),a===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Sr.findDOMNode(this);s&&ls(s)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jt&&this.setState({status:Xo})},o.performEnter=function(n){var a=this,s=this.props.enter,p=this.context?this.context.isMounting:n,i=this.props.nodeRef?[p]:[Sr.findDOMNode(this),p],l=i[0],u=i[1],c=this.getTimeouts(),f=p?c.appear:c.enter;if(!n&&!s||Sn.disabled){this.safeSetState({status:bo},function(){a.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Vt},function(){a.props.onEntering(l,u),a.onTransitionEnd(f,function(){a.safeSetState({status:bo},function(){a.props.onEntered(l,u)})})})},o.performExit=function(){var n=this,a=this.props.exit,s=this.getTimeouts(),p=this.props.nodeRef?void 0:Sr.findDOMNode(this);if(!a||Sn.disabled){this.safeSetState({status:jt},function(){n.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:Mn},function(){n.props.onExiting(p),n.onTransitionEnd(s.exit,function(){n.safeSetState({status:jt},function(){n.props.onExited(p)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(n,a){a=this.setNextCallback(a),this.setState(n,a)},o.setNextCallback=function(n){var a=this,s=!0;return this.nextCallback=function(p){s&&(s=!1,a.nextCallback=null,n(p))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},o.onTransitionEnd=function(n,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:Sr.findDOMNode(this),p=n==null&&!this.props.addEndListener;if(!s||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=i[0],u=i[1];this.props.addEndListener(l,u)}n!=null&&setTimeout(this.nextCallback,n)},o.render=function(){var n=this.state.status;if(n===Xo)return null;var a=this.props,s=a.children,p=a.in,i=a.mountOnEnter,l=a.unmountOnExit,u=a.appear,c=a.enter,f=a.exit,h=a.timeout,x=a.addEndListener,m=a.onEnter,T=a.onEntering,b=a.onEntered,w=a.onExit,C=a.onExiting,y=a.onExited,g=a.nodeRef,v=L(a,[\"children\",\"in\",\"mountOnEnter\",\"unmountOnExit\",\"appear\",\"enter\",\"exit\",\"timeout\",\"addEndListener\",\"onEnter\",\"onEntering\",\"onEntered\",\"onExit\",\"onExiting\",\"onExited\",\"nodeRef\"]);return Or.createElement(xo.Provider,{value:null},typeof s==\"function\"?s(n,v):Or.cloneElement(Or.Children.only(s),v))},t}(Or.Component);ot.contextType=xo;ot.propTypes={};function go(){}ot.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:go,onEntering:go,onEntered:go,onExit:go,onExiting:go,onExited:go};ot.UNMOUNTED=Xo;ot.EXITED=jt;ot.ENTERING=Vt;ot.ENTERED=bo;ot.EXITING=Mn;var _n=ot;function us(e){if(e===void 0)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}import Ar from\"react\";import{Children as Dl,cloneElement as Mr,isValidElement as _r}from\"react\";function Nr(e,t){var o=function(a){return t&&_r(a)?t(a):a},r=Object.create(null);return e&&Dl.map(e,function(n){return n}).forEach(function(n){r[n.key]=o(n)}),r}function Il(e,t){e=e||{},t=t||{};function o(u){return u in t?t[u]:e[u]}var r=Object.create(null),n=[];for(var a in e)a in t?n.length&&(r[a]=n,n=[]):n.push(a);var s,p={};for(var i in t){if(r[i])for(s=0;s<r[i].length;s++){var l=r[i][s];p[r[i][s]]=o(l)}p[i]=o(i)}for(s=0;s<n.length;s++)p[n[s]]=o(n[s]);return p}function $t(e,t,o){return o[t]!=null?o[t]:e.props[t]}function fs(e,t){return Nr(e.children,function(o){return Mr(o,{onExited:t.bind(null,o),in:!0,appear:$t(o,\"appear\",e),enter:$t(o,\"enter\",e),exit:$t(o,\"exit\",e)})})}function cs(e,t,o){var r=Nr(e.children),n=Il(t,r);return Object.keys(n).forEach(function(a){var s=n[a];if(_r(s)){var p=a in t,i=a in r,l=t[a],u=_r(l)&&!l.props.in;i&&(!p||u)?n[a]=Mr(s,{onExited:o.bind(null,s),in:!0,exit:$t(s,\"exit\",e),enter:$t(s,\"enter\",e)}):!i&&p&&!u?n[a]=Mr(s,{in:!1}):i&&p&&_r(l)&&(n[a]=Mr(s,{onExited:o.bind(null,s),in:l.props.in,exit:$t(s,\"exit\",e),enter:$t(s,\"enter\",e)}))}}),n}var jl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Vl={component:\"div\",childFactory:function(t){return t}},Nn=function(e){Rr(t,e);function t(r,n){var a;a=e.call(this,r,n)||this;var s=a.handleExited.bind(us(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(n,a){var s=a.children,p=a.handleExited,i=a.firstRender;return{children:i?fs(n,p):cs(n,s,p),firstRender:!1}},o.handleExited=function(n,a){var s=Nr(this.props.children);n.key in s||(n.props.onExited&&n.props.onExited(a),this.mounted&&this.setState(function(p){var i=d({},p.children);return delete i[n.key],{children:i}}))},o.render=function(){var n=this.props,a=n.component,s=n.childFactory,p=L(n,[\"component\",\"childFactory\"]),i=this.state.contextValue,l=jl(this.state.children).map(s);return delete p.appear,delete p.enter,delete p.exit,a===null?Ar.createElement(xo.Provider,{value:i},l):Ar.createElement(xo.Provider,{value:i},Ar.createElement(a,p,l))},t}(Ar.Component);Nn.propTypes={};Nn.defaultProps=Vl;var An=Nn;var ms=e=>e.scrollTop;function kn(e,t){var o,r;let{timeout:n,easing:a,style:s={}}=e;return{duration:(o=s.transitionDuration)!=null?o:typeof n==\"number\"?n:n[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a==\"object\"?a[t.mode]:a,delay:s.transitionDelay}}import*as ye from\"react\";import*as q from\"react\";import*as kr from\"react\";import{jsx as ds}from\"react/jsx-runtime\";function $l(e){let{className:t,classes:o,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:p,onExited:i,timeout:l}=e,[u,c]=kr.useState(!1),f=K(t,o.ripple,o.rippleVisible,r&&o.ripplePulsate),h={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},x=K(o.child,u&&o.childLeaving,r&&o.childPulsate);return!p&&!u&&c(!0),kr.useEffect(()=>{if(!p&&i!=null){let m=setTimeout(i,l);return()=>{clearTimeout(m)}}},[i,p,l]),ds(\"span\",{className:f,style:h,children:ds(\"span\",{className:x})})}var hs=$l;var Fl=me(\"MuiTouchRipple\",[\"root\",\"ripple\",\"rippleVisible\",\"ripplePulsate\",\"child\",\"childLeaving\",\"childPulsate\"]),Ce=Fl;import{jsx as Bn}from\"react/jsx-runtime\";var Ul=[\"center\",\"classes\",\"className\"],Br=e=>e,ys,xs,gs,bs,Ln=550,Wl=80,zl=to(ys||(ys=Br`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`)),Hl=to(xs||(xs=Br`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`)),Gl=to(gs||(gs=Br`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`)),Kl=he(\"span\",{name:\"MuiTouchRipple\",slot:\"Root\"})({overflow:\"hidden\",pointerEvents:\"none\",position:\"absolute\",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:\"inherit\"}),Xl=he(hs,{name:\"MuiTouchRipple\",slot:\"Ripple\"})(bs||(bs=Br`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`),Ce.rippleVisible,zl,Ln,({theme:e})=>e.transitions.easing.easeInOut,Ce.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ce.child,Ce.childLeaving,Hl,Ln,({theme:e})=>e.transitions.easing.easeInOut,Ce.childPulsate,Gl,({theme:e})=>e.transitions.easing.easeInOut),Yl=q.forwardRef(function(t,o){let r=ke({props:t,name:\"MuiTouchRipple\"}),{center:n=!1,classes:a={},className:s}=r,p=L(r,Ul),[i,l]=q.useState([]),u=q.useRef(0),c=q.useRef(null);q.useEffect(()=>{c.current&&(c.current(),c.current=null)},[i]);let f=q.useRef(!1),h=q.useRef(0),x=q.useRef(null),m=q.useRef(null);q.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);let T=q.useCallback(y=>{let{pulsate:g,rippleX:v,rippleY:P,rippleSize:R,cb:_}=y;l(E=>[...E,Bn(Xl,{classes:{ripple:K(a.ripple,Ce.ripple),rippleVisible:K(a.rippleVisible,Ce.rippleVisible),ripplePulsate:K(a.ripplePulsate,Ce.ripplePulsate),child:K(a.child,Ce.child),childLeaving:K(a.childLeaving,Ce.childLeaving),childPulsate:K(a.childPulsate,Ce.childPulsate)},timeout:Ln,pulsate:g,rippleX:v,rippleY:P,rippleSize:R},u.current)]),u.current+=1,c.current=_},[a]),b=q.useCallback((y={},g={},v=()=>{})=>{let{pulsate:P=!1,center:R=n||g.pulsate,fakeElement:_=!1}=g;if(y?.type===\"mousedown\"&&f.current){f.current=!1;return}y?.type===\"touchstart\"&&(f.current=!0);let E=_?null:m.current,O=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0},k,A,I;if(R||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)k=Math.round(O.width/2),A=Math.round(O.height/2);else{let{clientX:S,clientY:M}=y.touches&&y.touches.length>0?y.touches[0]:y;k=Math.round(S-O.left),A=Math.round(M-O.top)}if(R)I=Math.sqrt((2*O.width**2+O.height**2)/3),I%2===0&&(I+=1);else{let S=Math.max(Math.abs((E?E.clientWidth:0)-k),k)*2+2,M=Math.max(Math.abs((E?E.clientHeight:0)-A),A)*2+2;I=Math.sqrt(S**2+M**2)}y!=null&&y.touches?x.current===null&&(x.current=()=>{T({pulsate:P,rippleX:k,rippleY:A,rippleSize:I,cb:v})},h.current=setTimeout(()=>{x.current&&(x.current(),x.current=null)},Wl)):T({pulsate:P,rippleX:k,rippleY:A,rippleSize:I,cb:v})},[n,T]),w=q.useCallback(()=>{b({},{pulsate:!0})},[b]),C=q.useCallback((y,g)=>{if(clearTimeout(h.current),y?.type===\"touchend\"&&x.current){x.current(),x.current=null,h.current=setTimeout(()=>{C(y,g)});return}x.current=null,l(v=>v.length>0?v.slice(1):v),c.current=g},[]);return q.useImperativeHandle(o,()=>({pulsate:w,start:b,stop:C}),[w,b,C]),Bn(Kl,d({className:K(Ce.root,a.root,s),ref:m},p,{children:Bn(An,{component:null,exit:!0,children:i})}))}),vs=Yl;function Ts(e){return ue(\"MuiButtonBase\",e)}var ql=me(\"MuiButtonBase\",[\"root\",\"disabled\",\"focusVisible\"]),Ps=ql;import{jsx as Ql}from\"react/jsx-runtime\";import{jsxs as Jl}from\"react/jsx-runtime\";var Zl=[\"action\",\"centerRipple\",\"children\",\"className\",\"component\",\"disabled\",\"disableRipple\",\"disableTouchRipple\",\"focusRipple\",\"focusVisibleClassName\",\"LinkComponent\",\"onBlur\",\"onClick\",\"onContextMenu\",\"onDragLeave\",\"onFocus\",\"onFocusVisible\",\"onKeyDown\",\"onKeyUp\",\"onMouseDown\",\"onMouseLeave\",\"onMouseUp\",\"onTouchEnd\",\"onTouchMove\",\"onTouchStart\",\"tabIndex\",\"TouchRippleProps\",\"touchRippleRef\",\"type\"],eu=e=>{let{disabled:t,focusVisible:o,focusVisibleClassName:r,classes:n}=e,s=Ne({root:[\"root\",t&&\"disabled\",o&&\"focusVisible\"]},Ts,n);return o&&r&&(s.root+=` ${r}`),s},tu=he(\"button\",{name:\"MuiButtonBase\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",position:\"relative\",boxSizing:\"border-box\",WebkitTapHighlightColor:\"transparent\",backgroundColor:\"transparent\",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:\"pointer\",userSelect:\"none\",verticalAlign:\"middle\",MozAppearance:\"none\",WebkitAppearance:\"none\",textDecoration:\"none\",color:\"inherit\",\"&::-moz-focus-inner\":{borderStyle:\"none\"},[`&.${Ps.disabled}`]:{pointerEvents:\"none\",cursor:\"default\"},\"@media print\":{colorAdjust:\"exact\"}}),ou=ye.forwardRef(function(t,o){let r=ke({props:t,name:\"MuiButtonBase\"}),{action:n,centerRipple:a=!1,children:s,className:p,component:i=\"button\",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:f=!1,LinkComponent:h=\"a\",onBlur:x,onClick:m,onContextMenu:T,onDragLeave:b,onFocus:w,onFocusVisible:C,onKeyDown:y,onKeyUp:g,onMouseDown:v,onMouseLeave:P,onMouseUp:R,onTouchEnd:_,onTouchMove:E,onTouchStart:O,tabIndex:k=0,TouchRippleProps:A,touchRippleRef:I,type:S}=r,M=L(r,Zl),D=ye.useRef(null),j=ye.useRef(null),F=It(j,I),{isFocusVisibleRef:oe,onFocus:He,onBlur:je,ref:Ve}=wr(),[J,ie]=ye.useState(!1);l&&J&&ie(!1),ye.useImperativeHandle(n,()=>({focusVisible:()=>{ie(!0),D.current.focus()}}),[]);let[we,Ge]=ye.useState(!1);ye.useEffect(()=>{Ge(!0)},[]);let ae=we&&!u&&!l;ye.useEffect(()=>{J&&f&&!u&&we&&j.current.pulsate()},[u,f,J,we]);function Y(N,Se,So=c){return Dt(ct=>(Se&&Se(ct),!So&&j.current&&j.current[N](ct),!0))}let pt=Y(\"start\",v),Ee=Y(\"stop\",T),Oo=Y(\"stop\",b),qt=Y(\"stop\",R),Zt=Y(\"stop\",N=>{J&&N.preventDefault(),P&&P(N)}),Re=Y(\"start\",O),lt=Y(\"stop\",_),Qt=Y(\"stop\",E),Qe=Y(\"stop\",N=>{je(N),oe.current===!1&&ie(!1),x&&x(N)},!1),Jt=Dt(N=>{D.current||(D.current=N.currentTarget),He(N),oe.current===!0&&(ie(!0),C&&C(N)),w&&w(N)}),le=()=>{let N=D.current;return i&&i!==\"button\"&&!(N.tagName===\"A\"&&N.href)},Ke=ye.useRef(!1),Je=Dt(N=>{f&&!Ke.current&&J&&j.current&&N.key===\" \"&&(Ke.current=!0,j.current.stop(N,()=>{j.current.start(N)})),N.target===N.currentTarget&&le()&&N.key===\" \"&&N.preventDefault(),y&&y(N),N.target===N.currentTarget&&le()&&N.key===\"Enter\"&&!l&&(N.preventDefault(),m&&m(N))}),ut=Dt(N=>{f&&N.key===\" \"&&j.current&&J&&!N.defaultPrevented&&(Ke.current=!1,j.current.stop(N,()=>{j.current.pulsate(N)})),g&&g(N),m&&N.target===N.currentTarget&&le()&&N.key===\" \"&&!N.defaultPrevented&&m(N)}),ge=i;ge===\"button\"&&(M.href||M.to)&&(ge=h);let be={};ge===\"button\"?(be.type=S===void 0?\"button\":S,be.disabled=l):(!M.href&&!M.to&&(be.role=\"button\"),l&&(be[\"aria-disabled\"]=l));let Oe=It(o,Ve,D),ft=d({},r,{centerRipple:a,component:i,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:f,tabIndex:k,focusVisible:J}),eo=eu(ft);return Jl(tu,d({as:ge,className:K(eo.root,p),ownerState:ft,onBlur:Qe,onClick:m,onContextMenu:Ee,onFocus:Jt,onKeyDown:Je,onKeyUp:ut,onMouseDown:pt,onMouseLeave:Zt,onMouseUp:qt,onDragLeave:Oo,onTouchEnd:lt,onTouchMove:Qt,onTouchStart:Re,ref:Oe,tabIndex:l?-1:k,type:S},be,M,{children:[s,ae?Ql(vs,d({ref:F,center:a},A)):null]}))}),Dn=ou;import*as Lr from\"react\";function Cs(e){return ue(\"MuiIconButton\",e)}var ru=me(\"MuiIconButton\",[\"root\",\"disabled\",\"colorInherit\",\"colorPrimary\",\"colorSecondary\",\"colorError\",\"colorInfo\",\"colorSuccess\",\"colorWarning\",\"edgeStart\",\"edgeEnd\",\"sizeSmall\",\"sizeMedium\",\"sizeLarge\"]),ws=ru;import{jsx as au}from\"react/jsx-runtime\";var nu=[\"edge\",\"children\",\"className\",\"color\",\"disabled\",\"disableFocusRipple\",\"size\"],su=e=>{let{classes:t,disabled:o,color:r,edge:n,size:a}=e,s={root:[\"root\",o&&\"disabled\",r!==\"default\"&&`color${qe(r)}`,n&&`edge${qe(n)}`,`size${qe(a)}`]};return Ne(s,Cs,t)},iu=he(Dn,{name:\"MuiIconButton\",slot:\"Root\",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.color!==\"default\"&&t[`color${qe(o.color)}`],o.edge&&t[`edge${qe(o.edge)}`],t[`size${qe(o.size)}`]]}})(({theme:e,ownerState:t})=>d({textAlign:\"center\",flex:\"0 0 auto\",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:\"50%\",overflow:\"visible\",color:(e.vars||e).palette.action.active,transition:e.transitions.create(\"background-color\",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{\"&:hover\":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ho(e.palette.action.active,e.palette.action.hoverOpacity),\"@media (hover: none)\":{backgroundColor:\"transparent\"}}},t.edge===\"start\"&&{marginLeft:t.size===\"small\"?-3:-12},t.edge===\"end\"&&{marginRight:t.size===\"small\"?-3:-12}),({theme:e,ownerState:t})=>{var o;let r=(o=(e.vars||e).palette)==null?void 0:o[t.color];return d({},t.color===\"inherit\"&&{color:\"inherit\"},t.color!==\"inherit\"&&t.color!==\"default\"&&d({color:r?.main},!t.disableRipple&&{\"&:hover\":d({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ho(r.main,e.palette.action.hoverOpacity)},{\"@media (hover: none)\":{backgroundColor:\"transparent\"}})}),t.size===\"small\"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size===\"large\"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ws.disabled}`]:{backgroundColor:\"transparent\",color:(e.vars||e).palette.action.disabled}})}),pu=Lr.forwardRef(function(t,o){let r=ke({props:t,name:\"MuiIconButton\"}),{edge:n=!1,children:a,className:s,color:p=\"default\",disabled:i=!1,disableFocusRipple:l=!1,size:u=\"medium\"}=r,c=L(r,nu),f=d({},r,{edge:n,color:p,disabled:i,disableFocusRipple:l,size:u}),h=su(f);return au(iu,d({className:K(h.root,s),centerRipple:!0,focusRipple:!l,disabled:i,ref:o,ownerState:f},c,{children:a}))}),vo=pu;function Es(e){return typeof e==\"string\"}function vt(e,t,o){return e===void 0||Es(e)?t:d({},t,{ownerState:d({},t.ownerState,o)})}import*as Yo from\"react\";import{jsx as v0}from\"react/jsx-runtime\";var lu={disableDefaultClasses:!1},uu=Yo.createContext(lu);function Rs(e){let{disableDefaultClasses:t}=Yo.useContext(uu);return o=>t?\"\":e(o)}function Os(e,t=[]){if(e===void 0)return{};let o={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]==\"function\"&&!t.includes(r)).forEach(r=>{o[r]=e[r]}),o}function Ss(e,t,o){return typeof e==\"function\"?e(t,o):e}function In(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(o=>!(o.match(/^on[A-Z]/)&&typeof e[o]==\"function\")).forEach(o=>{t[o]=e[o]}),t}function Ms(e){let{getSlotProps:t,additionalProps:o,externalSlotProps:r,externalForwardedProps:n,className:a}=e;if(!t){let h=K(o?.className,a,n?.className,r?.className),x=d({},o?.style,n?.style,r?.style),m=d({},o,n,r);return h.length>0&&(m.className=h),Object.keys(x).length>0&&(m.style=x),{props:m,internalRef:void 0}}let s=Os(d({},n,r)),p=In(r),i=In(n),l=t(s),u=K(l?.className,o?.className,a,n?.className,r?.className),c=d({},l?.style,o?.style,n?.style,r?.style),f=d({},l,o,i,p);return u.length>0&&(f.className=u),Object.keys(c).length>0&&(f.style=c),{props:f,internalRef:l.ref}}var fu=[\"elementType\",\"externalSlotProps\",\"ownerState\",\"skipResolvingSlotProps\"];function jn(e){var t;let{elementType:o,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1}=e,s=L(e,fu),p=a?{}:Ss(r,n),{props:i,internalRef:l}=Ms(d({},s,{externalSlotProps:p})),u=_e(l,p?.ref,(t=e.additionalProps)==null?void 0:t.ref);return vt(o,d({},i,{ref:u}),n)}import*as pe from\"react\";var X=\"top\",ee=\"bottom\",Q=\"right\",Z=\"left\",Dr=\"auto\",Tt=[X,ee,Q,Z],rt=\"start\",Ft=\"end\",_s=\"clippingParents\",Ir=\"viewport\",To=\"popper\",Ns=\"reference\",Vn=Tt.reduce(function(e,t){return e.concat([t+\"-\"+rt,t+\"-\"+Ft])},[]),jr=[].concat(Tt,[Dr]).reduce(function(e,t){return e.concat([t,t+\"-\"+rt,t+\"-\"+Ft])},[]),cu=\"beforeRead\",mu=\"read\",du=\"afterRead\",hu=\"beforeMain\",yu=\"main\",xu=\"afterMain\",gu=\"beforeWrite\",bu=\"write\",vu=\"afterWrite\",As=[cu,mu,du,hu,yu,xu,gu,bu,vu];function re(e){return e?(e.nodeName||\"\").toLowerCase():null}function z(e){if(e==null)return window;if(e.toString()!==\"[object Window]\"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Be(e){var t=z(e).Element;return e instanceof t||e instanceof Element}function te(e){var t=z(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Po(e){if(typeof ShadowRoot>\"u\")return!1;var t=z(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tu(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},n=t.attributes[o]||{},a=t.elements[o];!te(a)||!re(a)||(Object.assign(a.style,r),Object.keys(n).forEach(function(s){var p=n[s];p===!1?a.removeAttribute(s):a.setAttribute(s,p===!0?\"\":p)}))})}function Pu(e){var t=e.state,o={popper:{position:t.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var n=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),p=s.reduce(function(i,l){return i[l]=\"\",i},{});!te(n)||!re(n)||(Object.assign(n.style,p),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}var ks={name:\"applyStyles\",enabled:!0,phase:\"write\",fn:Tu,effect:Pu,requires:[\"computeStyles\"]};function ne(e){return e.split(\"-\")[0]}var Ue=Math.max,Ut=Math.min,nt=Math.round;function Co(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+\"/\"+t.version}).join(\" \"):navigator.userAgent}function qo(){return!/^((?!chrome|android).)*safari/i.test(Co())}function Le(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),n=1,a=1;t&&te(e)&&(n=e.offsetWidth>0&&nt(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&nt(r.height)/e.offsetHeight||1);var s=Be(e)?z(e):window,p=s.visualViewport,i=!qo()&&o,l=(r.left+(i&&p?p.offsetLeft:0))/n,u=(r.top+(i&&p?p.offsetTop:0))/a,c=r.width/n,f=r.height/a;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l,x:l,y:u}}function Wt(e){var t=Le(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Zo(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Po(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ce(e){return z(e).getComputedStyle(e)}function $n(e){return[\"table\",\"td\",\"th\"].indexOf(re(e))>=0}function se(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function at(e){return re(e)===\"html\"?e:e.assignedSlot||e.parentNode||(Po(e)?e.host:null)||se(e)}function Bs(e){return!te(e)||ce(e).position===\"fixed\"?null:e.offsetParent}function Cu(e){var t=/firefox/i.test(Co()),o=/Trident/i.test(Co());if(o&&te(e)){var r=ce(e);if(r.position===\"fixed\")return null}var n=at(e);for(Po(n)&&(n=n.host);te(n)&&[\"html\",\"body\"].indexOf(re(n))<0;){var a=ce(n);if(a.transform!==\"none\"||a.perspective!==\"none\"||a.contain===\"paint\"||[\"transform\",\"perspective\"].indexOf(a.willChange)!==-1||t&&a.willChange===\"filter\"||t&&a.filter&&a.filter!==\"none\")return n;n=n.parentNode}return null}function We(e){for(var t=z(e),o=Bs(e);o&&$n(o)&&ce(o).position===\"static\";)o=Bs(o);return o&&(re(o)===\"html\"||re(o)===\"body\"&&ce(o).position===\"static\")?t:o||Cu(e)||t}function zt(e){return[\"top\",\"bottom\"].indexOf(e)>=0?\"x\":\"y\"}function Ht(e,t,o){return Ue(e,Ut(t,o))}function Ls(e,t,o){var r=Ht(e,t,o);return r>o?o:r}function Qo(){return{top:0,right:0,bottom:0,left:0}}function Jo(e){return Object.assign({},Qo(),e)}function er(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var wu=function(t,o){return t=typeof t==\"function\"?t(Object.assign({},o.rects,{placement:o.placement})):t,Jo(typeof t!=\"number\"?t:er(t,Tt))};function Eu(e){var t,o=e.state,r=e.name,n=e.options,a=o.elements.arrow,s=o.modifiersData.popperOffsets,p=ne(o.placement),i=zt(p),l=[Z,Q].indexOf(p)>=0,u=l?\"height\":\"width\";if(!(!a||!s)){var c=wu(n.padding,o),f=Wt(a),h=i===\"y\"?X:Z,x=i===\"y\"?ee:Q,m=o.rects.reference[u]+o.rects.reference[i]-s[i]-o.rects.popper[u],T=s[i]-o.rects.reference[i],b=We(a),w=b?i===\"y\"?b.clientHeight||0:b.clientWidth||0:0,C=m/2-T/2,y=c[h],g=w-f[u]-c[x],v=w/2-f[u]/2+C,P=Ht(y,v,g),R=i;o.modifiersData[r]=(t={},t[R]=P,t.centerOffset=P-v,t)}}function Ru(e){var t=e.state,o=e.options,r=o.element,n=r===void 0?\"[data-popper-arrow]\":r;n!=null&&(typeof n==\"string\"&&(n=t.elements.popper.querySelector(n),!n)||Zo(t.elements.popper,n)&&(t.elements.arrow=n))}var Ds={name:\"arrow\",enabled:!0,phase:\"main\",fn:Eu,effect:Ru,requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]};function De(e){return e.split(\"-\")[1]}var Ou={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function Su(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:nt(o*n)/n||0,y:nt(r*n)/n||0}}function Is(e){var t,o=e.popper,r=e.popperRect,n=e.placement,a=e.variation,s=e.offsets,p=e.position,i=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,c=e.isFixed,f=s.x,h=f===void 0?0:f,x=s.y,m=x===void 0?0:x,T=typeof u==\"function\"?u({x:h,y:m}):{x:h,y:m};h=T.x,m=T.y;var b=s.hasOwnProperty(\"x\"),w=s.hasOwnProperty(\"y\"),C=Z,y=X,g=window;if(l){var v=We(o),P=\"clientHeight\",R=\"clientWidth\";if(v===z(o)&&(v=se(o),ce(v).position!==\"static\"&&p===\"absolute\"&&(P=\"scrollHeight\",R=\"scrollWidth\")),v=v,n===X||(n===Z||n===Q)&&a===Ft){y=ee;var _=c&&v===g&&g.visualViewport?g.visualViewport.height:v[P];m-=_-r.height,m*=i?1:-1}if(n===Z||(n===X||n===ee)&&a===Ft){C=Q;var E=c&&v===g&&g.visualViewport?g.visualViewport.width:v[R];h-=E-r.width,h*=i?1:-1}}var O=Object.assign({position:p},l&&Ou),k=u===!0?Su({x:h,y:m},z(o)):{x:h,y:m};if(h=k.x,m=k.y,i){var A;return Object.assign({},O,(A={},A[y]=w?\"0\":\"\",A[C]=b?\"0\":\"\",A.transform=(g.devicePixelRatio||1)<=1?\"translate(\"+h+\"px, \"+m+\"px)\":\"translate3d(\"+h+\"px, \"+m+\"px, 0)\",A))}return Object.assign({},O,(t={},t[y]=w?m+\"px\":\"\",t[C]=b?h+\"px\":\"\",t.transform=\"\",t))}function Mu(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=r===void 0?!0:r,a=o.adaptive,s=a===void 0?!0:a,p=o.roundOffsets,i=p===void 0?!0:p,l={placement:ne(t.placement),variation:De(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy===\"fixed\"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Is(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Is(Object.assign({},l,{offsets:t.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-placement\":t.placement})}var js={name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:Mu,data:{}};var Vr={passive:!0};function _u(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,a=n===void 0?!0:n,s=r.resize,p=s===void 0?!0:s,i=z(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(u){u.addEventListener(\"scroll\",o.update,Vr)}),p&&i.addEventListener(\"resize\",o.update,Vr),function(){a&&l.forEach(function(u){u.removeEventListener(\"scroll\",o.update,Vr)}),p&&i.removeEventListener(\"resize\",o.update,Vr)}}var Vs={name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:_u,data:{}};var Nu={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function wo(e){return e.replace(/left|right|bottom|top/g,function(t){return Nu[t]})}var Au={start:\"end\",end:\"start\"};function $r(e){return e.replace(/start|end/g,function(t){return Au[t]})}function Gt(e){var t=z(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function Kt(e){return Le(se(e)).left+Gt(e).scrollLeft}function Fn(e,t){var o=z(e),r=se(e),n=o.visualViewport,a=r.clientWidth,s=r.clientHeight,p=0,i=0;if(n){a=n.width,s=n.height;var l=qo();(l||!l&&t===\"fixed\")&&(p=n.offsetLeft,i=n.offsetTop)}return{width:a,height:s,x:p+Kt(e),y:i}}function Un(e){var t,o=se(e),r=Gt(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=Ue(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Ue(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),p=-r.scrollLeft+Kt(e),i=-r.scrollTop;return ce(n||o).direction===\"rtl\"&&(p+=Ue(o.clientWidth,n?n.clientWidth:0)-a),{width:a,height:s,x:p,y:i}}function Xt(e){var t=ce(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function Fr(e){return[\"html\",\"body\",\"#document\"].indexOf(re(e))>=0?e.ownerDocument.body:te(e)&&Xt(e)?e:Fr(at(e))}function Pt(e,t){var o;t===void 0&&(t=[]);var r=Fr(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),a=z(r),s=n?[a].concat(a.visualViewport||[],Xt(r)?r:[]):r,p=t.concat(s);return n?p:p.concat(Pt(at(s)))}function Eo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ku(e,t){var o=Le(e,!1,t===\"fixed\");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function $s(e,t,o){return t===Ir?Eo(Fn(e,o)):Be(t)?ku(t,o):Eo(Un(se(e)))}function Bu(e){var t=Pt(at(e)),o=[\"absolute\",\"fixed\"].indexOf(ce(e).position)>=0,r=o&&te(e)?We(e):e;return Be(r)?t.filter(function(n){return Be(n)&&Zo(n,r)&&re(n)!==\"body\"}):[]}function Wn(e,t,o,r){var n=t===\"clippingParents\"?Bu(e):[].concat(t),a=[].concat(n,[o]),s=a[0],p=a.reduce(function(i,l){var u=$s(e,l,r);return i.top=Ue(u.top,i.top),i.right=Ut(u.right,i.right),i.bottom=Ut(u.bottom,i.bottom),i.left=Ue(u.left,i.left),i},$s(e,s,r));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function tr(e){var t=e.reference,o=e.element,r=e.placement,n=r?ne(r):null,a=r?De(r):null,s=t.x+t.width/2-o.width/2,p=t.y+t.height/2-o.height/2,i;switch(n){case X:i={x:s,y:t.y-o.height};break;case ee:i={x:s,y:t.y+t.height};break;case Q:i={x:t.x+t.width,y:p};break;case Z:i={x:t.x-o.width,y:p};break;default:i={x:t.x,y:t.y}}var l=n?zt(n):null;if(l!=null){var u=l===\"y\"?\"height\":\"width\";switch(a){case rt:i[l]=i[l]-(t[u]/2-o[u]/2);break;case Ft:i[l]=i[l]+(t[u]/2-o[u]/2);break;default:}}return i}function ze(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=r===void 0?e.placement:r,a=o.strategy,s=a===void 0?e.strategy:a,p=o.boundary,i=p===void 0?_s:p,l=o.rootBoundary,u=l===void 0?Ir:l,c=o.elementContext,f=c===void 0?To:c,h=o.altBoundary,x=h===void 0?!1:h,m=o.padding,T=m===void 0?0:m,b=Jo(typeof T!=\"number\"?T:er(T,Tt)),w=f===To?Ns:To,C=e.rects.popper,y=e.elements[x?w:f],g=Wn(Be(y)?y:y.contextElement||se(e.elements.popper),i,u,s),v=Le(e.elements.reference),P=tr({reference:v,element:C,strategy:\"absolute\",placement:n}),R=Eo(Object.assign({},C,P)),_=f===To?R:v,E={top:g.top-_.top+b.top,bottom:_.bottom-g.bottom+b.bottom,left:g.left-_.left+b.left,right:_.right-g.right+b.right},O=e.modifiersData.offset;if(f===To&&O){var k=O[n];Object.keys(E).forEach(function(A){var I=[Q,ee].indexOf(A)>=0?1:-1,S=[X,ee].indexOf(A)>=0?\"y\":\"x\";E[A]+=k[S]*I})}return E}function zn(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=o.boundary,a=o.rootBoundary,s=o.padding,p=o.flipVariations,i=o.allowedAutoPlacements,l=i===void 0?jr:i,u=De(r),c=u?p?Vn:Vn.filter(function(x){return De(x)===u}):Tt,f=c.filter(function(x){return l.indexOf(x)>=0});f.length===0&&(f=c);var h=f.reduce(function(x,m){return x[m]=ze(e,{placement:m,boundary:n,rootBoundary:a,padding:s})[ne(m)],x},{});return Object.keys(h).sort(function(x,m){return h[x]-h[m]})}function Lu(e){if(ne(e)===Dr)return[];var t=wo(e);return[$r(e),t,$r(t)]}function Du(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,a=n===void 0?!0:n,s=o.altAxis,p=s===void 0?!0:s,i=o.fallbackPlacements,l=o.padding,u=o.boundary,c=o.rootBoundary,f=o.altBoundary,h=o.flipVariations,x=h===void 0?!0:h,m=o.allowedAutoPlacements,T=t.options.placement,b=ne(T),w=b===T,C=i||(w||!x?[wo(T)]:Lu(T)),y=[T].concat(C).reduce(function(J,ie){return J.concat(ne(ie)===Dr?zn(t,{placement:ie,boundary:u,rootBoundary:c,padding:l,flipVariations:x,allowedAutoPlacements:m}):ie)},[]),g=t.rects.reference,v=t.rects.popper,P=new Map,R=!0,_=y[0],E=0;E<y.length;E++){var O=y[E],k=ne(O),A=De(O)===rt,I=[X,ee].indexOf(k)>=0,S=I?\"width\":\"height\",M=ze(t,{placement:O,boundary:u,rootBoundary:c,altBoundary:f,padding:l}),D=I?A?Q:Z:A?ee:X;g[S]>v[S]&&(D=wo(D));var j=wo(D),F=[];if(a&&F.push(M[k]<=0),p&&F.push(M[D]<=0,M[j]<=0),F.every(function(J){return J})){_=O,R=!1;break}P.set(O,F)}if(R)for(var oe=x?3:1,He=function(ie){var we=y.find(function(Ge){var ae=P.get(Ge);if(ae)return ae.slice(0,ie).every(function(Y){return Y})});if(we)return _=we,\"break\"},je=oe;je>0;je--){var Ve=He(je);if(Ve===\"break\")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var Fs={name:\"flip\",enabled:!0,phase:\"main\",fn:Du,requiresIfExists:[\"offset\"],data:{_skip:!1}};function Us(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Ws(e){return[X,Q,ee,Z].some(function(t){return e[t]>=0})}function Iu(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,s=ze(t,{elementContext:\"reference\"}),p=ze(t,{altBoundary:!0}),i=Us(s,r),l=Us(p,n,a),u=Ws(i),c=Ws(l);t.modifiersData[o]={referenceClippingOffsets:i,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{\"data-popper-reference-hidden\":u,\"data-popper-escaped\":c})}var zs={name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:Iu};function ju(e,t,o){var r=ne(e),n=[Z,X].indexOf(r)>=0?-1:1,a=typeof o==\"function\"?o(Object.assign({},t,{placement:e})):o,s=a[0],p=a[1];return s=s||0,p=(p||0)*n,[Z,Q].indexOf(r)>=0?{x:p,y:s}:{x:s,y:p}}function Vu(e){var t=e.state,o=e.options,r=e.name,n=o.offset,a=n===void 0?[0,0]:n,s=jr.reduce(function(u,c){return u[c]=ju(c,t.rects,a),u},{}),p=s[t.placement],i=p.x,l=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}var Hs={name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:Vu};function $u(e){var t=e.state,o=e.name;t.modifiersData[o]=tr({reference:t.rects.reference,element:t.rects.popper,strategy:\"absolute\",placement:t.placement})}var Gs={name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:$u,data:{}};function Hn(e){return e===\"x\"?\"y\":\"x\"}function Fu(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,a=n===void 0?!0:n,s=o.altAxis,p=s===void 0?!1:s,i=o.boundary,l=o.rootBoundary,u=o.altBoundary,c=o.padding,f=o.tether,h=f===void 0?!0:f,x=o.tetherOffset,m=x===void 0?0:x,T=ze(t,{boundary:i,rootBoundary:l,padding:c,altBoundary:u}),b=ne(t.placement),w=De(t.placement),C=!w,y=zt(b),g=Hn(y),v=t.modifiersData.popperOffsets,P=t.rects.reference,R=t.rects.popper,_=typeof m==\"function\"?m(Object.assign({},t.rects,{placement:t.placement})):m,E=typeof _==\"number\"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(v){if(a){var A,I=y===\"y\"?X:Z,S=y===\"y\"?ee:Q,M=y===\"y\"?\"height\":\"width\",D=v[y],j=D+T[I],F=D-T[S],oe=h?-R[M]/2:0,He=w===rt?P[M]:R[M],je=w===rt?-R[M]:-P[M],Ve=t.elements.arrow,J=h&&Ve?Wt(Ve):{width:0,height:0},ie=t.modifiersData[\"arrow#persistent\"]?t.modifiersData[\"arrow#persistent\"].padding:Qo(),we=ie[I],Ge=ie[S],ae=Ht(0,P[M],J[M]),Y=C?P[M]/2-oe-ae-we-E.mainAxis:He-ae-we-E.mainAxis,pt=C?-P[M]/2+oe+ae+Ge+E.mainAxis:je+ae+Ge+E.mainAxis,Ee=t.elements.arrow&&We(t.elements.arrow),Oo=Ee?y===\"y\"?Ee.clientTop||0:Ee.clientLeft||0:0,qt=(A=O?.[y])!=null?A:0,Zt=D+Y-qt-Oo,Re=D+pt-qt,lt=Ht(h?Ut(j,Zt):j,D,h?Ue(F,Re):F);v[y]=lt,k[y]=lt-D}if(p){var Qt,Qe=y===\"x\"?X:Z,Jt=y===\"x\"?ee:Q,le=v[g],Ke=g===\"y\"?\"height\":\"width\",Je=le+T[Qe],ut=le-T[Jt],ge=[X,Z].indexOf(b)!==-1,be=(Qt=O?.[g])!=null?Qt:0,Oe=ge?Je:le-P[Ke]-R[Ke]-be+E.altAxis,ft=ge?le+P[Ke]+R[Ke]-be-E.altAxis:ut,eo=h&&ge?Ls(Oe,le,ft):Ht(h?Oe:Je,le,h?ft:ut);v[g]=eo,k[g]=eo-le}t.modifiersData[r]=k}}var Ks={name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:Fu,requiresIfExists:[\"offset\"]};function Gn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Kn(e){return e===z(e)||!te(e)?Gt(e):Gn(e)}function Uu(e){var t=e.getBoundingClientRect(),o=nt(t.width)/e.offsetWidth||1,r=nt(t.height)/e.offsetHeight||1;return o!==1||r!==1}function Xn(e,t,o){o===void 0&&(o=!1);var r=te(t),n=te(t)&&Uu(t),a=se(t),s=Le(e,n,o),p={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(r||!r&&!o)&&((re(t)!==\"body\"||Xt(a))&&(p=Kn(t)),te(t)?(i=Le(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=Kt(a))),{x:s.left+p.scrollLeft-i.x,y:s.top+p.scrollTop-i.y,width:s.width,height:s.height}}function Wu(e){var t=new Map,o=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function n(a){o.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(p){if(!o.has(p)){var i=t.get(p);i&&n(i)}}),r.push(a)}return e.forEach(function(a){o.has(a.name)||n(a)}),r}function Yn(e){var t=Wu(e);return As.reduce(function(o,r){return o.concat(t.filter(function(n){return n.phase===r}))},[])}function qn(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function Zn(e){var t=e.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var Xs={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function Ys(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect==\"function\")})}function qs(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,n=t.defaultOptions,a=n===void 0?Xs:n;return function(p,i,l){l===void 0&&(l=a);var u={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},Xs,a),modifiersData:{},elements:{reference:p,popper:i},attributes:{},styles:{}},c=[],f=!1,h={state:u,setOptions:function(b){var w=typeof b==\"function\"?b(u.options):b;m(),u.options=Object.assign({},a,u.options,w),u.scrollParents={reference:Be(p)?Pt(p):p.contextElement?Pt(p.contextElement):[],popper:Pt(i)};var C=Yn(Zn([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(y){return y.enabled}),x(),h.update()},forceUpdate:function(){if(!f){var b=u.elements,w=b.reference,C=b.popper;if(Ys(w,C)){u.rects={reference:Xn(w,We(C),u.options.strategy===\"fixed\"),popper:Wt(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var g=u.orderedModifiers[y],v=g.fn,P=g.options,R=P===void 0?{}:P,_=g.name;typeof v==\"function\"&&(u=v({state:u,options:R,name:_,instance:h})||u)}}}},update:qn(function(){return new Promise(function(T){h.forceUpdate(),T(u)})}),destroy:function(){m(),f=!0}};if(!Ys(p,i))return h;h.setOptions(l).then(function(T){!f&&l.onFirstUpdate&&l.onFirstUpdate(T)});function x(){u.orderedModifiers.forEach(function(T){var b=T.name,w=T.options,C=w===void 0?{}:w,y=T.effect;if(typeof y==\"function\"){var g=y({state:u,name:b,instance:h,options:C}),v=function(){};c.push(g||v)}})}function m(){c.forEach(function(T){return T()}),c=[]}return h}}var zu=[Vs,Gs,js,ks,Hs,Fs,Ks,Ds,zs],Qn=qs({defaultModifiers:zu});import*as Ie from\"react\";import*as Qs from\"react-dom\";import{jsx as Zs}from\"react/jsx-runtime\";function Hu(e){return typeof e==\"function\"?e():e}var Jn=Ie.forwardRef(function(t,o){let{children:r,container:n,disablePortal:a=!1}=t,[s,p]=Ie.useState(null),i=_e(Ie.isValidElement(r)?r.ref:null,o);return Ye(()=>{a||p(Hu(n)||document.body)},[n,a]),Ye(()=>{if(s&&!a)return Mt(o,s),()=>{Mt(o,null)}},[o,s,a]),a?Ie.isValidElement(r)?Ie.cloneElement(r,{ref:i}):Zs(Ie.Fragment,{children:r}):Zs(Ie.Fragment,{children:s&&Qs.createPortal(r,s)})});function Js(e){return ue(\"MuiPopper\",e)}var Y1=me(\"MuiPopper\",[\"root\"]);import{jsx as ea}from\"react/jsx-runtime\";var Gu=[\"anchorEl\",\"children\",\"direction\",\"disablePortal\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"slotProps\",\"slots\",\"TransitionProps\",\"ownerState\"],Ku=[\"anchorEl\",\"children\",\"container\",\"direction\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"style\",\"transition\",\"slotProps\",\"slots\"];function Xu(e,t){if(t===\"ltr\")return e;switch(e){case\"bottom-end\":return\"bottom-start\";case\"bottom-start\":return\"bottom-end\";case\"top-end\":return\"top-start\";case\"top-start\":return\"top-end\";default:return e}}function ta(e){return typeof e==\"function\"?e():e}function Yu(e){return e.nodeType!==void 0}var qu=()=>Ne({root:[\"root\"]},Rs(Js)),Zu={},Qu=pe.forwardRef(function(t,o){var r;let{anchorEl:n,children:a,direction:s,disablePortal:p,modifiers:i,open:l,placement:u,popperOptions:c,popperRef:f,slotProps:h={},slots:x={},TransitionProps:m}=t,T=L(t,Gu),b=pe.useRef(null),w=_e(b,o),C=pe.useRef(null),y=_e(C,f),g=pe.useRef(y);Ye(()=>{g.current=y},[y]),pe.useImperativeHandle(f,()=>C.current,[]);let v=Xu(u,s),[P,R]=pe.useState(v),[_,E]=pe.useState(ta(n));pe.useEffect(()=>{C.current&&C.current.forceUpdate()}),pe.useEffect(()=>{n&&E(ta(n))},[n]),Ye(()=>{if(!_||!l)return;let S=j=>{R(j.placement)},M=[{name:\"preventOverflow\",options:{altBoundary:p}},{name:\"flip\",options:{altBoundary:p}},{name:\"onUpdate\",enabled:!0,phase:\"afterWrite\",fn:({state:j})=>{S(j)}}];i!=null&&(M=M.concat(i)),c&&c.modifiers!=null&&(M=M.concat(c.modifiers));let D=Qn(_,b.current,d({placement:v},c,{modifiers:M}));return g.current(D),()=>{D.destroy(),g.current(null)}},[_,p,i,l,c,v]);let O={placement:P};m!==null&&(O.TransitionProps=m);let k=qu(),A=(r=x.root)!=null?r:\"div\",I=jn({elementType:A,externalSlotProps:h.root,externalForwardedProps:T,additionalProps:{role:\"tooltip\",ref:w},ownerState:t,className:k.root});return ea(A,d({},I,{children:typeof a==\"function\"?a(O):a}))}),oa=pe.forwardRef(function(t,o){let{anchorEl:r,children:n,container:a,direction:s=\"ltr\",disablePortal:p=!1,keepMounted:i=!1,modifiers:l,open:u,placement:c=\"bottom\",popperOptions:f=Zu,popperRef:h,style:x,transition:m=!1,slotProps:T={},slots:b={}}=t,w=L(t,Ku),[C,y]=pe.useState(!0),g=()=>{y(!1)},v=()=>{y(!0)};if(!i&&!u&&(!m||C))return null;let P;if(a)P=a;else if(r){let E=ta(r);P=E&&Yu(E)?lo(E).body:lo(null).body}let R=!u&&i&&(!m||C)?\"none\":void 0,_=m?{in:u,onEnter:g,onExited:v}:void 0;return ea(Jn,{disablePortal:p,container:P,children:ea(Qu,d({anchorEl:r,direction:s,disablePortal:p,modifiers:l,ref:o,open:m?!C:u,placement:c,popperOptions:f,popperRef:h,slotProps:T,slots:b},w,{style:d({position:\"fixed\",top:0,left:0,display:R},x),TransitionProps:_,children:n}))})});import*as ei from\"react\";import{jsx as ef}from\"react/jsx-runtime\";var Ju=[\"anchorEl\",\"component\",\"components\",\"componentsProps\",\"container\",\"disablePortal\",\"keepMounted\",\"modifiers\",\"open\",\"placement\",\"popperOptions\",\"popperRef\",\"transition\",\"slots\",\"slotProps\"],tf=he(oa,{name:\"MuiPopper\",slot:\"Root\",overridesResolver:(e,t)=>t.root})({}),of=ei.forwardRef(function(t,o){var r;let n=Uo(),a=ke({props:t,name:\"MuiPopper\"}),{anchorEl:s,component:p,components:i,componentsProps:l,container:u,disablePortal:c,keepMounted:f,modifiers:h,open:x,placement:m,popperOptions:T,popperRef:b,transition:w,slots:C,slotProps:y}=a,g=L(a,Ju),v=(r=C?.root)!=null?r:i?.Root,P=d({anchorEl:s,container:u,disablePortal:c,keepMounted:f,modifiers:h,open:x,placement:m,popperOptions:T,popperRef:b,transition:w},g);return ef(tf,d({as:p,direction:n?.direction,slots:{root:v},slotProps:y??l},P,{ref:o}))}),Ur=of;import*as Ze from\"react\";import{jsx as nf}from\"react/jsx-runtime\";var rf=[\"addEndListener\",\"appear\",\"children\",\"easing\",\"in\",\"onEnter\",\"onEntered\",\"onEntering\",\"onExit\",\"onExited\",\"onExiting\",\"style\",\"timeout\",\"TransitionComponent\"];function na(e){return`scale(${e}, ${e**2})`}var af={entering:{opacity:1,transform:na(1)},entered:{opacity:1,transform:\"none\"}},ra=typeof navigator<\"u\"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\\/)15(.|_)4/i.test(navigator.userAgent),ti=Ze.forwardRef(function(t,o){let{addEndListener:r,appear:n=!0,children:a,easing:s,in:p,onEnter:i,onEntered:l,onEntering:u,onExit:c,onExited:f,onExiting:h,style:x,timeout:m=\"auto\",TransitionComponent:T=_n}=t,b=L(t,rf),w=Ze.useRef(),C=Ze.useRef(),y=Ko(),g=Ze.useRef(null),v=It(g,a.ref,o),P=S=>M=>{if(S){let D=g.current;M===void 0?S(D):S(D,M)}},R=P(u),_=P((S,M)=>{ms(S);let{duration:D,delay:j,easing:F}=kn({style:x,timeout:m,easing:s},{mode:\"enter\"}),oe;m===\"auto\"?(oe=y.transitions.getAutoHeightDuration(S.clientHeight),C.current=oe):oe=D,S.style.transition=[y.transitions.create(\"opacity\",{duration:oe,delay:j}),y.transitions.create(\"transform\",{duration:ra?oe:oe*.666,delay:j,easing:F})].join(\",\"),i&&i(S,M)}),E=P(l),O=P(h),k=P(S=>{let{duration:M,delay:D,easing:j}=kn({style:x,timeout:m,easing:s},{mode:\"exit\"}),F;m===\"auto\"?(F=y.transitions.getAutoHeightDuration(S.clientHeight),C.current=F):F=M,S.style.transition=[y.transitions.create(\"opacity\",{duration:F,delay:D}),y.transitions.create(\"transform\",{duration:ra?F:F*.666,delay:ra?D:D||F*.333,easing:j})].join(\",\"),S.style.opacity=0,S.style.transform=na(.75),c&&c(S)}),A=P(f),I=S=>{m===\"auto\"&&(w.current=setTimeout(S,C.current||0)),r&&r(g.current,S)};return Ze.useEffect(()=>()=>{clearTimeout(w.current)},[]),nf(T,d({appear:n,in:p,nodeRef:g,onEnter:_,onEntered:E,onEntering:R,onExit:k,onExited:A,onExiting:O,addEndListener:I,timeout:m===\"auto\"?null:m},b,{children:(S,M)=>Ze.cloneElement(a,d({style:d({opacity:0,transform:na(.75),visibility:S===\"exited\"&&!p?\"hidden\":void 0},af[S],x,a.props.style),ref:v},M))}))});ti.muiSupportAuto=!0;var Wr=ti;import*as $ from\"react\";function oi(e){return ue(\"MuiTooltip\",e)}var sf=me(\"MuiTooltip\",[\"popper\",\"popperInteractive\",\"popperArrow\",\"popperClose\",\"tooltip\",\"tooltipArrow\",\"touch\",\"tooltipPlacementLeft\",\"tooltipPlacementRight\",\"tooltipPlacementTop\",\"tooltipPlacementBottom\",\"arrow\"]),st=sf;import{jsx as zr}from\"react/jsx-runtime\";import{jsxs as ri}from\"react/jsx-runtime\";var pf=[\"arrow\",\"children\",\"classes\",\"components\",\"componentsProps\",\"describeChild\",\"disableFocusListener\",\"disableHoverListener\",\"disableInteractive\",\"disableTouchListener\",\"enterDelay\",\"enterNextDelay\",\"enterTouchDelay\",\"followCursor\",\"id\",\"leaveDelay\",\"leaveTouchDelay\",\"onClose\",\"onOpen\",\"open\",\"placement\",\"PopperComponent\",\"PopperProps\",\"slotProps\",\"slots\",\"title\",\"TransitionComponent\",\"TransitionProps\"];function lf(e){return Math.round(e*1e5)/1e5}var uf=e=>{let{classes:t,disableInteractive:o,arrow:r,touch:n,placement:a}=e,s={popper:[\"popper\",!o&&\"popperInteractive\",r&&\"popperArrow\"],tooltip:[\"tooltip\",r&&\"tooltipArrow\",n&&\"touch\",`tooltipPlacement${qe(a.split(\"-\")[0])}`],arrow:[\"arrow\"]};return Ne(s,oi,t)},ff=he(Ur,{name:\"MuiTooltip\",slot:\"Popper\",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(({theme:e,ownerState:t,open:o})=>d({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:\"none\"},!t.disableInteractive&&{pointerEvents:\"auto\"},!o&&{pointerEvents:\"none\"},t.arrow&&{[`&[data-popper-placement*=\"bottom\"] .${st.arrow}`]:{top:0,marginTop:\"-0.71em\",\"&::before\":{transformOrigin:\"0 100%\"}},[`&[data-popper-placement*=\"top\"] .${st.arrow}`]:{bottom:0,marginBottom:\"-0.71em\",\"&::before\":{transformOrigin:\"100% 0\"}},[`&[data-popper-placement*=\"right\"] .${st.arrow}`]:d({},t.isRtl?{right:0,marginRight:\"-0.71em\"}:{left:0,marginLeft:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"100% 100%\"}}),[`&[data-popper-placement*=\"left\"] .${st.arrow}`]:d({},t.isRtl?{left:0,marginLeft:\"-0.71em\"}:{right:0,marginRight:\"-0.71em\"},{height:\"1em\",width:\"0.71em\",\"&::before\":{transformOrigin:\"0 0\"}})})),cf=he(\"div\",{name:\"MuiTooltip\",slot:\"Tooltip\",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${qe(o.placement.split(\"-\")[0])}`]]}})(({theme:e,ownerState:t})=>d({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ho(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:\"4px 8px\",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:\"break-word\",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:\"relative\",margin:0},t.touch&&{padding:\"8px 16px\",fontSize:e.typography.pxToRem(14),lineHeight:`${lf(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${st.popper}[data-popper-placement*=\"left\"] &`]:d({transformOrigin:\"right center\"},t.isRtl?d({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"}):d({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"})),[`.${st.popper}[data-popper-placement*=\"right\"] &`]:d({transformOrigin:\"left center\"},t.isRtl?d({marginRight:\"14px\"},t.touch&&{marginRight:\"24px\"}):d({marginLeft:\"14px\"},t.touch&&{marginLeft:\"24px\"})),[`.${st.popper}[data-popper-placement*=\"top\"] &`]:d({transformOrigin:\"center bottom\",marginBottom:\"14px\"},t.touch&&{marginBottom:\"24px\"}),[`.${st.popper}[data-popper-placement*=\"bottom\"] &`]:d({transformOrigin:\"center top\",marginTop:\"14px\"},t.touch&&{marginTop:\"24px\"})})),mf=he(\"span\",{name:\"MuiTooltip\",slot:\"Arrow\",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:\"hidden\",position:\"absolute\",width:\"1em\",height:\"0.71em\",boxSizing:\"border-box\",color:e.vars?e.vars.palette.Tooltip.bg:ho(e.palette.grey[700],.9),\"&::before\":{content:'\"\"',margin:\"auto\",display:\"block\",width:\"100%\",height:\"100%\",backgroundColor:\"currentColor\",transform:\"rotate(45deg)\"}})),Hr=!1,aa=null,or={x:0,y:0};function Gr(e,t){return o=>{t&&t(o),e(o)}}var df=$.forwardRef(function(t,o){var r,n,a,s,p,i,l,u,c,f,h,x,m,T,b,w,C,y,g;let v=ke({props:t,name:\"MuiTooltip\"}),{arrow:P=!1,children:R,components:_={},componentsProps:E={},describeChild:O=!1,disableFocusListener:k=!1,disableHoverListener:A=!1,disableInteractive:I=!1,disableTouchListener:S=!1,enterDelay:M=100,enterNextDelay:D=0,enterTouchDelay:j=700,followCursor:F=!1,id:oe,leaveDelay:He=0,leaveTouchDelay:je=1500,onClose:Ve,onOpen:J,open:ie,placement:we=\"bottom\",PopperComponent:Ge,PopperProps:ae={},slotProps:Y={},slots:pt={},title:Ee,TransitionComponent:Oo=Wr,TransitionProps:qt}=v,Zt=L(v,pf),Re=$.isValidElement(R)?R:zr(\"span\",{children:R}),lt=Ko(),Qt=lt.direction===\"rtl\",[Qe,Jt]=$.useState(),[le,Ke]=$.useState(null),Je=$.useRef(!1),ut=I||F,ge=$.useRef(),be=$.useRef(),Oe=$.useRef(),ft=$.useRef(),[eo,N]=ps({controlled:ie,default:!1,name:\"Tooltip\",state:\"open\"}),Se=eo,So=is(oe),ct=$.useRef(),Mo=$.useCallback(()=>{ct.current!==void 0&&(document.body.style.WebkitUserSelect=ct.current,ct.current=void 0),clearTimeout(ft.current)},[]);$.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(be.current),clearTimeout(Oe.current),Mo()},[Mo]);let pa=B=>{clearTimeout(aa),Hr=!0,N(!0),J&&!Se&&J(B)},rr=Dt(B=>{clearTimeout(aa),aa=setTimeout(()=>{Hr=!1},800+He),N(!1),Ve&&Se&&Ve(B),clearTimeout(ge.current),ge.current=setTimeout(()=>{Je.current=!1},lt.transitions.duration.shortest)}),qr=B=>{Je.current&&B.type!==\"touchstart\"||(Qe&&Qe.removeAttribute(\"title\"),clearTimeout(be.current),clearTimeout(Oe.current),M||Hr&&D?be.current=setTimeout(()=>{pa(B)},Hr?D:M):pa(B))},la=B=>{clearTimeout(be.current),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{rr(B)},He)},{isFocusVisibleRef:ua,onBlur:mi,onFocus:di,ref:hi}=wr(),[,fa]=$.useState(!1),ca=B=>{mi(B),ua.current===!1&&(fa(!1),la(B))},ma=B=>{Qe||Jt(B.currentTarget),di(B),ua.current===!0&&(fa(!0),qr(B))},da=B=>{Je.current=!0;let ve=Re.props;ve.onTouchStart&&ve.onTouchStart(B)},ha=qr,ya=la,yi=B=>{da(B),clearTimeout(Oe.current),clearTimeout(ge.current),Mo(),ct.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=\"none\",ft.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ct.current,qr(B)},j)},xi=B=>{Re.props.onTouchEnd&&Re.props.onTouchEnd(B),Mo(),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{rr(B)},je)};$.useEffect(()=>{if(!Se)return;function B(ve){(ve.key===\"Escape\"||ve.key===\"Esc\")&&rr(ve)}return document.addEventListener(\"keydown\",B),()=>{document.removeEventListener(\"keydown\",B)}},[rr,Se]);let gi=It(Re.ref,hi,Jt,o);!Ee&&Ee!==0&&(Se=!1);let Zr=$.useRef(),bi=B=>{let ve=Re.props;ve.onMouseMove&&ve.onMouseMove(B),or={x:B.clientX,y:B.clientY},Zr.current&&Zr.current.update()},_o={},Qr=typeof Ee==\"string\";O?(_o.title=!Se&&Qr&&!A?Ee:null,_o[\"aria-describedby\"]=Se?So:null):(_o[\"aria-label\"]=Qr?Ee:null,_o[\"aria-labelledby\"]=Se&&!Qr?So:null);let $e=d({},_o,Zt,Re.props,{className:K(Zt.className,Re.props.className),onTouchStart:da,ref:gi},F?{onMouseMove:bi}:{}),No={};S||($e.onTouchStart=yi,$e.onTouchEnd=xi),A||($e.onMouseOver=Gr(ha,$e.onMouseOver),$e.onMouseLeave=Gr(ya,$e.onMouseLeave),ut||(No.onMouseOver=ha,No.onMouseLeave=ya)),k||($e.onFocus=Gr(ma,$e.onFocus),$e.onBlur=Gr(ca,$e.onBlur),ut||(No.onFocus=ma,No.onBlur=ca));let vi=$.useMemo(()=>{var B;let ve=[{name:\"arrow\",enabled:!!le,options:{element:le,padding:4}}];return(B=ae.popperOptions)!=null&&B.modifiers&&(ve=ve.concat(ae.popperOptions.modifiers)),d({},ae.popperOptions,{modifiers:ve})},[le,ae]),Ao=d({},v,{isRtl:Qt,arrow:P,disableInteractive:ut,placement:we,PopperComponentProp:Ge,touch:Je.current}),Jr=uf(Ao),xa=(r=(n=pt.popper)!=null?n:_.Popper)!=null?r:ff,ga=(a=(s=(p=pt.transition)!=null?p:_.Transition)!=null?s:Oo)!=null?a:Wr,ba=(i=(l=pt.tooltip)!=null?l:_.Tooltip)!=null?i:cf,va=(u=(c=pt.arrow)!=null?c:_.Arrow)!=null?u:mf,Ti=vt(xa,d({},ae,(f=Y.popper)!=null?f:E.popper,{className:K(Jr.popper,ae?.className,(h=(x=Y.popper)!=null?x:E.popper)==null?void 0:h.className)}),Ao),Pi=vt(ga,d({},qt,(m=Y.transition)!=null?m:E.transition),Ao),Ci=vt(ba,d({},(T=Y.tooltip)!=null?T:E.tooltip,{className:K(Jr.tooltip,(b=(w=Y.tooltip)!=null?w:E.tooltip)==null?void 0:b.className)}),Ao),wi=vt(va,d({},(C=Y.arrow)!=null?C:E.arrow,{className:K(Jr.arrow,(y=(g=Y.arrow)!=null?g:E.arrow)==null?void 0:y.className)}),Ao);return ri($.Fragment,{children:[$.cloneElement(Re,$e),zr(xa,d({as:Ge??Ur,placement:we,anchorEl:F?{getBoundingClientRect:()=>({top:or.y,left:or.x,right:or.x,bottom:or.y,width:0,height:0})}:Qe,popperRef:Zr,open:Qe?Se:!1,id:So,transition:!0},No,Ti,{popperOptions:vi,children:({TransitionProps:B})=>zr(ga,d({timeout:lt.transitions.duration.shorter},B,Pi,{children:ri(ba,d({},Ci,{children:[Ee,P?zr(va,d({},wi,{ref:Ke})):null]}))}))}))]})}),Ro=df;import{Fragment as ni,jsx as xe,jsxs as Kr}from\"react/jsx-runtime\";var sa=class extends hf.Component{render(){let{value:t,voucherValue:o,maxMonths:r,notQualifyForRewardThisMonth:n,amountShow:a,translationConfig:s={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\",estimateDisclaimer:\"\"},storeConfig:p={tiers:[{consecutive_months:0,min_spend:0,max_spend:0,promo_code:\"\"},{consecutive_months:0,min_spend:0,promo_code:\"\"}]},currencyAbbreviate:i=!1,currencyFormat:l=()=>{}}=this.props,u=l(o||0,!0,i),c=s.currentlyTrack.replace(\"%currency_symbol%%currency_amount%\",`${u}`),f=Me(s.approximateTotal,{currency_symbol:\"\",projected_month_spend:\"\"}),h=parseFloat(String(p?.tiers?.[0]?.min_spend))||0,x=l(h,!0,i),m=s.callToAction.replace(\"%currency_symbol%%current_spend_target%\",`${x}`),T=Me(s.approximateMonthly,{currency_symbol:\"\",estimated_running_subscription_spend:\"\"}),b=l(a??0,!1,!1);return Kr(sr,{children:[xe(ir,{children:n?Kr(ni,{children:[xe(et,{children:xe(yf,{className:\"loyalty-warning-icon\",color:\"#4A6987\"})}),xe(Yt,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#293A4A\",noSpacing:!0,children:s.notQualify})]}):Kr(ni,{children:[xe(Yt,{variant:\"body-s\",weight:\"normal\",colorOverride:\"#252525\",className:\"reward-subtitle\",component:\"span\",noSpacing:!0,children:T}),\"\\xA0\",xe(Yt,{weight:\"bold\",className:\"button-price\",variant:\"body-s\",component:\"span\",children:`${b}`}),xe(et,{children:xe(Ro,{slotProps:{tooltip:{sx:{color:\"#FFFFFF\",backgroundColor:\"#252525\",fontFamily:\"Inter\",fontWeight:400,fontSize:\"14px\",lineHeight:\"20px\",\"& .MuiTooltip-arrow\":{color:\"#252525\"}}}},title:s.estimateDisclaimer,arrow:!0,placement:\"top\",children:xe(\"span\",{className:\"info-icon\",children:xe(vo,{children:xe(fr,{})})})})})]})}),t===r?\"\":n?Kr(Yt,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#252525\",component:\"div\",children:[f,\"\\xA0\",xe(Yt,{component:\"span\",className:\"button-price\",variant:\"body-s\",weight:\"bold\",children:`${b}`})]}):o!=null||o!=null?xe(Yt,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:c}):xe(Yt,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:m})]})}},ai=sa;import{useState as xf}from\"react\";import{FaExclamationTriangle as ii}from\"react-icons/fa\";import{NsTypography as it}from\"@nuskin/foundation-ui-components\";import{CircularProgressbarWithChildren as gf,buildStyles as bf}from\"react-circular-progressbar\";import{Fragment as si,jsx as V,jsxs as Ct}from\"react/jsx-runtime\";function vf({voucherValue:e,minVoucher:t,maxVoucher:o,notQualifyForRewardThisMonth:r,learn3xMore:n,learnMoreText:a,translationLearnMore:s}){return e===t&&!r?n:e===o||r?a:(e==null,s)}function Tf({isComplete:e,notQualifyForRewardThisMonth:t,hasVoucherValue:o,voucherEarned:r,voucherTargetAmount:n}){return e&&!t?V(lr,{}):t?V(et,{children:V(ii,{className:\"outline-exclamation-icon\",color:\"#91ACC8\"})}):o?Ct(ro,{children:[V(it,{component:\"div\",className:\"center-value-progress-bar-price\",variant:\"title-l\",weight:\"bold\",children:r}),V(it,{variant:\"label-s\",weight:\"bold\",component:\"div\",className:\"center-value-progress-bar-voucher\",children:n})]}):V(ro,{children:V(ur,{})})}function Pf({isComplete:e,amountShow:t,minAmount:o,voucherEarnedText:r,monthsCompleteText:n}){return V(\"div\",{className:\"info-item\",children:e&&t!==void 0&&t>o?r:n})}function Cf({isComplete:e,notQualifyForRewardThisMonth:t,hasVoucherValue:o,approximateTotalText:r,amountShowText:n,currentlyTrackText:a,callToActionText:s}){return e?null:t?Ct(it,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#252525\",component:\"div\",children:[r,\" \",V(it,{component:\"span\",className:\"button-price\",variant:\"body-s\",weight:\"bold\",children:n})]}):o?V(it,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:a}):V(it,{variant:\"body-s\",weight:\"bold\",className:\"reward-subtitle\",colorOverride:\"#252525\",children:s})}function wf({notQualifyForRewardThisMonth:e,approximateMonthlyText:t,amountShowText:o,translationNotQualify:r,estimateDisclaimer:n,open:a,handleTooltipToggle:s,handleTooltipClose:p}){return e?Ct(si,{children:[V(et,{children:V(ii,{className:\"loyalty-warning-icon\",color:\"#4A6987\"})}),V(it,{variant:\"body-s\",weight:\"normal\",className:\"reward-subtitle\",colorOverride:\"#293A4A\",noSpacing:!0,children:r})]}):Ct(si,{children:[Ct(it,{variant:\"body-s\",weight:\"normal\",colorOverride:\"#252525\",className:\"reward-subtitle\",component:\"span\",noSpacing:!0,children:[t,\" \"]}),\"\\xA0\",V(it,{weight:\"bold\",className:\"button-price\",variant:\"body-s\",component:\"span\",children:o}),V(et,{children:V(Ro,{slotProps:Ea,title:n,arrow:!0,placement:\"top\",open:a,onClose:p,children:V(\"span\",{className:\"info-icon\",children:V(vo,{onClick:s,children:V(fr,{})})})})})]})}var Ef=e=>{let[t,o]=xf(!1),r=()=>{o(!t)},n=()=>o(!1),{handleOpenSubscriptionRewardPopup:a=()=>{},notQualifyForRewardThisMonth:s=!1,value:p=0,voucherValue:i=0,amountShow:l,maxMonths:u=0,translationConfig:c={voucherTargetAmount:\"\",monthsComplete:\"\",voucherEarned:\"\",learnMore:\"\",learn3xMore:\"\",callToAction:\"\",notQualify:\"\",approximateMonthly:\"\",approximateTotal:\"\",currentlyTrack:\"\",loyaltyLogoBlack:\"\",estimateDisclaimer:\"\"},learnMoreConfig:f={tagLine:\"\",cardOneDescription:\"\",cardOneVoucherAmount:\"\",cardTwoDescription:\"\",cardTwoVoucherAmount:\"\",header:\"\",loyaltyLogoWhite:\"\",loyaltyBanner:\"\",learnMore:\"\"},storeConfig:h={tiers:[{consecutive_months:\"\",min_spend:\"\",max_spend:\"\",promo_code:\"\"},{consecutive_months:\"\",min_spend:\"\",promo_code:\"\"}]},currencyAbbreviate:x=!1,currencyFormat:m}=e,T=50,b=150,w=(je,Ve,J)=>m?.(je,Ve,J)??\"\",C=Me(c.monthsComplete,{completed_months:p,total_months:u}),y=w(i||0,!0,x),g=c.voucherEarned.replace(\"%currency_symbol%%currency_amount%\",`${y}`),v=c.currentlyTrack.replace(\"%currency_symbol%%currency_amount%\",`${y}`),P=Me(c.approximateTotal,{currency_symbol:\"\",projected_month_spend:\"\"}),R=parseFloat(String(h?.tiers?.[0]?.min_spend))||0,_=w(R,!0,x),E=c.callToAction.replace(\"%currency_symbol%%current_spend_target%\",`${_}`),O=Me(c.approximateMonthly,{currency_symbol:\"\",estimated_running_subscription_spend:\"\"}),k=Me(c.voucherTargetAmount,{currency_symbol:\"\",voucher_amount:\"\"}),A=w(l??0,!1,!1),I=p===u,S=i!=null,M=p===u&&!s?\"rgb(195 240 194)\":\"#fff\",D=vf({voucherValue:i,minVoucher:T,maxVoucher:b,notQualifyForRewardThisMonth:s,learn3xMore:c.learn3xMore,learnMoreText:f.learnMore,translationLearnMore:c.learnMore}),j=Tf({isComplete:I,notQualifyForRewardThisMonth:s,hasVoucherValue:S,voucherEarned:y,voucherTargetAmount:k}),F=Pf({isComplete:I,amountShow:l,minAmount:R,voucherEarnedText:g,monthsCompleteText:C}),oe=Cf({isComplete:I,notQualifyForRewardThisMonth:s,hasVoucherValue:S,approximateTotalText:P,amountShowText:A,currentlyTrackText:v,callToActionText:E}),He=wf({notQualifyForRewardThisMonth:s,approximateMonthlyText:O,amountShowText:A,translationNotQualify:c.notQualify,estimateDisclaimer:c.estimateDisclaimer??\"\",open:t,handleTooltipToggle:r,handleTooltipClose:n});return Ct(nr,{children:[V(oo,{children:V(\"img\",{className:\"reward-logo\",src:c.loyaltyLogoBlack,alt:\"Rewards Logo\"})}),V(\"div\",{className:\"reward-progress\",children:Ct(gf,{value:p/u*100,strokeWidth:12,background:!0,styles:bf({rotation:.5,strokeLinecap:\"butt\",backgroundColor:M,pathColor:\"#6BC56A\",trailColor:\"#E0E0E0\"}),children:[V(pr,{count:u}),j]})}),V(oo,{children:F}),Ct(sr,{children:[oe,V(ir,{children:He})]}),V(oo,{children:V(ar,{onClick:a,children:V(\"u\",{children:D})})})]})},pi=Ef;var Xr=typeof window==\"object\",ia=class{constructor(){this.width=Xr?window.innerWidth:0;this.scroll={vertical:Xr?window.scrollY:0,horizontal:Xr?window.scrollX:0,direction:\"none\"}}get isMobile(){return this.isPhone}get isPhone(){return Xr?window.innerWidth<768:this.width<768}},li=new ia;var Rf=(e=[])=>[...e].sort((t,o)=>t.year===o.year?o.month-t.month:o.year-t.year),ui=(e,t)=>e.month===t.getMonth()+1&&e.year===t.getFullYear(),Of=(e,t)=>e.filter(o=>ui(o,t)),Sf=e=>e?.[0]?.totalAmount??0,Mf=e=>parseInt(e?.approximateMonthlyTotalResponse?.currentMonthTotal??\"0\"),_f=(e,t,o)=>e>o?o:t,Nf=(e,t)=>e.some(o=>o.totalAmount>=t),Af=(e,t,o)=>o?new Date(e.getFullYear(),e.getMonth()-(t-1),1):new Date(e.getFullYear(),e.getMonth()-t,1),kf=(e,t)=>e.filter(o=>new Date(o.year,o.month-1)>=t),Bf=e=>e.filter(t=>t.promocode===null||t.promocode===void 0||t.promocode===\"\"),Lf=(e,t,o)=>o?e:e.filter(r=>!ui(r,t)),Df=(e,t)=>e.slice(0,t),If=e=>e&&e.some(o=>o===void 0)?e.every(o=>o===e[0]):!1,jf=(e,t,o)=>{let r=t?e.getMonth():e.getMonth()-1;return new Date(e.getFullYear(),r-o).getMonth()+1},Vf=e=>e!==void 0&&e!==\"\"&&e!==null,$f=e=>e===void 0||e===\"\"||e===null,Ff=(e,t)=>e?.month&&e.month!==t,Uf=(e,t)=>e&&Vf(t),Wf=(e,t,o,r)=>{let n=t,a=o.minVoucher;return o.allMonthsAboveMaxAmount||t===2&&e>=o.maxAmount?a=o.maxVoucher:n=1,{monthCompletionValue:r+1,voucherValue:a,tier:n}},zf=(e,t)=>{if(!e||!t.promoCodes)return{monthCompletionValue:t.monthCompletionValue,voucherValue:t.voucherValue};let o=t.voucherValue,r=t.monthCompletionValue,n=2;for(let a=0;a<e.length;a++){let s=e[a],p=t.promoCodes[a],i=jf(t.today,t.isCurrentMonthEligible,a);if(Ff(s,i))return{monthCompletionValue:r,voucherValue:o};if(Uf(t.allSamePromoCode,p))return{monthCompletionValue:0,voucherValue:o};let l=s.totalAmount>=t.minAmount,u=$f(p);if(l&&u){let c=Wf(s.totalAmount,n,t,r);r=c.monthCompletionValue,o=c.voucherValue,n=c.tier;continue}if(s.totalAmount<t.minAmount)return{monthCompletionValue:r,voucherValue:o}}return{monthCompletionValue:r,voucherValue:o}},fi=({data:e,minAmount:t,maxAmount:o,minVoucher:r,maxVoucher:n,initialVoucherValue:a,initialMonthCompletionValue:s,maxMonths:p,today:i})=>{let l=a,u=s;if(!e)return{monthCompletionValue:u,voucherValue:l};let c=Rf(e.csmMonthlySubsOrderTotal),f=Of(c,i),h=f.length>0,x=Sf(f),m=Mf(e),T=_f(m,t,o),b=Nf(f,T),w=Af(i,p,h&&b),C=kf(c,w),y=Bf(C),g=Lf(y,i,b),v=Df(g,p),P=v?.every(E=>E.totalAmount>=o)??!1,R=v?.map(E=>E.promocode),_=If(R);return{monthCompletionValue:u,voucherValue:l}=zf(v,{minAmount:t,maxAmount:o,minVoucher:r,maxVoucher:n,isCurrentMonthEligible:b,today:i,monthCompletionValue:u,voucherValue:l,allMonthsAboveMaxAmount:P,promoCodes:R,allSamePromoCode:_}),(!h||!b)&&l!==r&&(l=m>=o?n:r),!b&&l===r&&u<p&&x>=t&&(u+=1),{monthCompletionValue:u,voucherValue:l}};import{Fragment as Yf,jsx as Yr,jsxs as ci}from\"react/jsx-runtime\";var Gf=(e,t,o,r)=>e<t?o:e>t?r:0,Kf=e=>{let{title:t,subscriptionData:o,translationConfig:r,learnMoreConfig:n,storeConfig:a,currencyFormat:s}=e,p=a?.tiers?.[0]?.max_spend??0,i=a?.tiers?.[0]?.min_spend??0,l=a?.tiers?.[0]?.consecutive_months??0,[u,c]=Hf(!1),f=()=>c(!0),h=()=>c(!1),x=o,m=0,T=0;a?.tiers?.map(P=>{P.min_spend<i&&(i=P.min_spend),\"max_spend\"in P&&P.max_spend>p&&(p=P.max_spend)}),a?.tiers?.map(P=>{if(P.min_spend===i){let R=P.promo_code;R=R?.split(\"-\")?.[0]?.replace(\"NSR\",\"\"),m=parseInt(R)}if(P.min_spend===p){let R=P.promo_code;R=R?.split(\"-\")?.[0]?.replace(\"NSR\",\"\"),T=parseInt(R)}});let b=parseFloat(x?.approximateMonthlyTotalResponse?.currentMonthTotal??\"0\"),w=Gf(b,p,m,T),{monthCompletionValue:C,voucherValue:y}=fi({data:x,minAmount:i,maxAmount:p,minVoucher:m,maxVoucher:T,initialVoucherValue:w,initialMonthCompletionValue:0,maxMonths:l,today:new Date}),g=C,v=b<i&&y!==0&&g!==l;return ci(Pa,{children:[li.isMobile?Yr(pi,{value:g,title:t,voucherValue:y,maxMonths:l,handleOpenSubscriptionRewardPopup:f,storeConfig:a,amountShow:b,notQualifyForRewardThisMonth:v,translationConfig:r,learnMoreConfig:n,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:s}):ci(Yf,{children:[Yr(Sa,{value:g,title:t,notQualifyForRewardThisMonth:v,monthCompletionValue:C,storeConfig:a,maxMonths:l,voucherValue:y,handleOpenSubscriptionRewardPopup:f,translationConfig:r,learnMoreConfig:n,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:s}),Yr(ai,{notQualifyForRewardThisMonth:v,value:g,voucherValue:y,maxMonths:l,title:t,monthCompletionValue:C,storeConfig:a,translationConfig:r,learnMoreConfig:n,handleOpenSubscriptionRewardPopup:f,amountShow:b,currencyAbbreviate:a?.currencyAbbreviate,currencyFormat:s})]}),Yr(Ta,{show:u,close:h,amountShow:b,learnMoreConfig:n,translationConfig:r})]})},Xf=Kf;export{Xf as SubscriptionReward};\n/*! Bundled license information:\n\n@mui/styled-engine/index.js:\n (**\n * @mui/styled-engine v5.16.14\n *\n * @license MIT\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@mui/material/index.js:\n (**\n * @mui/material v5.14.16\n *\n * @license MIT\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","import React, { useState } from 'react';\nimport { SubscriptionRewardModal } from '../SubscriptionRewardModal';\nimport RewardProgressBar from './RewardProgressBar';\nimport RewardSubscriptionTotal from './RewardSubscriptionTotal';\nimport { RewardProgressBarContainer } from './CircularProgressBar.styled';\nimport { RewardProgressBarProps } from './types';\nimport SubscriptionRewardMobile from './SubscriptionRewardMobile';\nimport { application } from '../Utils/application';\nimport { calculateMonthCompletionValues } from './logic/calculateMonthCompletionValues';\n\nconst resolveInitialVoucherValue = (amountShow: number, maxAmount: number, minVoucher: number, maxVoucher: number) => {\n if (amountShow < maxAmount) return minVoucher;\n if (amountShow > maxAmount) return maxVoucher;\n return 0;\n};\n\nconst SubscriptionReward = (props: RewardProgressBarProps) => {\n const { title, subscriptionData, translationConfig, learnMoreConfig, storeConfig, currencyFormat } = props;\n let maxAmount = storeConfig?.tiers?.[0]?.max_spend ?? 0;\n let minAmount = storeConfig?.tiers?.[0]?.min_spend ?? 0;\n const maxMonths = storeConfig?.tiers?.[0]?.consecutive_months ?? 0;\n const [show, setShow] = useState(false);\n const handleOpen = () => setShow(true);\n const handleClose = () => setShow(false);\n const rewardData = subscriptionData;\n let minVoucher = 0;\n let maxVoucher = 0;\n\n storeConfig?.tiers?.map((tier) => {\n if (tier.min_spend < minAmount) {\n minAmount = tier.min_spend;\n }\n // Check if 'max_spend' exists before trying to access it\n if ('max_spend' in tier && tier.max_spend > maxAmount) {\n maxAmount = tier.max_spend;\n }\n });\n\n storeConfig?.tiers?.map((tier) => {\n if (tier.min_spend === minAmount) {\n let promocode = tier.promo_code;\n promocode = promocode?.split('-')?.[0]?.replace('NSR', '');\n minVoucher = parseInt(promocode);\n }\n if (tier.min_spend === maxAmount) {\n let promocode = tier.promo_code;\n promocode = promocode?.split('-')?.[0]?.replace('NSR', '');\n maxVoucher = parseInt(promocode);\n }\n });\n const amountShow = parseFloat(rewardData?.approximateMonthlyTotalResponse?.currentMonthTotal ?? '0');\n const initialVoucherValue = resolveInitialVoucherValue(amountShow, maxAmount, minVoucher, maxVoucher);\n\n // Calculate monthCompletionValue and voucherValue\n const { monthCompletionValue, voucherValue } = calculateMonthCompletionValues({\n data: rewardData,\n minAmount,\n maxAmount,\n minVoucher,\n maxVoucher,\n initialVoucherValue,\n initialMonthCompletionValue: 0,\n maxMonths,\n today: new Date(),\n });\n\n const value = monthCompletionValue;\n const notQualifyForRewardThisMonth = amountShow < minAmount && voucherValue !== 0 && value !== maxMonths;\n return (\n <RewardProgressBarContainer>\n {application.isMobile ? (\n <SubscriptionRewardMobile\n value={value}\n title={title}\n voucherValue={voucherValue}\n maxMonths={maxMonths}\n handleOpenSubscriptionRewardPopup={handleOpen}\n storeConfig={storeConfig}\n amountShow={amountShow}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n ) : (\n <>\n <RewardProgressBar\n value={value}\n title={title}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n monthCompletionValue={monthCompletionValue}\n storeConfig={storeConfig}\n maxMonths={maxMonths}\n voucherValue={voucherValue}\n handleOpenSubscriptionRewardPopup={handleOpen}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n <RewardSubscriptionTotal\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n value={value}\n voucherValue={voucherValue}\n maxMonths={maxMonths}\n title={title}\n monthCompletionValue={monthCompletionValue}\n storeConfig={storeConfig}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n handleOpenSubscriptionRewardPopup={handleOpen}\n amountShow={amountShow}\n currencyAbbreviate={storeConfig?.currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n </>\n )}\n <SubscriptionRewardModal\n show={show}\n close={handleClose}\n amountShow={amountShow}\n learnMoreConfig={learnMoreConfig}\n translationConfig={translationConfig}\n />\n </RewardProgressBarContainer>\n );\n};\n\nexport default SubscriptionReward;\nexport { SubscriptionReward };\n","import React from 'react';\nimport { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar';\nimport RadialSeparators from './RadialSeparator';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport SubscriptionVoucherIcon from '../Icons/SubscriptionVoucherIcon';\nimport SubscriptionVoucherIconGrey from '../Icons/SubscriptionVoucherIconGrey';\nimport { IconContainer, LoyaltyProgressSubContainer, ProgressBarCenter } from './CircularProgressBar.styled';\nimport RewardSubscriptionMonthDescription from './RewardSubscriptionMonthDescription';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { RewardProgressBarProps } from './types';\nimport { replacePlaceholders } from '../Utils/helper';\n\nclass RewardProgressBar extends React.Component<RewardProgressBarProps> {\n render() {\n const {\n value = 0,\n voucherValue = 0,\n maxMonths = 0,\n handleOpenSubscriptionRewardPopup = () => {},\n notQualifyForRewardThisMonth = false,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n const voucherTargetAmount = replacePlaceholders(translationConfig.voucherTargetAmount, {\n currency_symbol: '',\n voucher_amount: '',\n });\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n return (\n <LoyaltyProgressSubContainer>\n <div className=\"reward-progress\">\n <CircularProgressbarWithChildren\n value={(value / maxMonths) * 100}\n strokeWidth={12}\n background\n styles={buildStyles({\n rotation: 0.5,\n strokeLinecap: 'butt',\n backgroundColor: (() => {\n if (value === maxMonths && !notQualifyForRewardThisMonth) {\n return 'rgb(195 240 194)';\n }\n if (notQualifyForRewardThisMonth) {\n return '#fff';\n }\n return '#fff';\n })(),\n pathColor: '#6BC56A',\n trailColor: '#E0E0E0',\n })}\n >\n <RadialSeparators count={maxMonths} />\n {(() => {\n if (value === maxMonths && !notQualifyForRewardThisMonth) {\n return <SubscriptionVoucherIcon />;\n } else if (notQualifyForRewardThisMonth) {\n return (\n <IconContainer>\n <FaExclamationTriangle className=\"outline-exclamation-icon\" color=\"#91ACC8\" />\n </IconContainer>\n );\n } else if (voucherValue != null || voucherValue != undefined) {\n return (\n <ProgressBarCenter>\n <NsTypography\n component=\"div\"\n className=\"center-value-progress-bar-price\"\n variant=\"title-l\"\n weight=\"bold\"\n >{`${voucherEarned}`}</NsTypography>\n <NsTypography\n variant=\"label-s\"\n weight=\"bold\"\n component=\"div\"\n className=\"center-value-progress-bar-voucher\"\n >\n {voucherTargetAmount}\n </NsTypography>\n </ProgressBarCenter>\n );\n } else {\n return (\n <ProgressBarCenter>\n <SubscriptionVoucherIconGrey />\n </ProgressBarCenter>\n );\n }\n })()}\n </CircularProgressbarWithChildren>\n </div>\n <RewardSubscriptionMonthDescription\n value={value}\n voucherValue={voucherValue}\n notQualifyForRewardThisMonth={notQualifyForRewardThisMonth}\n handleOpenSubscriptionRewardPopup={handleOpenSubscriptionRewardPopup}\n maxMonths={maxMonths}\n translationConfig={translationConfig}\n learnMoreConfig={learnMoreConfig}\n currencyAbbreviate={currencyAbbreviate}\n currencyFormat={currencyFormat}\n />\n </LoyaltyProgressSubContainer>\n );\n }\n}\n\nexport default RewardProgressBar;\nexport { RewardProgressBar };\n","import styled from '@emotion/styled';\n\nexport const RewardProgressBarContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n`;\n\nexport const LoyaltyProgressSubContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n`;\nexport const StyledCard = styled.div`\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n`;\nexport const Learn3XLink = styled.div`\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n`;\nexport const ProgressBarCenter = styled.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n`;\nexport const RewardProgressTotalContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n`;\n\nexport const RewardProgressTotalButtonWithIcon = styled.div`\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n`;\n\nexport const IconContainer = styled.span`\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n`;\n\nexport const SeparatorCard = styled.div`\n position: absolute;\n height: 100%;\n`;\n\nexport const SeparatorInnerCard = styled.div`\n background: #fff;\n width: 6px;\n height: 17%;\n`;\n\nexport const TooltipStyles = {\n tooltip: {\n sx: {\n color: '#FFFFFF',\n backgroundColor: '#252525',\n fontFamily: 'Inter',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n '& .MuiTooltip-arrow': {\n color: '#252525',\n },\n },\n },\n};\n","import React from 'react';\nimport { SeparatorCard, SeparatorInnerCard } from './CircularProgressBar.styled';\n\nfunction Separator(props: { readonly turns: number }) {\n return (\n <SeparatorCard\n style={{\n transform: `rotate(${props.turns}turn)`,\n }}\n >\n <SeparatorInnerCard />\n </SeparatorCard>\n );\n}\n\nfunction RadialSeparators(props: { count: number }) {\n const turns = 1 / props.count;\n const separatorNumber = 0.5; // to center the separator\n const separatorTurns = Array.from({ length: props.count }, (_, index) => index * turns + separatorNumber);\n return separatorTurns.map((turn) => <Separator key={turn} turns={turn} />);\n}\n\nexport default RadialSeparators;\n","import React from 'react';\n\nfunction SubscriptionVoucherIcon() {\n return (\n <svg width=\"71\" height=\"42\" viewBox=\"0 0 71 42\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\"\n fill=\"#405E50\"\n />\n <path\n d=\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\"\n fill=\"#405E50\"\n />\n <path d=\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\" fill=\"#405E50\" />\n </svg>\n );\n}\n\nexport default SubscriptionVoucherIcon;\n","import React from 'react';\n\nfunction SubscriptionVoucherIconGrey() {\n return (\n <svg width=\"71\" height=\"42\" viewBox=\"0 0 71 42\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M5.32847 36.176C3.52571 36.176 2.06348 34.7138 2.06348 32.911L2.15695 28.3574L4.8277 28.4108L4.73422 32.9378C4.73422 33.2382 5.0013 33.5053 5.32847 33.5053H30.7606L34.0056 33.3584L34.1258 36.0291L30.8207 36.1827H5.32847V36.176Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M68.3914 12.9147H65.7207V9.1156C65.7207 8.78843 65.4536 8.52136 65.1264 8.52136L36.3491 8.48129V5.81055L65.1264 5.85061C66.9225 5.85061 68.3914 7.31284 68.3914 9.1156V12.9147Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M62.3222 41.6454C62.1152 41.6454 61.9082 41.6253 61.7012 41.5853L2.99822 30.2079C2.14358 30.041 1.40245 29.5536 0.915037 28.8325C0.427626 28.1114 0.24735 27.2434 0.414272 26.3821L4.94119 3.0197C5.10811 2.16506 5.59552 1.42393 6.31662 0.936522C7.03772 0.44911 7.90572 0.268835 8.76703 0.435756L67.47 11.8131C69.2394 12.1537 70.3945 13.8696 70.054 15.639L65.5271 39.0013C65.2199 40.5637 63.8512 41.6454 62.3222 41.6454ZM62.2087 38.968C62.5225 39.028 62.843 38.8211 62.9031 38.5006L67.43 15.1382C67.4901 14.8177 67.2831 14.5039 66.9626 14.4438L8.25291 3.05977C8.04593 3.0197 7.88569 3.09983 7.80556 3.15324C7.73212 3.20666 7.59858 3.32016 7.55184 3.53382L3.02493 26.8962C2.96484 27.2167 3.17182 27.5305 3.49231 27.5906L62.2087 38.968Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M13.5344 22.0957C13.1405 22.0957 12.7398 22.0556 12.3392 21.9822C8.95406 21.3279 6.73066 18.0362 7.385 14.651C7.70549 13.0085 8.64025 11.593 10.029 10.6582C11.4178 9.72348 13.0804 9.38296 14.7229 9.70345C16.3654 10.0239 17.7809 10.9587 18.7156 12.3475C19.6504 13.7363 19.9909 15.3988 19.6704 17.0413C19.0895 20.0125 16.4655 22.0957 13.5344 22.0957ZM13.521 12.254C12.8133 12.254 12.1189 12.461 11.5247 12.8683C10.7301 13.4024 10.196 14.217 10.009 15.1584C9.6351 17.1014 10.9037 18.9843 12.8467 19.3582C14.7896 19.7321 16.6725 18.4635 17.0464 16.5205C17.2267 15.5791 17.0331 14.6243 16.4989 13.8298C15.9648 13.0352 15.1502 12.5011 14.2088 12.3141C13.9817 12.274 13.7481 12.254 13.521 12.254Z\"\n fill=\"#B0B0B0\"\n />\n <path\n d=\"M23.9338 15.4855L23.4255 18.1074L59.9361 25.1845L60.4443 22.5626L23.9338 15.4855Z\"\n fill=\"#B0B0B0\"\n />\n <path d=\"M22.8916 19.7002L22.3838 22.3223L58.8956 29.393L59.4034 26.771L22.8916 19.7002Z\" fill=\"#B0B0B0\" />\n </svg>\n );\n}\n\nexport default SubscriptionVoucherIconGrey;\n","import React from 'react';\nimport { Learn3XLink, StyledCard } from './CircularProgressBar.styled';\nimport { RewardSubscriptionMonthDescriptionProps } from './types';\nimport { replacePlaceholders } from '../Utils/helper';\n\nclass RewardSubscriptionMonthDescription extends React.Component<RewardSubscriptionMonthDescriptionProps> {\n render() {\n const {\n value,\n voucherValue,\n maxMonths,\n handleOpenSubscriptionRewardPopup,\n notQualifyForRewardThisMonth,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n\n let popupText = '';\n const minVoucher = 50;\n const maxVoucher = 150;\n if (voucherValue === minVoucher && !notQualifyForRewardThisMonth) {\n popupText = translationConfig.learn3xMore;\n } else if (voucherValue === maxVoucher || notQualifyForRewardThisMonth) {\n popupText = learnMoreConfig.learnMore;\n } else if (voucherValue === null || voucherValue === undefined) {\n popupText = translationConfig.learnMore;\n }\n const monthsCompleteText = replacePlaceholders(translationConfig.monthsComplete, {\n completed_months: value,\n total_months: maxMonths,\n });\n\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n const voucherEarnedText = translationConfig.voucherEarned.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n\n return (\n <StyledCard>\n <img className=\"reward-logo\" src={translationConfig.loyaltyLogoBlack} alt=\"Rewards Logo\" />\n {value === maxMonths ? (\n <div className=\"info-item\">{voucherEarnedText}</div>\n ) : (\n <div className=\"info-item\">{monthsCompleteText}</div>\n )}\n <Learn3XLink id=\"learnMore\" onClick={handleOpenSubscriptionRewardPopup}>\n <u>{popupText}</u>\n </Learn3XLink>\n </StyledCard>\n );\n }\n}\n\nexport default RewardSubscriptionMonthDescription;\nexport { RewardSubscriptionMonthDescription };\n","export const replacePlaceholders = (\n template: string,\n values: { [key: string]: string | number | null }, // Add null\n) => {\n return Object.keys(values).reduce((result, key) => {\n const value = values[key] ?? ''; // Replace null with empty string\n return result.replace(new RegExp(`%${key}%`, 'g'), String(value));\n }, template);\n};\n\nexport const currencySymbol = () => {\n return '$';\n};\n","import React from 'react';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport {\n IconContainer,\n RewardProgressTotalButtonWithIcon,\n RewardProgressTotalContainer,\n} from './CircularProgressBar.styled';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { RewardProgressBarProps } from './types';\nimport Info from '../Icons/Info';\nimport { Tooltip, IconButton } from '@mui/material';\nimport { replacePlaceholders } from '../Utils/helper';\nclass RewardSubscriptionTotal extends React.Component<RewardProgressBarProps> {\n render() {\n const {\n value,\n voucherValue,\n maxMonths,\n notQualifyForRewardThisMonth,\n amountShow,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n estimateDisclaimer: '',\n },\n storeConfig = {\n tiers: [\n {\n consecutive_months: 0,\n min_spend: 0,\n max_spend: 0,\n promo_code: '',\n },\n {\n consecutive_months: 0,\n min_spend: 0,\n promo_code: '',\n },\n ],\n },\n currencyAbbreviate = false,\n currencyFormat = () => {},\n } = this.props;\n\n const voucherEarned = voucherValue\n ? currencyFormat(voucherValue, true, currencyAbbreviate)\n : currencyFormat(0, true, currencyAbbreviate);\n const currentlyTrackText = translationConfig.currentlyTrack.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const approximateTotalText = replacePlaceholders(translationConfig.approximateTotal, {\n currency_symbol: '',\n projected_month_spend: '',\n });\n const minAmount = parseFloat(String(storeConfig?.tiers?.[0]?.min_spend)) || 0;\n const minAmountShow = currencyFormat(minAmount, true, currencyAbbreviate);\n const callToActionText = translationConfig.callToAction.replace(\n '%currency_symbol%%current_spend_target%',\n `${minAmountShow}`,\n );\n const approximateMonthlyText = replacePlaceholders(translationConfig.approximateMonthly, {\n currency_symbol: '',\n estimated_running_subscription_spend: '',\n });\n const amountShowText = currencyFormat(amountShow ?? 0, false, false);\n return (\n <RewardProgressTotalContainer>\n <RewardProgressTotalButtonWithIcon>\n {notQualifyForRewardThisMonth ? (\n <>\n <IconContainer>\n <FaExclamationTriangle className=\"loyalty-warning-icon\" color=\"#4A6987\" />\n </IconContainer>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#293A4A\"\n noSpacing\n >\n {translationConfig.notQualify}\n </NsTypography>\n </>\n ) : (\n <>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n colorOverride=\"#252525\"\n className=\"reward-subtitle\"\n component=\"span\"\n noSpacing\n >\n {approximateMonthlyText}\n </NsTypography>\n &nbsp;\n <NsTypography weight=\"bold\" className=\"button-price\" variant=\"body-s\" component=\"span\">\n {`${amountShowText}`}\n </NsTypography>\n <IconContainer>\n <Tooltip\n slotProps={{\n tooltip: {\n sx: {\n color: '#FFFFFF',\n backgroundColor: '#252525',\n fontFamily: 'Inter',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n '& .MuiTooltip-arrow': {\n color: '#252525',\n },\n },\n },\n }}\n title={translationConfig.estimateDisclaimer}\n arrow\n placement=\"top\"\n >\n <span className=\"info-icon\">\n <IconButton>\n <Info />\n </IconButton>\n </span>\n </Tooltip>\n </IconContainer>\n </>\n )}\n </RewardProgressTotalButtonWithIcon>\n {(() => {\n if (value === maxMonths) {\n return '';\n } else if (notQualifyForRewardThisMonth) {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n component=\"div\"\n >\n {approximateTotalText}&nbsp;\n <NsTypography component=\"span\" className=\"button-price\" variant=\"body-s\" weight=\"bold\">\n {`${amountShowText}`}\n </NsTypography>\n </NsTypography>\n );\n } else if (voucherValue != null || voucherValue != undefined) {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"bold\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n >\n {currentlyTrackText}\n </NsTypography>\n );\n } else {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"bold\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n >\n {callToActionText}\n </NsTypography>\n );\n }\n })()}\n </RewardProgressTotalContainer>\n );\n }\n}\n\nexport default RewardSubscriptionTotal;\nexport { RewardSubscriptionTotal };\n","import React from 'react';\n\nfunction Info() {\n return (\n <svg width=\"19\" height=\"19\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0.833344 9.99967C0.833344 4.93706 4.9374 0.833008 10 0.833008C15.0626 0.833008 19.1667 4.93706 19.1667 9.99967C19.1667 15.0623 15.0626 19.1663 10 19.1663C4.9374 19.1663 0.833344 15.0623 0.833344 9.99967ZM10 2.49967C5.85787 2.49967 2.50001 5.85754 2.50001 9.99967C2.50001 14.1418 5.85787 17.4997 10 17.4997C14.1421 17.4997 17.5 14.1418 17.5 9.99967C17.5 5.85754 14.1421 2.49967 10 2.49967Z\"\n fill=\"#4A6987\"\n />\n <line x1=\"10.1667\" y1=\"9.375\" x2=\"10.1667\" y2=\"14.7917\" stroke=\"#4A6987\" strokeWidth=\"2\" />\n <path\n d=\"M10.0052 7.75009C10.6338 7.75009 11.1718 7.22807 11.1771 6.57821C11.1718 5.93901 10.6338 5.41699 10.0052 5.41699C9.35537 5.41699 8.82803 5.93901 8.83335 6.57821C8.82803 7.22807 9.35537 7.75009 10.0052 7.75009Z\"\n fill=\"#4A6987\"\n />\n </svg>\n );\n}\n\nexport default Info;\n","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport function isPlainObject(item) {\n return item !== null && typeof item === 'object' && item.constructor === Object;\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe iff we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","import _formatMuiErrorMessage from \"../formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n // tslint:disable-next-line:ban-comma-operator\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nlet hadFocusVisibleRecentlyTimeout;\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(() => {\n hadFocusVisibleRecently = false;\n }, 100);\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\n\n// If GlobalStateSlot is changed, GLOBAL_STATE_CLASSES in\n// \\packages\\api-docs-builder\\utils\\parseSlotsAndClasses.ts must be updated accordingly.\nconst globalStateClassesMapping = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClassesMapping[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","export default '$$material';","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @mui/styled-engine v5.16.14\n *\n * @license MIT\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'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const internal_processStyles = (tag, processor) => {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n};\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from './StyledEngineProvider';\nexport { default as GlobalStyles } from './GlobalStyles';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if ( /*#__PURE__*/React.isValidElement(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if ( /*#__PURE__*/React.isValidElement(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={theme => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport { formatMuiErrorMessage as _formatMuiErrorMessage } from \"@mui/utils\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '../generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import { unstable_capitalize as capitalize } from '@mui/utils';\nexport default capitalize;","'use client';\n\nimport { unstable_useId as useId } from '@mui/utils';\nexport default useId;","'use client';\n\nimport { unstable_useControlled as useControlled } from '@mui/utils';\nexport default useControlled;","'use client';\n\nimport { unstable_useEventCallback as useEventCallback } from '@mui/utils';\nexport default useEventCallback;","'use client';\n\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nexport default useForkRef;","'use client';\n\nimport { unstable_useIsFocusVisible as useIsFocusVisible } from '@mui/utils';\nexport default useIsFocusVisible;","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `<CSSTransition>` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\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\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nexport { _assertThisInitialized as default };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n\n return TransitionGroup;\n}(React.Component);\n\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `<TransitionGroup>` renders a `<div>` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `<div>` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n\n /**\n * A set of `<Transition>` components, that are toggled `in` and out as they\n * leave. the `<TransitionGroup>` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `<Transition>` as\n * with our `<Fade>` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"action\", \"centerRipple\", \"children\", \"className\", \"component\", \"disabled\", \"disableRipple\", \"disableTouchRipple\", \"focusRipple\", \"focusVisibleClassName\", \"LinkComponent\", \"onBlur\", \"onClick\", \"onContextMenu\", \"onDragLeave\", \"onFocus\", \"onFocusVisible\", \"onKeyDown\", \"onKeyUp\", \"onMouseDown\", \"onMouseLeave\", \"onMouseUp\", \"onTouchEnd\", \"onTouchMove\", \"onTouchStart\", \"tabIndex\", \"TouchRippleProps\", \"touchRippleRef\", \"type\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementTypeAcceptingRef, refType } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport useForkRef from '../utils/useForkRef';\nimport useEventCallback from '../utils/useEventCallback';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport TouchRipple from './TouchRipple';\nimport buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n focusVisible,\n focusVisibleClassName,\n classes\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']\n };\n const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);\n if (focusVisible && focusVisibleClassName) {\n composedClasses.root += ` ${focusVisibleClassName}`;\n }\n return composedClasses;\n};\nexport const ButtonBaseRoot = styled('button', {\n name: 'MuiButtonBase',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n boxSizing: 'border-box',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n textDecoration: 'none',\n // So we take precedent over the style of a native <a /> element.\n color: 'inherit',\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n\n [`&.${buttonBaseClasses.disabled}`]: {\n pointerEvents: 'none',\n // Disable link interactions\n cursor: 'default'\n },\n '@media print': {\n colorAdjust: 'exact'\n }\n});\n\n/**\n * `ButtonBase` contains as few styles as possible.\n * It aims to be a simple building block for creating a button.\n * It contains a load of style reset and some focus/ripple logic.\n */\nconst ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiButtonBase'\n });\n const {\n action,\n centerRipple = false,\n children,\n className,\n component = 'button',\n disabled = false,\n disableRipple = false,\n disableTouchRipple = false,\n focusRipple = false,\n LinkComponent = 'a',\n onBlur,\n onClick,\n onContextMenu,\n onDragLeave,\n onFocus,\n onFocusVisible,\n onKeyDown,\n onKeyUp,\n onMouseDown,\n onMouseLeave,\n onMouseUp,\n onTouchEnd,\n onTouchMove,\n onTouchStart,\n tabIndex = 0,\n TouchRippleProps,\n touchRippleRef,\n type\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const buttonRef = React.useRef(null);\n const rippleRef = React.useRef(null);\n const handleRippleRef = useForkRef(rippleRef, touchRippleRef);\n const {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n const [focusVisible, setFocusVisible] = React.useState(false);\n if (disabled && focusVisible) {\n setFocusVisible(false);\n }\n React.useImperativeHandle(action, () => ({\n focusVisible: () => {\n setFocusVisible(true);\n buttonRef.current.focus();\n }\n }), []);\n const [mountedState, setMountedState] = React.useState(false);\n React.useEffect(() => {\n setMountedState(true);\n }, []);\n const enableTouchRipple = mountedState && !disableRipple && !disabled;\n React.useEffect(() => {\n if (focusVisible && focusRipple && !disableRipple && mountedState) {\n rippleRef.current.pulsate();\n }\n }, [disableRipple, focusRipple, focusVisible, mountedState]);\n function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {\n return useEventCallback(event => {\n if (eventCallback) {\n eventCallback(event);\n }\n const ignore = skipRippleAction;\n if (!ignore && rippleRef.current) {\n rippleRef.current[rippleAction](event);\n }\n return true;\n });\n }\n const handleMouseDown = useRippleHandler('start', onMouseDown);\n const handleContextMenu = useRippleHandler('stop', onContextMenu);\n const handleDragLeave = useRippleHandler('stop', onDragLeave);\n const handleMouseUp = useRippleHandler('stop', onMouseUp);\n const handleMouseLeave = useRippleHandler('stop', event => {\n if (focusVisible) {\n event.preventDefault();\n }\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n });\n const handleTouchStart = useRippleHandler('start', onTouchStart);\n const handleTouchEnd = useRippleHandler('stop', onTouchEnd);\n const handleTouchMove = useRippleHandler('stop', onTouchMove);\n const handleBlur = useRippleHandler('stop', event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n }, false);\n const handleFocus = useEventCallback(event => {\n // Fix for https://github.com/facebook/react/issues/7769\n if (!buttonRef.current) {\n buttonRef.current = event.currentTarget;\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setFocusVisible(true);\n if (onFocusVisible) {\n onFocusVisible(event);\n }\n }\n if (onFocus) {\n onFocus(event);\n }\n });\n const isNonNativeButton = () => {\n const button = buttonRef.current;\n return component && component !== 'button' && !(button.tagName === 'A' && button.href);\n };\n\n /**\n * IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat\n */\n const keydownRef = React.useRef(false);\n const handleKeyDown = useEventCallback(event => {\n // Check if key is already down to avoid repeats being counted as multiple activations\n if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {\n keydownRef.current = true;\n rippleRef.current.stop(event, () => {\n rippleRef.current.start(event);\n });\n }\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {\n event.preventDefault();\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {\n event.preventDefault();\n if (onClick) {\n onClick(event);\n }\n }\n });\n const handleKeyUp = useEventCallback(event => {\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/s/button-keyup-preventdefault-dn7f0\n if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {\n keydownRef.current = false;\n rippleRef.current.stop(event, () => {\n rippleRef.current.pulsate(event);\n });\n }\n if (onKeyUp) {\n onKeyUp(event);\n }\n\n // Keyboard accessibility for non interactive elements\n if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {\n onClick(event);\n }\n });\n let ComponentProp = component;\n if (ComponentProp === 'button' && (other.href || other.to)) {\n ComponentProp = LinkComponent;\n }\n const buttonProps = {};\n if (ComponentProp === 'button') {\n buttonProps.type = type === undefined ? 'button' : type;\n buttonProps.disabled = disabled;\n } else {\n if (!other.href && !other.to) {\n buttonProps.role = 'button';\n }\n if (disabled) {\n buttonProps['aria-disabled'] = disabled;\n }\n }\n const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (enableTouchRipple && !rippleRef.current) {\n console.error(['MUI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\\n'));\n }\n }, [enableTouchRipple]);\n }\n const ownerState = _extends({}, props, {\n centerRipple,\n component,\n disabled,\n disableRipple,\n disableTouchRipple,\n focusRipple,\n tabIndex,\n focusVisible\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(ButtonBaseRoot, _extends({\n as: ComponentProp,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n onBlur: handleBlur,\n onClick: onClick,\n onContextMenu: handleContextMenu,\n onFocus: handleFocus,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n onMouseDown: handleMouseDown,\n onMouseLeave: handleMouseLeave,\n onMouseUp: handleMouseUp,\n onDragLeave: handleDragLeave,\n onTouchEnd: handleTouchEnd,\n onTouchMove: handleTouchMove,\n onTouchStart: handleTouchStart,\n ref: handleRef,\n tabIndex: disabled ? -1 : tabIndex,\n type: type\n }, buttonProps, other, {\n children: [children, enableTouchRipple ?\n /*#__PURE__*/\n /* TouchRipple is only needed client-side, x2 boost on the server. */\n _jsx(TouchRipple, _extends({\n ref: handleRippleRef,\n center: centerRipple\n }, TouchRippleProps)) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ButtonBase.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: refType,\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * @ignore\n */\n href: PropTypes /* @typescript-to-proptypes-ignore */.any,\n /**\n * The component used to render a link when the `href` prop is provided.\n * @default 'a'\n */\n LinkComponent: PropTypes.elementType,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onContextMenu: PropTypes.func,\n /**\n * @ignore\n */\n onDragLeave: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * @ignore\n */\n onMouseDown: PropTypes.func,\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n /**\n * @ignore\n */\n onMouseUp: PropTypes.func,\n /**\n * @ignore\n */\n onTouchEnd: PropTypes.func,\n /**\n * @ignore\n */\n onTouchMove: PropTypes.func,\n /**\n * @ignore\n */\n onTouchStart: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])\n} : void 0;\nexport default ButtonBase;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"center\", \"classes\", \"className\"];\nlet _ = t => t,\n _t,\n _t2,\n _t3,\n _t4;\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport { keyframes } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport Ripple from './Ripple';\nimport touchRippleClasses from './touchRippleClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes(_t || (_t = _`\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n`));\nconst exitKeyframe = keyframes(_t2 || (_t2 = _`\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n`));\nconst pulsateKeyframe = keyframes(_t3 || (_t3 = _`\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n`));\nexport const TouchRippleRoot = styled('span', {\n name: 'MuiTouchRipple',\n slot: 'Root'\n})({\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n zIndex: 0,\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: 'inherit'\n});\n\n// This `styled()` function invokes keyframes. `styled-components` only supports keyframes\n// in string templates. Do not convert these styles in JS object as it will break.\nexport const TouchRippleRipple = styled(Ripple, {\n name: 'MuiTouchRipple',\n slot: 'Ripple'\n})(_t4 || (_t4 = _`\n opacity: 0;\n position: absolute;\n\n &.${0} {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n &.${0} {\n animation-duration: ${0}ms;\n }\n\n & .${0} {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & .${0} {\n opacity: 0;\n animation-name: ${0};\n animation-duration: ${0}ms;\n animation-timing-function: ${0};\n }\n\n & .${0} {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ${0};\n animation-duration: 2500ms;\n animation-timing-function: ${0};\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n`), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({\n theme\n}) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({\n theme\n}) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({\n theme\n}) => theme.transitions.easing.easeInOut);\n\n/**\n * @ignore - internal component.\n *\n * TODO v5: Make private\n */\nconst TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTouchRipple'\n });\n const {\n center: centerProp = false,\n classes = {},\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const [ripples, setRipples] = React.useState([]);\n const nextKey = React.useRef(0);\n const rippleCallback = React.useRef(null);\n React.useEffect(() => {\n if (rippleCallback.current) {\n rippleCallback.current();\n rippleCallback.current = null;\n }\n }, [ripples]);\n\n // Used to filter out mouse emulated events on mobile.\n const ignoringMouseDown = React.useRef(false);\n // We use a timer in order to only show the ripples for touch \"click\" like events.\n // We don't want to display the ripple for touch scroll events.\n const startTimer = React.useRef(0);\n\n // This is the hook called once the previous timeout is ready.\n const startTimerCommit = React.useRef(null);\n const container = React.useRef(null);\n React.useEffect(() => {\n return () => {\n if (startTimer.current) {\n clearTimeout(startTimer.current);\n }\n };\n }, []);\n const startCommit = React.useCallback(params => {\n const {\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n } = params;\n setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {\n classes: {\n ripple: clsx(classes.ripple, touchRippleClasses.ripple),\n rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),\n ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),\n child: clsx(classes.child, touchRippleClasses.child),\n childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),\n childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)\n },\n timeout: DURATION,\n pulsate: pulsate,\n rippleX: rippleX,\n rippleY: rippleY,\n rippleSize: rippleSize\n }, nextKey.current)]);\n nextKey.current += 1;\n rippleCallback.current = cb;\n }, [classes]);\n const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {\n const {\n pulsate = false,\n center = centerProp || options.pulsate,\n fakeElement = false // For test purposes\n } = options;\n if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {\n ignoringMouseDown.current = false;\n return;\n }\n if ((event == null ? void 0 : event.type) === 'touchstart') {\n ignoringMouseDown.current = true;\n }\n const element = fakeElement ? null : container.current;\n const rect = element ? element.getBoundingClientRect() : {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n };\n\n // Get the size of the ripple\n let rippleX;\n let rippleY;\n let rippleSize;\n if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {\n rippleX = Math.round(rect.width / 2);\n rippleY = Math.round(rect.height / 2);\n } else {\n const {\n clientX,\n clientY\n } = event.touches && event.touches.length > 0 ? event.touches[0] : event;\n rippleX = Math.round(clientX - rect.left);\n rippleY = Math.round(clientY - rect.top);\n }\n if (center) {\n rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);\n\n // For some reason the animation is broken on Mobile Chrome if the size is even.\n if (rippleSize % 2 === 0) {\n rippleSize += 1;\n }\n } else {\n const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;\n const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;\n rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);\n }\n\n // Touche devices\n if (event != null && event.touches) {\n // check that this isn't another touchstart due to multitouch\n // otherwise we will only clear a single timer when unmounting while two\n // are running\n if (startTimerCommit.current === null) {\n // Prepare the ripple effect.\n startTimerCommit.current = () => {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n };\n // Delay the execution of the ripple effect.\n startTimer.current = setTimeout(() => {\n if (startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n }\n }, DELAY_RIPPLE); // We have to make a tradeoff with this value.\n }\n } else {\n startCommit({\n pulsate,\n rippleX,\n rippleY,\n rippleSize,\n cb\n });\n }\n }, [centerProp, startCommit]);\n const pulsate = React.useCallback(() => {\n start({}, {\n pulsate: true\n });\n }, [start]);\n const stop = React.useCallback((event, cb) => {\n clearTimeout(startTimer.current);\n\n // The touch interaction occurs too quickly.\n // We still want to show ripple effect.\n if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {\n startTimerCommit.current();\n startTimerCommit.current = null;\n startTimer.current = setTimeout(() => {\n stop(event, cb);\n });\n return;\n }\n startTimerCommit.current = null;\n setRipples(oldRipples => {\n if (oldRipples.length > 0) {\n return oldRipples.slice(1);\n }\n return oldRipples;\n });\n rippleCallback.current = cb;\n }, []);\n React.useImperativeHandle(ref, () => ({\n pulsate,\n start,\n stop\n }), [pulsate, start, stop]);\n return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({\n className: clsx(touchRippleClasses.root, classes.root, className),\n ref: container\n }, other, {\n children: /*#__PURE__*/_jsx(TransitionGroup, {\n component: null,\n exit: true,\n children: ripples\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TouchRipple.propTypes = {\n /**\n * If `true`, the ripple starts at the center of the component\n * rather than at the point of interaction.\n */\n center: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string\n} : void 0;\nexport default TouchRipple;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction Ripple(props) {\n const {\n className,\n classes,\n pulsate = false,\n rippleX,\n rippleY,\n rippleSize,\n in: inProp,\n onExited,\n timeout\n } = props;\n const [leaving, setLeaving] = React.useState(false);\n const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);\n const rippleStyles = {\n width: rippleSize,\n height: rippleSize,\n top: -(rippleSize / 2) + rippleY,\n left: -(rippleSize / 2) + rippleX\n };\n const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);\n if (!inProp && !leaving) {\n setLeaving(true);\n }\n React.useEffect(() => {\n if (!inProp && onExited != null) {\n // react-transition-group#onExited\n const timeoutId = setTimeout(onExited, timeout);\n return () => {\n clearTimeout(timeoutId);\n };\n }\n return undefined;\n }, [onExited, inProp, timeout]);\n return /*#__PURE__*/_jsx(\"span\", {\n className: rippleClassName,\n style: rippleStyles,\n children: /*#__PURE__*/_jsx(\"span\", {\n className: childClassName\n })\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? Ripple.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n /**\n * @ignore - injected from TransitionGroup\n */\n in: PropTypes.bool,\n /**\n * @ignore - injected from TransitionGroup\n */\n onExited: PropTypes.func,\n /**\n * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.\n */\n pulsate: PropTypes.bool,\n /**\n * Diameter of the ripple.\n */\n rippleSize: PropTypes.number,\n /**\n * Horizontal position of the ripple center.\n */\n rippleX: PropTypes.number,\n /**\n * Vertical position of the ripple center.\n */\n rippleY: PropTypes.number,\n /**\n * exit delay\n */\n timeout: PropTypes.number.isRequired\n} : void 0;\nexport default Ripple;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getTouchRippleUtilityClass(slot) {\n return generateUtilityClass('MuiTouchRipple', slot);\n}\nconst touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);\nexport default touchRippleClasses;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getButtonBaseUtilityClass(slot) {\n return generateUtilityClass('MuiButtonBase', slot);\n}\nconst buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);\nexport default buttonBaseClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"edge\", \"children\", \"className\", \"color\", \"disabled\", \"disableFocusRipple\", \"size\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport iconButtonClasses, { getIconButtonUtilityClass } from './iconButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n color,\n edge,\n size\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]\n };\n return composeClasses(slots, getIconButtonUtilityClass, classes);\n};\nconst IconButtonRoot = styled(ButtonBase, {\n name: 'MuiIconButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n textAlign: 'center',\n flex: '0 0 auto',\n fontSize: theme.typography.pxToRem(24),\n padding: 8,\n borderRadius: '50%',\n overflow: 'visible',\n // Explicitly set the default value to solve a bug on IE11.\n color: (theme.vars || theme).palette.action.active,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n })\n}, !ownerState.disableRipple && {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n}, ownerState.edge === 'start' && {\n marginLeft: ownerState.size === 'small' ? -3 : -12\n}, ownerState.edge === 'end' && {\n marginRight: ownerState.size === 'small' ? -3 : -12\n}), ({\n theme,\n ownerState\n}) => {\n var _palette;\n const palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];\n return _extends({}, ownerState.color === 'inherit' && {\n color: 'inherit'\n }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({\n color: palette == null ? void 0 : palette.main\n }, !ownerState.disableRipple && {\n '&:hover': _extends({}, palette && {\n backgroundColor: theme.vars ? `rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(palette.main, theme.palette.action.hoverOpacity)\n }, {\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n })\n }), ownerState.size === 'small' && {\n padding: 5,\n fontSize: theme.typography.pxToRem(18)\n }, ownerState.size === 'large' && {\n padding: 12,\n fontSize: theme.typography.pxToRem(28)\n }, {\n [`&.${iconButtonClasses.disabled}`]: {\n backgroundColor: 'transparent',\n color: (theme.vars || theme).palette.action.disabled\n }\n });\n});\n\n/**\n * Refer to the [Icons](/material-ui/icons/) section of the documentation\n * regarding the available icon options.\n */\nconst IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiIconButton'\n });\n const {\n edge = false,\n children,\n className,\n color = 'default',\n disabled = false,\n disableFocusRipple = false,\n size = 'medium'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n edge,\n color,\n disabled,\n disableFocusRipple,\n size\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(IconButtonRoot, _extends({\n className: clsx(classes.root, className),\n centerRipple: true,\n focusRipple: !disableFocusRipple,\n disabled: disabled,\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? IconButton.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The icon to display.\n */\n children: chainPropTypes(PropTypes.node, props => {\n const found = React.Children.toArray(props.children).some(child => /*#__PURE__*/React.isValidElement(child) && child.props.onClick);\n if (found) {\n return new Error(['MUI: You are providing an onClick event listener to a child of a button element.', 'Prefer applying it to the IconButton directly.', 'This guarantees that the whole <button> will be responsive to click events.'].join('\\n'));\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default IconButton;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getIconButtonUtilityClass(slot) {\n return generateUtilityClass('MuiIconButton', slot);\n}\nconst iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);\nexport default iconButtonClasses;","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass('MuiPopper', slot);\n}\nexport const popperClasses = generateUtilityClasses('MuiPopper', ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = React.useRef();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.current = setTimeout(next, autoTimeout.current || 0);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n React.useEffect(() => {\n return () => {\n clearTimeout(timer.current);\n };\n }, []);\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nlet hystersisTimer = null;\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n clearTimeout(hystersisTimer);\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = React.useRef();\n const enterTimer = React.useRef();\n const leaveTimer = React.useRef();\n const touchTimer = React.useRef();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = React.useCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n clearTimeout(touchTimer.current);\n }, []);\n React.useEffect(() => {\n return () => {\n clearTimeout(closeTimer.current);\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n stopTouchInteraction();\n };\n }, [stopTouchInteraction]);\n const handleOpen = event => {\n clearTimeout(hystersisTimer);\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n clearTimeout(hystersisTimer);\n hystersisTimer = setTimeout(() => {\n hystersisOpen = false;\n }, 800 + leaveDelay);\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n clearTimeout(closeTimer.current);\n closeTimer.current = setTimeout(() => {\n ignoreNonTouchEvents.current = false;\n }, theme.transitions.duration.shortest);\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.current = setTimeout(() => {\n handleOpen(event);\n }, hystersisOpen ? enterNextDelay : enterDelay);\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n leaveTimer.current = setTimeout(() => {\n handleClose(event);\n }, leaveDelay);\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n clearTimeout(leaveTimer.current);\n clearTimeout(closeTimer.current);\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.current = setTimeout(() => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n }, enterTouchDelay);\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n clearTimeout(leaveTimer.current);\n leaveTimer.current = setTimeout(() => {\n handleClose(event);\n }, leaveTouchDelay);\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of <Tooltip />.', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport generateUtilityClass from '../generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","import React, { useState } from 'react';\nimport {\n IconContainer,\n Learn3XLink,\n LoyaltyProgressSubContainer,\n ProgressBarCenter,\n RewardProgressTotalButtonWithIcon,\n RewardProgressTotalContainer,\n StyledCard,\n TooltipStyles,\n} from './CircularProgressBar.styled';\nimport {\n RewardProgressBarProps,\n PopupTextParams,\n CenterContentParams,\n InfoItemParams,\n TotalSummaryParams,\n TotalButtonParams,\n} from './types';\nimport RadialSeparators from './RadialSeparator';\nimport SubscriptionVoucherIcon from '../Icons/SubscriptionVoucherIcon';\nimport SubscriptionVoucherIconGrey from '../Icons/SubscriptionVoucherIconGrey';\nimport { FaExclamationTriangle } from 'react-icons/fa';\nimport { NsTypography } from '@nuskin/foundation-ui-components';\nimport { CircularProgressbarWithChildren, buildStyles } from 'react-circular-progressbar';\nimport Info from '../Icons/Info';\nimport { Tooltip, IconButton } from '@mui/material';\nimport { replacePlaceholders } from '../Utils/helper';\n\nfunction resolvePopupText({\n voucherValue,\n minVoucher,\n maxVoucher,\n notQualifyForRewardThisMonth,\n learn3xMore,\n learnMoreText,\n translationLearnMore,\n}: PopupTextParams) {\n if (voucherValue === minVoucher && !notQualifyForRewardThisMonth) {\n return learn3xMore;\n }\n if (voucherValue === maxVoucher || notQualifyForRewardThisMonth) {\n return learnMoreText;\n }\n if (voucherValue === null || voucherValue === undefined) {\n return translationLearnMore;\n }\n return translationLearnMore;\n}\n\nfunction renderCenterContent({\n isComplete,\n notQualifyForRewardThisMonth,\n hasVoucherValue,\n voucherEarned,\n voucherTargetAmount,\n}: CenterContentParams) {\n if (isComplete && !notQualifyForRewardThisMonth) {\n return <SubscriptionVoucherIcon />;\n }\n if (notQualifyForRewardThisMonth) {\n return (\n <IconContainer>\n <FaExclamationTriangle className=\"outline-exclamation-icon\" color=\"#91ACC8\" />\n </IconContainer>\n );\n }\n if (hasVoucherValue) {\n return (\n <ProgressBarCenter>\n <NsTypography\n component=\"div\"\n className=\"center-value-progress-bar-price\"\n variant=\"title-l\"\n weight=\"bold\"\n >\n {voucherEarned}\n </NsTypography>\n <NsTypography\n variant=\"label-s\"\n weight=\"bold\"\n component=\"div\"\n className=\"center-value-progress-bar-voucher\"\n >\n {voucherTargetAmount}\n </NsTypography>\n </ProgressBarCenter>\n );\n }\n return (\n <ProgressBarCenter>\n <SubscriptionVoucherIconGrey />\n </ProgressBarCenter>\n );\n}\n\nfunction renderInfoItem({ isComplete, amountShow, minAmount, voucherEarnedText, monthsCompleteText }: InfoItemParams) {\n return (\n <div className=\"info-item\">\n {isComplete && amountShow !== undefined && amountShow > minAmount ? voucherEarnedText : monthsCompleteText}\n </div>\n );\n}\n\nfunction renderTotalSummary({\n isComplete,\n notQualifyForRewardThisMonth,\n hasVoucherValue,\n approximateTotalText,\n amountShowText,\n currentlyTrackText,\n callToActionText,\n}: TotalSummaryParams) {\n if (isComplete) {\n return null;\n }\n if (notQualifyForRewardThisMonth) {\n return (\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#252525\"\n component=\"div\"\n >\n {approximateTotalText}{' '}\n <NsTypography component=\"span\" className=\"button-price\" variant=\"body-s\" weight=\"bold\">\n {amountShowText}\n </NsTypography>\n </NsTypography>\n );\n }\n if (hasVoucherValue) {\n return (\n <NsTypography variant=\"body-s\" weight=\"bold\" className=\"reward-subtitle\" colorOverride=\"#252525\">\n {currentlyTrackText}\n </NsTypography>\n );\n }\n return (\n <NsTypography variant=\"body-s\" weight=\"bold\" className=\"reward-subtitle\" colorOverride=\"#252525\">\n {callToActionText}\n </NsTypography>\n );\n}\n\nfunction renderTotalButton({\n notQualifyForRewardThisMonth,\n approximateMonthlyText,\n amountShowText,\n translationNotQualify,\n estimateDisclaimer,\n open,\n handleTooltipToggle,\n handleTooltipClose,\n}: TotalButtonParams) {\n if (notQualifyForRewardThisMonth) {\n return (\n <>\n <IconContainer>\n <FaExclamationTriangle className=\"loyalty-warning-icon\" color=\"#4A6987\" />\n </IconContainer>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n className=\"reward-subtitle\"\n colorOverride=\"#293A4A\"\n noSpacing\n >\n {translationNotQualify}\n </NsTypography>\n </>\n );\n }\n\n return (\n <>\n <NsTypography\n variant=\"body-s\"\n weight=\"normal\"\n colorOverride=\"#252525\"\n className=\"reward-subtitle\"\n component=\"span\"\n noSpacing\n >\n {approximateMonthlyText}{' '}\n </NsTypography>\n &nbsp;\n <NsTypography weight=\"bold\" className=\"button-price\" variant=\"body-s\" component=\"span\">\n {amountShowText}\n </NsTypography>\n <IconContainer>\n <Tooltip\n slotProps={TooltipStyles}\n title={estimateDisclaimer}\n arrow\n placement=\"top\"\n open={open}\n onClose={handleTooltipClose}\n >\n <span className=\"info-icon\">\n <IconButton onClick={handleTooltipToggle}>\n <Info />\n </IconButton>\n </span>\n </Tooltip>\n </IconContainer>\n </>\n );\n}\n\nconst SubscriptionRewardMobile = (props: RewardProgressBarProps) => {\n const [open, setOpen] = useState(false);\n const handleTooltipToggle = () => {\n setOpen(!open);\n };\n const handleTooltipClose = () => setOpen(false);\n const {\n handleOpenSubscriptionRewardPopup = () => {},\n notQualifyForRewardThisMonth = false,\n value = 0,\n voucherValue = 0,\n amountShow,\n maxMonths = 0,\n translationConfig = {\n voucherTargetAmount: '',\n monthsComplete: '',\n voucherEarned: '',\n learnMore: '',\n learn3xMore: '',\n callToAction: '',\n notQualify: '',\n approximateMonthly: '',\n approximateTotal: '',\n currentlyTrack: '',\n loyaltyLogoBlack: '',\n estimateDisclaimer: '',\n },\n learnMoreConfig = {\n tagLine: '',\n cardOneDescription: '',\n cardOneVoucherAmount: '',\n cardTwoDescription: '',\n cardTwoVoucherAmount: '',\n header: '',\n loyaltyLogoWhite: '',\n loyaltyBanner: '',\n learnMore: '',\n },\n storeConfig = {\n tiers: [\n {\n consecutive_months: '',\n min_spend: '',\n max_spend: '',\n promo_code: '',\n },\n {\n consecutive_months: '',\n min_spend: '',\n promo_code: '',\n },\n ],\n },\n currencyAbbreviate = false,\n currencyFormat,\n } = props;\n const minVoucher = 50;\n const maxVoucher = 150;\n\n const formatCurrency = (price: number, withoutDecimal: boolean, abbreviate: boolean): string => {\n const formatted = currencyFormat?.(price, withoutDecimal, abbreviate);\n return (formatted as unknown as string) ?? '';\n };\n\n const monthsCompleteText = replacePlaceholders(translationConfig.monthsComplete, {\n completed_months: value,\n total_months: maxMonths,\n });\n const voucherEarned = voucherValue\n ? formatCurrency(voucherValue, true, currencyAbbreviate)\n : formatCurrency(0, true, currencyAbbreviate);\n const voucherEarnedText = translationConfig.voucherEarned.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const currentlyTrackText = translationConfig.currentlyTrack.replace(\n '%currency_symbol%%currency_amount%',\n `${voucherEarned}`,\n );\n const approximateTotalText = replacePlaceholders(translationConfig.approximateTotal, {\n currency_symbol: '',\n projected_month_spend: '',\n });\n const minAmount = parseFloat(String(storeConfig?.tiers?.[0]?.min_spend)) || 0;\n const minAmountShow = formatCurrency(minAmount, true, currencyAbbreviate);\n const callToActionText = translationConfig.callToAction.replace(\n '%currency_symbol%%current_spend_target%',\n `${minAmountShow}`,\n );\n const approximateMonthlyText = replacePlaceholders(translationConfig.approximateMonthly, {\n currency_symbol: '',\n estimated_running_subscription_spend: '',\n });\n const voucherTargetAmount = replacePlaceholders(translationConfig.voucherTargetAmount, {\n currency_symbol: '',\n voucher_amount: '',\n });\n const amountShowText = formatCurrency(amountShow ?? 0, false, false);\n const isComplete = value === maxMonths;\n const hasVoucherValue = voucherValue != null;\n const backgroundColor = value === maxMonths && !notQualifyForRewardThisMonth ? 'rgb(195 240 194)' : '#fff';\n const popupText = resolvePopupText({\n voucherValue,\n minVoucher,\n maxVoucher,\n notQualifyForRewardThisMonth,\n learn3xMore: translationConfig.learn3xMore,\n learnMoreText: learnMoreConfig.learnMore,\n translationLearnMore: translationConfig.learnMore,\n });\n const centerContent = renderCenterContent({\n isComplete,\n notQualifyForRewardThisMonth,\n hasVoucherValue,\n voucherEarned,\n voucherTargetAmount,\n });\n const infoItem = renderInfoItem({\n isComplete,\n amountShow,\n minAmount,\n voucherEarnedText,\n monthsCompleteText,\n });\n const totalSummary = renderTotalSummary({\n isComplete,\n notQualifyForRewardThisMonth,\n hasVoucherValue,\n approximateTotalText,\n amountShowText,\n currentlyTrackText,\n callToActionText,\n });\n const totalButton = renderTotalButton({\n notQualifyForRewardThisMonth,\n approximateMonthlyText,\n amountShowText,\n translationNotQualify: translationConfig.notQualify,\n estimateDisclaimer: translationConfig.estimateDisclaimer ?? '',\n open,\n handleTooltipToggle,\n handleTooltipClose,\n });\n\n return (\n <LoyaltyProgressSubContainer>\n <StyledCard>\n <img className=\"reward-logo\" src={translationConfig.loyaltyLogoBlack} alt=\"Rewards Logo\" />\n </StyledCard>\n <div className=\"reward-progress\">\n <CircularProgressbarWithChildren\n value={(value / maxMonths) * 100}\n strokeWidth={12}\n background\n styles={buildStyles({\n rotation: 0.5,\n strokeLinecap: 'butt',\n backgroundColor,\n pathColor: '#6BC56A',\n trailColor: '#E0E0E0',\n })}\n >\n <RadialSeparators count={maxMonths} />\n {centerContent}\n </CircularProgressbarWithChildren>\n </div>\n <StyledCard>{infoItem}</StyledCard>\n <RewardProgressTotalContainer>\n {totalSummary}\n <RewardProgressTotalButtonWithIcon>{totalButton}</RewardProgressTotalButtonWithIcon>\n </RewardProgressTotalContainer>\n <StyledCard>\n <Learn3XLink onClick={handleOpenSubscriptionRewardPopup}>\n <u>{popupText}</u>\n </Learn3XLink>\n </StyledCard>\n </LoyaltyProgressSubContainer>\n );\n};\n\nexport default SubscriptionRewardMobile;\nexport { SubscriptionRewardMobile };\n","const IS_BROWSER = typeof window === 'object';\n\nclass ApplicationStore {\n width = IS_BROWSER ? window.innerWidth : 0;\n\n scroll = {\n vertical: IS_BROWSER ? window.scrollY : 0,\n horizontal: IS_BROWSER ? window.scrollX : 0,\n direction: 'none',\n };\n\n get isMobile() {\n return this.isPhone;\n }\n\n get isPhone() {\n return IS_BROWSER ? window.innerWidth < 768 : this.width < 768;\n }\n}\n\nconst applicationContainer = new ApplicationStore();\nexport { IS_BROWSER, ApplicationStore, applicationContainer, applicationContainer as application };\nexport default applicationContainer;\n","import { CalculateMonthCompletionParams, MonthlyData, OrderRecord } from '../types';\n\nconst sortRecordsByDateDesc = (records: OrderRecord[] = []) =>\n [...records].sort((a, b) => (a.year === b.year ? b.month - a.month : b.year - a.year));\n\nconst isSameMonthYear = (record: OrderRecord, date: Date) =>\n record.month === date.getMonth() + 1 && record.year === date.getFullYear();\n\nconst getCurrentMonthRecords = (records: OrderRecord[], today: Date) =>\n records.filter((record) => isSameMonthYear(record, today));\n\nconst getCurrentMonthTotal = (records: OrderRecord[]) => records?.[0]?.totalAmount ?? 0;\n\nconst getApproxMonthTotal = (data: MonthlyData) =>\n parseInt(data?.approximateMonthlyTotalResponse?.currentMonthTotal ?? '0');\n\nconst getCurrentMonthEligibleAmount = (approxMonthTotal: number, minAmount: number, maxAmount: number) =>\n approxMonthTotal > maxAmount ? maxAmount : minAmount;\n\nconst isMonthEligible = (records: OrderRecord[], eligibleAmount: number) =>\n records.some((record) => record.totalAmount >= eligibleAmount);\n\nconst getWindowStartDate = (today: Date, maxMonths: number, includeCurrentMonth: boolean) =>\n includeCurrentMonth\n ? new Date(today.getFullYear(), today.getMonth() - (maxMonths - 1), 1)\n : new Date(today.getFullYear(), today.getMonth() - maxMonths, 1);\n\nconst filterRecentRecords = (records: OrderRecord[], windowStart: Date) =>\n records.filter((record) => new Date(record.year, record.month - 1) >= windowStart);\n\nconst filterPromoFreeRecords = (records: OrderRecord[]) =>\n records.filter((record) => record.promocode === null || record.promocode === undefined || record.promocode === '');\n\nconst dropCurrentMonthIfIneligible = (records: OrderRecord[], today: Date, isCurrentMonthEligible: boolean) =>\n isCurrentMonthEligible ? records : records.filter((record) => !isSameMonthYear(record, today));\n\nconst sliceRecentMonths = (records: OrderRecord[], maxMonths: number) => records.slice(0, maxMonths);\n\nconst areAllPromoCodesSameWhenInvalid = (promoCodes: Array<string | null | undefined> | undefined) => {\n if (!promoCodes) return false;\n const hasUndefined = promoCodes.some((code) => code === undefined);\n return hasUndefined ? promoCodes.every((code) => code === promoCodes[0]) : false;\n};\n\nconst expectedMonthForIndex = (today: Date, isCurrentMonthEligible: boolean, index: number) => {\n const todayMonth = isCurrentMonthEligible ? today.getMonth() : today.getMonth() - 1;\n return new Date(today.getFullYear(), todayMonth - index).getMonth() + 1;\n};\n\nconst hasPromoValue = (code: string | null | undefined) => code !== undefined && code !== '' && code !== null;\n\nconst isPromoBlank = (code: string | null | undefined) => code === undefined || code === '' || code === null;\n\ntype EvaluationContext = {\n minAmount: number;\n maxAmount: number;\n minVoucher: number;\n maxVoucher: number;\n isCurrentMonthEligible: boolean;\n today: Date;\n monthCompletionValue: number;\n voucherValue: number;\n allMonthsAboveMaxAmount: boolean;\n promoCodes: Array<string | null | undefined> | undefined;\n allSamePromoCode: boolean;\n};\n\nconst shouldStopForMonthMismatch = (record: OrderRecord, expectedMonth: number) =>\n record?.month && record.month !== expectedMonth;\n\nconst shouldInvalidateForSamePromo = (allSamePromoCode: boolean, promoCode: string | null | undefined) =>\n allSamePromoCode && hasPromoValue(promoCode);\n\nconst applyEligibleRecordUpdate = (\n recordTotal: number,\n tier: number,\n context: Pick<EvaluationContext, 'allMonthsAboveMaxAmount' | 'maxAmount' | 'maxVoucher' | 'minVoucher'>,\n monthCompletionValue: number,\n) => {\n let nextTier = tier;\n let voucherValue = context.minVoucher;\n\n if (context.allMonthsAboveMaxAmount) {\n voucherValue = context.maxVoucher;\n } else if (tier === 2 && recordTotal >= context.maxAmount) {\n voucherValue = context.maxVoucher;\n } else {\n nextTier = 1;\n }\n\n return {\n monthCompletionValue: monthCompletionValue + 1,\n voucherValue,\n tier: nextTier,\n };\n};\n\nconst evaluateRecentRecords = (records: OrderRecord[] | undefined, context: EvaluationContext) => {\n if (!records || !context.promoCodes) {\n return { monthCompletionValue: context.monthCompletionValue, voucherValue: context.voucherValue };\n }\n\n let voucherValue = context.voucherValue;\n let monthCompletionValue = context.monthCompletionValue;\n let tier = 2;\n\n for (let i = 0; i < records.length; i++) {\n const record = records[i];\n const promoCode = context.promoCodes[i];\n const expectedMonth = expectedMonthForIndex(context.today, context.isCurrentMonthEligible, i);\n\n if (shouldStopForMonthMismatch(record, expectedMonth)) {\n return { monthCompletionValue, voucherValue };\n }\n\n if (shouldInvalidateForSamePromo(context.allSamePromoCode, promoCode)) {\n return { monthCompletionValue: 0, voucherValue };\n }\n\n const meetsAmount = record.totalAmount >= context.minAmount;\n const noPromo = isPromoBlank(promoCode);\n\n if (meetsAmount && noPromo) {\n const update = applyEligibleRecordUpdate(record.totalAmount, tier, context, monthCompletionValue);\n monthCompletionValue = update.monthCompletionValue;\n voucherValue = update.voucherValue;\n tier = update.tier;\n continue;\n }\n\n if (record.totalAmount < context.minAmount) {\n return { monthCompletionValue, voucherValue };\n }\n }\n\n return { monthCompletionValue, voucherValue };\n};\n\nexport const calculateMonthCompletionValues = ({\n data,\n minAmount,\n maxAmount,\n minVoucher,\n maxVoucher,\n initialVoucherValue,\n initialMonthCompletionValue,\n maxMonths,\n today,\n}: CalculateMonthCompletionParams) => {\n let voucherValue = initialVoucherValue;\n let monthCompletionValue = initialMonthCompletionValue;\n\n if (!data) {\n return { monthCompletionValue, voucherValue };\n }\n\n const sortedRecords = sortRecordsByDateDesc(data.csmMonthlySubsOrderTotal as OrderRecord[]);\n const currentMonthRecords = getCurrentMonthRecords(sortedRecords, today);\n const hasCurrentMonthData = currentMonthRecords.length > 0;\n const currentMonthTotalAmount = getCurrentMonthTotal(currentMonthRecords);\n const approxMonthTotal = getApproxMonthTotal(data);\n const currentMonthEligibleAmount = getCurrentMonthEligibleAmount(approxMonthTotal, minAmount, maxAmount);\n const isCurrentMonthEligible = isMonthEligible(currentMonthRecords, currentMonthEligibleAmount);\n\n const windowStart = getWindowStartDate(today, maxMonths, hasCurrentMonthData && isCurrentMonthEligible);\n const recentRecords = filterRecentRecords(sortedRecords, windowStart);\n const promoFreeRecords = filterPromoFreeRecords(recentRecords);\n const eligibleRecords = dropCurrentMonthIfIneligible(promoFreeRecords, today, isCurrentMonthEligible);\n const lastMonths = sliceRecentMonths(eligibleRecords, maxMonths);\n\n const allMonthsAboveMaxAmount = lastMonths?.every((record) => record.totalAmount >= maxAmount) ?? false;\n const promoCodes = lastMonths?.map((record) => record.promocode);\n const allSamePromoCode = areAllPromoCodesSameWhenInvalid(promoCodes);\n\n ({ monthCompletionValue, voucherValue } = evaluateRecentRecords(lastMonths, {\n minAmount,\n maxAmount,\n minVoucher,\n maxVoucher,\n isCurrentMonthEligible,\n today,\n monthCompletionValue,\n voucherValue,\n allMonthsAboveMaxAmount,\n promoCodes,\n allSamePromoCode,\n }));\n\n if ((!hasCurrentMonthData || !isCurrentMonthEligible) && voucherValue !== minVoucher) {\n voucherValue = approxMonthTotal >= maxAmount ? maxVoucher : minVoucher;\n }\n\n if (\n !isCurrentMonthEligible &&\n voucherValue === minVoucher &&\n monthCompletionValue < maxMonths &&\n currentMonthTotalAmount >= minAmount\n ) {\n monthCompletionValue += 1;\n }\n\n return { monthCompletionValue, voucherValue };\n};\n"]}