{"version":3,"file":"index.cjs","names":["styled","useContext","React","LinkProps","to","Omit","ComponentPropsWithoutRef","DefaultLink","forwardRef","HTMLAnchorElement","children","rest","ref","DefaultLinkProps","RefAttributes","Components","Link","ComponentType","PropsWithoutRef","DefaultValue","ComponentAbstractionContext","createContext","Props","ReactNode","components","Partial","ComponentAbstraction","useComponentAbstraction","React","styled","css","maxWidth","LinkProps","useComponentAbstraction","Props","HTMLElement","active","hover","reactive","children","ReactNode","onClick","MouseEventHandler","T","FilterIconButtonProps","HTMLButtonElement","width","height","FilterButton","forwardRef","ref","Ref","undefined","FilterIconButton","FilterLink","props","HTMLAnchorElement","Link","ButtonCssProps","buttonCss","theme","color","text3","text2","surface3","breakpoint","screen1","padding0Css","ButtonLike","button","PlainElement","span","StyledButtonLikeProps","buttonWidth","buttonHeight","StyledButtonLike","p","Filter","div","styled","DefaultTheme","createTheme","theme","ReturnType","React","styled","IconSizes","Props","path","ReactNode","viewBoxSize","size","transform","currentColor","fillRule","clipRule","IconBase","Icon","svg","theme","color","text2","props","IconBasePathProps","Pick","IconBasePath","styled","IconBase","size","InfoIcon","path","Path","theme","color","surface1","React","styled","css","theme","InfoIcon","maxWidth","Context","Props","children","ReactNode","context","className","HintText","styledProps","Container","div","ReturnType","p","o","bg","surface3","borderRadius","padding","vertical","default","horizontal","t","breakpoint","screen1","IconWrap","color","text4","Text","font","text2","typography","props","contextToProps","const","columnSystem","COLUMN_UNIT","GUTTER_UNIT","MAIN_COLUMN_HORIZONTAL_MIN_MARGIN","RESPONSIVE_LEFT_WIDTH","RESPONSIVE_MAIN_MAX_WIDTH","useCallback","useDebugValue","useLayoutEffect","useMemo","useReducer","useRef","useState","ReactDOM","useTheme","maxWidth","__TEST__","flushSync","callback","R","useMediaScreen1","useMedia","breakpoint","screen1","query","matcher","matches","addListener","removeListener","matchMedia","setMatches","e","MediaQueryListEvent","toString","ElementSize","width","height","measure","ref","Element","getBoundingClientRect","undefined","useElementSize","React","RefObject","deps","size","setSize","state","next","watch","setWatch","observer","ResizeObserver","newSize","observe","unobserve","current","length","useDebounceAnimationState","defaultValue","T","setState","timer","ReturnType","requestAnimationFrame","setDebounceState","value","force","useContext","React","styled","createGlobalStyle","css","MAIN_COLUMN_HORIZONTAL_MIN_MARGIN","RESPONSIVE_LEFT_WIDTH","RESPONSIVE_MAIN_MAX_WIDTH","useMediaScreen1","columnSystem","COLUMN_UNIT","GUTTER_UNIT","maxWidth","Props","menu","ReactNode","isHeaderTopMenu","children","header","wide","center","LayoutConfigContext","createContext","withLeft","Layout","config","HeaderTopMenuContainer","div","theme","breakpoint","screen1","color","surface2","GlobalStyle","background2","background1","LayoutRoot","LeftArea","screen3","MainArea","p","Header","text2","Grid","LayoutItemProps","span","LayoutItem","forwardRef","HTMLDivElement","ref","StyledLayoutItemProps","StyledLayoutItem","screen4","LayoutItemHeader","StyledLayoutItemHeaderProps","StyledLayoutItemHeader","LAYOUT_ITEM_BODY_PADDING","x","y","default","column1","narrow","yTop","yBottom","narrowColumn1","LayoutItemBody","horizontal","StyledLayoutItemBodyProps","StyledLayoutItemBody","useLayoutItemBodyPadding","CancelLayoutItemBodyPadding","cancelTop","StyledCancelLayoutItemBodyPaddingProps","StyledCancelLayoutItemBodyPadding","Children","isValidElement","ReactElement","ReactNode","hasChildren","element","children","Boolean","props","childToString","child","JSON","stringify","toString","onlyText","Array","isArray","toArray","reduce","text","newText","concat","styled","css","onlyText","Props","lineHeight","lineLimit","TextEllipsis","div","attrs","children","title","undefined","props","useContext","React","styled","css","theme","TextEllipsis","LinkProps","useComponentAbstraction","disabledSelector","MenuListItemContextProps","padding","MenuListItemContext","createContext","MenuListItemBaseData","primary","ReactNode","secondary","onClick","e","MouseEvent","disabled","gtmClass","noHover","MenuListItemProps","children","MenuListItem","undefined","ItemProps","hasSubLabel","sidePadding","noClick","Item","div","p","color","surface3","o","Labels","PrimaryText","text2","SecondaryText","text3","MenuListLinkItemProps","Omit","link","MenuListLinkItem","linkProps","Link","props","A","a","MenuListLinkItemWithIconProps","icon","MenuListItemWithIconProps","MenuListLinkItemWithIcon","text","MenuListItemWithIcon","IconContainer","Icon","MenuListSpacer","MenuListLabel","styled","MenuListLinkItem","useComponentAbstraction","Props","links","text","to","id","ID","active","LeftMenu","Link","map","link","index","undefined","LeftMenuContent","Container","div","LinkItem","theme","color","text3","text2","surface3","React","styled","css","applyEffect","Props","ComponentPropsWithoutRef","gtmClass","flex","rowReverse","forwardRef","SwitchCheckbox","children","disabled","props","ref","Ref","HTMLInputElement","undefined","Children","span","p","Label","label","SwitchOuter","SwitchInner","div","theme","color","text4","SwitchInnerKnob","text5","SwitchInput","input","attrs","type","brand","elementEffect","opacity","useRef","React","styled","css","useElementSize","Props","children","ReactNode","icon","show","prefix","fit","width","fixed","memo","WithIcon","pre","node","undefined","Root","div","Text","p","AutoWidthIconAnchor","ref","HTMLDivElement","forceCenteringCss","IconAnchorProps","iconAnchorCss","IconAnchorNaive","IconNaive","IconAnchor","Icon","passiveEventsResult","passiveEvents","undefined","options","Object","defineProperty","get","window","addEventListener","test","removeEventListener","isEdge","navigator","userAgent","includes","useLayoutEffect","useEffect","useIsomorphicLayoutEffect","window","unreachable","value","Error","arguments","length","JSON","stringify","unreachable","IconBase","WedgeDirection","Up","Down","Left","Right","path","size","Props","direction","NextIcon","transform","directionToTransform","undefined","styled","css","default","_styled","unreachable","NextIcon","WedgeDirection","applyEffect","Direction","Right","Left","Props","direction","show","offset","padding","bottomOffset","gradient","onClick","onlyNonTouchDevice","CarouselButton","bottom","offsetStyle","left","paddingLeft","Math","max","paddingBottom","right","paddingRight","CAROUSEL_BUTTON_SIZE","CarouselButtonIcon","div","theme","color","surface4","text5","Button","button","hide","effect","hover","press","p","_StyledButton","useEffect","useState","useCallback","useRef","React","animated","AnimatedComponent","useSpring","styled","css","useDebounceAnimationState","passiveEvents","isEdge","useIsomorphicLayoutEffect","CarouselButton","Direction","GRADIENT_WIDTH","SCROLL_AMOUNT_COEF","ScrollProps","align","offset","CarouselBaseAppearanceProps","buttonOffset","buttonPadding","bottomOffset","defaultScroll","CarouselGradientProps","hasGradient","fadeInGradient","CarouselAppearanceProps","Props","onScroll","left","onResize","width","children","ReactNode","centerItems","onScrollStateChange","canScroll","scrollAmountCoef","CarouselHandlerRef","resetScroll","Carousel","scrollOffset","options","scrollLeft","setScrollLeft","animation","maxScrollLeft","setMaxScrollLeft","leftShow","setLeftShow","rightShow","setRightShow","styles","set","from","scroll","ref","HTMLDivElement","visibleAreaRef","innerRef","HTMLUListElement","handleRight","current","clientWidth","Math","min","reset","handleLeft","max","newLeftShow","newRightShow","handleScroll","stop","manualScrollLeft","handleResize","scrollWidth","newMaxScrollLeft","elm","innerElm","addEventListener","passive","resizeObserver","ResizeObserver","observe","resizeObserverInner","removeEventListener","disconnect","scrollLength","handleScrollMove","disableGradient","setDisableGradient","overflowGradient","Left","Right","CarouselContainer","ul","ButtonsContainer","div","Container","ScrollArea","ComponentType","Omit","ComponentProps","GradientContainer","p","RightGradient","LeftGradient","show","styled","Props","size","subLink","DotsIcon","default","StyledSVG","svg","styled","unreachable","WedgeDirection","Up","Down","Left","Right","Props","size","direction","WedgeIcon","directionToTransform","undefined","StyledPolyline","polyline","memo","useCallback","useDebugValue","useMemo","styled","css","warning","DotsIcon","WedgeIcon","WedgeDirection","useComponentAbstraction","usePagerWindow","page","pageCount","pageRangeDisplayed","process","env","NODE_ENV","window","visibleFirstPage","visibleLastPage","Math","min","max","floor","Array","from","length","_","i","start","const","CommonProps","PagerProps","onChange","newPage","Pager","makeClickHandler","value","hasNext","hasPrev","Left","map","p","Right","LinkPagerProps","makeUrl","LinkPager","Link","PagerContainer","nav","CircleButton","button","noBackground","theme","color","text3","surface3","text2","surface6","text5","Spacer","attrs","type","disabled","Text"],"sources":["../build-plugin-styled-components/styledExportFix.ts","../src/_lib/ComponentAbstraction.tsx","../src/components/Filter/index.tsx","../src/styled.ts","../src/components/icons/Base.tsx","../src/components/icons/InfoIcon.tsx","../src/components/HintText/index.tsx","../src/foundation/constants.ts","../src/foundation/hooks.ts","../src/components/Layout/index.tsx","../src/components/TextEllipsis/helper.ts","../src/components/TextEllipsis/index.tsx","../src/components/MenuListItem/index.tsx","../src/components/LeftMenu/index.tsx","../src/components/SwitchCheckbox/index.tsx","../src/components/WithIcon/index.tsx","../src/foundation/support.ts","../src/hooks/index.ts","../src/foundation/utils.ts","../src/components/icons/NextIcon.tsx","../src/components/CarouselButton/index.tsx","../src/components/Carousel/index.tsx","../src/components/icons/DotsIcon.tsx","../src/components/icons/WedgeIcon.tsx","../src/components/Pager/index.tsx"],"sourcesContent":["// https://github.com/styled-components/styled-components/issues/3437\n// eslint-disable-next-line no-restricted-imports\nimport styled from 'styled-components'\n\n// eslint-disable-next-line no-restricted-imports\nexport * from 'styled-components'\n\n// @ts-expect-error https://github.com/styled-components/styled-components/issues/3437#issuecomment-1103085056\n// prettier-ignore\nconst _styled: typeof styled = typeof styled === 'function' ? styled : styled.default\n\nexport { _styled as default }\n","import { useContext } from 'react'\nimport * as React from 'react'\n\nexport type LinkProps = {\n  /**\n   * リンクのURL\n   */\n  to: string\n} & Omit<React.ComponentPropsWithoutRef<'a'>, 'href'>\n\nexport const DefaultLink = React.forwardRef<HTMLAnchorElement, LinkProps>(\n  function DefaultLink({ to, children, ...rest }, ref) {\n    return (\n      <a href={to} ref={ref} {...rest}>\n        {children}\n      </a>\n    )\n  },\n)\n\ntype DefaultLinkProps = LinkProps & React.RefAttributes<HTMLAnchorElement>\nexport interface Components {\n  Link: React.ComponentType<React.PropsWithoutRef<DefaultLinkProps>>\n}\n\nconst DefaultValue: Components = {\n  Link: DefaultLink,\n}\n\nconst ComponentAbstractionContext = React.createContext(DefaultValue)\n\ninterface Props {\n  children: React.ReactNode\n  components: Partial<Components>\n}\n\nexport default function ComponentAbstraction({ children, components }: Props) {\n  return (\n    <ComponentAbstractionContext.Provider\n      value={{ ...DefaultValue, ...components }}\n    >\n      {children}\n    </ComponentAbstractionContext.Provider>\n  )\n}\n\nexport function useComponentAbstraction() {\n  return useContext(ComponentAbstractionContext)\n}\n","import * as React from 'react'\nimport styled, { css } from 'styled-components'\nimport { maxWidth } from '@charcoal-ui/utils'\nimport {\n  LinkProps,\n  useComponentAbstraction,\n} from '../../_lib/ComponentAbstraction'\n\ninterface Props<T extends HTMLElement> {\n  active?: boolean\n  hover?: boolean\n  reactive?: boolean\n  children: React.ReactNode\n  onClick?: React.MouseEventHandler<T>\n}\n\ninterface FilterIconButtonProps extends Props<HTMLButtonElement> {\n  width?: number\n  height?: number\n}\n\nexport const FilterButton = React.forwardRef(function FilterButton(\n  {\n    onClick,\n    children,\n    active = false,\n    hover,\n    reactive = false,\n  }: Props<HTMLButtonElement>,\n  ref: React.Ref<HTMLButtonElement>,\n) {\n  return (\n    <ButtonLike\n      active={active}\n      reactive={reactive}\n      hover={hover}\n      onClick={active && !reactive ? undefined : onClick}\n      ref={ref}\n    >\n      {children}\n    </ButtonLike>\n  )\n})\n\nexport const FilterIconButton = React.forwardRef(function FilterIconButton(\n  {\n    onClick,\n    children,\n    active = false,\n    hover,\n    reactive = false,\n    width,\n    height,\n  }: FilterIconButtonProps,\n  ref: React.Ref<HTMLButtonElement>,\n) {\n  return (\n    <StyledButtonLike\n      active={active}\n      reactive={reactive}\n      hover={hover}\n      onClick={active && !reactive ? undefined : onClick}\n      ref={ref}\n      buttonWidth={width}\n      buttonHeight={height}\n    >\n      {children}\n    </StyledButtonLike>\n  )\n})\n\nexport const FilterLink = React.forwardRef(function FilterLink(\n  {\n    onClick,\n    children,\n    active = false,\n    hover,\n    reactive = false,\n    ...props\n  }: Props<HTMLAnchorElement> & LinkProps,\n  ref: React.Ref<HTMLAnchorElement>,\n) {\n  const { Link } = useComponentAbstraction()\n  if (active && !reactive) {\n    return (\n      <PlainElement active hover={hover} ref={ref}>\n        {children}\n      </PlainElement>\n    )\n  } else {\n    return (\n      <Link {...props} onClick={onClick}>\n        <PlainElement\n          active={active}\n          reactive={reactive}\n          hover={hover}\n          ref={ref}\n        >\n          {children}\n        </PlainElement>\n      </Link>\n    )\n  }\n})\n\ninterface ButtonCssProps {\n  active?: boolean\n  hover?: boolean\n  reactive?: boolean\n}\n\nconst buttonCss = css<ButtonCssProps>`\n  display: block;\n  outline: none;\n  border: none;\n  padding: 9px 24px;\n  font-size: 14px;\n  line-height: 22px;\n  font-weight: bold;\n  border-radius: /* absurd radius, but ensures rounded corners */ 2000px;\n  transition: color 0.2s;\n  color: ${({ theme }) => theme.color.text3};\n  cursor: pointer;\n  user-select: none;\n  background-color: transparent;\n\n  &:hover {\n    color: ${({ theme }) => theme.color.text2};\n  }\n\n  ${({ hover = false }) =>\n    hover &&\n    css`\n      color: ${({ theme }) => theme.color.text2};\n    `}\n\n  ${({ active = false }) =>\n    active &&\n    css`\n      background-color: ${({ theme }) => theme.color.surface3};\n      color: ${({ theme }) => theme.color.text2};\n    `}\n\n  ${({ active = false, reactive = false }) =>\n    active &&\n    !reactive &&\n    css`\n      cursor: default;\n    `}\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    padding: 5px 16px;\n  }\n`\n\nconst padding0Css = css`\n  padding: 0;\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    padding: 0;\n  }\n`\n\nconst ButtonLike = styled.button<ButtonCssProps>`\n  ${buttonCss}\n`\n\nconst PlainElement = styled.span<ButtonCssProps>`\n  ${buttonCss}\n`\n\ntype StyledButtonLikeProps = {\n  buttonWidth: number | undefined\n  buttonHeight: number | undefined\n}\nconst StyledButtonLike = styled(ButtonLike)<StyledButtonLikeProps>`\n  ${padding0Css};\n  ${(p) => p.buttonWidth !== undefined && `width: ${p.buttonWidth}px;`}\n  ${(p) => p.buttonHeight !== undefined && `height: ${p.buttonHeight}px;`}\n`\n\nconst Filter = styled.div`\n  display: flex;\n`\n\nexport default Filter\n","import styled from 'styled-components'\nimport type { DefaultTheme } from 'styled-components'\nimport { createTheme } from '@charcoal-ui/styled'\n\nexport const theme: ReturnType<typeof createTheme<DefaultTheme>> =\n  createTheme(styled)\n","import * as React from 'react'\nimport styled from 'styled-components'\n\nexport type IconSizes = 16 | 24 | 32\n\ninterface Props {\n  path: string | React.ReactNode\n  viewBoxSize: number\n  size?: IconSizes | 40 | 48 | 64 | 72\n  transform?: string\n  currentColor?: boolean\n  fillRule?: 'nonzero' | 'evenodd'\n  clipRule?: 'nonzero' | 'evenodd' | 'inherit'\n}\n\nexport default function IconBase({\n  size = 24,\n  viewBoxSize,\n  currentColor,\n  path,\n  transform,\n  fillRule,\n  clipRule,\n}: Props) {\n  return (\n    <Icon\n      viewBox={`0 0 ${viewBoxSize} ${viewBoxSize}`}\n      size={size}\n      currentColor={currentColor}\n    >\n      <IconBasePath\n        path={path}\n        transform={transform}\n        fillRule={fillRule}\n        clipRule={clipRule}\n      />\n    </Icon>\n  )\n}\n\nconst Icon = styled.svg<{ size: number; currentColor?: boolean }>`\n  stroke: none;\n  fill: ${({ currentColor = false, theme }) =>\n    currentColor ? 'currentColor' : theme.color.text2};\n  width: ${(props) => props.size}px;\n  height: ${(props) => props.size}px;\n  line-height: 0;\n  font-size: 0;\n  vertical-align: middle;\n`\n\ntype IconBasePathProps = Pick<\n  Props,\n  'path' | 'transform' | 'fillRule' | 'clipRule'\n>\nexport const IconBasePath = ({\n  path,\n  transform,\n  fillRule,\n  clipRule,\n}: IconBasePathProps) => {\n  if (typeof path === 'string') {\n    return (\n      <path\n        d={path}\n        transform={transform}\n        fillRule={fillRule}\n        clipRule={clipRule}\n      />\n    )\n  } else {\n    return <>{path}</>\n  }\n}\n","import styled from 'styled-components'\nimport IconBase from './Base'\n\nconst size = 16\n\nexport default function InfoIcon() {\n  const path = (\n    <>\n      <path\n        d=\"M8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183\n           0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16Z\"\n      />\n      <Path\n        d=\"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629\n           4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 6.25C8.69036 6.25 9.25 5.69036\n           9.25 5C9.25 4.30964 8.69036 3.75 8 3.75C7.30964 3.75 6.75 4.30964 6.75\n           5C6.75 5.69036 7.30964 6.25 8 6.25ZM7 7.75V11.25C7 11.8023 7.44772 12.25\n           8 12.25C8.55228 12.25 9 11.8023 9 11.25V7.75C9 7.19772 8.55228 6.75 8\n           6.75C7.44772 6.75 7 7.19772 7 7.75Z\"\n      />\n    </>\n  )\n  return <IconBase viewBoxSize={size} size={size} currentColor path={path} />\n}\n\nconst Path = styled.path`\n  fill: ${({ theme }) => theme.color.surface1};\n  fill-rule: evenodd;\n`\n","import * as React from 'react'\nimport styled, { css } from 'styled-components'\nimport { theme } from '../../styled'\nimport InfoIcon from '../icons/InfoIcon'\nimport { maxWidth } from '@charcoal-ui/utils'\n\ntype Context = 'page' | 'section'\ninterface Props {\n  children: React.ReactNode\n  context: Context\n  className?: string\n}\n\n/**\n * @deprecated use HintText from @charcoal-ui/react\n */\nexport default function HintText({ children, context, className }: Props) {\n  return (\n    <Container\n      className={className}\n      {...styledProps({ children, context, className })}\n    >\n      <IconWrap>\n        <InfoIcon />\n      </IconWrap>\n      <Text>{children}</Text>\n    </Container>\n  )\n}\n\nconst Container = styled.div<ReturnType<typeof styledProps>>`\n  ${(p) =>\n    theme((o) => [\n      o.bg.surface3,\n      o.borderRadius(8),\n      o.padding.vertical(p.default.vertical),\n      o.padding.horizontal(p.default.horizontal),\n    ])}\n\n  @media ${({ theme: t }) => maxWidth(t.breakpoint.screen1)} {\n    ${(p) =>\n      theme((o) => [\n        o.padding.vertical(p.screen1.vertical),\n        o.padding.horizontal(p.screen1.horizontal),\n      ])}\n  }\n\n  display: flex;\n  align-items: flex-start;\n  ${(p) =>\n    p.context === 'page' &&\n    css`\n      justify-content: center;\n    `}\n`\n\nconst IconWrap = styled.div`\n  display: flex;\n  align-items: center;\n  color: ${(p) => p.theme.color.text4};\n  height: 22px;\n  margin: -4px 4px -4px 0;\n`\n\nconst Text = styled.p`\n  ${theme((o) => [o.font.text2, o.typography(14)])}\n  margin: 0;\n  min-width: 0;\n  overflow-wrap: break-word;\n`\n\nfunction styledProps(props: Props) {\n  return { ...props, ...contextToProps(props.context) }\n}\n\nfunction contextToProps(context: Context) {\n  switch (context) {\n    case 'page':\n      return {\n        default: {\n          horizontal: 40,\n          vertical: 24,\n        },\n        screen1: {\n          horizontal: 16,\n          vertical: 16,\n        },\n      } as const\n    case 'section':\n      return {\n        default: {\n          horizontal: 16,\n          vertical: 16,\n        },\n        screen1: {\n          horizontal: 16,\n          vertical: 16,\n        },\n      } as const\n  }\n}\n","import { columnSystem, COLUMN_UNIT, GUTTER_UNIT } from '@charcoal-ui/foundation'\n\nexport const MAIN_COLUMN_HORIZONTAL_MIN_MARGIN = 72\n\nexport const RESPONSIVE_LEFT_WIDTH =\n  columnSystem(2, COLUMN_UNIT, GUTTER_UNIT) + GUTTER_UNIT\nexport const RESPONSIVE_MAIN_MAX_WIDTH = columnSystem(\n  12,\n  COLUMN_UNIT,\n  GUTTER_UNIT,\n)\n","import {\n  useCallback,\n  useDebugValue,\n  useLayoutEffect,\n  useMemo,\n  useReducer,\n  useRef,\n  useState,\n} from 'react'\nimport ReactDOM from 'react-dom'\nimport { useTheme } from 'styled-components'\nimport { maxWidth } from '@charcoal-ui/utils'\n\ndeclare const __TEST__: object | undefined // actually object|false, but using undefined allows ! assertion\n\ndeclare module 'react-dom' {\n  export function flushSync<R>(callback: () => R): R\n}\n\n/**\n * 現在の画面幅がモバイル幅かどうかを返す\n */\nexport function useMediaScreen1() {\n  return useMedia(maxWidth(useTheme().breakpoint.screen1))\n}\n\n/**\n * Returns a dynamically-updating media query result.\n *\n * When the media query's matching state changes, this hook's result\n * will update with sync priority.\n *\n * @param query A full media query (the string written between `@media` and the `{` in CSS)\n * @returns true if the query matches, false if it doesn't\n */\nexport function useMedia(query: string) {\n  const matcher = useMemo(\n    () =>\n      __TEST__\n        ? {\n            matches: false,\n            addListener: () => {\n              // do nothing\n            },\n            removeListener: () => {\n              // do nothing\n            },\n          }\n        : matchMedia(query),\n    [query],\n  )\n  const [matches, setMatches] = useState<boolean>(matcher.matches)\n\n  // can only happen if/when the query changes\n  if (matcher.matches !== matches) {\n    setMatches(matcher.matches)\n  }\n\n  const callback = (e: MediaQueryListEvent) => {\n    // We're not on a React event listener, so React doesn't know the priority of the setState call\n    // Media query updates _are_ very high priority to avoid FOUC\n    // so we need to emit a sync priority update\n    try {\n      // However, flushSync may throw if the matcher is triggered by a\n      // forced relayout that happens during a React lifecycle handler.\n      // Try to be resilient and retry without flushSync if flushSync throws.\n      ReactDOM.flushSync(() => {\n        setMatches(e.matches)\n      })\n    } catch {\n      setMatches(e.matches)\n    }\n  }\n\n  useLayoutEffect(() => {\n    matcher.addListener(callback)\n    // sync update\n    setMatches(matcher.matches)\n    return () => {\n      matcher.removeListener(callback)\n    }\n  }, [matcher])\n\n  useDebugValue(`${query}: ${matches.toString()}`)\n\n  return matches\n}\n\nexport interface ElementSize {\n  width: number\n  height: number\n}\n\nfunction measure(ref: Element | null): ElementSize | undefined {\n  return ref !== null ? ref.getBoundingClientRect() : undefined\n}\n\nexport function useElementSize(\n  ref: React.RefObject<Element | null>,\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  deps: any[] = [],\n) {\n  // _don't_ call measure synchronously here even if you somehow can\n  // measurement has to be done outside the render phase, either\n  // as the resize observer callback or as a layout effect\n\n  const [size, setSize] = useReducer(\n    (\n      state: ElementSize | undefined,\n      next: ElementSize | undefined,\n    ): ElementSize | undefined => {\n      // width, height, etc are not own properties but getters in the prototype\n      // can't use shallowEqual or other iterative checks\n      if (state === undefined || next === undefined) {\n        return next\n      }\n      if (state.height === next.height && state.width === next.width) {\n        return state\n      }\n      return next\n    },\n    undefined,\n  )\n  const [watch, setWatch] = useState<Element | null>(null)\n  useLayoutEffect(() => {\n    if (watch === null) {\n      return\n    }\n\n    const observer = new ResizeObserver(() => {\n      // NOTE: the ResizeObserverCallback receives a rect,\n      // but it's not measured in the same way as getBoundingClientRect,\n      // which causes unstable layout\n      const newSize = measure(watch)\n      setSize(newSize)\n    })\n\n    // The ResizeObserver is supposed to call handleResize on observe\n    observer.observe(watch)\n\n    return () => {\n      // this will correctly unobserve if either the observer\n      // or the current changes, and even on unmount\n      // no need for an observer.disconnect() 🎉\n      observer.unobserve(watch)\n      setSize(undefined)\n    }\n  }, [watch])\n\n  // eslint-disable-next-line react-compiler/react-compiler\n  // eslint-disable-next-line react-hooks/exhaustive-deps\n  useLayoutEffect(() => {\n    if (ref.current !== watch) {\n      setWatch(ref.current)\n    }\n  })\n\n  useLayoutEffect(() => {\n    if (deps.length > 0) {\n      // Sync measuring\n      setSize(measure(ref.current))\n    }\n    // eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, deps)\n\n  useDebugValue(size)\n\n  return size\n}\n\n/**\n * Debounce version of setState with `requestAnimationFrame`\n *\n * @param defaultValue Default value for `useState`\n */\nexport function useDebounceAnimationState<T>(defaultValue: T) {\n  const [state, setState] = useState(defaultValue)\n  const timer = useRef<ReturnType<typeof requestAnimationFrame> | undefined>(\n    undefined,\n  )\n  // typescript bug? (any when omitting type annotation)\n  // eslint-disable-next-line @typescript-eslint/no-inferrable-types\n  const setDebounceState = useCallback((value: T, force: boolean = false) => {\n    if (force) {\n      setState(value)\n      return\n    }\n    if (timer.current !== undefined) {\n      return\n    }\n    timer.current = requestAnimationFrame(() => {\n      setState(value)\n      if (timer.current !== undefined) {\n        timer.current = undefined\n      }\n    })\n  }, [])\n  return [state, setDebounceState] as [typeof state, typeof setDebounceState]\n}\n","import { useContext } from 'react'\nimport * as React from 'react'\nimport styled, { createGlobalStyle, css } from 'styled-components'\nimport {\n  MAIN_COLUMN_HORIZONTAL_MIN_MARGIN,\n  RESPONSIVE_LEFT_WIDTH,\n  RESPONSIVE_MAIN_MAX_WIDTH,\n} from '../../foundation/constants'\nimport { useMediaScreen1 } from '../../foundation/hooks'\nimport { columnSystem, COLUMN_UNIT, GUTTER_UNIT } from '@charcoal-ui/foundation'\nimport { maxWidth } from '@charcoal-ui/utils'\n\ninterface Props {\n  menu?: React.ReactNode\n  isHeaderTopMenu?: boolean\n  children: React.ReactNode\n  header?: React.ReactNode\n  wide?: boolean\n  center?: boolean\n}\n\nconst LayoutConfigContext = React.createContext({\n  wide: false,\n  center: false,\n  withLeft: false,\n})\n\nexport default function Layout({\n  menu,\n  children,\n  header,\n  center = false,\n  wide,\n  isHeaderTopMenu = false,\n}: Props) {\n  const config = {\n    center,\n    wide: center ? true : (wide ?? false),\n    withLeft: menu != null && !isHeaderTopMenu,\n  }\n  return (\n    <LayoutRoot>\n      <LayoutConfigContext.Provider value={config}>\n        {config.withLeft && <LeftArea>{menu}</LeftArea>}\n        <MainArea center={center}>\n          {header != null && <Header>{header}</Header>}\n          {isHeaderTopMenu && (\n            <HeaderTopMenuContainer>{menu}</HeaderTopMenuContainer>\n          )}\n          <Grid>{children}</Grid>\n        </MainArea>\n      </LayoutConfigContext.Provider>\n      <GlobalStyle />\n    </LayoutRoot>\n  )\n}\n\nconst HeaderTopMenuContainer = styled.div`\n  margin-bottom: 40px;\n  overflow-x: auto;\n  word-break: keep-all;\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    margin-bottom: 0;\n    padding-left: 16px;\n    padding-bottom: 16px;\n    background-color: ${({ theme }) => theme.color.surface2};\n  }\n`\n\nconst GlobalStyle = createGlobalStyle`\n  :root {\n    background-color: ${({ theme }) => theme.color.background2};\n\n    @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n      background-color: ${({ theme }) => theme.color.background1};\n    }\n  }\n`\n\nconst LayoutRoot = styled.div`\n  display: flex;\n  background-color: ${({ theme }) => theme.color.background2};\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    background-color: ${({ theme }) => theme.color.background1};\n  }\n`\n\nconst LeftArea = styled.div`\n  min-width: ${RESPONSIVE_LEFT_WIDTH}px;\n  padding: 40px 0 40px ${GUTTER_UNIT}px;\n  box-sizing: border-box;\n\n  @media ${({ theme }) => theme.breakpoint.screen3} {\n    display: none;\n  }\n`\n\nconst MainArea = styled.div<{ center: boolean }>`\n  flex-grow: 1;\n  /* https://www.w3.org/TR/css-flexbox-1/#min-size-auto */\n  min-width: 0;\n  max-width: ${(p) =>\n    p.center\n      ? columnSystem(6, COLUMN_UNIT, GUTTER_UNIT)\n      : RESPONSIVE_MAIN_MAX_WIDTH}px;\n  padding: 40px ${MAIN_COLUMN_HORIZONTAL_MIN_MARGIN}px;\n  margin: 0 auto;\n  display: flex;\n  flex-direction: column;\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    padding: 0;\n  }\n`\n\nconst Header = styled.div`\n  font-weight: bold;\n  margin-bottom: 12px;\n  font-size: 20px;\n  line-height: 28px;\n  color: ${({ theme }) => theme.color.text2};\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    margin-bottom: 0;\n    padding: 12px;\n    font-size: 16px;\n    line-height: 24px;\n    display: flex;\n    justify-content: center;\n    background-color: ${({ theme }) => theme.color.surface2};\n  }\n`\n\nconst Grid = styled.div`\n  display: grid;\n  gap: ${GUTTER_UNIT}px;\n  grid-template-columns: 1fr;\n  grid-auto-columns: 1fr;\n  grid-auto-rows: auto;\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    gap: 0;\n    background-color: ${({ theme }) => theme.color.background1};\n    padding-bottom: 60px;\n  }\n`\n\ninterface LayoutItemProps {\n  span: number\n  children?: React.ReactNode\n}\n\nexport const LayoutItem = React.forwardRef<HTMLDivElement, LayoutItemProps>(\n  function LayoutItem({ span, children }, ref) {\n    const { withLeft } = useContext(LayoutConfigContext)\n\n    return (\n      <StyledLayoutItem span={span} withLeft={withLeft} ref={ref}>\n        {children}\n      </StyledLayoutItem>\n    )\n  },\n)\n\ninterface StyledLayoutItemProps {\n  span: number\n  withLeft: boolean\n}\n\nconst StyledLayoutItem = styled.div<StyledLayoutItemProps>`\n  grid-column-start: auto;\n  grid-column-end: span ${(p) => p.span};\n  border-radius: 24px;\n  color: ${({ theme }) => theme.color.text2};\n  background-color: ${({ theme }) => theme.color.background1};\n  /* https://www.w3.org/TR/css-grid-1/#min-size-auto */\n  min-width: 0;\n\n  @media ${(p) =>\n    p.withLeft ? p.theme.breakpoint.screen4 : p.theme.breakpoint.screen3} {\n    ${(p) =>\n      p.span > 2 &&\n      css`\n        grid-column-end: span 2;\n      `}\n  }\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    ${(p) =>\n      p.span > 1 &&\n      css`\n        grid-column-end: span 1;\n      `}\n\n    border-radius: 0;\n    padding-bottom: 40px;\n  }\n`\n\nexport function LayoutItemHeader({ children }: { children: React.ReactNode }) {\n  const { wide, center } = useContext(LayoutConfigContext)\n\n  return (\n    <StyledLayoutItemHeader wide={wide} center={center}>\n      {children}\n    </StyledLayoutItemHeader>\n  )\n}\n\ninterface StyledLayoutItemHeaderProps {\n  wide: boolean\n  center: boolean\n}\n\nconst StyledLayoutItemHeader = styled.div<StyledLayoutItemHeaderProps>`\n  padding: 0 ${(p) => (p.wide ? 40 : 24)}px;\n  height: ${(p) => (p.wide ? 64 : 48)}px;\n  display: grid;\n  align-items: center;\n  font-size: 16px;\n  line-height: 24px;\n  font-weight: bold;\n  background-color: ${({ theme }) => theme.color.surface2};\n  color: ${({ theme }) => theme.color.text2};\n  border-radius: 24px 24px 0 0;\n  ${(p) =>\n    p.center &&\n    css`\n      justify-content: center;\n    `}\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    margin-top: 4px;\n    padding: 0 16px;\n    background: none;\n    overflow-x: auto;\n    border-radius: unset;\n    ${(p) =>\n      p.wide &&\n      css`\n        height: 48px;\n        margin-top: 0;\n      `}\n  }\n`\n\nexport const LAYOUT_ITEM_BODY_PADDING = {\n  wide: {\n    x: 40,\n    y: 40,\n  },\n  default: {\n    x: 24,\n    y: 24,\n  },\n  column1: {\n    x: 16,\n    y: 16,\n  },\n  narrow: {\n    x: 24,\n    yTop: 12,\n    yBottom: 20,\n  },\n  narrowColumn1: {\n    x: 16,\n    yTop: 4,\n    yBottom: 0,\n  },\n}\n\nexport function LayoutItemBody({\n  children,\n  horizontal = false,\n  narrow = false,\n}: {\n  children: React.ReactNode\n  horizontal?: boolean\n  narrow?: boolean\n}) {\n  const { wide } = useContext(LayoutConfigContext)\n\n  return (\n    <StyledLayoutItemBody wide={wide} horizontal={horizontal} narrow={narrow}>\n      {children}\n    </StyledLayoutItemBody>\n  )\n}\n\ninterface StyledLayoutItemBodyProps {\n  wide: boolean\n  horizontal: boolean\n  narrow: boolean\n}\n\nexport const StyledLayoutItemBody = styled.div<StyledLayoutItemBodyProps>`\n  padding: ${(p) =>\n    p.narrow\n      ? `${LAYOUT_ITEM_BODY_PADDING.narrow.yTop}px ${\n          p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.narrow.x\n        }px ${LAYOUT_ITEM_BODY_PADDING.narrow.yBottom}px`\n      : p.wide\n        ? `${p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.wide.y}px ${\n            LAYOUT_ITEM_BODY_PADDING.wide.x\n          }px`\n        : `${p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.default.y}px ${\n            LAYOUT_ITEM_BODY_PADDING.default.x\n          }px`};\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    padding: ${(p) =>\n      p.narrow\n        ? `${LAYOUT_ITEM_BODY_PADDING.narrowColumn1.yTop}px ${\n            p.horizontal ? 0 : LAYOUT_ITEM_BODY_PADDING.narrowColumn1.x\n          }px ${LAYOUT_ITEM_BODY_PADDING.narrowColumn1.yBottom}px`\n        : `${LAYOUT_ITEM_BODY_PADDING.column1.y}px ${\n            LAYOUT_ITEM_BODY_PADDING.column1.x\n          }px ${0}`};\n  }\n\n  width: 100%;\n  box-sizing: border-box;\n`\n\nexport function useLayoutItemBodyPadding() {\n  const { wide } = useContext(LayoutConfigContext)\n  return useMediaScreen1()\n    ? LAYOUT_ITEM_BODY_PADDING.column1\n    : wide\n      ? LAYOUT_ITEM_BODY_PADDING.wide\n      : LAYOUT_ITEM_BODY_PADDING.default\n}\n\nexport function CancelLayoutItemBodyPadding({\n  children,\n  cancelTop,\n}: {\n  children: React.ReactNode\n  cancelTop?: boolean\n}) {\n  const { wide } = useContext(LayoutConfigContext)\n\n  return (\n    <StyledCancelLayoutItemBodyPadding wide={wide} cancelTop={cancelTop}>\n      {children}\n    </StyledCancelLayoutItemBodyPadding>\n  )\n}\n\ninterface StyledCancelLayoutItemBodyPaddingProps {\n  wide: boolean\n  cancelTop?: boolean\n}\n\nexport const StyledCancelLayoutItemBodyPadding = styled.div<StyledCancelLayoutItemBodyPaddingProps>`\n  margin: 0 -${(p) =>\n    p.wide\n      ? LAYOUT_ITEM_BODY_PADDING.wide.x\n      : LAYOUT_ITEM_BODY_PADDING.default.x}px;\n  margin-top: -${({ cancelTop = false, wide }) =>\n    !cancelTop\n      ? 0\n      : wide\n        ? LAYOUT_ITEM_BODY_PADDING.wide.y\n        : LAYOUT_ITEM_BODY_PADDING.default.y}px;\n\n  @media ${({ theme }) => maxWidth(theme.breakpoint.screen1)} {\n    margin: 0 -${LAYOUT_ITEM_BODY_PADDING.column1.x}px;\n    margin-top: -${({ cancelTop = false }) =>\n      !cancelTop ? 0 : LAYOUT_ITEM_BODY_PADDING.column1.x}px;\n  }\n`\n","// https://github.com/fernandopasik/react-children-utilities/blob/971d8a0324e6183734d8d1af9a65dbad18ab3d00/src/lib/onlyText.ts\n\nimport { Children, isValidElement, ReactElement, ReactNode } from 'react'\n\nconst hasChildren = (\n  element: ReactNode,\n): element is ReactElement<{ children: ReactNode[] }> =>\n  isValidElement<{ children?: ReactNode[] }>(element) &&\n  Boolean(element.props.children)\n\nexport const childToString = (\n  child?: number | string | boolean | {} | null,\n): string => {\n  if (\n    typeof child === 'undefined' ||\n    child === null ||\n    typeof child === 'boolean'\n  ) {\n    return ''\n  }\n\n  if (JSON.stringify(child) === '{}') {\n    return ''\n  }\n\n  return (child as string | number).toString()\n}\n\nexport const onlyText = (children: ReactNode): string => {\n  if (!Array.isArray(children) && !isValidElement(children)) {\n    return childToString(children)\n  }\n\n  return Children.toArray(children).reduce(\n    (text: string, child: ReactNode): string => {\n      let newText = ''\n\n      if (isValidElement(child) && hasChildren(child)) {\n        newText = onlyText(child.props.children)\n      } else if (isValidElement(child) && !hasChildren(child)) {\n        newText = ''\n      } else {\n        newText = childToString(child)\n      }\n\n      return text.concat(newText)\n    },\n    '',\n  )\n}\n","import styled, { css } from 'styled-components'\nimport { onlyText } from './helper'\n\nexport interface Props {\n  lineHeight: number\n  lineLimit?: number\n}\n\n/**\n * 複数行のテキストに表示行数制限を設けて`...`で省略する\n */\nexport const TextEllipsis = styled.div.attrs(\n  ({ children, title = onlyText(children) }) => ({\n    title: title !== '' ? title : undefined,\n  }),\n)<Props>`\n  overflow: hidden;\n  line-height: ${(props) => props.lineHeight}px;\n  /* For english */\n  overflow-wrap: break-word;\n\n  ${({ lineLimit = 1, lineHeight }) =>\n    lineLimit === 1\n      ? css`\n          text-overflow: ellipsis;\n          white-space: nowrap;\n        `\n      : css`\n          display: -webkit-box;\n          -webkit-box-orient: vertical;\n          -webkit-line-clamp: ${lineLimit};\n          /* Fallback for -webkit-line-clamp */\n          max-height: ${lineHeight * lineLimit}px;\n        `}\n`\n","import { useContext } from 'react'\nimport * as React from 'react'\nimport styled, { css } from 'styled-components'\nimport { theme } from '../../styled'\nimport { TextEllipsis } from '../TextEllipsis'\nimport {\n  LinkProps,\n  useComponentAbstraction,\n} from '../../_lib/ComponentAbstraction'\nimport { disabledSelector } from '@charcoal-ui/utils'\n\ninterface MenuListItemContextProps {\n  padding: 16 | 24\n}\n\nexport const MenuListItemContext =\n  React.createContext<MenuListItemContextProps>({ padding: 24 })\n\nexport interface MenuListItemBaseData {\n  primary: string | React.ReactNode // 表示アイテム名(上に表示)\n  secondary?: string // 表示アイテム名2(下に表示)\n  onClick?: (e: React.MouseEvent) => void\n  disabled?: boolean\n  gtmClass?: string\n  noHover?: boolean\n}\n\ninterface MenuListItemProps extends MenuListItemBaseData {\n  children?: React.ReactNode // 右寄せで表示したい要素\n}\n\nexport default function MenuListItem({\n  primary,\n  secondary,\n  onClick,\n  disabled = false,\n  noHover = false,\n  gtmClass,\n  children,\n}: MenuListItemProps) {\n  const { padding } = useContext(MenuListItemContext)\n\n  return (\n    <Item\n      hasSubLabel={secondary !== undefined}\n      onClick={(e) => !disabled && onClick && onClick(e)}\n      sidePadding={padding}\n      noHover={noHover}\n      noClick={onClick === undefined}\n      aria-disabled={disabled}\n      role={onClick !== undefined ? 'button' : undefined}\n      className={gtmClass !== undefined ? `gtm-${gtmClass}` : undefined}\n    >\n      <Labels>\n        <PrimaryText>\n          <TextEllipsis lineHeight={22} lineLimit={1}>\n            {primary}\n          </TextEllipsis>\n        </PrimaryText>\n        {secondary !== undefined && (\n          <SecondaryText>\n            <TextEllipsis lineHeight={22} lineLimit={1}>\n              {secondary}\n            </TextEllipsis>\n          </SecondaryText>\n        )}\n      </Labels>\n      {children}\n    </Item>\n  )\n}\n\ninterface ItemProps {\n  hasSubLabel: boolean\n  sidePadding: 16 | 24\n  noHover: boolean\n  noClick: boolean\n}\n\nconst Item = styled.div<ItemProps>`\n  display: flex;\n  height: ${(p) => (p.hasSubLabel ? 56 : 40)}px;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0 ${(p) => p.sidePadding}px;\n  user-select: none;\n  cursor: ${(p) => (p.noClick ? 'default' : 'pointer')};\n  transition: 0.2s background-color;\n\n  &:hover {\n    ${(p) =>\n      !p.noHover &&\n      css`\n        background-color: ${({ theme }) => theme.color.surface3};\n      `}\n  }\n\n  ${theme((o) => o.disabled)}\n\n  ${disabledSelector} {\n    cursor: default;\n    pointer-events: none;\n\n    &:hover {\n      background-color: unset;\n    }\n  }\n`\n\nconst Labels = styled.div`\n  display: flex;\n  flex-direction: column;\n`\n\nconst PrimaryText = styled.div`\n  color: ${(p) => p.theme.color.text2};\n  line-height: 22px;\n  font-size: 14px;\n  display: grid;\n`\n\nconst SecondaryText = styled.div`\n  color: ${(p) => p.theme.color.text3};\n  line-height: 18px;\n  font-size: 10px;\n`\n\ninterface MenuListLinkItemProps\n  extends MenuListItemBaseData, Omit<LinkProps, 'to' | 'onClick' | 'children'> {\n  link: string\n  children?: React.ReactNode\n}\n\nexport function MenuListLinkItem({\n  link,\n  onClick,\n  disabled = false,\n  primary,\n  secondary,\n  gtmClass,\n  noHover,\n  children,\n  ...linkProps\n}: MenuListLinkItemProps) {\n  const { Link } = useComponentAbstraction()\n  const props: MenuListItemProps = {\n    disabled,\n    primary,\n    secondary,\n    gtmClass,\n    noHover,\n    children,\n  }\n\n  return disabled ? (\n    <span onClick={onClick}>\n      <MenuListItem {...props} />\n    </span>\n  ) : (\n    <A<typeof Link> as={Link} to={link} onClick={onClick} {...linkProps}>\n      <MenuListItem onClick={() => void 0} {...props} />\n    </A>\n  )\n}\n\nconst A = styled.a`\n  display: block;\n`\n\ninterface MenuListLinkItemWithIconProps extends MenuListLinkItemProps {\n  icon: React.ReactNode\n}\n\ninterface MenuListItemWithIconProps extends MenuListItemProps {\n  icon: React.ReactNode\n}\n\nexport function MenuListLinkItemWithIcon({\n  icon,\n  primary: text,\n  ...props\n}: MenuListLinkItemWithIconProps) {\n  const primary = (\n    <IconContainer>\n      <Icon>{icon}</Icon>\n      {text}\n    </IconContainer>\n  )\n  return <MenuListLinkItem primary={primary} {...props} />\n}\n\nexport function MenuListItemWithIcon({\n  icon,\n  primary: text,\n  ...props\n}: MenuListItemWithIconProps) {\n  const primary = (\n    <IconContainer>\n      <Icon>{icon}</Icon>\n      {text}\n    </IconContainer>\n  )\n  return <MenuListItem primary={primary} {...props} />\n}\n\nconst IconContainer = styled.div`\n  display: grid;\n  gap: 8px;\n  grid-auto-flow: column;\n  align-items: center;\n`\n\nconst Icon = styled.div`\n  color: ${({ theme }) => theme.color.text3};\n  display: flex;\n`\n\nexport const MenuListSpacer = styled.div`\n  height: 24px;\n`\n\nexport const MenuListLabel = styled.div`\n  padding: 0 16px;\n  font-size: 12px;\n  line-height: 16px;\n  color: ${({ theme }) => theme.color.text3};\n  margin-top: -2px;\n  margin-bottom: 6px;\n`\n","import styled from 'styled-components'\nimport { MenuListLinkItem } from '../MenuListItem'\nimport { useComponentAbstraction } from '../../_lib/ComponentAbstraction'\n\ninterface Props<ID extends string> {\n  links: readonly {\n    text: string\n    to: string\n    id: ID\n  }[]\n  active: ID\n}\n\nexport default function LeftMenu<ID extends string>({\n  links,\n  active,\n}: Props<ID>) {\n  const { Link } = useComponentAbstraction()\n  return (\n    <Container>\n      {links.map((link, index) => (\n        <Link to={link.to} key={index}>\n          <LinkItem aria-current={link.id === active || undefined}>\n            {link.text}\n          </LinkItem>\n        </Link>\n      ))}\n    </Container>\n  )\n}\n\nexport function LeftMenuContent<ID extends string>({ links }: Props<ID>) {\n  return (\n    <>\n      {links.map((link, index) => (\n        <MenuListLinkItem link={link.to} key={index} primary={link.text} />\n      ))}\n    </>\n  )\n}\n\nconst Container = styled.div`\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n`\n\nconst LinkItem = styled.div`\n  display: flex;\n  align-items: center;\n  color: ${({ theme }) => theme.color.text3};\n  border-radius: 24px;\n  font-weight: bold;\n  font-size: 14px;\n  line-height: 22px;\n  padding: 0 16px;\n  height: 40px;\n  transition: 0.2s color;\n  &:hover {\n    transition: 0.2s color;\n    color: ${({ theme }) => theme.color.text2};\n  }\n  &[aria-current] {\n    color: ${({ theme }) => theme.color.text2};\n    background-color: ${({ theme }) => theme.color.surface3};\n  }\n`\n","import * as React from 'react'\n\nimport styled, { css } from 'styled-components'\nimport { applyEffect } from '@charcoal-ui/utils'\n\nexport interface Props extends React.ComponentPropsWithoutRef<'input'> {\n  gtmClass?: string\n  flex?: boolean\n  rowReverse?: boolean\n}\n\nexport default React.forwardRef(function SwitchCheckbox(\n  {\n    gtmClass,\n    flex = false,\n    rowReverse = false,\n    children,\n    disabled,\n    ...props\n  }: Props,\n  ref: React.Ref<HTMLInputElement>,\n) {\n  return (\n    <Label\n      className={gtmClass !== undefined ? `gtm-${gtmClass}` : ''}\n      flex={flex}\n      rowReverse={rowReverse}\n      aria-disabled={disabled}\n    >\n      <SwitchOuter>\n        <SwitchInput {...props} disabled={disabled} ref={ref} />\n        <SwitchInner>\n          <SwitchInnerKnob />\n        </SwitchInner>\n      </SwitchOuter>\n      {children != null && (\n        <Children rowReverse={rowReverse}>{children}</Children>\n      )}\n    </Label>\n  )\n})\n\nconst Children = styled.span<{ rowReverse: boolean }>`\n  ${(p) =>\n    p.rowReverse\n      ? css`\n          margin-right: 8px;\n        `\n      : css`\n          margin-left: 8px;\n        `}\n`\n\nconst Label = styled.label<{ flex: boolean; rowReverse: boolean }>`\n  display: inline-flex;\n  align-items: center;\n  ${({ flex }) =>\n    flex &&\n    css`\n      display: flex;\n      justify-content: space-between;\n    `}\n  ${({ rowReverse }) => css`\n    flex-direction: ${rowReverse ? 'row-reverse' : 'row'};\n  `}\n  cursor: pointer;\n  outline: 0;\n\n  &[aria-disabled='true'] {\n    cursor: auto;\n  }\n`\n\nconst SwitchOuter = styled.span`\n  display: inline-flex;\n  position: relative;\n  z-index: 0;\n`\n\nconst SwitchInner = styled.div`\n  position: relative;\n  box-sizing: border-box;\n  width: 28px;\n  height: 16px;\n  border-radius: 16px;\n  border: 2px solid transparent;\n  background: ${({ theme }) => theme.color.text4};\n  transition:\n    box-shadow 0.2s,\n    background-color 0.2s;\n`\n\nconst SwitchInnerKnob = styled.div`\n  position: absolute;\n  display: block;\n  top: 0;\n  left: 0;\n  width: 12px;\n  height: 12px;\n  background-color: ${({ theme }) => theme.color.text5};\n  border-radius: 50%;\n  transform: translateX(0);\n  transition: transform 0.2s;\n`\n\nconst SwitchInput = styled.input.attrs({\n  type: 'checkbox' as string,\n})`\n  position: absolute;\n  /* NOTE: this is contained by the GraphicCheckboxOuter */\n  z-index: 1;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  /* just to control the clickable area if used standalone */\n  border-radius: 16px;\n  opacity: 0;\n  appearance: none;\n  outline: none;\n  cursor: pointer;\n\n  &:checked {\n    ~ ${SwitchInner} {\n      background-color: ${({ theme }) => theme.color.brand};\n\n      ${SwitchInnerKnob} {\n        transform: translateX(12px);\n      }\n    }\n  }\n\n  &:disabled {\n    cursor: auto;\n\n    ~ ${SwitchInner} {\n      opacity: ${({ theme }) => theme.elementEffect.disabled.opacity};\n    }\n  }\n\n  &:not(:disabled):focus {\n    ~ ${SwitchInner} {\n      box-shadow: 0 0 0 4px\n        ${({ theme }) =>\n          applyEffect(theme.color.brand, theme.elementEffect.disabled)};\n    }\n  }\n`\n","import { useRef } from 'react'\nimport * as React from 'react'\nimport styled, { css } from 'styled-components'\nimport { useElementSize } from '../../foundation/hooks'\n\nexport interface Props {\n  children?: React.ReactNode\n  icon: React.ReactNode\n  /**\n   * アイコンを表示。デフォルトがtrueなので、非表示にするときに使います。 (アイコン自体の幅を維持します)\n   */\n  show?: boolean | 'collapse'\n  /**\n   * アイコンを前にする\n   */\n  prefix?: boolean\n  /**\n   * アイコンの高さが文字の高さよりも大きいケースで有効。アイコンの高さをゼロにしてインラインの高さに関与させないようにします。\n   */\n  fit?: boolean\n  /**\n   * `fit`と併用した時にのみ有効な最適化オプション。アイコンの幅の自動計算を行わず指定した数値を利用します。\n   */\n  width?: number\n  /**\n   * 親要素のサイズに合わせるのではなく、コンテンツのサイズを優先する\n   */\n  fixed?: boolean\n}\n\nexport default React.memo(function WithIcon({\n  children,\n  icon,\n  show = true,\n  prefix: pre = false,\n  width,\n  fit = false,\n  fixed = false,\n}: Props) {\n  const node = fit ? (\n    width === undefined ? (\n      <AutoWidthIconAnchor show={show} pre={pre}>\n        {icon}\n      </AutoWidthIconAnchor>\n    ) : (\n      <IconAnchor width={width} show={show} pre={pre}>\n        <Icon>{icon}</Icon>\n      </IconAnchor>\n    )\n  ) : (\n    <IconAnchorNaive show={show} pre={pre}>\n      <IconNaive>{icon}</IconNaive>\n    </IconAnchorNaive>\n  )\n\n  return (\n    <Root>\n      {pre && node}\n      <Text fixed={fixed}>{children}</Text>\n      {!pre && node}\n    </Root>\n  )\n})\n\nconst Root = styled.div`\n  display: flex;\n  align-items: center;\n`\n\nconst Text = styled.div<{ fixed: boolean }>`\n  ${(p) =>\n    !p.fixed &&\n    css`\n      min-width: 0;\n      overflow: hidden;\n    `}\n  white-space: nowrap;\n  text-overflow: ellipsis;\n`\n\nfunction AutoWidthIconAnchor({\n  children,\n  show,\n  pre,\n}: {\n  children: React.ReactNode\n  show: boolean | 'collapse'\n  pre: boolean\n}) {\n  const ref = useRef<HTMLDivElement>(null)\n  // depsを空配列にしないことで初回だけ同期で幅を計算させるテクニック\n  const width = useElementSize(ref, [null])?.width ?? 0\n  return (\n    <IconAnchor width={width} show={show} pre={pre}>\n      <Icon ref={ref}>{children}</Icon>\n    </IconAnchor>\n  )\n}\n\nconst forceCenteringCss = css`\n  > svg {\n    display: block;\n  }\n`\n\ntype IconAnchorProps = {\n  show: boolean | 'collapse'\n  pre: boolean\n}\n\nconst iconAnchorCss = css<IconAnchorProps>`\n  ${(p) =>\n    p.show === 'collapse'\n      ? css`\n          display: none;\n        `\n      : css`\n          visibility: ${p.show ? 'visible' : 'hidden'};\n        `};\n  ${(p) =>\n    p.pre\n      ? css`\n          margin-right: 4px;\n        `\n      : css`\n          margin-left: 4px;\n        `}\n`\n\nconst IconAnchorNaive = styled.div<IconAnchorProps>`\n  display: flex;\n  align-items: center;\n\n  ${iconAnchorCss}\n`\n\nconst IconNaive = styled.div`\n  display: inline-flex;\n\n  ${forceCenteringCss}\n`\n\nconst IconAnchor = styled.div<{\n  width: number\n  show: boolean | 'collapse'\n  pre: boolean\n}>`\n  display: flex;\n  position: relative;\n  /* Iconをline-heightに関与させない */\n  height: 0;\n  /* 横方向の領域は確保する */\n  width: ${(p) => p.width}px;\n\n  ${iconAnchorCss}\n`\n\nconst Icon = styled.div`\n  display: inline-flex;\n  position: absolute;\n  transform: translateY(-50%);\n\n  ${forceCenteringCss}\n`\n","var passiveEventsResult: boolean | undefined // eslint-disable-line no-var\nexport function passiveEvents(): boolean {\n  if (passiveEventsResult !== undefined) {\n    return passiveEventsResult\n  }\n\n  passiveEventsResult = false\n  try {\n    const options = Object.defineProperty({}, 'passive', {\n      get() {\n        return (passiveEventsResult = true)\n      },\n    })\n\n    window.addEventListener('test', test, options)\n    window.removeEventListener('test', test)\n  } catch {\n    // test fail\n  }\n\n  return passiveEventsResult\n\n  function test() {\n    /* empty */\n  }\n}\n\nexport const isEdge = () => navigator.userAgent.includes('Edge/')\n","import { useLayoutEffect, useEffect } from 'react'\n\nexport const useIsomorphicLayoutEffect =\n  typeof window !== 'undefined' ? useLayoutEffect : useEffect\n","/**\n * Function used to assert a given code path is unreachable\n */\nexport function unreachable(): never\n/**\n * Function used to assert a given code path is unreachable.\n * Very useful for ensuring switches are exhaustive:\n *\n * ```ts\n * switch (a.type) {\n *   case Types.A:\n *   case Types.B:\n *     break\n *   default:\n *     unreachable(a) // will cause a build error if there was\n *                    // a Types.C that was not checked\n * }\n * ```\n *\n * @param value Value to be asserted as unreachable\n */\n// NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed\n\nexport function unreachable(value: never): never\nexport function unreachable(value?: never): never {\n  throw new Error(\n    arguments.length === 0\n      ? 'unreachable'\n      : `unreachable (${JSON.stringify(value)})`,\n  )\n}\n","import { unreachable } from '../../foundation/utils'\nimport IconBase from './Base'\n\nexport enum WedgeDirection {\n  Up = 'up',\n  Down = 'down',\n  Left = 'left',\n  Right = 'right',\n}\n\nconst path = `M8.08579 16.5858C7.30474 17.3668 7.30474 18.6332 8.08579 19.4142C8.86684 20.1953 10.1332 20.1953 10.9142 19.4142L18.3284 12L10.9142 4.58579C10.1332 3.80474 8.86684 3.80474 8.08579 4.58579C7.30474 5.36684 7.30474 6.63317 8.08579 7.41421L12.6716 12L8.08579 16.5858Z`\nconst size = 24\n\ninterface Props {\n  direction: WedgeDirection\n}\n\nexport default function NextIcon({ direction }: Props) {\n  const transform = directionToTransform(direction)\n  return (\n    <IconBase\n      viewBoxSize={size}\n      size={size}\n      currentColor\n      path={path}\n      transform={transform}\n    />\n  )\n}\n\nfunction directionToTransform(direction: WedgeDirection) {\n  // \"5 4\" is the center point of the \"0 0 10 8\" viewBox\n  switch (direction) {\n    case WedgeDirection.Up:\n      return 'rotate(270 12 12)'\n    case WedgeDirection.Down:\n      return 'rotate(90 12 12)'\n    case WedgeDirection.Left:\n      return 'rotate(180 12 12)'\n    case WedgeDirection.Right:\n      return undefined\n    default:\n      return unreachable(direction)\n  }\n}\n","import styled, { css } from 'styled-components'\nimport { unreachable } from '../../foundation/utils'\nimport NextIcon, { WedgeDirection } from '../icons/NextIcon'\nimport { applyEffect } from '@charcoal-ui/utils'\n\nexport enum Direction {\n  Right = 'right',\n  Left = 'left',\n}\n\ninterface Props {\n  direction: Direction\n  show: boolean\n  offset?: number\n  padding?: number\n  bottomOffset?: number\n  gradient?: boolean\n  onClick(): void\n}\n\nconst onlyNonTouchDevice = css`\n  @media (hover: none) and (pointer: coarse) {\n    display: none;\n  }\n`\n\nexport default function CarouselButton({\n  direction,\n  show,\n  offset = 0,\n  padding = 0,\n  bottomOffset: bottom = 0,\n  gradient = false,\n  onClick,\n}: Props) {\n  const offsetStyle =\n    direction === Direction.Left\n      ? {\n          left: gradient ? offset - 72 : offset,\n          paddingLeft: Math.max(padding, 0),\n          paddingBottom: bottom,\n        }\n      : {\n          right: gradient ? offset - 72 : offset,\n          paddingRight: Math.max(padding, 0),\n          paddingBottom: bottom,\n        }\n  return (\n    <Button\n      type=\"button\"\n      onClick={onClick}\n      hide={!show}\n      style={offsetStyle}\n      css={onlyNonTouchDevice}\n    >\n      <CarouselButtonIcon>\n        <NextIcon\n          direction={\n            direction === Direction.Right\n              ? WedgeDirection.Right\n              : // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n                direction === Direction.Left\n                ? WedgeDirection.Left\n                : unreachable()\n          }\n        />\n      </CarouselButtonIcon>\n    </Button>\n  )\n}\n\nexport const CAROUSEL_BUTTON_SIZE = 40\n\nconst CarouselButtonIcon = styled.div`\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: ${CAROUSEL_BUTTON_SIZE}px;\n  height: ${CAROUSEL_BUTTON_SIZE}px;\n  border-radius: 50%;\n  background-color: ${({ theme }) => theme.color.surface4};\n  transition:\n    0.4s visibility,\n    0.4s opacity,\n    0.2s background-color,\n    0.2s color;\n  color: ${({ theme }) => theme.color.text5};\n`\n\nconst Button = styled.button<{ hide: boolean }>`\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  display: flex;\n  align-items: center;\n  padding: 0;\n  min-width: 40px;\n  border: none;\n  outline: 0;\n  background: transparent;\n  cursor: pointer;\n  transition:\n    0.4s visibility,\n    0.4s opacity;\n  /* つらい */\n  /* このコンポーネントはCarouselでしか使われてないのでそっちでコンテキストで切る */\n  z-index: 1;\n\n  &:hover ${CarouselButtonIcon} {\n    background-color: ${({ theme }) =>\n      applyEffect(theme.color.surface4, theme.effect.hover)};\n    color: ${({ theme }) => applyEffect(theme.color.text5, theme.effect.hover)};\n  }\n\n  &:active ${CarouselButtonIcon} {\n    background-color: ${({ theme }) =>\n      applyEffect(theme.color.surface4, theme.effect.press)};\n    color: ${({ theme }) => applyEffect(theme.color.text5, theme.effect.press)};\n  }\n\n  ${(p) =>\n    p.hide &&\n    css`\n      visibility: hidden;\n      opacity: 0;\n      pointer-events: none;\n    `}\n`\n","import { useEffect, useState, useCallback, useRef } from 'react'\nimport * as React from 'react'\nimport { animated, AnimatedComponent, useSpring } from '@react-spring/web'\nimport styled, { css } from 'styled-components'\nimport { useDebounceAnimationState } from '../../foundation/hooks'\nimport { passiveEvents, isEdge } from '../../foundation/support'\nimport { useIsomorphicLayoutEffect } from '../../hooks'\nimport CarouselButton, { Direction } from '../CarouselButton'\n\nexport const GRADIENT_WIDTH = 72\n/**\n * カルーセル系のスクロール量の定数\n *\n * @example\n * const scrollAmount = containerElm.clientWidth * SCROLL_AMOUNT_COEF\n */\nexport const SCROLL_AMOUNT_COEF = 0.75\n\ninterface ScrollProps {\n  align?: 'center' | 'left' | 'right'\n  offset?: number\n}\n\nexport interface CarouselBaseAppearanceProps {\n  buttonOffset?: number\n  buttonPadding?: number\n  bottomOffset?: number\n  defaultScroll?: ScrollProps\n}\n\nexport type CarouselGradientProps =\n  | { hasGradient?: false }\n  | {\n      hasGradient: true\n      fadeInGradient?: boolean\n    }\n\ntype CarouselAppearanceProps = CarouselBaseAppearanceProps &\n  CarouselGradientProps\n\ntype Props = CarouselAppearanceProps & {\n  onScroll?: (left: number) => void\n  onResize?: (width: number) => void\n  children: React.ReactNode\n  centerItems?: boolean\n  onScrollStateChange?: (canScroll: boolean) => void\n  scrollAmountCoef?: number\n}\n\nexport interface CarouselHandlerRef {\n  resetScroll(): void\n}\n\nexport default function Carousel({\n  buttonOffset = 0,\n  buttonPadding = 16,\n  bottomOffset = 0,\n  defaultScroll: { align = 'left', offset: scrollOffset = 0 } = {},\n  onScroll,\n  onResize,\n  children,\n  centerItems,\n  onScrollStateChange,\n  scrollAmountCoef = SCROLL_AMOUNT_COEF,\n  ...options\n}: Props) {\n  // スクロール位置を保存する\n  // アニメーション中の場合は、アニメーション終了時のスクロール位置が保存される\n  const [scrollLeft, setScrollLeft] = useDebounceAnimationState(0)\n  // アニメーション中かどうか\n  const animation = useRef(false)\n  // スクロール可能な領域を保存する\n  const [maxScrollLeft, setMaxScrollLeft] = useState(0)\n  // 左右のボタンの表示状態を保存する\n  const [leftShow, setLeftShow] = useState(false)\n  const [rightShow, setRightShow] = useState(false)\n\n  // const [props, set, stop] = useSpring(() => ({\n  //   scroll: 0\n  // }))\n  const [styles, set] = useSpring(() => ({ from: { scroll: 0 } }))\n\n  const ref = useRef<HTMLDivElement>(null)\n  const visibleAreaRef = useRef<HTMLDivElement>(null)\n  const innerRef = useRef<HTMLUListElement>(null)\n\n  const handleRight = useCallback(() => {\n    if (visibleAreaRef.current === null) {\n      return\n    }\n    const { clientWidth } = visibleAreaRef.current\n    // スクロール領域を超えないように、アニメーションを開始\n    // アニメーション中にアニメーションが開始されたときに、アニメーション終了予定の位置から再度計算するようにする\n    const scroll = Math.min(\n      scrollLeft + clientWidth * scrollAmountCoef,\n      maxScrollLeft,\n    )\n    setScrollLeft(scroll, true)\n    void set({\n      scroll,\n      from: { scroll: scrollLeft },\n      reset: !animation.current,\n    })\n    animation.current = true\n  }, [\n    animation,\n    maxScrollLeft,\n    scrollLeft,\n    set,\n    scrollAmountCoef,\n    setScrollLeft,\n  ])\n\n  const handleLeft = useCallback(() => {\n    if (visibleAreaRef.current === null) {\n      return\n    }\n    const { clientWidth } = visibleAreaRef.current\n    const scroll = Math.max(scrollLeft - clientWidth * scrollAmountCoef, 0)\n    setScrollLeft(scroll, true)\n    void set({\n      scroll,\n      from: { scroll: scrollLeft },\n      reset: !animation.current,\n    })\n    animation.current = true\n  }, [animation, scrollLeft, set, scrollAmountCoef, setScrollLeft])\n\n  // スクロール可能な場合にボタンを表示する\n  // scrollLeftが変化したときに処理する (アニメーション開始時 & 手動スクロール時)\n  useEffect(() => {\n    const newLeftShow = scrollLeft > 0\n    const newRightShow = scrollLeft < maxScrollLeft && maxScrollLeft > 0\n    if (newLeftShow !== leftShow || newRightShow !== rightShow) {\n      setLeftShow(newLeftShow)\n      setRightShow(newRightShow)\n      onScrollStateChange?.(newLeftShow || newRightShow)\n    }\n  }, [leftShow, maxScrollLeft, onScrollStateChange, rightShow, scrollLeft])\n\n  const handleScroll = useCallback(() => {\n    if (ref.current === null) {\n      return\n    }\n    // 手動でスクロールが開始されたときにアニメーションを中断\n    if (animation.current) {\n      styles.scroll.stop()\n      animation.current = false\n    }\n    // スクロール位置を保存 (アニメーションの基準になる)\n    const manualScrollLeft = ref.current.scrollLeft\n    // 過剰にsetStateが走らないようにdebounceする\n    setScrollLeft(manualScrollLeft)\n  }, [animation, setScrollLeft, styles])\n\n  // リサイズが起きたときに、アニメーション用のスクロール領域 & ボタンの表示状態 を再計算する\n  const handleResize = useCallback(() => {\n    if (ref.current === null) {\n      return\n    }\n    const { clientWidth, scrollWidth } = ref.current\n    const newMaxScrollLeft = scrollWidth - clientWidth\n    setMaxScrollLeft(newMaxScrollLeft)\n    if (onResize) {\n      onResize(clientWidth)\n    }\n  }, [onResize])\n\n  useIsomorphicLayoutEffect(() => {\n    const elm = ref.current\n    const innerElm = innerRef.current\n    if (elm === null || innerElm === null) {\n      return\n    }\n\n    elm.addEventListener(\n      'wheel',\n      handleScroll,\n      passiveEvents() && { passive: true },\n    )\n\n    const resizeObserver = new ResizeObserver(handleResize)\n    resizeObserver.observe(elm)\n\n    const resizeObserverInner = new ResizeObserver(handleResize)\n    resizeObserverInner.observe(innerElm)\n\n    return () => {\n      elm.removeEventListener('wheel', handleScroll)\n      resizeObserver.disconnect()\n      resizeObserverInner.disconnect()\n    }\n  }, [handleResize, handleScroll])\n\n  // 初期スクロールを行う\n  useIsomorphicLayoutEffect(() => {\n    if (align !== 'left' || scrollOffset !== 0) {\n      const scroll = ref.current\n      if (scroll !== null) {\n        const scrollLength = Math.max(\n          0,\n          Math.min(\n            align === 'left' && scrollOffset > 0\n              ? scrollOffset\n              : align === 'center'\n                ? maxScrollLeft / 2 + scrollOffset\n                : align === 'right' && scrollOffset <= maxScrollLeft\n                  ? maxScrollLeft - scrollOffset / 2\n                  : 0,\n            maxScrollLeft,\n          ),\n        )\n        scroll.scrollLeft = scrollLength\n        setScrollLeft(scrollLength, true)\n      }\n    }\n  }, [ref.current])\n\n  const handleScrollMove = useCallback(() => {\n    if (ref.current === null) {\n      return\n    }\n    if (onScroll) {\n      onScroll(ref.current.scrollLeft)\n    }\n  }, [onScroll])\n\n  const [disableGradient, setDisableGradient] = useState(false)\n\n  useIsomorphicLayoutEffect(() => {\n    if (isEdge()) {\n      setDisableGradient(true)\n    }\n  }, [])\n\n  // NOTE: Edgeではmaskを使うと要素のレンダリングがバグる（場合によっては画像が表示されない）のでグラデーションを無効にする\n  if (!disableGradient && options.hasGradient === true) {\n    const fadeInGradient = options.fadeInGradient ?? false\n    const overflowGradient = !fadeInGradient\n    return (\n      <Container ref={visibleAreaRef}>\n        <GradientContainer fadeInGradient={fadeInGradient}>\n          <RightGradient>\n            <LeftGradient show={overflowGradient || scrollLeft > 0}>\n              <ScrollArea\n                ref={ref}\n                scrollLeft={styles.scroll}\n                onScroll={handleScrollMove}\n              >\n                <CarouselContainer ref={innerRef} centerItems={centerItems}>\n                  {children}\n                </CarouselContainer>\n              </ScrollArea>\n            </LeftGradient>\n          </RightGradient>\n        </GradientContainer>\n        <ButtonsContainer>\n          <CarouselButton\n            direction={Direction.Left}\n            show={leftShow}\n            offset={buttonOffset}\n            bottomOffset={bottomOffset}\n            padding={buttonPadding}\n            gradient={overflowGradient}\n            onClick={handleLeft}\n          />\n          <CarouselButton\n            direction={Direction.Right}\n            show={rightShow}\n            offset={buttonOffset}\n            bottomOffset={bottomOffset}\n            padding={buttonPadding}\n            gradient\n            onClick={handleRight}\n          />\n        </ButtonsContainer>\n      </Container>\n    )\n  }\n\n  return (\n    <Container ref={visibleAreaRef}>\n      <ScrollArea\n        ref={ref}\n        scrollLeft={styles.scroll}\n        onScroll={handleScrollMove}\n      >\n        <CarouselContainer ref={innerRef} centerItems={centerItems}>\n          {children}\n        </CarouselContainer>\n      </ScrollArea>\n      <ButtonsContainer>\n        <CarouselButton\n          direction={Direction.Left}\n          show={leftShow}\n          offset={buttonOffset}\n          bottomOffset={bottomOffset}\n          padding={buttonPadding}\n          onClick={handleLeft}\n        />\n        <CarouselButton\n          direction={Direction.Right}\n          show={rightShow}\n          offset={buttonOffset}\n          bottomOffset={bottomOffset}\n          padding={buttonPadding}\n          onClick={handleRight}\n        />\n      </ButtonsContainer>\n    </Container>\n  )\n}\n\nconst CarouselContainer = styled.ul<{ centerItems?: boolean }>`\n  vertical-align: top;\n  overflow: hidden;\n  list-style: none;\n  padding: 0;\n\n  /* 最小幅を100%にして親要素にぴったりくっつけることで子要素で要素を均等に割り付けるなどを出来るようにしてある */\n  min-width: 100%;\n  box-sizing: border-box;\n\n  ${({ centerItems = false }) =>\n    centerItems\n      ? css`\n          display: flex;\n          width: max-content;\n          margin: 0 auto;\n        `\n      : css`\n          display: inline-flex;\n          margin: 0;\n        `}\n`\n\nconst ButtonsContainer = styled.div`\n  opacity: 0;\n  transition: 0.4s opacity;\n`\nconst Container = styled.div`\n  &:hover ${ButtonsContainer} {\n    opacity: 1;\n  }\n\n  /* CarouselButtonの中にz-index:1があるのでここでコンテキストを切る */\n  position: relative;\n  z-index: 0;\n`\n\nconst ScrollArea = styled(animated.div)`\n  overflow-x: auto;\n  padding: 0;\n  margin: 0;\n\n  &::-webkit-scrollbar {\n    display: none;\n  }\n\n  scrollbar-width: none;\n` as unknown as React.ComponentType<\n  Omit<React.ComponentProps<AnimatedComponent<'div'>>, 'css'>\n>\n\nconst GradientContainer = styled.div<{ fadeInGradient: boolean }>`\n  /* NOTE: LeftGradientがはみ出るためhidden */\n  overflow: hidden;\n  ${(p) =>\n    !p.fadeInGradient &&\n    css`\n      margin-left: ${-GRADIENT_WIDTH}px;\n      ${CarouselContainer} {\n        padding-left: ${GRADIENT_WIDTH}px;\n      }\n    `}\n\n  margin-right: ${-GRADIENT_WIDTH}px;\n  ${CarouselContainer} {\n    padding-right: ${GRADIENT_WIDTH}px;\n  }\n`\n\nconst RightGradient = styled.div`\n  mask-image: linear-gradient(\n    to right,\n    #000 calc(100% - ${GRADIENT_WIDTH}px),\n    transparent\n  );\n`\n\nconst LeftGradient = styled.div<{ show: boolean }>`\n  /* NOTE: mask-position が left → negative px の時、right → abs(negative px) の位置に表示されるため */\n  margin-right: ${-GRADIENT_WIDTH}px;\n  padding-right: ${GRADIENT_WIDTH}px;\n  /* NOTE: mask-position に transition をつけたいが vender prefixes 対策で all につける */\n  transition: 0.2s all ease-in;\n  mask: linear-gradient(to right, transparent, #000 ${GRADIENT_WIDTH}px)\n    ${(p) => (p.show ? 0 : -GRADIENT_WIDTH)}px 0;\n`\n","import styled from 'styled-components'\n\ninterface Props {\n  size?: number | string\n  subLink?: boolean\n}\n\nexport { DotsIcon as default }\n\nfunction DotsIcon({ size = 16 }: Props) {\n  return (\n    <StyledSVG viewBox=\"0 0 20 6\" width={size} height={size}>\n      <path\n        fillRule=\"evenodd\"\n        d={`M5,14.5 C3.61928813,14.5 2.5,13.3807119 2.5,12 C2.5,10.6192881 3.61928813,9.5 5,9.5\n          C6.38071187,9.5 7.5,10.6192881 7.5,12 C7.5,13.3807119 6.38071187,14.5 5,14.5 Z M12,14.5\n          C10.6192881,14.5 9.5,13.3807119 9.5,12 C9.5,10.6192881 10.6192881,9.5 12,9.5\n          C13.3807119,9.5 14.5,10.6192881 14.5,12 C14.5,13.3807119 13.3807119,14.5 12,14.5 Z M19,14.5\n          C17.6192881,14.5 16.5,13.3807119 16.5,12 C16.5,10.6192881 17.6192881,9.5 19,9.5\n          C20.3807119,9.5 21.5,10.6192881 21.5,12 C21.5,13.3807119 20.3807119,14.5 19,14.5 Z`}\n        transform=\"translate(-2 -9)\"\n      />\n    </StyledSVG>\n  )\n}\n\nconst StyledSVG = styled.svg`\n  fill: currentColor;\n`\n","import styled from 'styled-components'\n\nimport { unreachable } from '../../foundation/utils'\n\nexport enum WedgeDirection {\n  Up = 'up',\n  Down = 'down',\n  Left = 'left',\n  Right = 'right',\n}\n\ninterface Props {\n  size?: number | string\n  direction: WedgeDirection\n}\n\nexport default function WedgeIcon({ size = 16, direction }: Props) {\n  return (\n    // NOTE: directionToTransform depends on the value of viewBox\n    <svg viewBox=\"0 0 10 8\" width={size} height={size}>\n      <StyledPolyline\n        strokeWidth=\"2\"\n        points=\"1,2 5,6 9,2\"\n        transform={directionToTransform(direction)}\n      />\n    </svg>\n  )\n}\n\nfunction directionToTransform(direction: WedgeDirection) {\n  // \"5 4\" is the center point of the \"0 0 10 8\" viewBox\n  switch (direction) {\n    case WedgeDirection.Up:\n      return 'rotate(180 5 4)'\n    case WedgeDirection.Down:\n      return undefined\n    case WedgeDirection.Left:\n      return 'rotate(90 5 4)'\n    case WedgeDirection.Right:\n      return 'rotate(-90 5 4)'\n    default:\n      return unreachable(direction)\n  }\n}\n\nconst StyledPolyline = styled.polyline`\n  fill: none;\n  stroke-linejoin: round;\n  stroke-linecap: round;\n  stroke: currentColor;\n`\n","import { memo, useCallback, useDebugValue, useMemo } from 'react'\n\nimport styled, { css } from 'styled-components'\nimport warning from 'warning'\nimport DotsIcon from '../icons/DotsIcon'\nimport WedgeIcon, { WedgeDirection } from '../icons/WedgeIcon'\nimport { useComponentAbstraction } from '../../_lib/ComponentAbstraction'\n\nfunction usePagerWindow(\n  page: number,\n  pageCount: number,\n  pageRangeDisplayed = 7,\n) {\n  // ページャーのリンク生成例:\n  //\n  //     < [ 1 ] [*2*] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] >\n  //\n  //     < [ 1 ] [ 2 ] [ 3 ] [*4*] [ 5 ] [ 6 ] [ 7 ] >\n  //\n  //     < [ 1 ]  ...  [ 4 ] [*5*] [ 6 ] [ 7 ] [ 8 ] >\n  //\n  //     < [ 1 ]  ...  [ 99 ] [*100*] [ 101 ] [ 102 ] [ 103 ] >\n  //\n  //     < [ 1 ]  ...  [ 99 ] [ 100 ] [ 101 ] [ 102 ] [*103*]\n  //\n  //       [*1*] [ 2 ] >\n  //\n  // デザインの意図: 前後移動時のカーソル移動を最小限にする。\n\n  if (process.env.NODE_ENV !== 'production') {\n    warning((page | 0) === page, `\\`page\\` must be integer (${page})`)\n    warning(\n      (pageCount | 0) === pageCount,\n      `\\`pageCount\\` must be integer (${pageCount})`,\n    )\n    warning(\n      (pageRangeDisplayed | 0) === pageRangeDisplayed,\n      `\\`pageRangeDisplayed\\` must be integer (${pageRangeDisplayed})`,\n    )\n    warning(pageRangeDisplayed > 2, `\\`windowSize\\` must be greater than 2`)\n  }\n\n  const window = useMemo(() => {\n    const visibleFirstPage = 1\n    const visibleLastPage = Math.min(\n      pageCount,\n      Math.max(page + Math.floor(pageRangeDisplayed / 2), pageRangeDisplayed),\n    )\n\n    if (visibleLastPage <= pageRangeDisplayed) {\n      // 表示範囲が1-7ページなら省略は無い。\n      return Array.from(\n        { length: 1 + visibleLastPage - visibleFirstPage },\n        (_, i) => visibleFirstPage + i,\n      )\n    } else {\n      const start = visibleLastPage - (pageRangeDisplayed - 1) + 2\n      return [\n        // 表示範囲が1-7ページを超えるなら、\n        // - 1ページ目は固定で表示する\n        visibleFirstPage,\n        // - 2ページ目から現在のページの直前までは省略する\n        '...' as const,\n        ...Array.from(\n          { length: 1 + visibleLastPage - start },\n          (_, i) => start + i,\n        ),\n      ]\n    }\n  }, [page, pageCount, pageRangeDisplayed])\n\n  useDebugValue(window)\n\n  return window\n}\n\ninterface CommonProps {\n  page: number\n  pageCount: number\n  pageRangeDisplayed?: number\n}\n\nexport interface PagerProps extends CommonProps {\n  onChange(newPage: number): void\n}\n\n// this pager is just regular buttons; for links use LinkPager\nexport default memo(function Pager({\n  page,\n  pageCount,\n  pageRangeDisplayed,\n  onChange,\n}: PagerProps) {\n  // TODO: refactor Pager and LinkPager to use a common parent component\n  const window = usePagerWindow(page, pageCount, pageRangeDisplayed)\n  const makeClickHandler = useCallback(\n    (value: number) => () => {\n      onChange(value)\n    },\n    [onChange],\n  )\n\n  const hasNext = page < pageCount\n  const hasPrev = page > 1\n  return (\n    <PagerContainer>\n      <CircleButton\n        type=\"button\"\n        hidden={!hasPrev}\n        disabled={!hasPrev}\n        onClick={makeClickHandler(Math.max(1, page - 1))}\n        noBackground\n      >\n        <WedgeIcon size={16} direction={WedgeDirection.Left} />\n      </CircleButton>\n      {window.map((p) =>\n        p === '...' ? (\n          <Spacer key={p}>\n            <DotsIcon size={20} />\n          </Spacer>\n        ) : p === page ? (\n          // we remove the onClick but don't mark it as disabled to preserve keyboard focus\n          // not doing so causes the focus ring to flicker in and out of existence\n          <CircleButton key={p} type=\"button\" aria-current>\n            <Text>{p}</Text>\n          </CircleButton>\n        ) : (\n          <CircleButton key={p} type=\"button\" onClick={makeClickHandler(p)}>\n            <Text>{p}</Text>\n          </CircleButton>\n        ),\n      )}\n      <CircleButton\n        type=\"button\"\n        hidden={!hasNext}\n        disabled={!hasNext}\n        onClick={makeClickHandler(Math.min(pageCount, page + 1))}\n        noBackground\n      >\n        <WedgeIcon size={16} direction={WedgeDirection.Right} />\n      </CircleButton>\n    </PagerContainer>\n  )\n})\n\nexport interface LinkPagerProps extends CommonProps {\n  makeUrl(page: number): string\n}\n\nexport function LinkPager({\n  page,\n  pageCount,\n  pageRangeDisplayed,\n  makeUrl,\n}: LinkPagerProps) {\n  const { Link } = useComponentAbstraction()\n  const window = usePagerWindow(page, pageCount, pageRangeDisplayed)\n\n  const hasNext = page < pageCount\n  const hasPrev = page > 1\n  return (\n    <PagerContainer>\n      <Link to={makeUrl(Math.max(1, page - 1))}>\n        <CircleButton hidden={!hasPrev} aria-disabled={!hasPrev} noBackground>\n          <WedgeIcon size={16} direction={WedgeDirection.Left} />\n        </CircleButton>\n      </Link>\n      {window.map((p) =>\n        p === '...' ? (\n          <Spacer key={p}>\n            <DotsIcon size={20} subLink />\n          </Spacer>\n        ) : p === page ? (\n          <CircleButton key={p} type=\"button\" aria-current>\n            <Text>{p}</Text>\n          </CircleButton>\n        ) : (\n          <Link key={p} to={makeUrl(p)}>\n            <CircleButton type=\"button\">\n              <Text>{p}</Text>\n            </CircleButton>\n          </Link>\n        ),\n      )}\n      <Link to={makeUrl(Math.min(pageCount, page + 1))}>\n        <CircleButton hidden={!hasNext} aria-disabled={!hasNext} noBackground>\n          <WedgeIcon size={16} direction={WedgeDirection.Right} />\n        </CircleButton>\n      </Link>\n    </PagerContainer>\n  )\n}\n\nconst PagerContainer = styled.nav`\n  display: flex;\n  justify-content: center;\n  align-items: center;\n`\n\nconst CircleButton = styled.button<{ noBackground?: boolean }>`\n  font-size: 1rem;\n  line-height: calc(1em + 8px);\n  text-decoration: none;\n  border: none;\n  outline: none;\n  touch-action: manipulation;\n  user-select: none;\n  transition:\n    box-shadow 0.2s ease 0s,\n    color 0.2s ease 0s,\n    background 0.2s ease 0s,\n    opacity 0.2s ease 0s;\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  box-sizing: content-box;\n  min-width: 24px;\n  min-height: 24px;\n  padding: 8px;\n  cursor: pointer;\n  font-weight: bold;\n  /* HACK:\n   * Safari doesn't correctly repaint the elements when they're reordered in response to interaction.\n   * This forces it to repaint them. This doesn't work if put on the parents either, has to be here.\n   */\n  -webkit-transform: translateZ(0);\n\n  &[hidden] {\n    visibility: hidden;\n    display: block;\n  }\n\n  border-radius: 48px;\n\n  background: transparent;\n  color: ${({ theme }) => theme.color.text3};\n\n  &:hover {\n    background: ${({ theme }) => theme.color.surface3};\n    color: ${({ theme }) => theme.color.text2};\n  }\n\n  &[aria-current] {\n    background-color: ${({ theme }) => theme.color.surface6};\n    color: ${({ theme }) => theme.color.text5};\n  }\n\n  &[aria-current]:hover {\n    background-color: ${({ theme }) => theme.color.surface6};\n    color: ${({ theme }) => theme.color.text5};\n  }\n\n  ${({ noBackground = false }) =>\n    noBackground &&\n    css`\n      &:hover {\n        background: transparent;\n      }\n    `}\n`\n\nconst Spacer = styled(CircleButton).attrs({ type: 'button', disabled: true })`\n  && {\n    color: ${({ theme }) => theme.color.text3};\n    background: none;\n  }\n`\n\nconst Text = 'span'\n"],"mappings":";4jCASA,MAAM,EAAyB,OAAOA,EAAAA,SAAW,WAAaA,EAAAA,QAASA,EAAAA,QAAO,QCgBxEmB,EAA2B,CAC/BH,KAhByBd,EAAMM,WAC/B,SAAqB,CAAEJ,KAAIM,WAAU,GAAGC,GAAQC,EAAK,CACnD,OACE,EAAA,EAAA,IAAA,CAAC,IAAD,CAAG,KAAMR,EAASQ,MAAK,GAAID,EACxBD,UACA,C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