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A,CAAmCrV,KAAA","sources":["webpack://_N_E/./node_modules/ariakit-react-utils/esm/hooks.js","webpack://_N_E/./node_modules/ariakit-react-utils/esm/misc.js","webpack://_N_E/./node_modules/ariakit-react-utils/esm/system.js","webpack://_N_E/./node_modules/ariakit-utils/esm/dom.js","webpack://_N_E/./node_modules/ariakit-utils/esm/events.js","webpack://_N_E/./node_modules/ariakit-utils/esm/focus.js","webpack://_N_E/./node_modules/ariakit-utils/esm/misc.js","webpack://_N_E/./node_modules/ariakit-utils/esm/platform.js","webpack://_N_E/./node_modules/ariakit/esm/__utils-fc7746f4.js","webpack://_N_E/./node_modules/ariakit/esm/command/command.js","webpack://_N_E/./node_modules/ariakit/esm/button/button.js","webpack://_N_E/./node_modules/ariakit/esm/dialog-context-a736b58f.js","webpack://_N_E/./node_modules/ariakit/esm/disclosure/disclosure-state.js","webpack://_N_E/./node_modules/ariakit/esm/dialog/dialog-state.js","webpack://_N_E/./node_modules/ariakit/esm/disclosure/disclosure-content.js","webpack://_N_E/./node_modules/ariakit/esm/visually-hidden/visually-hidden.js","webpack://_N_E/./node_modules/ariakit/esm/focus-trap/focus-trap.js","webpack://_N_E/./node_modules/ariakit/esm/focus-trap/focus-trap-region.js","webpack://_N_E/./node_modules/ariakit/esm/heading/heading-level.js","webpack://_N_E/./node_modules/ariakit/esm/portal/portal-context.js","webpack://_N_E/./node_modules/ariakit/esm/portal/portal.js","webpack://_N_E/./node_modules/ariakit/esm/dialog/dialog.js","webpack://_N_E/./node_modules/ariakit/esm/focusable/focusable.js","webpack://_N_E/./node_modules/classnames/index.js","webpack://_N_E/./node_modules/lodash/_Symbol.js","webpack://_N_E/./node_modules/lodash/_baseGetTag.js","webpack://_N_E/./node_modules/lodash/_baseTrim.js","webpack://_N_E/./node_modules/lodash/_freeGlobal.js","webpack://_N_E/./node_modules/lodash/_getRawTag.js","webpack://_N_E/./node_modules/lodash/_objectToString.js","webpack://_N_E/./node_modules/lodash/_root.js","webpack://_N_E/./node_modules/lodash/_trimmedEndIndex.js","webpack://_N_E/./node_modules/lodash/debounce.js","webpack://_N_E/./node_modules/lodash/isObject.js","webpack://_N_E/./node_modules/lodash/isObjectLike.js","webpack://_N_E/./node_modules/lodash/isSymbol.js","webpack://_N_E/./node_modules/lodash/now.js","webpack://_N_E/./node_modules/lodash/toNumber.js","webpack://_N_E/./node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","webpack://_N_E/./node_modules/next/dist/client/get-domain-locale.js","webpack://_N_E/./node_modules/next/dist/client/image-component.js","webpack://_N_E/./node_modules/next/dist/client/link.js","webpack://_N_E/./node_modules/next/dist/client/normalize-locale-path.js","webpack://_N_E/./node_modules/next/dist/client/use-intersection.js","webpack://_N_E/./node_modules/next/dist/shared/lib/get-img-props.js","webpack://_N_E/./node_modules/next/dist/shared/lib/image-blur-svg.js","webpack://_N_E/./node_modules/next/dist/shared/lib/image-external.js","webpack://_N_E/./node_modules/next/dist/shared/lib/image-loader.js","webpack://_N_E/./node_modules/next/head.js","webpack://_N_E/./node_modules/next/image.js","webpack://_N_E/./node_modules/next/link.js","webpack://_N_E/./node_modules/next/router.js","webpack://_N_E/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://_N_E/./node_modules/prop-types/index.js","webpack://_N_E/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/native.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/rng.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://_N_E/./node_modules/uuid/dist/esm-browser/v4.js","webpack://_N_E/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://_N_E/"],"sourcesContent":["import * as React from 'react';\nimport { useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, useReducer } from 'react';\nimport { canUseDOM } from 'ariakit-utils/dom';\nimport { addGlobalEventListener } from 'ariakit-utils/events';\nimport { applyState } from 'ariakit-utils/misc';\nimport { setRef } from './misc.js';\n\n// @ts-ignore Access React v18 hooks using string concatenation in order to\n// prevent Webpack from inferring that they are not present in React v17. For\n// example, React.useId will raise a compile time error when using React v17,\n// but React['use' + 'Id'] will not.\nconst useReactId = React[\"use\" + \"Id\"];\n// @ts-ignore\nconst useReactDeferredValue = React[\"use\" + \"DeferredValue\"];\n// @ts-ignore\nconst useInsertionEffect = React[\"use\" + \"InsertionEffect\"];\n\n/**\n * `React.useLayoutEffect` that fallbacks to `React.useEffect` on server side.\n */\nconst useSafeLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n\n/**\n * Returns a value that never changes even if the argument is updated.\n * @example\n * function Component({ prop }) {\n * const initialProp = useInitialValue(prop);\n * }\n */\nfunction useInitialValue(value) {\n const [initialValue] = useState(value);\n return initialValue;\n}\n\n/**\n * Returns a value that is lazily initiated and never changes.\n * @example\n * function Component() {\n * const set = useLazyValue(() => new Set());\n * }\n */\nfunction useLazyValue(init) {\n const ref = useRef();\n if (ref.current === undefined) {\n ref.current = init();\n }\n return ref.current;\n}\n\n/**\n * Creates a `React.RefObject` that is constantly updated with the incoming\n * value.\n * @example\n * function Component({ prop }) {\n * const propRef = useLiveRef(prop);\n * }\n */\nfunction useLiveRef(value) {\n const ref = useRef(value);\n useSafeLayoutEffect(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Keeps the reference of the previous value to be used in the render phase.\n */\nfunction usePreviousValue(value) {\n const [previousValue, setPreviousValue] = useState(value);\n if (value !== previousValue) {\n setPreviousValue(value);\n }\n return previousValue;\n}\n\n/**\n * Creates a stable callback function that has access to the latest state and\n * can be used within event handlers and effect callbacks. Throws when used in\n * the render phase.\n * @example\n * function Component(props) {\n * const onClick = useEvent(props.onClick);\n * React.useEffect(() => {}, [onClick]);\n * }\n */\nfunction useEvent(callback) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n if (useInsertionEffect) {\n useInsertionEffect(() => {\n ref.current = callback;\n });\n } else {\n ref.current = callback;\n }\n return useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return ref.current?.(...args);\n }, []);\n}\n\n/**\n * Merges React Refs into a single memoized function ref so you can pass it to\n * an element.\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const internalRef = React.useRef();\n * return
;\n * });\n */\nfunction useForkRef() {\n for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n refs[_key2] = arguments[_key2];\n }\n return useMemo(() => {\n if (!refs.some(Boolean)) return;\n return value => {\n refs.forEach(ref => {\n setRef(ref, value);\n });\n };\n }, refs);\n}\n\n/**\n * Returns the ref element's ID.\n */\nfunction useRefId(ref, deps) {\n const [id, setId] = useState(undefined);\n useSafeLayoutEffect(() => {\n setId(ref?.current?.id);\n }, deps);\n return id;\n}\n\n/**\n * Generates a unique ID. Uses React's useId if available.\n */\nfunction useId(defaultId) {\n if (useReactId) {\n const reactId = useReactId();\n if (defaultId) return defaultId;\n return reactId;\n }\n const [id, setId] = useState(defaultId);\n useSafeLayoutEffect(() => {\n if (defaultId || id) return;\n const random = Math.random().toString(36).substr(2, 6);\n setId(`id-${random}`);\n }, [defaultId, id]);\n return defaultId || id;\n}\n\n/**\n * Uses React's useDeferredValue if available.\n */\nfunction useDeferredValue(value) {\n if (useReactDeferredValue) {\n return useReactDeferredValue(value);\n }\n const [deferredValue, setDeferredValue] = useState(value);\n useEffect(() => {\n const raf = requestAnimationFrame(() => setDeferredValue(value));\n return () => cancelAnimationFrame(raf);\n }, [value]);\n return deferredValue;\n}\n\n/**\n * Returns the tag name by parsing an element ref and the `as` prop.\n * @example\n * function Component(props) {\n * const ref = React.useRef();\n * const tagName = useTagName(ref, \"button\"); // div\n * return
;\n * }\n */\nfunction useTagName(ref, type) {\n const [tagName, setTagName] = useState(() => stringOrUndefined(type));\n useSafeLayoutEffect(() => {\n setTagName(ref?.current?.tagName.toLowerCase() || stringOrUndefined(type));\n }, [ref, type]);\n return tagName;\n}\nfunction stringOrUndefined(type) {\n if (typeof type === \"string\") {\n return type;\n }\n return;\n}\n\n/**\n * A `React.useEffect` that will not run on the first render.\n */\nfunction useUpdateEffect(effect, deps) {\n const mounted = useRef(false);\n useEffect(() => {\n if (mounted.current) {\n return effect();\n }\n mounted.current = true;\n }, deps);\n useEffect(() => () => {\n mounted.current = false;\n }, []);\n}\n\n/**\n * A `React.useLayoutEffect` that will not run on the first render.\n */\nfunction useUpdateLayoutEffect(effect, deps) {\n const mounted = useRef(false);\n useSafeLayoutEffect(() => {\n if (mounted.current) {\n return effect();\n }\n mounted.current = true;\n }, deps);\n useSafeLayoutEffect(() => () => {\n mounted.current = false;\n }, []);\n}\n\n/**\n * A custom version of `React.useState` that uses the `state` and `setState`\n * arguments. If they're not provided, it will use the internal state.\n */\nfunction useControlledState(defaultState, state, setState) {\n const [localState, setLocalState] = useState(defaultState);\n const nextState = state !== undefined ? state : localState;\n const stateRef = useLiveRef(state);\n const setStateRef = useLiveRef(setState);\n const nextStateRef = useLiveRef(nextState);\n const setNextState = useCallback(prevValue => {\n const setStateProp = setStateRef.current;\n if (setStateProp) {\n if (isSetNextState(setStateProp)) {\n setStateProp(prevValue);\n } else {\n const nextValue = applyState(prevValue, nextStateRef.current);\n nextStateRef.current = nextValue;\n setStateProp(nextValue);\n }\n }\n if (stateRef.current === undefined) {\n setLocalState(prevValue);\n }\n }, []);\n defineSetNextState(setNextState);\n return [nextState, setNextState];\n}\nconst SET_NEXT_STATE = Symbol(\"setNextState\");\nfunction isSetNextState(arg) {\n return arg[SET_NEXT_STATE] === true;\n}\nfunction defineSetNextState(arg) {\n if (!isSetNextState(arg)) {\n Object.defineProperty(arg, SET_NEXT_STATE, {\n value: true\n });\n }\n}\n\n/**\n * A React hook similar to `useState` and `useReducer`, but with the only\n * purpose of re-rendering the component.\n */\nfunction useForceUpdate() {\n return useReducer(() => [], []);\n}\n\n/**\n * Returns an event callback similar to `useEvent`, but this also accepts a\n * boolean value, which will be turned into a function.\n */\nfunction useBooleanEvent(booleanOrCallback) {\n return useEvent(typeof booleanOrCallback === \"function\" ? booleanOrCallback : () => booleanOrCallback);\n}\n\n/**\n * Returns props with an additional `wrapElement` prop.\n */\nfunction useWrapElement(props, callback, deps) {\n if (deps === void 0) {\n deps = [];\n }\n const wrapElement = useCallback(element => {\n if (props.wrapElement) {\n element = props.wrapElement(element);\n }\n return callback(element);\n }, [...deps, props.wrapElement]);\n return {\n ...props,\n wrapElement\n };\n}\n\n/**\n * Merges the portalRef prop and returns a `domReady` to be used in the\n * components that use Portal underneath.\n */\nfunction usePortalRef(portalProp, portalRefProp) {\n if (portalProp === void 0) {\n portalProp = false;\n }\n const [portalNode, setPortalNode] = useState(null);\n const portalRef = useForkRef(setPortalNode, portalRefProp);\n const domReady = !portalProp || portalNode;\n return {\n portalRef,\n portalNode,\n domReady\n };\n}\n\n/**\n * Returns a function that checks whether the mouse is moving.\n */\nfunction useIsMouseMoving() {\n useEffect(() => {\n // We're not returning the event listener cleanup function here because we\n // may lose some events if this component is unmounted, but others are\n // still mounted.\n addGlobalEventListener(\"mousemove\", setMouseMoving, true);\n // See https://github.com/ariakit/ariakit/issues/1137\n addGlobalEventListener(\"mousedown\", resetMouseMoving, true);\n addGlobalEventListener(\"mouseup\", resetMouseMoving, true);\n addGlobalEventListener(\"keydown\", resetMouseMoving, true);\n addGlobalEventListener(\"scroll\", resetMouseMoving, true);\n }, []);\n const isMouseMoving = useEvent(() => mouseMoving);\n return isMouseMoving;\n}\nlet mouseMoving = false;\nlet previousScreenX = 0;\nlet previousScreenY = 0;\nfunction hasMouseMovement(event) {\n const movementX = event.movementX || event.screenX - previousScreenX;\n const movementY = event.movementY || event.screenY - previousScreenY;\n previousScreenX = event.screenX;\n previousScreenY = event.screenY;\n return movementX || movementY || process.env.NODE_ENV === \"test\";\n}\nfunction setMouseMoving(event) {\n if (!hasMouseMovement(event)) return;\n mouseMoving = true;\n}\nfunction resetMouseMoving() {\n mouseMoving = false;\n}\n\nexport { useBooleanEvent, useControlledState, useDeferredValue, useEvent, useForceUpdate, useForkRef, useId, useInitialValue, useIsMouseMoving, useLazyValue, useLiveRef, usePortalRef, usePreviousValue, useRefId, useSafeLayoutEffect, useTagName, useUpdateEffect, useUpdateLayoutEffect, useWrapElement };\n","/**\n * Sets both a function and object React ref.\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}\n\nexport { setRef };\n","import { forwardRef } from 'react';\nimport { hasOwnProperty } from 'ariakit-utils/misc';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction isRenderProp(children) {\n return typeof children === \"function\";\n}\n\n/**\n * Creates a type-safe component with the `as` prop and `React.forwardRef`.\n *\n * @example\n * import { createComponent } from \"ariakit-react-utils/system\";\n *\n * type Props = {\n * as?: \"div\";\n * customProp?: boolean;\n * };\n *\n * const Component = createComponent(({ customProp, ...props }) => {\n * return
;\n * });\n *\n * \n */\nfunction createComponent(render) {\n const Role = (props, ref) => render({\n ref,\n ...props\n });\n return /*#__PURE__*/forwardRef(Role);\n}\n\n/**\n * Creates a React element that supports the `as` prop, children as a\n * function (render props) and a `wrapElement` function.\n *\n * @example\n * import { createElement } from \"ariakit-react-utils/system\";\n *\n * function Component() {\n * const props = {\n * as: \"button\" as const,\n * children: (htmlProps) => \n * ```\n */\nconst Button = createComponent(props => {\n const htmlProps = useButton(props);\n return createElement(\"button\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n Button.displayName = \"Button\";\n}\n\nexport { Button, useButton };\n","import { createContext } from 'react';\n\nconst DialogContext = /*#__PURE__*/createContext(undefined);\nconst DialogHeadingContext = /*#__PURE__*/createContext(undefined);\nconst DialogDescriptionContext = /*#__PURE__*/createContext(undefined);\n\nexport { DialogContext as D, DialogHeadingContext as a, DialogDescriptionContext as b };\n","import { useRef, useState, useCallback, useMemo } from 'react';\nimport { useControlledState, usePreviousValue } from 'ariakit-react-utils/hooks';\n\n/**\n * Provides state for the `Disclosure` components.\n * @example\n * ```jsx\n * const disclosure = useDisclosureState();\n * Disclosure\n * Content\n * ```\n */\nfunction useDisclosureState(_temp) {\n let {\n animated = false,\n ...props\n } = _temp === void 0 ? {} : _temp;\n const disclosureRef = useRef(null);\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open, props.setOpen);\n const [contentElement, setContentElement] = useState(null);\n const [animating, setAnimating] = useState(!!animated && open);\n const prevOpen = usePreviousValue(open);\n const mounted = open || animating;\n if (animated && !animating && prevOpen !== open) {\n setAnimating(true);\n }\n const show = useCallback(() => setOpen(true), [setOpen]);\n const hide = useCallback(() => setOpen(false), [setOpen]);\n const toggle = useCallback(() => setOpen(v => !v), [setOpen]);\n const stopAnimation = useCallback(() => setAnimating(false), []);\n const state = useMemo(() => ({\n disclosureRef,\n open,\n mounted,\n animated,\n animating,\n contentElement,\n setContentElement,\n setOpen,\n show,\n hide,\n toggle,\n stopAnimation\n }), [open, mounted, animated, animating, contentElement, setContentElement, setOpen, show, hide, toggle, stopAnimation]);\n return state;\n}\n\nexport { useDisclosureState };\n","import { useDisclosureState } from '../disclosure/disclosure-state.js';\n\n/**\n * Provides state for the `Dialog` components.\n * @example\n * ```jsx\n * const dialog = useDialogState();\n * \n * Content\n * ```\n */\nfunction useDialogState(props) {\n if (props === void 0) {\n props = {};\n }\n const disclosure = useDisclosureState(props);\n return disclosure;\n}\n\nexport { useDialogState };\n","import { useState } from 'react';\nimport { useId, useSafeLayoutEffect, useForkRef } from 'ariakit-react-utils/hooks';\nimport { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { flushSync } from 'react-dom';\n\nfunction afterTimeout(timeoutMs, cb) {\n const timeoutId = setTimeout(cb, timeoutMs);\n return () => clearTimeout(timeoutId);\n}\nfunction afterPaint(cb) {\n let raf = requestAnimationFrame(() => {\n raf = requestAnimationFrame(cb);\n });\n return () => cancelAnimationFrame(raf);\n}\nfunction parseCSSTime() {\n for (var _len = arguments.length, times = new Array(_len), _key = 0; _key < _len; _key++) {\n times[_key] = arguments[_key];\n }\n return times.join(\", \").split(\", \").reduce((longestTime, currentTimeString) => {\n const currentTime = parseFloat(currentTimeString || \"0s\") * 1000;\n // When multiple times are specified, we want to use the longest one so we\n // wait until the longest transition has finished.\n if (currentTime > longestTime) return currentTime;\n return longestTime;\n }, 0);\n}\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component to render an element that can be shown or hidden.\n * @see https://ariakit.org/components/disclosure\n * @example\n * ```jsx\n * const state = useDisclosureState();\n * const props = useDisclosureContent({ state });\n * Disclosure\n * Content\n * ```\n */\nconst useDisclosureContent = createHook(_ref => {\n let {\n state,\n ...props\n } = _ref;\n const id = useId(props.id);\n const [transition, setTransition] = useState(null);\n useSafeLayoutEffect(() => {\n if (!state.animated) return;\n // When the disclosure content element is rendered in a portal, we need to\n // wait for the portal to be mounted and connected to the DOM before we\n // can start the animation.\n if (!state.contentElement?.isConnected) {\n setTransition(null);\n return;\n }\n // Double requestAnimationFrame is necessary here to avoid potential bugs\n // when the data attribute is added before the element is fully rendered\n // in the DOM, which wouldn't trigger the animation.\n return afterPaint(() => {\n setTransition(state.open ? \"enter\" : \"leave\");\n });\n }, [state.animated, state.contentElement, state.open]);\n useSafeLayoutEffect(() => {\n if (!state.animated) return;\n if (!state.contentElement) return;\n if (!transition) return;\n if (transition === \"enter\" && !state.open) return;\n if (transition === \"leave\" && state.open) return;\n // When the animated state is a number, the user has manually set the\n // animation timeout, so we just respect it.\n if (typeof state.animated === \"number\") {\n const timeoutMs = state.animated;\n return afterTimeout(timeoutMs, () => flushSync(state.stopAnimation));\n }\n // Otherwise, we need to parse the CSS transition/animation duration and\n // delay to know when the animation ends. This is safer than relying on\n // the transitionend/animationend events because it's not guaranteed that\n // these events will fire. For example, if the element is removed from the\n // DOM before the animation ends or if the animation wasn't triggered in\n // the first place, the events won't fire.\n const {\n transitionDuration,\n animationDuration,\n transitionDelay,\n animationDelay\n } = getComputedStyle(state.contentElement);\n const delay = parseCSSTime(transitionDelay, animationDelay);\n const duration = parseCSSTime(transitionDuration, animationDuration);\n const timeoutMs = delay + duration;\n // If the animation/transition delay and duration are 0, this means the\n // element is not animated with CSS (they may be using framer-motion,\n // react-spring, or something else). In this case, the user is responsible\n // for calling `stopAnimation` when the animation ends.\n if (!timeoutMs) return;\n // TODO: We should probably warn if `stopAnimation` hasn't been called\n // after X seconds.\n return afterTimeout(timeoutMs, () => flushSync(state.stopAnimation));\n }, [state.animated, state.contentElement, transition, state.open, state.stopAnimation]);\n const style = state.mounted || props.hidden === false ? props.style : {\n ...props.style,\n display: \"none\"\n };\n props = {\n id,\n \"data-enter\": transition === \"enter\" ? \"\" : undefined,\n \"data-leave\": transition === \"leave\" ? \"\" : undefined,\n hidden: !state.mounted,\n ...props,\n ref: useForkRef(id ? state.setContentElement : null, props.ref),\n style\n };\n return props;\n});\n\n/**\n * A component that renders an element that can be shown or hidden.\n * @see https://ariakit.org/components/disclosure\n * @example\n * ```jsx\n * const disclosure = useDisclosureState();\n * Disclosure\n * Content\n * ```\n */\nconst DisclosureContent = createComponent(props => {\n const htmlProps = useDisclosureContent(props);\n return createElement(\"div\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n DisclosureContent.displayName = \"DisclosureContent\";\n}\n\nexport { DisclosureContent, useDisclosureContent };\n","import { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component. When applying the props returned by this hook to a\n * component, the component will be visually hidden, but still accessible to\n * screen readers.\n * @see https://ariakit.org/components/visually-hidden\n * @example\n * ```jsx\n * const props = useVisuallyHidden();\n * \n * Learn more about the Solar System.\n * \n * ```\n */\nconst useVisuallyHidden = createHook(props => {\n props = {\n ...props,\n style: {\n border: 0,\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: 0,\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n ...props.style\n }\n };\n return props;\n});\n\n/**\n * A component that renders an element that's visually hidden, but still\n * accessible to screen readers.\n * @see https://ariakit.org/components/visually-hidden\n * @example\n * ```jsx\n * \n * Learn more about the Solar System.\n * \n * ```\n */\nconst VisuallyHidden = createComponent(props => {\n const htmlProps = useVisuallyHidden(props);\n return createElement(\"span\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n VisuallyHidden.displayName = \"VisuallyHidden\";\n}\n\nexport { VisuallyHidden, useVisuallyHidden };\n","import { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { useVisuallyHidden } from '../visually-hidden/visually-hidden.js';\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component to render a focus trap element.\n * @see https://ariakit.org/components/focus-trap\n * @example\n * ```jsx\n * const props = useFocusTrap();\n * \n * ```\n */\nconst useFocusTrap = createHook(props => {\n props = {\n \"data-focus-trap\": \"\",\n tabIndex: 0,\n \"aria-hidden\": true,\n ...props,\n style: {\n // Prevents unintended scroll jumps.\n position: \"fixed\",\n top: 0,\n left: 0,\n ...props.style\n }\n };\n props = useVisuallyHidden(props);\n return props;\n});\n\n/**\n * A component that renders a focus trap element.\n * @see https://ariakit.org/components/focus-trap\n * @example\n * ```jsx\n * \n * ```\n */\nconst FocusTrap = createComponent(props => {\n const htmlProps = useFocusTrap(props);\n return createElement(\"span\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n FocusTrap.displayName = \"FocusTrap\";\n}\n\nexport { FocusTrap, useFocusTrap };\n","import { useRef } from 'react';\nimport { useWrapElement, useForkRef } from 'ariakit-react-utils/hooks';\nimport { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { getAllTabbableIn } from 'ariakit-utils/focus';\nimport { FocusTrap } from './focus-trap.js';\nimport { jsxs, Fragment, jsx } from 'react/jsx-runtime';\n\nconst useFocusTrapRegion = createHook(_ref => {\n let {\n enabled = false,\n ...props\n } = _ref;\n const ref = useRef(null);\n props = useWrapElement(props, element => {\n const renderFocusTrap = () => {\n if (!enabled) return null;\n return /*#__PURE__*/jsx(FocusTrap, {\n onFocus: event => {\n const container = ref.current;\n if (!container) return;\n const tabbables = getAllTabbableIn(container, true);\n const first = tabbables[0];\n const last = tabbables[tabbables.length - 1];\n // Fallbacks to the container element\n if (!tabbables.length) {\n container.focus();\n return;\n }\n if (event.relatedTarget === first) {\n last?.focus();\n } else {\n first?.focus();\n }\n }\n });\n };\n return /*#__PURE__*/jsxs(Fragment, {\n children: [renderFocusTrap(), element, renderFocusTrap()]\n });\n }, [enabled]);\n props = {\n ...props,\n ref: useForkRef(ref, props.ref)\n };\n return props;\n});\n\n/**\n * A component that renders a focus trap region element.\n * @see https://ariakit.org/components/focus-trap-region\n * @example\n * ```jsx\n * \n * \n * \n * \n * \n * ```\n */\nconst FocusTrapRegion = createComponent(props => {\n const htmlProps = useFocusTrapRegion(props);\n return createElement(\"div\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n FocusTrapRegion.displayName = \"FocusTrapRegion\";\n}\n\nexport { FocusTrapRegion, useFocusTrapRegion };\n","import { useContext } from 'react';\nimport { H as HeadingContext } from '../__utils-fc7746f4.js';\nimport { jsx } from 'react/jsx-runtime';\n\nfunction HeadingLevel(_ref) {\n let {\n level,\n children\n } = _ref;\n const contextLevel = useContext(HeadingContext);\n const nextLevel = Math.max(Math.min(level || contextLevel + 1, 6), 1);\n return /*#__PURE__*/jsx(HeadingContext.Provider, {\n value: nextLevel,\n children: children\n });\n}\n\nexport { HeadingLevel };\n","import { createContext } from 'react';\n\n/**\n * Stores the element that will contain the portal. By default, it will be the\n * body of the document.\n * @example\n * ```jsx\n * const container = document.getElementById(\"container\");\n *\n * function App() {\n * return (\n * \n * \n * \n * );\n * }\n * ```\n */\nconst PortalContext = /*#__PURE__*/createContext(null);\n\nexport { PortalContext };\n","import { useRef, useContext, useState, useEffect } from 'react';\nimport { useForkRef, useSafeLayoutEffect, useWrapElement } from 'ariakit-react-utils/hooks';\nimport { setRef } from 'ariakit-react-utils/misc';\nimport { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { getDocument } from 'ariakit-utils/dom';\nimport { isFocusEventOutside } from 'ariakit-utils/events';\nimport { getNextTabbable, getPreviousTabbable, restoreFocusIn, disableFocusIn } from 'ariakit-utils/focus';\nimport { queueMicrotask } from 'ariakit-utils/misc';\nimport { createPortal } from 'react-dom';\nimport { PortalContext } from './portal-context.js';\nimport { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { FocusTrap } from '../focus-trap/focus-trap.js';\n\nfunction getRootElement(element) {\n return getDocument(element).body;\n}\nfunction getPortalElement(element, portalElement) {\n if (!portalElement) {\n return getDocument(element).createElement(\"div\");\n }\n if (typeof portalElement === \"function\") {\n return portalElement(element);\n }\n return portalElement;\n}\nfunction getRandomId(prefix) {\n if (prefix === void 0) {\n prefix = \"id\";\n }\n return `${prefix ? `${prefix}-` : \"\"}${Math.random().toString(36).substr(2, 6)}`;\n}\nfunction queueFocus(element) {\n queueMicrotask(() => {\n element?.focus();\n });\n}\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component to render an element using `ReactDOM.createPortal`.\n * @see https://ariakit.org/components/portal\n * @example\n * ```jsx\n * const props = usePortal();\n * Content\n * ```\n */\nconst usePortal = createHook(_ref => {\n let {\n preserveTabOrder,\n portalElement,\n portalRef,\n portal = true,\n ...props\n } = _ref;\n const ref = useRef(null);\n const refProp = useForkRef(ref, props.ref);\n const context = useContext(PortalContext);\n const [portalNode, setPortalNode] = useState(null);\n const beforeOutsideRef = useRef(null);\n const beforeInsideRef = useRef(null);\n const afterInsideRef = useRef(null);\n const afterOutsideRef = useRef(null);\n\n // Create the portal node and attach it to the DOM.\n useSafeLayoutEffect(() => {\n const element = ref.current;\n if (!element || !portal) {\n setPortalNode(null);\n return;\n }\n const portalEl = getPortalElement(element, portalElement);\n // TODO: Warn about portals as the document.body element.\n if (!portalEl) {\n setPortalNode(null);\n return;\n }\n const isPortalInDocument = portalEl.isConnected;\n if (!isPortalInDocument) {\n const rootElement = context || getRootElement(element);\n rootElement.appendChild(portalEl);\n }\n // If the portal element doesn't have an id already, set one.\n if (!portalEl.id) {\n // Use the element's id so rendering will\n // produce predictable results.\n portalEl.id = element.id ? `${element.id}-portal` : getRandomId();\n }\n // Set the internal portal node state and the portalRef prop.\n setPortalNode(portalEl);\n setRef(portalRef, portalEl);\n // If the portal element was already in the document, we don't need to\n // remove it when the element is unmounted, so we just return.\n if (isPortalInDocument) return;\n // Otherwise, we need to remove the portal from the DOM.\n return () => {\n portalEl.remove();\n setRef(portalRef, null);\n };\n }, [portal, portalElement, context, portalRef]);\n\n // When preserveTabOrder is true, make sure elements inside the portal\n // element are tabbable only when the portal has already been focused,\n // either by tabbing into a focus trap element outside or using the mouse.\n useEffect(() => {\n if (!portalNode) return;\n if (!preserveTabOrder) return;\n let raf = 0;\n const onFocus = event => {\n if (isFocusEventOutside(event)) {\n const focusing = event.type === \"focusin\";\n if (focusing) return restoreFocusIn(portalNode);\n // Wait for the next frame to allow tabindex changes after the focus\n // event.\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(() => {\n disableFocusIn(portalNode, true);\n });\n }\n };\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n portalNode.addEventListener(\"focusin\", onFocus, true);\n portalNode.addEventListener(\"focusout\", onFocus, true);\n return () => {\n portalNode.removeEventListener(\"focusin\", onFocus, true);\n portalNode.removeEventListener(\"focusout\", onFocus, true);\n };\n }, [portalNode, preserveTabOrder]);\n props = useWrapElement(props, element => {\n element =\n /*#__PURE__*/\n // While the portal node is not in the DOM, we need to pass the\n // current context to the portal context, otherwise it's going to\n // reset to the body element on nested portals.\n jsx(PortalContext.Provider, {\n value: portalNode || context,\n children: element\n });\n if (!portal) return element;\n if (!portalNode) {\n // If the element should be rendered within a portal, but the portal\n // node is not yet in the DOM, we'll return an empty div element. We\n // assign the id to the element so we can use it to set the portal id\n // later on. We're using position: fixed here so that the browser\n // doesn't add margin to the element when setting gap on a parent\n // element.\n return /*#__PURE__*/jsx(\"span\", {\n ref: refProp,\n id: props.id,\n style: {\n position: \"fixed\"\n }\n });\n }\n element = /*#__PURE__*/jsxs(Fragment, {\n children: [preserveTabOrder && portalNode && /*#__PURE__*/jsx(FocusTrap, {\n ref: beforeInsideRef,\n onFocus: event => {\n if (isFocusEventOutside(event, portalNode)) {\n const nextFocusableElement = getNextTabbable();\n\n // When no other focusable element is found, prevent the focus trap\n // to focus on each other which leads to an infinite loop.\n // See https://github.com/ariakit/ariakit/issues/2168\n if (nextFocusableElement !== afterInsideRef.current) {\n queueFocus(nextFocusableElement);\n }\n } else {\n queueFocus(beforeOutsideRef.current);\n }\n }\n }), element, preserveTabOrder && portalNode && /*#__PURE__*/jsx(FocusTrap, {\n ref: afterInsideRef,\n onFocus: event => {\n if (isFocusEventOutside(event, portalNode)) {\n const previousFocusableElement = getPreviousTabbable();\n\n // When no other focusable element is found, prevent the focus trap\n // to focus on each other which leads to an infinite loop.\n // See https://github.com/ariakit/ariakit/issues/2168\n if (previousFocusableElement !== beforeInsideRef.current) {\n queueFocus(previousFocusableElement);\n }\n } else {\n queueFocus(afterOutsideRef.current);\n }\n }\n })]\n });\n if (portalNode) {\n element = /*#__PURE__*/createPortal(element, portalNode);\n }\n element = /*#__PURE__*/jsxs(Fragment, {\n children: [preserveTabOrder && portalNode && /*#__PURE__*/jsx(FocusTrap, {\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isFocusEventOutside(event, portalNode)) {\n queueFocus(beforeInsideRef.current);\n } else {\n queueFocus(getPreviousTabbable());\n }\n }\n }), preserveTabOrder &&\n /*#__PURE__*/\n // We're using position: fixed here so that the browser doesn't\n // add margin to the element when setting gap on a parent element.\n jsx(\"span\", {\n \"aria-owns\": portalNode?.id,\n style: {\n position: \"fixed\"\n }\n }), element, preserveTabOrder && portalNode && /*#__PURE__*/jsx(FocusTrap, {\n ref: afterOutsideRef,\n onFocus: event => {\n if (isFocusEventOutside(event, portalNode)) {\n queueFocus(afterInsideRef.current);\n } else {\n queueFocus(getNextTabbable());\n }\n }\n })]\n });\n return element;\n }, [portalNode, context, portal, props.id, preserveTabOrder]);\n props = {\n ...props,\n ref: refProp\n };\n return props;\n});\n\n/**\n * A component that renders an element using `ReactDOM.createPortal`.\n * @see https://ariakit.org/components/portal\n * @example\n * ```jsx\n * Content\n * ```\n */\nconst Portal = createComponent(props => {\n const htmlProps = usePortal(props);\n return createElement(\"div\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n Portal.displayName = \"Portal\";\n}\n\nexport { Portal, usePortal };\n","import { useRef, useEffect, useMemo, useCallback, useContext, useState, createContext } from 'react';\nimport { useSafeLayoutEffect, useBooleanEvent, useEvent, useForkRef, useForceUpdate, useLiveRef, usePortalRef, useId, useWrapElement } from 'ariakit-react-utils/hooks';\nimport { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { getDocument, contains, getActiveElement, getWindow, isButton, closest } from 'ariakit-utils/dom';\nimport { addGlobalEventListener, isSelfTarget, queueBeforeEvent } from 'ariakit-utils/events';\nimport { getFirstTabbableIn, focusIfNeeded, isFocusable } from 'ariakit-utils/focus';\nimport { noop, chain } from 'ariakit-utils/misc';\nimport { isApple, isMac, isSafari } from 'ariakit-utils/platform';\nimport { useDisclosureContent } from '../disclosure/disclosure-content.js';\nimport { useFocusTrapRegion } from '../focus-trap/focus-trap-region.js';\nimport { useFocusable } from '../focusable/focusable.js';\nimport { HeadingLevel } from '../heading/heading-level.js';\nimport { usePortal } from '../portal/portal.js';\nimport { jsx } from 'react/jsx-runtime';\nimport { D as DialogContext, a as DialogHeadingContext, b as DialogDescriptionContext } from '../dialog-context-a736b58f.js';\nimport { flushSync } from 'react-dom';\n\nfunction usePreviousMouseDownRef(enabled) {\n const previousMouseDownRef = useRef();\n useEffect(() => {\n if (!enabled) {\n previousMouseDownRef.current = null;\n return;\n }\n const onMouseDown = event => {\n previousMouseDownRef.current = event.target;\n };\n return addGlobalEventListener(\"mousedown\", onMouseDown, true);\n }, [enabled]);\n return previousMouseDownRef;\n}\n\nfunction DialogBackdrop(_ref) {\n let {\n state,\n backdrop,\n backdropProps,\n hideOnInteractOutside = true,\n hideOnEscape = true,\n hidden,\n children\n } = _ref;\n const ref = useRef(null);\n state = useMemo(() => ({\n ...state,\n // Override the setContentElement method to prevent the backdrop from\n // overwriting the dialog's content element.\n setContentElement: noop\n }), [state]);\n useSafeLayoutEffect(() => {\n const backdrop = ref.current;\n const dialog = state.contentElement;\n if (!backdrop) return;\n if (!dialog) return;\n backdrop.style.zIndex = getComputedStyle(dialog).zIndex;\n }, [state.contentElement]);\n const onClickProp = backdropProps?.onClick;\n const hideOnInteractOutsideProp = useBooleanEvent(hideOnInteractOutside);\n const previousMouseDownRef = usePreviousMouseDownRef(state.mounted);\n const onClick = useEvent(event => {\n onClickProp?.(event);\n if (event.defaultPrevented) return;\n if (!isSelfTarget(event)) return;\n if (previousMouseDownRef.current !== event.currentTarget) return;\n if (!hideOnInteractOutsideProp(event)) return;\n event.stopPropagation();\n state.hide();\n });\n const onKeyDownProp = backdropProps?.onKeyDown;\n const hideOnEscapeProp = useBooleanEvent(hideOnEscape);\n\n // When hideOnInteractOutside is false and the backdrop is clicked, the\n // backdrop will receive focus (because we set the tabIndex on it). Therefore,\n // the Escape key will not be captured by the Dialog component. So we listen\n // to it here.\n const onKeyDown = useEvent(event => {\n onKeyDownProp?.(event);\n if (event.defaultPrevented) return;\n if (event.key !== \"Escape\") return;\n if (!isSelfTarget(event)) return;\n if (!hideOnEscapeProp(event)) return;\n state.hide();\n });\n const props = useDisclosureContent({\n state,\n id: undefined,\n role: \"presentation\",\n tabIndex: -1,\n hidden,\n ...backdropProps,\n ref: useForkRef(backdropProps?.ref, ref),\n onClick,\n onKeyDown,\n style: {\n position: \"fixed\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...backdropProps?.style\n }\n });\n const Component = typeof backdrop !== \"boolean\" ? backdrop || \"div\" : \"div\";\n return /*#__PURE__*/jsx(Component, {\n ...props,\n \"data-backdrop\": state.contentElement?.id,\n children: children\n });\n}\n\n// We don't need to walk through certain tags.\nconst ignoreTags = [\"SCRIPT\", \"STYLE\"];\nfunction isValidElement(element, ignoredElements) {\n if (ignoreTags.includes(element.tagName)) return false;\n return !ignoredElements.some(enabledElement => enabledElement && contains(element, enabledElement));\n}\nfunction walkTreeOutside(elements, callback) {\n for (let element of elements) {\n const document = getDocument(element);\n // Loops through the parent elements and then through each of their\n // children.\n while (element?.parentElement && element !== document.body) {\n for (const child of element.parentElement.children) {\n if (isValidElement(child, elements)) {\n callback(child);\n }\n }\n element = element.parentElement;\n }\n }\n}\n\nfunction disableElement$1(element) {\n const previousAriaHidden = element.getAttribute(\"aria-hidden\") || \"\";\n element.setAttribute(\"aria-hidden\", \"true\");\n const enableElement = () => {\n if (previousAriaHidden) {\n element.setAttribute(\"aria-hidden\", previousAriaHidden);\n } else {\n element.removeAttribute(\"aria-hidden\");\n }\n };\n return enableElement;\n}\nfunction disableAccessibilityTreeOutside() {\n const cleanups = [];\n for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {\n elements[_key] = arguments[_key];\n }\n walkTreeOutside(elements, element => {\n cleanups.unshift(disableElement$1(element));\n });\n const restoreAccessibilityTree = () => {\n cleanups.forEach(fn => fn());\n };\n return restoreAccessibilityTree;\n}\n\nfunction disableElement(element) {\n if (!(\"style\" in element)) return noop;\n const previousPointerEvents = element.style.pointerEvents;\n element.style.pointerEvents = \"none\";\n const enableElement = () => {\n element.style.pointerEvents = previousPointerEvents ?? \"\";\n };\n return enableElement;\n}\nfunction disablePointerEventsOutside() {\n const cleanups = [];\n for (var _len = arguments.length, elements = new Array(_len), _key = 0; _key < _len; _key++) {\n elements[_key] = arguments[_key];\n }\n walkTreeOutside(elements, element => {\n cleanups.unshift(disableElement(element));\n });\n const restorePointerEvents = () => {\n cleanups.forEach(fn => fn());\n };\n return restorePointerEvents;\n}\n\nfunction prependHiddenDismiss(container, onClick) {\n const document = getDocument(container);\n const button = document.createElement(\"button\");\n button.type = \"button\";\n button.tabIndex = -1;\n button.textContent = \"Dismiss popup\";\n\n // Visually hidden styles\n button.style.border = \"0px\";\n button.style.clip = \"rect(0 0 0 0)\";\n button.style.height = \"1px\";\n button.style.margin = \"-1px\";\n button.style.overflow = \"hidden\";\n button.style.padding = \"0px\";\n button.style.position = \"absolute\";\n button.style.whiteSpace = \"nowrap\";\n button.style.width = \"1px\";\n button.addEventListener(\"click\", onClick);\n container.prepend(button);\n const removeHiddenDismiss = () => {\n button.removeEventListener(\"click\", onClick);\n button.remove();\n };\n return removeHiddenDismiss;\n}\n\n/**\n * Controls which dialog is the champion that will control global behavior such\n * as body scrolling and accessibility tree outside.\n */\nfunction useChampionDialog(dialogRef, attribute, enabled) {\n const [updated, retry] = useForceUpdate();\n const isChampionDialog = useCallback(() => {\n if (!enabled) return false;\n const dialog = dialogRef.current;\n if (!dialog) return false;\n const {\n body\n } = getDocument(dialog);\n const id = body.getAttribute(attribute);\n return !id || id === dialog.id;\n }, [updated, enabled, attribute]);\n useSafeLayoutEffect(() => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (!enabled) return;\n const {\n body\n } = getDocument(dialog);\n if (!isChampionDialog()) {\n const observer = new MutationObserver(() => flushSync(retry));\n observer.observe(body, {\n attributeFilter: [attribute]\n });\n return () => observer.disconnect();\n }\n body.setAttribute(attribute, dialog.id);\n return () => {\n body.removeAttribute(attribute);\n };\n }, [updated, dialogRef, enabled, isChampionDialog, attribute]);\n return isChampionDialog;\n}\n\n/**\n * When the focused child gets removed from the DOM, we make sure to move focus\n * to the dialog.\n */\nfunction useFocusOnChildUnmount(dialogRef, state) {\n useEffect(() => {\n if (!state.open) return;\n const dialog = dialogRef.current;\n if (!dialog) return;\n const observer = new MutationObserver(_ref => {\n let [mutation] = _ref;\n if (!mutation) return;\n // If target is not dialog, then this observer was triggered by a nested\n // dialog, so we just ignore it here and let the nested dialog handle it.\n if (mutation.target !== dialog) return;\n const document = getDocument(dialog);\n const activeElement = getActiveElement(dialog);\n // We can check if the current focused element is the document body.\n if (activeElement === document.body) {\n dialog.focus();\n }\n });\n observer.observe(dialog, {\n childList: true,\n subtree: true\n });\n return () => observer.disconnect();\n }, [state.open, dialogRef]);\n}\n\nfunction isInDocument(target) {\n if (target.tagName === \"HTML\") return true;\n return contains(getDocument(target).body, target);\n}\nfunction isDisclosure(disclosure, target) {\n if (contains(disclosure, target)) return true;\n const activeId = target.getAttribute(\"aria-activedescendant\");\n if (activeId) {\n const activeElement = getDocument(disclosure).getElementById(activeId);\n if (activeElement) {\n return contains(disclosure, activeElement);\n }\n }\n return false;\n}\nfunction isBackdrop$1(dialog, target) {\n if (!dialog) return false;\n if (!target) return false;\n return target.hasAttribute(\"data-backdrop\") && target.getAttribute(\"data-backdrop\") === dialog.id;\n}\nfunction dialogContains(target) {\n return dialogRef => {\n const dialog = dialogRef.current;\n if (!dialog) return false;\n if (contains(dialog, target)) return true;\n if (isBackdrop$1(dialog, target)) return true;\n return false;\n };\n}\nfunction useEventOutside(_ref) {\n let {\n type,\n listener,\n dialogRef,\n nestedDialogs,\n disclosureRef,\n enabled,\n capture\n } = _ref;\n const callListener = useEvent(listener);\n const nestedDialogsRef = useLiveRef(nestedDialogs);\n useEffect(() => {\n if (!enabled) return;\n const onEvent = event => {\n const container = dialogRef.current;\n const disclosure = disclosureRef?.current;\n const target = event.target;\n if (!container) return;\n if (!target) return;\n // When an element is unmounted right after it receives focus, the focus\n // event is triggered after that, when the element isn't part of the\n // current document anymore. We just ignore it.\n if (!isInDocument(target)) return;\n // Event inside dialog\n if (contains(container, target)) return;\n // Event on disclosure\n if (disclosure && isDisclosure(disclosure, target)) return;\n // Event on focus trap\n if (target.hasAttribute(\"data-focus-trap\")) return;\n // Event inside a nested dialog\n if (nestedDialogsRef.current.some(dialogContains(target))) return;\n callListener(event);\n };\n return addGlobalEventListener(type, onEvent, capture);\n }, [enabled, dialogRef, disclosureRef, callListener, capture]);\n}\nfunction shouldHideOnInteractOutside(hideOnInteractOutside, event) {\n if (typeof hideOnInteractOutside === \"function\") {\n return hideOnInteractOutside(event);\n }\n return !!hideOnInteractOutside;\n}\nfunction useHideOnInteractOutside(dialogRef, nestedDialogs, _ref2) {\n let {\n state,\n modal,\n hideOnInteractOutside,\n enabled = state.open\n } = _ref2;\n const previousMouseDownRef = usePreviousMouseDownRef(enabled);\n const props = {\n disclosureRef: state.disclosureRef,\n enabled,\n dialogRef,\n nestedDialogs,\n capture: true\n };\n useEventOutside({\n ...props,\n type: \"mousedown\",\n listener: event => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (modal && !shouldHideOnInteractOutside(hideOnInteractOutside, event)) {\n // If the dialog is modal and the user clicked outside the dialog, but\n // shouldHideOnInteractOutside is false, we don't hide the dialog, but\n // ensure focus is placed on it. Otherwise the focus might end up on an\n // element outside of the dialog or the body element itself.\n dialog.focus();\n event.preventDefault();\n event.stopPropagation();\n }\n }\n });\n useEventOutside({\n ...props,\n type: \"click\",\n listener: event => {\n const previousMouseDown = previousMouseDownRef.current;\n // If there's no previously mousedown'd element, this probably means that\n // the dialog opened with a mousedown event, and a subsequent click event\n // was dispatched outside of the dialog. See form-select example. We just\n // ignore this.\n if (!previousMouseDown) return;\n if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) {\n if (!modal) return;\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n const dialog = dialogRef.current;\n const draggingFromDialog = dialog && contains(dialog, previousMouseDown);\n // This prevents the dialog from closing by dragging the cursor (for\n // example, selecting some text inside the dialog and releasing the mouse\n // outside of it). See https://github.com/ariakit/ariakit/issues/1336\n if (draggingFromDialog) return;\n state.hide();\n }\n });\n useEventOutside({\n ...props,\n type: \"focusin\",\n listener: event => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) {\n if (!modal) return;\n // Same as the mousedown listener.\n dialog.focus();\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n // Fix for https://github.com/ariakit/ariakit/issues/619\n if (event.target === getDocument(dialog)) return;\n state.hide();\n }\n });\n useEventOutside({\n ...props,\n type: \"contextmenu\",\n listener: event => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (!shouldHideOnInteractOutside(hideOnInteractOutside, event)) {\n if (!modal) return;\n // Same as the mousedown listener.\n dialog.focus();\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n state.hide();\n }\n });\n}\n\nconst NestedDialogsContext = /*#__PURE__*/createContext({});\n\n/**\n * Handles nested dialogs.\n */\nfunction useNestedDialogs(dialogRef, _ref) {\n let {\n state,\n modal\n } = _ref;\n const context = useContext(NestedDialogsContext);\n const [openModals, setOpenModals] = useState([]);\n const [nestedDialogs, setNestedDialogs] = useState([]);\n const addDialog = useCallback(ref => {\n const removeFromContext = context.addDialog?.(ref);\n setNestedDialogs(dialogs => [...dialogs, ref]);\n return () => {\n removeFromContext?.();\n setNestedDialogs(dialogs => dialogs.filter(dialog => dialog !== ref));\n };\n }, [context.addDialog]);\n const showModal = useCallback(ref => {\n const hideModal = context.showModal?.(ref);\n setOpenModals(modals => [...modals, ref]);\n return () => {\n hideModal?.();\n setOpenModals(modals => modals.filter(modal => modal !== ref));\n };\n }, [context.showModal]);\n\n // If this is a nested dialog, add it to the context.\n useSafeLayoutEffect(() => {\n return context.addDialog?.(dialogRef);\n }, [context.addDialog, dialogRef]);\n useSafeLayoutEffect(() => {\n if (!modal) return;\n if (!state.open) return;\n return context.showModal?.(dialogRef);\n }, [modal, state.open, context.showModal, dialogRef]);\n\n // Close all nested dialogs when parent dialog closes.\n useSafeLayoutEffect(() => {\n if (context.open === false && state.open) {\n state.hide();\n }\n }, [context.open, state.open, state.hide]);\n\n // Provider\n const providerValue = useMemo(() => ({\n open: state.open,\n addDialog,\n showModal\n }), [state.open, addDialog, showModal]);\n const wrapElement = useCallback(element => /*#__PURE__*/jsx(NestedDialogsContext.Provider, {\n value: providerValue,\n children: element\n }), [providerValue]);\n return {\n nestedDialogs,\n openModals,\n wrapElement\n };\n}\n\n// Based on https://github.com/floating-ui/floating-ui/blob/1201e72e67a80e479122293d46d96c9bbc8f156d/packages/react-dom-interactions/src/FloatingOverlay.tsx\nfunction assignStyle(element, style) {\n if (!element) return () => {};\n const previousStyle = element.style.cssText;\n Object.assign(element.style, style);\n return () => {\n element.style.cssText = previousStyle;\n };\n}\nfunction setCSSProperty(element, property, value) {\n if (!element) return () => {};\n const previousValue = element.style.getPropertyValue(property);\n element.style.setProperty(property, value);\n return () => {\n if (previousValue) {\n element.style.setProperty(property, previousValue);\n } else {\n element.style.removeProperty(property);\n }\n };\n}\nfunction getPaddingProperty(documentElement) {\n // RTL scrollbar\n const documentLeft = documentElement.getBoundingClientRect().left;\n const scrollbarX = Math.round(documentLeft) + documentElement.scrollLeft;\n return scrollbarX ? \"paddingLeft\" : \"paddingRight\";\n}\nfunction usePreventBodyScroll(dialogRef, enabled) {\n const isChampionDialog = useChampionDialog(dialogRef, \"data-dialog-body-scroll\", enabled);\n useSafeLayoutEffect(() => {\n const dialog = dialogRef.current;\n if (!dialog) return;\n if (!isChampionDialog()) return;\n const doc = getDocument(dialog);\n const win = getWindow(dialog);\n const {\n documentElement,\n body\n } = doc;\n const scrollbarWidth = win.innerWidth - documentElement.clientWidth;\n const setScrollbarWidthProperty = () => setCSSProperty(documentElement, \"--scrollbar-width\", `${scrollbarWidth}px`);\n const paddingProperty = getPaddingProperty(documentElement);\n const setStyle = () => assignStyle(body, {\n overflow: \"hidden\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n\n // Only iOS doesn't respect `overflow: hidden` on document.body\n const setIOSStyle = () => {\n const {\n scrollX,\n scrollY,\n visualViewport\n } = win;\n\n // iOS 12 does not support `visuaViewport`.\n const offsetLeft = visualViewport?.offsetLeft ?? 0;\n const offsetTop = visualViewport?.offsetTop ?? 0;\n const restoreStyle = assignStyle(body, {\n position: \"fixed\",\n overflow: \"hidden\",\n top: `${-(scrollY - Math.floor(offsetTop))}px`,\n left: `${-(scrollX - Math.floor(offsetLeft))}px`,\n right: \"0\",\n [paddingProperty]: `${scrollbarWidth}px`\n });\n return () => {\n restoreStyle();\n // istanbul ignore next: JSDOM doesn't implement window.scrollTo\n if (process.env.NODE_ENV !== \"test\") {\n win.scrollTo(scrollX, scrollY);\n }\n };\n };\n const isIOS = isApple() && !isMac();\n return chain(setScrollbarWidthProperty(), isIOS ? setIOSStyle() : setStyle());\n }, [dialogRef, isChampionDialog]);\n}\n\nconst isSafariBrowser = isSafari();\nfunction isBackdrop(dialog, element) {\n const id = dialog.id;\n if (!id) return;\n return element.getAttribute(\"data-backdrop\") === id;\n}\nfunction isInDialog(element) {\n return dialogRef => dialogRef.current && contains(dialogRef.current, element);\n}\nfunction isAlreadyFocusingAnotherElement(dialog, nestedDialogs) {\n const activeElement = getActiveElement();\n if (!activeElement) return false;\n if (contains(dialog, activeElement)) return false;\n if (isBackdrop(dialog, activeElement)) return false;\n if (nestedDialogs?.some(isInDialog(activeElement))) return false;\n if (isFocusable(activeElement)) return true;\n return false;\n}\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component to render a dialog element.\n * @see https://ariakit.org/components/dialog\n * @example\n * ```jsx\n * const state = useDialogState();\n * const props = useDialog({ state });\n * Dialog\n * ```\n */\nconst useDialog = createHook(_ref => {\n let {\n state,\n focusable = true,\n modal = true,\n portal = !!modal,\n backdrop = !!modal,\n backdropProps,\n hideOnEscape = true,\n hideOnInteractOutside = true,\n preventBodyScroll = !!modal,\n autoFocusOnShow = true,\n autoFocusOnHide = true,\n initialFocusRef,\n finalFocusRef,\n ...props\n } = _ref;\n const ref = useRef(null);\n const openRef = useRef(state.open);\n // domReady can be also the portal node element so it's updated when the\n // portal node changes (like in between re-renders), triggering effects\n // again.\n const {\n portalRef,\n portalNode,\n domReady\n } = usePortalRef(portal, props.portalRef);\n // Sets preserveTabOrder to true only if the dialog is not a modal and is\n // open.\n const preserveTabOrder = props.preserveTabOrder && !modal && state.mounted;\n const openStable = state.open && !state.animating;\n\n // Usually, we only want to disable the accessibility tree outside if the\n // dialog is a modal. But the Portal component can't preserve the tab order\n // on Safari/VoiceOver. By allowing only the dialog/portal to be accessible,\n // we provide a similar tab order flow. We don't need to disable pointer\n // events because it's just for screen readers.\n const shouldDisableAccessibilityTree = modal || portal && preserveTabOrder && isSafari();\n const id = useId(props.id);\n\n // Sets disclosure ref. It needs to be a layout effect so we get the focused\n // element right before the dialog is mounted.\n useSafeLayoutEffect(() => {\n if (!openStable) return;\n const dialog = ref.current;\n const activeElement = getActiveElement(dialog, true);\n if (!activeElement) return;\n if (activeElement.tagName === \"BODY\") return;\n // The disclosure element can't be inside the dialog.\n if (dialog && contains(dialog, activeElement)) return;\n state.disclosureRef.current = activeElement;\n }, [openStable]);\n const nested = useNestedDialogs(ref, {\n state,\n modal\n });\n const {\n nestedDialogs,\n openModals,\n wrapElement\n } = nested;\n const nestedDialogsRef = useLiveRef(nestedDialogs);\n usePreventBodyScroll(ref, preventBodyScroll && state.mounted);\n // When a focused child element is removed, focus will be placed on the\n // document's body. This will focus on the dialog instead.\n useFocusOnChildUnmount(ref, state);\n useHideOnInteractOutside(ref, nestedDialogs, {\n state,\n modal,\n hideOnInteractOutside,\n enabled: state.open\n });\n\n // Safari does not focus on native buttons on mousedown. The\n // DialogDisclosure component normalizes this behavior using the\n // useFocusable hook, but the disclosure button may use a custom component,\n // and not DialogDisclosure. In this case, we need to make sure the\n // disclosure button gets focused here.\n if (isSafariBrowser) {\n useEffect(() => {\n if (!state.mounted) return;\n const disclosure = state.disclosureRef.current;\n if (!disclosure) return;\n if (!isButton(disclosure)) return;\n const onMouseDown = () => {\n let receivedFocus = false;\n const onFocus = () => {\n receivedFocus = true;\n };\n const options = {\n capture: true,\n once: true\n };\n disclosure.addEventListener(\"focusin\", onFocus, options);\n queueBeforeEvent(disclosure, \"mouseup\", () => {\n disclosure.removeEventListener(\"focusin\", onFocus, true);\n if (receivedFocus) return;\n focusIfNeeded(disclosure);\n });\n };\n disclosure.addEventListener(\"mousedown\", onMouseDown);\n return () => {\n disclosure.removeEventListener(\"mousedown\", onMouseDown);\n };\n }, [state.mounted, state.disclosureRef]);\n }\n\n // Renders a hidden dismiss button at the top of the modal dialog element.\n // So that screen reader users aren't trapped in the dialog when there's no\n // visible dismiss button.\n useEffect(() => {\n if (!state.mounted) return;\n if (!domReady) return;\n const dialog = ref.current;\n if (!dialog) return;\n // Usually, we only want to force the presence of a dismiss button if the\n // dialog is a modal. But, on Safari, since we're disabling the\n // accessibility tree outside, we need to ensure the user will be able to\n // close the dialog.\n if (shouldDisableAccessibilityTree) {\n // If there's already a DialogDismiss component, it does nothing.\n const existingDismiss = dialog.querySelector(\"[data-dialog-dismiss]\");\n if (existingDismiss) return;\n return prependHiddenDismiss(dialog, state.hide);\n }\n return;\n }, [state.mounted, domReady, shouldDisableAccessibilityTree, state.hide]);\n const shouldDisableOutside = useChampionDialog(ref, \"data-dialog-disable-outside\", openStable && !openModals.length && shouldDisableAccessibilityTree);\n\n // Disables/enables the element tree around the modal dialog element.\n useSafeLayoutEffect(() => {\n // When the dialog is animating, we immediately restore the element tree\n // outside. This means the element tree will be enabled when the focus is\n // moved back to the disclosure element.\n if (!shouldDisableOutside()) return;\n // If portal is enabled, we get the portalNode instead of the dialog\n // element. This will consider nested dialogs as they will be children of\n // the portal node, but not the dialog. This also accounts for the tiny\n // delay before the dialog element is appended to the portal node, and the\n // portal node is added to the DOM.\n const element = portal ? portalNode : ref.current;\n if (modal) {\n return chain(disableAccessibilityTreeOutside(element),\n // When the backdrop is not visible, we also need to disable pointer\n // events outside of the modal dialog.\n !backdrop ? disablePointerEventsOutside(element) : null);\n }\n return disableAccessibilityTreeOutside(element);\n }, [shouldDisableOutside, portal, portalNode, modal, backdrop]);\n const prevInitialFocusRef = useRef();\n const mayAutoFocusOnShow = !!autoFocusOnShow;\n const autoFocusOnShowProp = useBooleanEvent(autoFocusOnShow);\n\n // Auto focus on show.\n useEffect(() => {\n if (!openStable) return;\n if (!mayAutoFocusOnShow) return;\n // Makes sure to wait for the portalNode to be created before moving\n // focus. This is useful for when the Dialog component is unmounted\n // when hidden.\n if (!domReady) return;\n // If there are open nested dialogs, let them handle the focus.\n const hasNestedOpenDialog = nestedDialogsRef.current?.some(child => child.current && !child.current.hidden);\n if (hasNestedOpenDialog) return;\n // The dialog element may change for different reasons. For example, when\n // the `modal`, `portal` or `backdrop` props change, the HTML structure\n // will also change, which will affect the dialog element reference.\n // That's why we're listening to `state.contentElement` here instead of\n // getting the `ref.current` value. This ensures this effect will re-run\n // when the dialog element reference changes.\n const dialog = state.contentElement;\n if (!dialog?.isConnected) return;\n const initialFocus = initialFocusRef?.current;\n const element = initialFocus ||\n // We have to fallback to the first focusable element otherwise portaled\n // dialogs with preserveTabOrder set to true will not receive focus\n // properly because the elements aren't tabbable until the dialog\n // receives focus.\n getFirstTabbableIn(dialog, true, portal && preserveTabOrder) || dialog;\n const prevInitialFocus = prevInitialFocusRef.current;\n prevInitialFocusRef.current = initialFocus;\n // If the initial focus is the same as the previous initial focus and\n // there's already an element with focus inside the dialog, we don't\n // change focus here.\n if (initialFocus === prevInitialFocus) {\n const activeElement = getActiveElement(dialog, true);\n if (activeElement && contains(dialog, activeElement)) return;\n }\n if (!autoFocusOnShowProp(element)) return;\n element.focus();\n }, [openStable, mayAutoFocusOnShow, domReady, state.contentElement, initialFocusRef, portal, preserveTabOrder, autoFocusOnShowProp]);\n const mayAutoFocusOnHide = !!autoFocusOnHide;\n const autoFocusOnHideProp = useBooleanEvent(autoFocusOnHide);\n\n // Auto focus on hide.\n useEffect(() => {\n const dialog = ref.current;\n const prevOpen = openRef.current;\n openRef.current = state.open;\n // We only want to auto focus on hide if the dialog was open before.\n if (!prevOpen) return;\n if (!mayAutoFocusOnHide) return;\n if (!dialog) return;\n // A function so we can use it on the effect setup and cleanup phases.\n const focusOnHide = () => {\n const dialogs = nestedDialogsRef.current;\n // Hide was triggered by a click/focus on a tabbable element outside\n // the dialog or on another dialog. We won't change focus then.\n if (isAlreadyFocusingAnotherElement(dialog, dialogs)) return;\n let element = finalFocusRef?.current || state.disclosureRef.current;\n if (element) {\n if (element.id) {\n const doc = getDocument(element);\n const selector = `[aria-activedescendant=\"${element.id}\"]`;\n const composite = doc.querySelector(selector);\n // If the element is an item in a composite widget that handles\n // focus with the `aria-activedescendant` attribute, we want to\n // focus on the composite element itself.\n if (composite) {\n element = composite;\n }\n }\n // If the element is not focusable by the time the dialog is hidden,\n // it's probably because it's an element inside another popover or\n // menu that also got hidden when this dialog was shown. We'll try to\n // focus on their disclosure element instead.\n if (!isFocusable(element)) {\n const parentDialog = closest(element, \"[data-dialog]\");\n if (parentDialog && parentDialog.id) {\n const doc = getDocument(parentDialog);\n const selector = `[aria-controls~=\"${parentDialog.id}\"]`;\n const control = doc.querySelector(selector);\n if (control) {\n element = control;\n }\n }\n }\n if (!autoFocusOnHideProp(element)) return;\n element.focus();\n }\n };\n if (!state.open) {\n // If this effect is running while state.open is false, this means\n // that the Dialog component doesn't get unmounted when it's not\n // open, so we can immediatelly move focus.\n return focusOnHide();\n }\n // Otherwise, we just return the focusOnHide function so it's going to\n // be executed when the Dialog component gets unmounted. This is useful\n // so we can support both mounting and unmounting Dialog components.\n return focusOnHide;\n }, [mayAutoFocusOnHide, state.open, finalFocusRef, state.disclosureRef, autoFocusOnHideProp]);\n const hideOnEscapeProp = useBooleanEvent(hideOnEscape);\n\n // Hide on Escape.\n useEffect(() => {\n if (!domReady) return;\n if (!state.mounted) return;\n const onKeyDown = event => {\n const dialog = ref.current;\n if (!dialog) return;\n const target = event.target;\n const disclosure = state.disclosureRef.current;\n if (event.key !== \"Escape\") return;\n if (event.defaultPrevented) return;\n if (!target) return;\n // This considers valid targets only the disclosure element or\n // descendants of the dialog element that are not descendants of nested\n // dialogs.\n const isValidTarget = () => {\n if (contains(dialog, target)) {\n const dialogs = nestedDialogsRef.current;\n // Since this is a native DOM event, it won't be triggered by\n // keystrokes on nested dialogs inside portals. But we still need to\n // check if the target is inside a nested non-portal dialog.\n const inNestedDialog = dialogs.some(isInDialog(target));\n if (inNestedDialog) return false;\n return true;\n }\n if (disclosure && contains(disclosure, target)) return true;\n return false;\n };\n if (isValidTarget() && hideOnEscapeProp(event)) {\n state.hide();\n }\n };\n // We're attatching the listener to the document instead of the dialog\n // element so we can also listen to keystrokes on the disclosure element.\n // We can't do this on a onKeyDown prop on the disclosure element because\n // we don't have access to the hideOnEscape prop there.\n return addGlobalEventListener(\"keydown\", onKeyDown);\n }, [domReady, state.mounted, state.disclosureRef, hideOnEscapeProp, state.hide]);\n\n // Wraps the element with the nested dialog context.\n props = useWrapElement(props, wrapElement, [wrapElement]);\n\n // Resets the heading levels inside the modal dialog so they start with h1.\n props = useWrapElement(props, element => /*#__PURE__*/jsx(HeadingLevel, {\n level: modal ? 1 : undefined,\n children: element\n }), [modal]);\n\n // Focus traps.\n props = useFocusTrapRegion({\n ...props,\n enabled: state.open && modal && !openModals.length\n });\n const hiddenProp = props.hidden;\n\n // Wraps the dialog with a backdrop element if the backdrop prop is truthy.\n props = useWrapElement(props, element => {\n if (backdrop) {\n return /*#__PURE__*/jsx(DialogBackdrop, {\n state: state,\n backdrop: backdrop,\n backdropProps: backdropProps,\n hideOnInteractOutside: hideOnInteractOutside,\n hideOnEscape: hideOnEscape,\n hidden: hiddenProp,\n children: element\n });\n }\n return element;\n }, [state, backdrop, backdropProps, hideOnInteractOutside, hideOnEscape, hiddenProp]);\n const [headingId, setHeadingId] = useState();\n const [descriptionId, setDescriptionId] = useState();\n props = useWrapElement(props, element => /*#__PURE__*/jsx(DialogContext.Provider, {\n value: state,\n children: /*#__PURE__*/jsx(DialogHeadingContext.Provider, {\n value: setHeadingId,\n children: /*#__PURE__*/jsx(DialogDescriptionContext.Provider, {\n value: setDescriptionId,\n children: element\n })\n })\n }), [state]);\n props = {\n id,\n \"data-dialog\": \"\",\n role: \"dialog\",\n tabIndex: focusable ? -1 : undefined,\n \"aria-labelledby\": headingId,\n \"aria-describedby\": descriptionId,\n ...props,\n ref: useForkRef(ref, props.ref)\n };\n props = useDisclosureContent({\n state,\n ...props\n });\n props = useFocusable({\n ...props,\n focusable\n });\n props = usePortal({\n portal,\n ...props,\n portalRef,\n preserveTabOrder\n });\n return props;\n});\n\n/**\n * A component that renders a dialog element.\n * @see https://ariakit.org/components/dialog\n * @example\n * ```jsx\n * const dialog = useDialogState();\n * \n * Dialog\n * ```\n */\nconst Dialog = createComponent(props => {\n const htmlProps = useDialog(props);\n return createElement(\"div\", htmlProps);\n});\nif (process.env.NODE_ENV !== \"production\") {\n Dialog.displayName = \"Dialog\";\n}\n\nexport { Dialog, useDialog };\n","import { useRef, useEffect, useState } from 'react';\nimport { useEvent, useSafeLayoutEffect, useTagName, useForkRef } from 'ariakit-react-utils/hooks';\nimport { createHook, createComponent, createElement } from 'ariakit-react-utils/system';\nimport { isButton } from 'ariakit-utils/dom';\nimport { addGlobalEventListener, isPortalEvent, queueBeforeEvent, isSelfTarget, isFocusEventOutside } from 'ariakit-utils/events';\nimport { isFocusable, focusIfNeeded, hasFocus } from 'ariakit-utils/focus';\nimport { queueMicrotask } from 'ariakit-utils/misc';\nimport { isSafari } from 'ariakit-utils/platform';\n\nconst isSafariBrowser = isSafari();\nconst alwaysFocusVisibleInputTypes = [\"text\", \"search\", \"url\", \"tel\", \"email\", \"password\", \"number\", \"date\", \"month\", \"week\", \"time\", \"datetime\", \"datetime-local\"];\nfunction isAlwaysFocusVisible(element) {\n const {\n tagName,\n readOnly,\n type\n } = element;\n if (tagName === \"TEXTAREA\" && !readOnly) return true;\n if (tagName === \"SELECT\" && !readOnly) return true;\n if (tagName === \"INPUT\" && !readOnly) {\n return alwaysFocusVisibleInputTypes.includes(type);\n }\n if (element.isContentEditable) return true;\n return false;\n}\n\n// See https://github.com/ariakit/ariakit/issues/1257\nfunction isAlwaysFocusVisibleDelayed(element) {\n const role = element.getAttribute(\"role\");\n if (role === \"combobox\") return true;\n return false;\n}\nfunction getLabels(element) {\n if (\"labels\" in element) {\n return element.labels;\n }\n return null;\n}\nfunction isNativeCheckboxOrRadio(element) {\n const tagName = element.tagName.toLowerCase();\n if (tagName === \"input\" && element.type) {\n return element.type === \"radio\" || element.type === \"checkbox\";\n }\n return false;\n}\nfunction isNativeTabbable(tagName) {\n if (!tagName) return true;\n return tagName === \"button\" || tagName === \"input\" || tagName === \"select\" || tagName === \"textarea\" || tagName === \"a\";\n}\nfunction supportsDisabledAttribute(tagName) {\n if (!tagName) return true;\n return tagName === \"button\" || tagName === \"input\" || tagName === \"select\" || tagName === \"textarea\";\n}\nfunction getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled, tabIndexProp) {\n if (!focusable) {\n return tabIndexProp;\n }\n if (trulyDisabled) {\n if (nativeTabbable && !supportsDisabled) {\n // Anchor, audio and video tags don't support the `disabled` attribute.\n // We must pass tabIndex={-1} so they don't receive focus on tab.\n return -1;\n }\n // Elements that support the `disabled` attribute don't need tabIndex.\n return;\n }\n if (nativeTabbable) {\n // If the element is enabled and it's natively tabbable, we don't need to\n // specify a tabIndex attribute unless it's explicitly set by the user.\n return tabIndexProp;\n }\n // If the element is enabled and is not natively tabbable, we have to\n // fallback tabIndex={0}.\n return tabIndexProp || 0;\n}\nfunction useDisableEvent(onEvent, disabled) {\n return useEvent(event => {\n onEvent?.(event);\n if (event.defaultPrevented) return;\n if (disabled) {\n event.stopPropagation();\n event.preventDefault();\n }\n });\n}\n\n// isKeyboardModality should be true by defaault.\nlet isKeyboardModality = true;\nfunction onGlobalMouseDown(event) {\n const target = event.target;\n if (target && \"hasAttribute\" in target) {\n // If the target element is already focus-visible, we keep the keyboard\n // modality.\n if (!target.hasAttribute(\"data-focus-visible\")) {\n isKeyboardModality = false;\n }\n }\n}\nfunction onGlobalKeyDown(event) {\n if (event.metaKey) return;\n if (event.ctrlKey) return;\n isKeyboardModality = true;\n}\n\n/**\n * A component hook that returns props that can be passed to `Role` or any other\n * Ariakit component to render an element that can be focused.\n * @see https://ariakit.org/components/focusable\n * @example\n * ```jsx\n * const props = useFocusable();\n * Focusable\n * ```\n */\nconst useFocusable = createHook(_ref => {\n let {\n focusable = true,\n accessibleWhenDisabled,\n autoFocus,\n onFocusVisible,\n ...props\n } = _ref;\n const ref = useRef(null);\n\n // Add global event listeners to determine whether the user is using a\n // keyboard to navigate the site or not.\n useEffect(() => {\n if (!focusable) return;\n addGlobalEventListener(\"mousedown\", onGlobalMouseDown, true);\n addGlobalEventListener(\"keydown\", onGlobalKeyDown, true);\n }, [focusable]);\n\n // Safari and Firefox on Apple devices don't focus on checkboxes or radio\n // buttons when their labels are clicked. This effect will make sure the\n // focusable element is focused on label click.\n if (isSafariBrowser) {\n useEffect(() => {\n if (!focusable) return;\n const element = ref.current;\n if (!element) return;\n if (!isNativeCheckboxOrRadio(element)) return;\n const labels = getLabels(element);\n if (!labels) return;\n const onMouseUp = () => queueMicrotask(() => element.focus());\n labels.forEach(label => label.addEventListener(\"mouseup\", onMouseUp));\n return () => {\n labels.forEach(label => label.removeEventListener(\"mouseup\", onMouseUp));\n };\n }, [focusable]);\n }\n const disabled = focusable && props.disabled;\n const trulyDisabled = !!disabled && !accessibleWhenDisabled;\n const [focusVisible, setFocusVisible] = useState(false);\n\n // When the focusable element is disabled, it doesn't trigger a blur event\n // so we can't set focusVisible to false there. Instead, we have to do it\n // here by checking the element's disabled attribute.\n useEffect(() => {\n if (!focusable) return;\n if (trulyDisabled && focusVisible) {\n setFocusVisible(false);\n }\n }, [focusable, trulyDisabled, focusVisible]);\n\n // When an element that has focus becomes hidden, it doesn't trigger a blur\n // event so we can't set focusVisible to false there. We observe the element\n // and check if it's still focusable. Otherwise, we set focusVisible to\n // false.\n useEffect(() => {\n if (!focusable) return;\n if (!focusVisible) return;\n const element = ref.current;\n if (!element) return;\n if (typeof IntersectionObserver === \"undefined\") return;\n const observer = new IntersectionObserver(() => {\n if (!isFocusable(element)) {\n setFocusVisible(false);\n }\n });\n observer.observe(element);\n return () => observer.disconnect();\n }, [focusable, focusVisible]);\n\n // Disable events when the element is disabled.\n const onKeyPressCapture = useDisableEvent(props.onKeyPressCapture, disabled);\n const onMouseDownCapture = useDisableEvent(props.onMouseDownCapture, disabled);\n const onClickCapture = useDisableEvent(props.onClickCapture, disabled);\n const onMouseDownProp = props.onMouseDown;\n const onMouseDown = useEvent(event => {\n onMouseDownProp?.(event);\n if (event.defaultPrevented) return;\n if (!focusable) return;\n const element = event.currentTarget;\n // Safari doesn't focus on buttons on mouse down like other\n // browsers/platforms. Instead, it focuses on the closest focusable\n // ancestor element, which is ultimately the body element. So we make sure\n // to give focus to this Focusable element on mouse down so it works\n // consistently across browsers.\n if (!isSafariBrowser) return;\n if (isPortalEvent(event)) return;\n if (!isButton(element) && !isNativeCheckboxOrRadio(element)) return;\n // In future versions os Safari, it may change this behavior and start\n // focusing on buttons on mouse down. To account for that, we check if the\n // element has received focus before.\n let receivedFocus = false;\n const onFocus = () => {\n receivedFocus = true;\n };\n const options = {\n capture: true,\n once: true\n };\n element.addEventListener(\"focusin\", onFocus, options);\n // We can't focus right away after on mouse down, otherwise it would\n // prevent drag events from happening. So we queue the focus to the next\n // animation frame, but always before the next mouseup event. The mouseup\n // event might happen before the next animation frame on touch devices or\n // by tapping on a MacBook's trackpad, for example.\n queueBeforeEvent(element, \"mouseup\", () => {\n element.removeEventListener(\"focusin\", onFocus, true);\n if (receivedFocus) return;\n focusIfNeeded(element);\n });\n });\n const handleFocusVisible = (event, currentTarget) => {\n if (currentTarget) {\n event.currentTarget = currentTarget;\n }\n onFocusVisible?.(event);\n if (event.defaultPrevented) return;\n if (!focusable) return;\n const element = event.currentTarget;\n if (!element) return;\n // Some extensions like 1password dispatches some keydown events on\n // autofill and immediately moves focus to the next field. That's why we\n // need to check if the current element is still focused.\n if (!hasFocus(element)) return;\n setFocusVisible(true);\n };\n const onKeyDownCaptureProp = props.onKeyDownCapture;\n const onKeyDownCapture = useEvent(event => {\n onKeyDownCaptureProp?.(event);\n if (event.defaultPrevented) return;\n if (!focusable) return;\n if (focusVisible) return;\n if (event.metaKey) return;\n if (event.altKey) return;\n if (event.ctrlKey) return;\n if (!isSelfTarget(event)) return;\n const element = event.currentTarget;\n queueMicrotask(() => handleFocusVisible(event, element));\n });\n const onFocusCaptureProp = props.onFocusCapture;\n const onFocusCapture = useEvent(event => {\n onFocusCaptureProp?.(event);\n if (event.defaultPrevented) return;\n if (!focusable) return;\n if (!isSelfTarget(event)) {\n setFocusVisible(false);\n return;\n }\n const element = event.currentTarget;\n const applyFocusVisible = () => handleFocusVisible(event, element);\n if (isKeyboardModality || isAlwaysFocusVisible(event.target)) {\n queueMicrotask(applyFocusVisible);\n }\n // See https://github.com/ariakit/ariakit/issues/1257\n else if (isAlwaysFocusVisibleDelayed(event.target)) {\n queueBeforeEvent(event.target, \"focusout\", applyFocusVisible);\n } else {\n setFocusVisible(false);\n }\n });\n const onBlurProp = props.onBlur;\n\n // Note: Can't use onBlurCapture here otherwise it will not work with\n // CompositeItem's with the virtualFocus state set to true.\n const onBlur = useEvent(event => {\n onBlurProp?.(event);\n if (!focusable) return;\n if (isFocusEventOutside(event)) {\n setFocusVisible(false);\n }\n });\n\n // The native autoFocus prop is problematic in many ways. For example, when\n // an element has the native autofocus attribute, the focus event will be\n // triggered before React effects (even layout effects) and before refs are\n // assigned. This means we won't have access to the element's ref or\n // anything else that's set up by React effects on the onFocus event. So we\n // don't pass the autoFocus prop to the element and instead manually focus\n // the element when it's mounted. The order in which this effect runs also\n // matters. It must be declared here after all the event callbacks above so\n // the event callback effects run before this one. See\n // https://twitter.com/diegohaz/status/1408180632933388289\n useSafeLayoutEffect(() => {\n if (!focusable) return;\n if (autoFocus) {\n ref.current?.focus();\n }\n }, [focusable, autoFocus]);\n const tagName = useTagName(ref, props.as);\n const nativeTabbable = focusable && isNativeTabbable(tagName);\n const supportsDisabled = focusable && supportsDisabledAttribute(tagName);\n const style = trulyDisabled ? {\n pointerEvents: \"none\",\n ...props.style\n } : props.style;\n props = {\n \"data-focus-visible\": focusable && focusVisible ? \"\" : undefined,\n \"aria-disabled\": disabled ? true : undefined,\n ...props,\n ref: useForkRef(ref, props.ref),\n style,\n tabIndex: getTabIndex(focusable, trulyDisabled, nativeTabbable, supportsDisabled, props.tabIndex),\n disabled: supportsDisabled && trulyDisabled ? true : undefined,\n // TODO: Test Focusable contentEditable.\n contentEditable: disabled ? undefined : props.contentEditable,\n onKeyPressCapture,\n onClickCapture,\n onMouseDownCapture,\n onMouseDown,\n onKeyDownCapture,\n onFocusCapture,\n onBlur\n };\n return props;\n});\n\n/**\n * A component that renders an element that can be focused.\n * @see https://ariakit.org/components/focusable\n * @example\n * ```jsx\n * Focusable\n * ```\n */\nconst Focusable = createComponent(props => {\n props = useFocusable(props);\n return createElement(\"div\", props);\n});\nif (process.env.NODE_ENV !== \"production\") {\n Focusable.displayName = \"Focusable\";\n}\n\nexport { Focusable, useFocusable };\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n PrefetchKind: null,\n ACTION_REFRESH: null,\n ACTION_NAVIGATE: null,\n ACTION_RESTORE: null,\n ACTION_SERVER_PATCH: null,\n ACTION_PREFETCH: null,\n ACTION_FAST_REFRESH: null,\n ACTION_SERVER_ACTION: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n PrefetchKind: function() {\n return PrefetchKind;\n },\n ACTION_REFRESH: function() {\n return ACTION_REFRESH;\n },\n ACTION_NAVIGATE: function() {\n return ACTION_NAVIGATE;\n },\n ACTION_RESTORE: function() {\n return ACTION_RESTORE;\n },\n ACTION_SERVER_PATCH: function() {\n return ACTION_SERVER_PATCH;\n },\n ACTION_PREFETCH: function() {\n return ACTION_PREFETCH;\n },\n ACTION_FAST_REFRESH: function() {\n return ACTION_FAST_REFRESH;\n },\n ACTION_SERVER_ACTION: function() {\n return ACTION_SERVER_ACTION;\n }\n});\nconst ACTION_REFRESH = \"refresh\";\nconst ACTION_NAVIGATE = \"navigate\";\nconst ACTION_RESTORE = \"restore\";\nconst ACTION_SERVER_PATCH = \"server-patch\";\nconst ACTION_PREFETCH = \"prefetch\";\nconst ACTION_FAST_REFRESH = \"fast-refresh\";\nconst ACTION_SERVER_ACTION = \"server-action\";\nvar PrefetchKind;\n(function(PrefetchKind) {\n PrefetchKind[\"AUTO\"] = \"auto\";\n PrefetchKind[\"FULL\"] = \"full\";\n PrefetchKind[\"TEMPORARY\"] = \"temporary\";\n})(PrefetchKind || (PrefetchKind = {}));\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=router-reducer-types.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"getDomainLocale\", {\n enumerable: true,\n get: function() {\n return getDomainLocale;\n }\n});\nconst _normalizetrailingslash = require(\"./normalize-trailing-slash\");\nconst basePath = process.env.__NEXT_ROUTER_BASEPATH || \"\";\nfunction getDomainLocale(path, locale, locales, domainLocales) {\n if (process.env.__NEXT_I18N_SUPPORT) {\n const normalizeLocalePath = require(\"./normalize-locale-path\").normalizeLocalePath;\n const detectDomainLocale = require(\"./detect-domain-locale\").detectDomainLocale;\n const target = locale || normalizeLocalePath(path, locales).detectedLocale;\n const domain = detectDomainLocale(domainLocales, undefined, target);\n if (domain) {\n const proto = \"http\" + (domain.http ? \"\" : \"s\") + \"://\";\n const finalLocale = target === domain.defaultLocale ? \"\" : \"/\" + target;\n return \"\" + proto + domain.domain + (0, _normalizetrailingslash.normalizePathTrailingSlash)(\"\" + basePath + finalLocale + path);\n }\n return false;\n } else {\n return false;\n }\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=get-domain-locale.js.map","\"use client\";\n\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"Image\", {\n enumerable: true,\n get: function() {\n return Image;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst _reactdom = /*#__PURE__*/ _interop_require_default._(require(\"react-dom\"));\nconst _head = /*#__PURE__*/ _interop_require_default._(require(\"../shared/lib/head\"));\nconst _getimgprops = require(\"../shared/lib/get-img-props\");\nconst _imageconfig = require(\"../shared/lib/image-config\");\nconst _imageconfigcontextsharedruntime = require(\"../shared/lib/image-config-context.shared-runtime\");\nconst _warnonce = require(\"../shared/lib/utils/warn-once\");\nconst _routercontextsharedruntime = require(\"../shared/lib/router-context.shared-runtime\");\nconst _imageloader = /*#__PURE__*/ _interop_require_default._(require(\"next/dist/shared/lib/image-loader\"));\n// This is replaced by webpack define plugin\nconst configEnv = process.env.__NEXT_IMAGE_OPTS;\nif (typeof window === \"undefined\") {\n globalThis.__NEXT_IMAGE_IMPORTED = true;\n}\n// See https://stackoverflow.com/q/39777833/266535 for why we use this ref\n// handler instead of the img's onLoad attribute.\nfunction handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized) {\n const src = img == null ? void 0 : img.src;\n if (!img || img[\"data-loaded-src\"] === src) {\n return;\n }\n img[\"data-loaded-src\"] = src;\n const p = \"decode\" in img ? img.decode() : Promise.resolve();\n p.catch(()=>{}).then(()=>{\n if (!img.parentElement || !img.isConnected) {\n // Exit early in case of race condition:\n // - onload() is called\n // - decode() is called but incomplete\n // - unmount is called\n // - decode() completes\n return;\n }\n if (placeholder !== \"empty\") {\n setBlurComplete(true);\n }\n if (onLoadRef == null ? void 0 : onLoadRef.current) {\n // Since we don't have the SyntheticEvent here,\n // we must create one with the same shape.\n // See https://reactjs.org/docs/events.html\n const event = new Event(\"load\");\n Object.defineProperty(event, \"target\", {\n writable: false,\n value: img\n });\n let prevented = false;\n let stopped = false;\n onLoadRef.current({\n ...event,\n nativeEvent: event,\n currentTarget: img,\n target: img,\n isDefaultPrevented: ()=>prevented,\n isPropagationStopped: ()=>stopped,\n persist: ()=>{},\n preventDefault: ()=>{\n prevented = true;\n event.preventDefault();\n },\n stopPropagation: ()=>{\n stopped = true;\n event.stopPropagation();\n }\n });\n }\n if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {\n onLoadingCompleteRef.current(img);\n }\n if (process.env.NODE_ENV !== \"production\") {\n const origSrc = new URL(src, \"http://n\").searchParams.get(\"url\") || src;\n if (img.getAttribute(\"data-nimg\") === \"fill\") {\n if (!unoptimized && (!img.getAttribute(\"sizes\") || img.getAttribute(\"sizes\") === \"100vw\")) {\n let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;\n if (widthViewportRatio < 0.6) {\n (0, _warnonce.warnOnce)('Image with src \"' + origSrc + '\" has \"fill\" but is missing \"sizes\" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes');\n }\n }\n if (img.parentElement) {\n const { position } = window.getComputedStyle(img.parentElement);\n const valid = [\n \"absolute\",\n \"fixed\",\n \"relative\"\n ];\n if (!valid.includes(position)) {\n (0, _warnonce.warnOnce)('Image with src \"' + origSrc + '\" has \"fill\" and parent element with invalid \"position\". Provided \"' + position + '\" should be one of ' + valid.map(String).join(\",\") + \".\");\n }\n }\n if (img.height === 0) {\n (0, _warnonce.warnOnce)('Image with src \"' + origSrc + '\" has \"fill\" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');\n }\n }\n const heightModified = img.height.toString() !== img.getAttribute(\"height\");\n const widthModified = img.width.toString() !== img.getAttribute(\"width\");\n if (heightModified && !widthModified || !heightModified && widthModified) {\n (0, _warnonce.warnOnce)('Image with src \"' + origSrc + '\" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles \\'width: \"auto\"\\' or \\'height: \"auto\"\\' to maintain the aspect ratio.');\n }\n }\n });\n}\nfunction getDynamicProps(fetchPriority) {\n const [majorStr, minorStr] = _react.version.split(\".\");\n const major = parseInt(majorStr, 10);\n const minor = parseInt(minorStr, 10);\n if (major > 18 || major === 18 && minor >= 3) {\n // In React 18.3.0 or newer, we must use camelCase\n // prop to avoid \"Warning: Invalid DOM property\".\n // See https://github.com/facebook/react/pull/25927\n return {\n fetchPriority\n };\n }\n // In React 18.2.0 or older, we must use lowercase prop\n // to avoid \"Warning: Invalid DOM property\".\n return {\n fetchpriority: fetchPriority\n };\n}\nconst ImageElement = /*#__PURE__*/ (0, _react.forwardRef)((param, forwardedRef)=>{\n let { src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, onLoad, onError, ...rest } = param;\n return /*#__PURE__*/ _react.default.createElement(\"img\", {\n ...rest,\n ...getDynamicProps(fetchPriority),\n // It's intended to keep `loading` before `src` because React updates\n // props in order which causes Safari/Firefox to not lazy load properly.\n // See https://github.com/facebook/react/issues/25883\n loading: loading,\n width: width,\n height: height,\n decoding: decoding,\n \"data-nimg\": fill ? \"fill\" : \"1\",\n className: className,\n style: style,\n // It's intended to keep `src` the last attribute because React updates\n // attributes in order. If we keep `src` the first one, Safari will\n // immediately start to fetch `src`, before `sizes` and `srcSet` are even\n // updated by React. That causes multiple unnecessary requests if `srcSet`\n // and `sizes` are defined.\n // This bug cannot be reproduced in Chrome or Firefox.\n sizes: sizes,\n srcSet: srcSet,\n src: src,\n ref: (0, _react.useCallback)((img)=>{\n if (forwardedRef) {\n if (typeof forwardedRef === \"function\") forwardedRef(img);\n else if (typeof forwardedRef === \"object\") {\n // @ts-ignore - .current is read only it's usually assigned by react internally\n forwardedRef.current = img;\n }\n }\n if (!img) {\n return;\n }\n if (onError) {\n // If the image has an error before react hydrates, then the error is lost.\n // The workaround is to wait until the image is mounted which is after hydration,\n // then we set the src again to trigger the error handler (if there was an error).\n // eslint-disable-next-line no-self-assign\n img.src = img.src;\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (!src) {\n console.error('Image is missing required \"src\" property:', img);\n }\n if (img.getAttribute(\"alt\") === null) {\n console.error('Image is missing required \"alt\" property. Please add Alternative Text to describe the image for screen readers and search engines.');\n }\n }\n if (img.complete) {\n handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized);\n }\n }, [\n src,\n placeholder,\n onLoadRef,\n onLoadingCompleteRef,\n setBlurComplete,\n onError,\n unoptimized,\n forwardedRef\n ]),\n onLoad: (event)=>{\n const img = event.currentTarget;\n handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized);\n },\n onError: (event)=>{\n // if the real image fails to load, this will ensure \"alt\" is visible\n setShowAltText(true);\n if (placeholder !== \"empty\") {\n // If the real image fails to load, this will still remove the placeholder.\n setBlurComplete(true);\n }\n if (onError) {\n onError(event);\n }\n }\n });\n});\nfunction ImagePreload(param) {\n let { isAppRouter, imgAttributes } = param;\n const opts = {\n as: \"image\",\n imageSrcSet: imgAttributes.srcSet,\n imageSizes: imgAttributes.sizes,\n crossOrigin: imgAttributes.crossOrigin,\n referrerPolicy: imgAttributes.referrerPolicy,\n ...getDynamicProps(imgAttributes.fetchPriority)\n };\n if (isAppRouter && _reactdom.default.preload) {\n // See https://github.com/facebook/react/pull/26940\n _reactdom.default.preload(imgAttributes.src, // @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`\n opts);\n return null;\n }\n return /*#__PURE__*/ _react.default.createElement(_head.default, null, /*#__PURE__*/ _react.default.createElement(\"link\", {\n key: \"__nimg-\" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes,\n rel: \"preload\",\n // Note how we omit the `href` attribute, as it would only be relevant\n // for browsers that do not support `imagesrcset`, and in those cases\n // it would cause the incorrect image to be preloaded.\n //\n // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset\n href: imgAttributes.srcSet ? undefined : imgAttributes.src,\n ...opts\n }));\n}\nconst Image = /*#__PURE__*/ (0, _react.forwardRef)((props, forwardedRef)=>{\n const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);\n // We're in the app directory if there is no pages router.\n const isAppRouter = !pagesRouter;\n const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);\n const config = (0, _react.useMemo)(()=>{\n const c = configEnv || configContext || _imageconfig.imageConfigDefault;\n const allSizes = [\n ...c.deviceSizes,\n ...c.imageSizes\n ].sort((a, b)=>a - b);\n const deviceSizes = c.deviceSizes.sort((a, b)=>a - b);\n return {\n ...c,\n allSizes,\n deviceSizes\n };\n }, [\n configContext\n ]);\n const { onLoad, onLoadingComplete } = props;\n const onLoadRef = (0, _react.useRef)(onLoad);\n (0, _react.useEffect)(()=>{\n onLoadRef.current = onLoad;\n }, [\n onLoad\n ]);\n const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);\n (0, _react.useEffect)(()=>{\n onLoadingCompleteRef.current = onLoadingComplete;\n }, [\n onLoadingComplete\n ]);\n const [blurComplete, setBlurComplete] = (0, _react.useState)(false);\n const [showAltText, setShowAltText] = (0, _react.useState)(false);\n const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {\n defaultLoader: _imageloader.default,\n imgConf: config,\n blurComplete,\n showAltText\n });\n return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement(ImageElement, {\n ...imgAttributes,\n unoptimized: imgMeta.unoptimized,\n placeholder: imgMeta.placeholder,\n fill: imgMeta.fill,\n onLoadRef: onLoadRef,\n onLoadingCompleteRef: onLoadingCompleteRef,\n setBlurComplete: setBlurComplete,\n setShowAltText: setShowAltText,\n ref: forwardedRef\n }), imgMeta.priority ? /*#__PURE__*/ _react.default.createElement(ImagePreload, {\n isAppRouter: isAppRouter,\n imgAttributes: imgAttributes\n }) : null);\n});\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=image-component.js.map","\"use client\";\n\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst _resolvehref = require(\"./resolve-href\");\nconst _islocalurl = require(\"../shared/lib/router/utils/is-local-url\");\nconst _formaturl = require(\"../shared/lib/router/utils/format-url\");\nconst _utils = require(\"../shared/lib/utils\");\nconst _addlocale = require(\"./add-locale\");\nconst _routercontextsharedruntime = require(\"../shared/lib/router-context.shared-runtime\");\nconst _approutercontextsharedruntime = require(\"../shared/lib/app-router-context.shared-runtime\");\nconst _useintersection = require(\"./use-intersection\");\nconst _getdomainlocale = require(\"./get-domain-locale\");\nconst _addbasepath = require(\"./add-base-path\");\nconst _routerreducertypes = require(\"./components/router-reducer/router-reducer-types\");\nconst prefetched = new Set();\nfunction prefetch(router, href, as, options, appOptions, isAppRouter) {\n if (typeof window === \"undefined\") {\n return;\n }\n // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.\n if (!isAppRouter && !(0, _islocalurl.isLocalURL)(href)) {\n return;\n }\n // We should only dedupe requests when experimental.optimisticClientCache is\n // disabled.\n if (!options.bypassPrefetchedCheck) {\n const locale = // Let the link's locale prop override the default router locale.\n typeof options.locale !== \"undefined\" ? options.locale : \"locale\" in router ? router.locale : undefined;\n const prefetchedKey = href + \"%\" + as + \"%\" + locale;\n // If we've already fetched the key, then don't prefetch it again!\n if (prefetched.has(prefetchedKey)) {\n return;\n }\n // Mark this URL as prefetched.\n prefetched.add(prefetchedKey);\n }\n const prefetchPromise = isAppRouter ? router.prefetch(href, appOptions) : router.prefetch(href, as, options);\n // Prefetch the JSON page if asked (only in the client)\n // We need to handle a prefetch error here since we may be\n // loading with priority which can reject but we don't\n // want to force navigation since this is only a prefetch\n Promise.resolve(prefetchPromise).catch((err)=>{\n if (process.env.NODE_ENV !== \"production\") {\n // rethrow to show invalid URL errors\n throw err;\n }\n });\n}\nfunction isModifiedEvent(event) {\n const eventTarget = event.currentTarget;\n const target = eventTarget.getAttribute(\"target\");\n return target && target !== \"_self\" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download\n event.nativeEvent && event.nativeEvent.which === 2;\n}\nfunction linkClicked(e, router, href, as, replace, shallow, scroll, locale, isAppRouter, prefetchEnabled) {\n const { nodeName } = e.currentTarget;\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === \"A\";\n if (isAnchorNodeName && (isModifiedEvent(e) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.\n !isAppRouter && !(0, _islocalurl.isLocalURL)(href))) {\n // ignore click for browser’s default behavior\n return;\n }\n e.preventDefault();\n const navigate = ()=>{\n // If the router is an NextRouter instance it will have `beforePopState`\n const routerScroll = scroll != null ? scroll : true;\n if (\"beforePopState\" in router) {\n router[replace ? \"replace\" : \"push\"](href, as, {\n shallow,\n locale,\n scroll: routerScroll\n });\n } else {\n router[replace ? \"replace\" : \"push\"](as || href, {\n forceOptimisticNavigation: !prefetchEnabled,\n scroll: routerScroll\n });\n }\n };\n if (isAppRouter) {\n _react.default.startTransition(navigate);\n } else {\n navigate();\n }\n}\nfunction formatStringOrUrl(urlObjOrString) {\n if (typeof urlObjOrString === \"string\") {\n return urlObjOrString;\n }\n return (0, _formaturl.formatUrl)(urlObjOrString);\n}\n/**\n * React Component that enables client-side transitions between routes.\n */ const Link = /*#__PURE__*/ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {\n let children;\n const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, ...restProps } = props;\n children = childrenProp;\n if (legacyBehavior && (typeof children === \"string\" || typeof children === \"number\")) {\n children = /*#__PURE__*/ _react.default.createElement(\"a\", null, children);\n }\n const pagesRouter = _react.default.useContext(_routercontextsharedruntime.RouterContext);\n const appRouter = _react.default.useContext(_approutercontextsharedruntime.AppRouterContext);\n const router = pagesRouter != null ? pagesRouter : appRouter;\n // We're in the app directory if there is no pages router.\n const isAppRouter = !pagesRouter;\n const prefetchEnabled = prefetchProp !== false;\n /**\n * The possible states for prefetch are:\n * - null: this is the default \"auto\" mode, where we will prefetch partially if the link is in the viewport\n * - true: we will prefetch if the link is visible and prefetch the full page, not just partially\n * - false: we will not prefetch if in the viewport at all\n */ const appPrefetchKind = prefetchProp === null ? _routerreducertypes.PrefetchKind.AUTO : _routerreducertypes.PrefetchKind.FULL;\n if (process.env.NODE_ENV !== \"production\") {\n function createPropError(args) {\n return new Error(\"Failed prop type: The prop `\" + args.key + \"` expects a \" + args.expected + \" in ``, but got `\" + args.actual + \"` instead.\" + (typeof window !== \"undefined\" ? \"\\nOpen your browser's console to view the Component stack trace.\" : \"\"));\n }\n // TypeScript trick for type-guarding:\n const requiredPropsGuard = {\n href: true\n };\n const requiredProps = Object.keys(requiredPropsGuard);\n requiredProps.forEach((key)=>{\n if (key === \"href\") {\n if (props[key] == null || typeof props[key] !== \"string\" && typeof props[key] !== \"object\") {\n throw createPropError({\n key,\n expected: \"`string` or `object`\",\n actual: props[key] === null ? \"null\" : typeof props[key]\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // TypeScript trick for type-guarding:\n const optionalPropsGuard = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n locale: true,\n onClick: true,\n onMouseEnter: true,\n onTouchStart: true,\n legacyBehavior: true\n };\n const optionalProps = Object.keys(optionalPropsGuard);\n optionalProps.forEach((key)=>{\n const valType = typeof props[key];\n if (key === \"as\") {\n if (props[key] && valType !== \"string\" && valType !== \"object\") {\n throw createPropError({\n key,\n expected: \"`string` or `object`\",\n actual: valType\n });\n }\n } else if (key === \"locale\") {\n if (props[key] && valType !== \"string\") {\n throw createPropError({\n key,\n expected: \"`string`\",\n actual: valType\n });\n }\n } else if (key === \"onClick\" || key === \"onMouseEnter\" || key === \"onTouchStart\") {\n if (props[key] && valType !== \"function\") {\n throw createPropError({\n key,\n expected: \"`function`\",\n actual: valType\n });\n }\n } else if (key === \"replace\" || key === \"scroll\" || key === \"shallow\" || key === \"passHref\" || key === \"prefetch\" || key === \"legacyBehavior\") {\n if (props[key] != null && valType !== \"boolean\") {\n throw createPropError({\n key,\n expected: \"`boolean`\",\n actual: valType\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // This hook is in a conditional but that is ok because `process.env.NODE_ENV` never changes\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const hasWarned = _react.default.useRef(false);\n if (props.prefetch && !hasWarned.current && !isAppRouter) {\n hasWarned.current = true;\n console.warn(\"Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated\");\n }\n }\n if (process.env.NODE_ENV !== \"production\") {\n if (isAppRouter && !asProp) {\n let href;\n if (typeof hrefProp === \"string\") {\n href = hrefProp;\n } else if (typeof hrefProp === \"object\" && typeof hrefProp.pathname === \"string\") {\n href = hrefProp.pathname;\n }\n if (href) {\n const hasDynamicSegment = href.split(\"/\").some((segment)=>segment.startsWith(\"[\") && segment.endsWith(\"]\"));\n if (hasDynamicSegment) {\n throw new Error(\"Dynamic href `\" + href + \"` found in while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href\");\n }\n }\n }\n }\n const { href, as } = _react.default.useMemo(()=>{\n if (!pagesRouter) {\n const resolvedHref = formatStringOrUrl(hrefProp);\n return {\n href: resolvedHref,\n as: asProp ? formatStringOrUrl(asProp) : resolvedHref\n };\n }\n const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(pagesRouter, hrefProp, true);\n return {\n href: resolvedHref,\n as: asProp ? (0, _resolvehref.resolveHref)(pagesRouter, asProp) : resolvedAs || resolvedHref\n };\n }, [\n pagesRouter,\n hrefProp,\n asProp\n ]);\n const previousHref = _react.default.useRef(href);\n const previousAs = _react.default.useRef(as);\n // This will return the first child, if multiple are provided it will throw an error\n let child;\n if (legacyBehavior) {\n if (process.env.NODE_ENV === \"development\") {\n if (onClick) {\n console.warn('\"onClick\" was passed to with `href` of `' + hrefProp + '` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link');\n }\n if (onMouseEnterProp) {\n console.warn('\"onMouseEnter\" was passed to with `href` of `' + hrefProp + '` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');\n }\n try {\n child = _react.default.Children.only(children);\n } catch (err) {\n if (!children) {\n throw new Error(\"No children were passed to with `href` of `\" + hrefProp + \"` but one child is required https://nextjs.org/docs/messages/link-no-children\");\n }\n throw new Error(\"Multiple children were passed to with `href` of `\" + hrefProp + \"` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children\" + (typeof window !== \"undefined\" ? \" \\nOpen your browser's console to view the Component stack trace.\" : \"\"));\n }\n } else {\n child = _react.default.Children.only(children);\n }\n } else {\n if (process.env.NODE_ENV === \"development\") {\n if ((children == null ? void 0 : children.type) === \"a\") {\n throw new Error(\"Invalid with child. Please remove or use .\\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor\");\n }\n }\n }\n const childRef = legacyBehavior ? child && typeof child === \"object\" && child.ref : forwardedRef;\n const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({\n rootMargin: \"200px\"\n });\n const setRef = _react.default.useCallback((el)=>{\n // Before the link getting observed, check if visible state need to be reset\n if (previousAs.current !== as || previousHref.current !== href) {\n resetVisible();\n previousAs.current = as;\n previousHref.current = href;\n }\n setIntersectionRef(el);\n if (childRef) {\n if (typeof childRef === \"function\") childRef(el);\n else if (typeof childRef === \"object\") {\n childRef.current = el;\n }\n }\n }, [\n as,\n childRef,\n href,\n resetVisible,\n setIntersectionRef\n ]);\n // Prefetch the URL if we haven't already and it's visible.\n _react.default.useEffect(()=>{\n // in dev, we only prefetch on hover to avoid wasting resources as the prefetch will trigger compiling the page.\n if (process.env.NODE_ENV !== \"production\") {\n return;\n }\n if (!router) {\n return;\n }\n // If we don't need to prefetch the URL, don't do prefetch.\n if (!isVisible || !prefetchEnabled) {\n return;\n }\n // Prefetch the URL.\n prefetch(router, href, as, {\n locale\n }, {\n kind: appPrefetchKind\n }, isAppRouter);\n }, [\n as,\n href,\n isVisible,\n locale,\n prefetchEnabled,\n pagesRouter == null ? void 0 : pagesRouter.locale,\n router,\n isAppRouter,\n appPrefetchKind\n ]);\n const childProps = {\n ref: setRef,\n onClick (e) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!e) {\n throw new Error('Component rendered inside next/link has to pass click event to \"onClick\" prop.');\n }\n }\n if (!legacyBehavior && typeof onClick === \"function\") {\n onClick(e);\n }\n if (legacyBehavior && child.props && typeof child.props.onClick === \"function\") {\n child.props.onClick(e);\n }\n if (!router) {\n return;\n }\n if (e.defaultPrevented) {\n return;\n }\n linkClicked(e, router, href, as, replace, shallow, scroll, locale, isAppRouter, prefetchEnabled);\n },\n onMouseEnter (e) {\n if (!legacyBehavior && typeof onMouseEnterProp === \"function\") {\n onMouseEnterProp(e);\n }\n if (legacyBehavior && child.props && typeof child.props.onMouseEnter === \"function\") {\n child.props.onMouseEnter(e);\n }\n if (!router) {\n return;\n }\n if ((!prefetchEnabled || process.env.NODE_ENV === \"development\") && isAppRouter) {\n return;\n }\n prefetch(router, href, as, {\n locale,\n priority: true,\n // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}\n bypassPrefetchedCheck: true\n }, {\n kind: appPrefetchKind\n }, isAppRouter);\n },\n onTouchStart (e) {\n if (!legacyBehavior && typeof onTouchStartProp === \"function\") {\n onTouchStartProp(e);\n }\n if (legacyBehavior && child.props && typeof child.props.onTouchStart === \"function\") {\n child.props.onTouchStart(e);\n }\n if (!router) {\n return;\n }\n if (!prefetchEnabled && isAppRouter) {\n return;\n }\n prefetch(router, href, as, {\n locale,\n priority: true,\n // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}\n bypassPrefetchedCheck: true\n }, {\n kind: appPrefetchKind\n }, isAppRouter);\n }\n };\n // If child is an tag and doesn't have a href attribute, or if the 'passHref' property is\n // defined, we specify the current 'href', so that repetition is not needed by the user.\n // If the url is absolute, we can bypass the logic to prepend the domain and locale.\n if ((0, _utils.isAbsoluteUrl)(as)) {\n childProps.href = as;\n } else if (!legacyBehavior || passHref || child.type === \"a\" && !(\"href\" in child.props)) {\n const curLocale = typeof locale !== \"undefined\" ? locale : pagesRouter == null ? void 0 : pagesRouter.locale;\n // we only render domain locales if we are currently on a domain locale\n // so that locale links are still visitable in development/preview envs\n const localeDomain = (pagesRouter == null ? void 0 : pagesRouter.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, pagesRouter == null ? void 0 : pagesRouter.locales, pagesRouter == null ? void 0 : pagesRouter.domainLocales);\n childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, pagesRouter == null ? void 0 : pagesRouter.defaultLocale));\n }\n return legacyBehavior ? /*#__PURE__*/ _react.default.cloneElement(child, childProps) : /*#__PURE__*/ _react.default.createElement(\"a\", {\n ...restProps,\n ...childProps\n }, children);\n});\nconst _default = Link;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=link.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"normalizeLocalePath\", {\n enumerable: true,\n get: function() {\n return normalizeLocalePath;\n }\n});\nconst normalizeLocalePath = (pathname, locales)=>{\n if (process.env.__NEXT_I18N_SUPPORT) {\n return require(\"../shared/lib/i18n/normalize-locale-path\").normalizeLocalePath(pathname, locales);\n }\n return {\n pathname,\n detectedLocale: undefined\n };\n};\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=normalize-locale-path.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"useIntersection\", {\n enumerable: true,\n get: function() {\n return useIntersection;\n }\n});\nconst _react = require(\"react\");\nconst _requestidlecallback = require(\"./request-idle-callback\");\nconst hasIntersectionObserver = typeof IntersectionObserver === \"function\";\nconst observers = new Map();\nconst idList = [];\nfunction createObserver(options) {\n const id = {\n root: options.root || null,\n margin: options.rootMargin || \"\"\n };\n const existing = idList.find((obj)=>obj.root === id.root && obj.margin === id.margin);\n let instance;\n if (existing) {\n instance = observers.get(existing);\n if (instance) {\n return instance;\n }\n }\n const elements = new Map();\n const observer = new IntersectionObserver((entries)=>{\n entries.forEach((entry)=>{\n const callback = elements.get(entry.target);\n const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;\n if (callback && isVisible) {\n callback(isVisible);\n }\n });\n }, options);\n instance = {\n id,\n observer,\n elements\n };\n idList.push(id);\n observers.set(id, instance);\n return instance;\n}\nfunction observe(element, callback, options) {\n const { id, observer, elements } = createObserver(options);\n elements.set(element, callback);\n observer.observe(element);\n return function unobserve() {\n elements.delete(element);\n observer.unobserve(element);\n // Destroy observer when there's nothing left to watch:\n if (elements.size === 0) {\n observer.disconnect();\n observers.delete(id);\n const index = idList.findIndex((obj)=>obj.root === id.root && obj.margin === id.margin);\n if (index > -1) {\n idList.splice(index, 1);\n }\n }\n };\n}\nfunction useIntersection(param) {\n let { rootRef, rootMargin, disabled } = param;\n const isDisabled = disabled || !hasIntersectionObserver;\n const [visible, setVisible] = (0, _react.useState)(false);\n const elementRef = (0, _react.useRef)(null);\n const setElement = (0, _react.useCallback)((element)=>{\n elementRef.current = element;\n }, []);\n (0, _react.useEffect)(()=>{\n if (hasIntersectionObserver) {\n if (isDisabled || visible) return;\n const element = elementRef.current;\n if (element && element.tagName) {\n const unobserve = observe(element, (isVisible)=>isVisible && setVisible(isVisible), {\n root: rootRef == null ? void 0 : rootRef.current,\n rootMargin\n });\n return unobserve;\n }\n } else {\n if (!visible) {\n const idleCallback = (0, _requestidlecallback.requestIdleCallback)(()=>setVisible(true));\n return ()=>(0, _requestidlecallback.cancelIdleCallback)(idleCallback);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n isDisabled,\n rootMargin,\n rootRef,\n visible,\n elementRef.current\n ]);\n const resetVisible = (0, _react.useCallback)(()=>{\n setVisible(false);\n }, []);\n return [\n setElement,\n visible,\n resetVisible\n ];\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=use-intersection.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"getImgProps\", {\n enumerable: true,\n get: function() {\n return getImgProps;\n }\n});\nconst _warnonce = require(\"./utils/warn-once\");\nconst _imageblursvg = require(\"./image-blur-svg\");\nconst _imageconfig = require(\"./image-config\");\nconst VALID_LOADING_VALUES = [\n \"lazy\",\n \"eager\",\n undefined\n];\nfunction isStaticRequire(src) {\n return src.default !== undefined;\n}\nfunction isStaticImageData(src) {\n return src.src !== undefined;\n}\nfunction isStaticImport(src) {\n return typeof src === \"object\" && (isStaticRequire(src) || isStaticImageData(src));\n}\nconst allImgs = new Map();\nlet perfObserver;\nfunction getInt(x) {\n if (typeof x === \"undefined\") {\n return x;\n }\n if (typeof x === \"number\") {\n return Number.isFinite(x) ? x : NaN;\n }\n if (typeof x === \"string\" && /^[0-9]+$/.test(x)) {\n return parseInt(x, 10);\n }\n return NaN;\n}\nfunction getWidths(param, width, sizes) {\n let { deviceSizes, allSizes } = param;\n if (sizes) {\n // Find all the \"vw\" percent sizes used in the sizes prop\n const viewportWidthRe = /(^|\\s)(1?\\d?\\d)vw/g;\n const percentSizes = [];\n for(let match; match = viewportWidthRe.exec(sizes); match){\n percentSizes.push(parseInt(match[2]));\n }\n if (percentSizes.length) {\n const smallestRatio = Math.min(...percentSizes) * 0.01;\n return {\n widths: allSizes.filter((s)=>s >= deviceSizes[0] * smallestRatio),\n kind: \"w\"\n };\n }\n return {\n widths: allSizes,\n kind: \"w\"\n };\n }\n if (typeof width !== \"number\") {\n return {\n widths: deviceSizes,\n kind: \"w\"\n };\n }\n const widths = [\n ...new Set(// > This means that most OLED screens that say they are 3x resolution,\n // > are actually 3x in the green color, but only 1.5x in the red and\n // > blue colors. Showing a 3x resolution image in the app vs a 2x\n // > resolution image will be visually the same, though the 3x image\n // > takes significantly more data. Even true 3x resolution screens are\n // > wasteful as the human eye cannot see that level of detail without\n // > something like a magnifying glass.\n // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html\n [\n width,\n width * 2 /*, width * 3*/ \n ].map((w)=>allSizes.find((p)=>p >= w) || allSizes[allSizes.length - 1]))\n ];\n return {\n widths,\n kind: \"x\"\n };\n}\nfunction generateImgAttrs(param) {\n let { config, src, unoptimized, width, quality, sizes, loader } = param;\n if (unoptimized) {\n return {\n src,\n srcSet: undefined,\n sizes: undefined\n };\n }\n const { widths, kind } = getWidths(config, width, sizes);\n const last = widths.length - 1;\n return {\n sizes: !sizes && kind === \"w\" ? \"100vw\" : sizes,\n srcSet: widths.map((w, i)=>loader({\n config,\n src,\n quality,\n width: w\n }) + \" \" + (kind === \"w\" ? w : i + 1) + kind).join(\", \"),\n // It's intended to keep `src` the last attribute because React updates\n // attributes in order. If we keep `src` the first one, Safari will\n // immediately start to fetch `src`, before `sizes` and `srcSet` are even\n // updated by React. That causes multiple unnecessary requests if `srcSet`\n // and `sizes` are defined.\n // This bug cannot be reproduced in Chrome or Firefox.\n src: loader({\n config,\n src,\n quality,\n width: widths[last]\n })\n };\n}\nfunction getImgProps(param, _state) {\n let { src, sizes, unoptimized = false, priority = false, loading, className, quality, width, height, fill = false, style, onLoad, onLoadingComplete, placeholder = \"empty\", blurDataURL, fetchPriority, layout, objectFit, objectPosition, lazyBoundary, lazyRoot, ...rest } = param;\n const { imgConf, showAltText, blurComplete, defaultLoader } = _state;\n let config;\n let c = imgConf || _imageconfig.imageConfigDefault;\n if (\"allSizes\" in c) {\n config = c;\n } else {\n const allSizes = [\n ...c.deviceSizes,\n ...c.imageSizes\n ].sort((a, b)=>a - b);\n const deviceSizes = c.deviceSizes.sort((a, b)=>a - b);\n config = {\n ...c,\n allSizes,\n deviceSizes\n };\n }\n let loader = rest.loader || defaultLoader;\n // Remove property so it's not spread on element\n delete rest.loader;\n delete rest.srcSet;\n // This special value indicates that the user\n // didn't define a \"loader\" prop or \"loader\" config.\n const isDefaultLoader = \"__next_img_default\" in loader;\n if (isDefaultLoader) {\n if (config.loader === \"custom\") {\n throw new Error('Image with src \"' + src + '\" is missing \"loader\" prop.' + \"\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader\");\n }\n } else {\n // The user defined a \"loader\" prop or config.\n // Since the config object is internal only, we\n // must not pass it to the user-defined \"loader\".\n const customImageLoader = loader;\n loader = (obj)=>{\n const { config: _, ...opts } = obj;\n return customImageLoader(opts);\n };\n }\n if (layout) {\n if (layout === \"fill\") {\n fill = true;\n }\n const layoutToStyle = {\n intrinsic: {\n maxWidth: \"100%\",\n height: \"auto\"\n },\n responsive: {\n width: \"100%\",\n height: \"auto\"\n }\n };\n const layoutToSizes = {\n responsive: \"100vw\",\n fill: \"100vw\"\n };\n const layoutStyle = layoutToStyle[layout];\n if (layoutStyle) {\n style = {\n ...style,\n ...layoutStyle\n };\n }\n const layoutSizes = layoutToSizes[layout];\n if (layoutSizes && !sizes) {\n sizes = layoutSizes;\n }\n }\n let staticSrc = \"\";\n let widthInt = getInt(width);\n let heightInt = getInt(height);\n let blurWidth;\n let blurHeight;\n if (isStaticImport(src)) {\n const staticImageData = isStaticRequire(src) ? src.default : src;\n if (!staticImageData.src) {\n throw new Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received \" + JSON.stringify(staticImageData));\n }\n if (!staticImageData.height || !staticImageData.width) {\n throw new Error(\"An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received \" + JSON.stringify(staticImageData));\n }\n blurWidth = staticImageData.blurWidth;\n blurHeight = staticImageData.blurHeight;\n blurDataURL = blurDataURL || staticImageData.blurDataURL;\n staticSrc = staticImageData.src;\n if (!fill) {\n if (!widthInt && !heightInt) {\n widthInt = staticImageData.width;\n heightInt = staticImageData.height;\n } else if (widthInt && !heightInt) {\n const ratio = widthInt / staticImageData.width;\n heightInt = Math.round(staticImageData.height * ratio);\n } else if (!widthInt && heightInt) {\n const ratio = heightInt / staticImageData.height;\n widthInt = Math.round(staticImageData.width * ratio);\n }\n }\n }\n src = typeof src === \"string\" ? src : staticSrc;\n let isLazy = !priority && (loading === \"lazy\" || typeof loading === \"undefined\");\n if (!src || src.startsWith(\"data:\") || src.startsWith(\"blob:\")) {\n // https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\n unoptimized = true;\n isLazy = false;\n }\n if (config.unoptimized) {\n unoptimized = true;\n }\n if (isDefaultLoader && src.endsWith(\".svg\") && !config.dangerouslyAllowSVG) {\n // Special case to make svg serve as-is to avoid proxying\n // through the built-in Image Optimization API.\n unoptimized = true;\n }\n if (priority) {\n fetchPriority = \"high\";\n }\n const qualityInt = getInt(quality);\n if (process.env.NODE_ENV !== \"production\") {\n if (config.output === \"export\" && isDefaultLoader && !unoptimized) {\n throw new Error(\"Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\\n Possible solutions:\\n - Remove `{ output: 'export' }` and run \\\"next start\\\" to run server mode including the Image Optimization API.\\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\\n Read more: https://nextjs.org/docs/messages/export-image-api\");\n }\n if (!src) {\n // React doesn't show the stack trace and there's\n // no `src` to help identify which image, so we\n // instead console.error(ref) during mount.\n unoptimized = true;\n } else {\n if (fill) {\n if (width) {\n throw new Error('Image with src \"' + src + '\" has both \"width\" and \"fill\" properties. Only one should be used.');\n }\n if (height) {\n throw new Error('Image with src \"' + src + '\" has both \"height\" and \"fill\" properties. Only one should be used.');\n }\n if ((style == null ? void 0 : style.position) && style.position !== \"absolute\") {\n throw new Error('Image with src \"' + src + '\" has both \"fill\" and \"style.position\" properties. Images with \"fill\" always use position absolute - it cannot be modified.');\n }\n if ((style == null ? void 0 : style.width) && style.width !== \"100%\") {\n throw new Error('Image with src \"' + src + '\" has both \"fill\" and \"style.width\" properties. Images with \"fill\" always use width 100% - it cannot be modified.');\n }\n if ((style == null ? void 0 : style.height) && style.height !== \"100%\") {\n throw new Error('Image with src \"' + src + '\" has both \"fill\" and \"style.height\" properties. Images with \"fill\" always use height 100% - it cannot be modified.');\n }\n } else {\n if (typeof widthInt === \"undefined\") {\n throw new Error('Image with src \"' + src + '\" is missing required \"width\" property.');\n } else if (isNaN(widthInt)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"width\" property. Expected a numeric value in pixels but received \"' + width + '\".');\n }\n if (typeof heightInt === \"undefined\") {\n throw new Error('Image with src \"' + src + '\" is missing required \"height\" property.');\n } else if (isNaN(heightInt)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"height\" property. Expected a numeric value in pixels but received \"' + height + '\".');\n }\n }\n }\n if (!VALID_LOADING_VALUES.includes(loading)) {\n throw new Error('Image with src \"' + src + '\" has invalid \"loading\" property. Provided \"' + loading + '\" should be one of ' + VALID_LOADING_VALUES.map(String).join(\",\") + \".\");\n }\n if (priority && loading === \"lazy\") {\n throw new Error('Image with src \"' + src + '\" has both \"priority\" and \"loading=\\'lazy\\'\" properties. Only one should be used.');\n }\n if (placeholder !== \"empty\" && placeholder !== \"blur\" && !placeholder.startsWith(\"data:image/\")) {\n throw new Error('Image with src \"' + src + '\" has invalid \"placeholder\" property \"' + placeholder + '\".');\n }\n if (placeholder !== \"empty\") {\n if (widthInt && heightInt && widthInt * heightInt < 1600) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" is smaller than 40x40. Consider removing the \"placeholder\" property to improve performance.');\n }\n }\n if (placeholder === \"blur\" && !blurDataURL) {\n const VALID_BLUR_EXT = [\n \"jpeg\",\n \"png\",\n \"webp\",\n \"avif\"\n ] // should match next-image-loader\n ;\n throw new Error('Image with src \"' + src + '\" has \"placeholder=\\'blur\\'\" property but is missing the \"blurDataURL\" property.\\n Possible solutions:\\n - Add a \"blurDataURL\" property, the contents should be a small Data URL to represent the image\\n - Change the \"src\" property to a static import with one of the supported file types: ' + VALID_BLUR_EXT.join(\",\") + ' (animated images not supported)\\n - Remove the \"placeholder\" property, effectively no blur effect\\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url');\n }\n if (\"ref\" in rest) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" is using unsupported \"ref\" property. Consider using the \"onLoadingComplete\" property instead.');\n }\n if (!unoptimized && !isDefaultLoader) {\n const urlStr = loader({\n config,\n src,\n width: widthInt || 400,\n quality: qualityInt || 75\n });\n let url;\n try {\n url = new URL(urlStr);\n } catch (err) {}\n if (urlStr === src || url && url.pathname === src && !url.search) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" has a \"loader\" property that does not implement width. Please implement it or use the \"unoptimized\" property instead.' + \"\\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width\");\n }\n }\n for (const [legacyKey, legacyValue] of Object.entries({\n layout,\n objectFit,\n objectPosition,\n lazyBoundary,\n lazyRoot\n })){\n if (legacyValue) {\n (0, _warnonce.warnOnce)('Image with src \"' + src + '\" has legacy prop \"' + legacyKey + '\". Did you forget to run the codemod?' + \"\\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13\");\n }\n }\n if (typeof window !== \"undefined\" && !perfObserver && window.PerformanceObserver) {\n perfObserver = new PerformanceObserver((entryList)=>{\n for (const entry of entryList.getEntries()){\n var _entry_element;\n // @ts-ignore - missing \"LargestContentfulPaint\" class with \"element\" prop\n const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || \"\";\n const lcpImage = allImgs.get(imgSrc);\n if (lcpImage && !lcpImage.priority && lcpImage.placeholder === \"empty\" && !lcpImage.src.startsWith(\"data:\") && !lcpImage.src.startsWith(\"blob:\")) {\n // https://web.dev/lcp/#measure-lcp-in-javascript\n (0, _warnonce.warnOnce)('Image with src \"' + lcpImage.src + '\" was detected as the Largest Contentful Paint (LCP). Please add the \"priority\" property if this image is above the fold.' + \"\\nRead more: https://nextjs.org/docs/api-reference/next/image#priority\");\n }\n }\n });\n try {\n perfObserver.observe({\n type: \"largest-contentful-paint\",\n buffered: true\n });\n } catch (err) {\n // Log error but don't crash the app\n console.error(err);\n }\n }\n }\n const imgStyle = Object.assign(fill ? {\n position: \"absolute\",\n height: \"100%\",\n width: \"100%\",\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n objectFit,\n objectPosition\n } : {}, showAltText ? {} : {\n color: \"transparent\"\n }, style);\n const backgroundImage = !blurComplete && placeholder !== \"empty\" ? placeholder === \"blur\" ? 'url(\"data:image/svg+xml;charset=utf-8,' + (0, _imageblursvg.getImageBlurSvg)({\n widthInt,\n heightInt,\n blurWidth,\n blurHeight,\n blurDataURL: blurDataURL || \"\",\n objectFit: imgStyle.objectFit\n }) + '\")' : 'url(\"' + placeholder + '\")' // assume `data:image/`\n : null;\n let placeholderStyle = backgroundImage ? {\n backgroundSize: imgStyle.objectFit || \"cover\",\n backgroundPosition: imgStyle.objectPosition || \"50% 50%\",\n backgroundRepeat: \"no-repeat\",\n backgroundImage\n } : {};\n if (process.env.NODE_ENV === \"development\") {\n if (placeholderStyle.backgroundImage && placeholder === \"blur\" && (blurDataURL == null ? void 0 : blurDataURL.startsWith(\"/\"))) {\n // During `next dev`, we don't want to generate blur placeholders with webpack\n // because it can delay starting the dev server. Instead, `next-image-loader.js`\n // will inline a special url to lazily generate the blur placeholder at request time.\n placeholderStyle.backgroundImage = 'url(\"' + blurDataURL + '\")';\n }\n }\n const imgAttributes = generateImgAttrs({\n config,\n src,\n unoptimized,\n width: widthInt,\n quality: qualityInt,\n sizes,\n loader\n });\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== \"undefined\") {\n let fullUrl;\n try {\n fullUrl = new URL(imgAttributes.src);\n } catch (e) {\n fullUrl = new URL(imgAttributes.src, window.location.href);\n }\n allImgs.set(fullUrl.href, {\n src,\n priority,\n placeholder\n });\n }\n }\n const props = {\n ...rest,\n loading: isLazy ? \"lazy\" : loading,\n fetchPriority,\n width: widthInt,\n height: heightInt,\n decoding: \"async\",\n className,\n style: {\n ...imgStyle,\n ...placeholderStyle\n },\n sizes: imgAttributes.sizes,\n srcSet: imgAttributes.srcSet,\n src: imgAttributes.src\n };\n const meta = {\n unoptimized,\n priority,\n placeholder,\n fill\n };\n return {\n props,\n meta\n };\n}\n\n//# sourceMappingURL=get-img-props.js.map","/**\n * A shared function, used on both client and server, to generate a SVG blur placeholder.\n */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"getImageBlurSvg\", {\n enumerable: true,\n get: function() {\n return getImageBlurSvg;\n }\n});\nfunction getImageBlurSvg(param) {\n let { widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit } = param;\n const std = 20;\n const svgWidth = blurWidth ? blurWidth * 40 : widthInt;\n const svgHeight = blurHeight ? blurHeight * 40 : heightInt;\n const viewBox = svgWidth && svgHeight ? \"viewBox='0 0 \" + svgWidth + \" \" + svgHeight + \"'\" : \"\";\n const preserveAspectRatio = viewBox ? \"none\" : objectFit === \"contain\" ? \"xMidYMid\" : objectFit === \"cover\" ? \"xMidYMid slice\" : \"none\";\n return \"%3Csvg xmlns='http://www.w3.org/2000/svg' \" + viewBox + \"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='\" + std + \"'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='\" + std + \"'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='\" + preserveAspectRatio + \"' style='filter: url(%23b);' href='\" + blurDataURL + \"'/%3E%3C/svg%3E\";\n}\n\n//# sourceMappingURL=image-blur-svg.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n unstable_getImgProps: null,\n default: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n unstable_getImgProps: function() {\n return unstable_getImgProps;\n },\n default: function() {\n return _default;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _getimgprops = require(\"./get-img-props\");\nconst _warnonce = require(\"./utils/warn-once\");\nconst _imagecomponent = require(\"../../client/image-component\");\nconst _imageloader = /*#__PURE__*/ _interop_require_default._(require(\"next/dist/shared/lib/image-loader\"));\nconst unstable_getImgProps = (imgProps)=>{\n (0, _warnonce.warnOnce)(\"Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.\");\n const { props } = (0, _getimgprops.getImgProps)(imgProps, {\n defaultLoader: _imageloader.default,\n // This is replaced by webpack define plugin\n imgConf: process.env.__NEXT_IMAGE_OPTS\n });\n for (const [key, value] of Object.entries(props)){\n if (value === undefined) {\n delete props[key];\n }\n }\n return {\n props\n };\n};\nconst _default = _imagecomponent.Image;\n\n//# sourceMappingURL=image-external.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction defaultLoader(param) {\n let { config, src, width, quality } = param;\n if (process.env.NODE_ENV !== \"production\") {\n const missingValues = [];\n // these should always be provided but make sure they are\n if (!src) missingValues.push(\"src\");\n if (!width) missingValues.push(\"width\");\n if (missingValues.length > 0) {\n throw new Error(\"Next Image Optimization requires \" + missingValues.join(\", \") + \" to be provided. Make sure you pass them as props to the `next/image` component. Received: \" + JSON.stringify({\n src,\n width,\n quality\n }));\n }\n if (src.startsWith(\"//\")) {\n throw new Error('Failed to parse src \"' + src + '\" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');\n }\n if (!src.startsWith(\"/\") && (config.domains || config.remotePatterns)) {\n let parsedSrc;\n try {\n parsedSrc = new URL(src);\n } catch (err) {\n console.error(err);\n throw new Error('Failed to parse src \"' + src + '\" on `next/image`, if using relative image it must start with a leading slash \"/\" or be an absolute URL (http:// or https://)');\n }\n if (process.env.NODE_ENV !== \"test\" && // micromatch isn't compatible with edge runtime\n process.env.NEXT_RUNTIME !== \"edge\") {\n // We use dynamic require because this should only error in development\n const { hasMatch } = require(\"./match-remote-pattern\");\n if (!hasMatch(config.domains, config.remotePatterns, parsedSrc)) {\n throw new Error(\"Invalid src prop (\" + src + ') on `next/image`, hostname \"' + parsedSrc.hostname + '\" is not configured under images in your `next.config.js`\\n' + \"See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host\");\n }\n }\n }\n }\n return config.path + \"?url=\" + encodeURIComponent(src) + \"&w=\" + width + \"&q=\" + (quality || 75) + (process.env.NEXT_DEPLOYMENT_ID ? \"&dpl=\" + process.env.NEXT_DEPLOYMENT_ID : \"\");\n}\n// We use this to determine if the import is the default loader\n// or a custom loader defined by the user in next.config.js\ndefaultLoader.__next_img_default = true;\nconst _default = defaultLoader;\n\n//# sourceMappingURL=image-loader.js.map","module.exports = require('./dist/shared/lib/head')\n","module.exports = require('./dist/shared/lib/image-external')\n","module.exports = require('./dist/client/link')\n","module.exports = require('./dist/client/router')\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n"],"names":["useReactId","react__WEBPACK_IMPORTED_MODULE_0___namespace_cache","__webpack_require__","t","react__WEBPACK_IMPORTED_MODULE_0__","useInsertionEffect","useSafeLayoutEffect","ariakit_utils_dom__WEBPACK_IMPORTED_MODULE_1__","Nq","useLayoutEffect","useEffect","useLiveRef","value","ref","useRef","current","usePreviousValue","previousValue","setPreviousValue","useState","useEvent","callback","useCallback","_len","arguments","length","args","_key","useForkRef","_len2","refs","_key2","useMemo","some","Boolean","forEach","_misc_js__WEBPACK_IMPORTED_MODULE_2__","k","useId","defaultId","reactId","id","setId","random","Math","toString","substr","useTagName","type","tagName","setTagName","stringOrUndefined","toLowerCase","useControlledState","defaultState","state","setState","localState","setLocalState","nextState","undefined","stateRef","setStateRef","nextStateRef","setNextState","prevValue","setStateProp","arg","SET_NEXT_STATE","nextValue","ariakit_utils_misc__WEBPACK_IMPORTED_MODULE_3__","Ei","Object","defineProperty","Symbol","useForceUpdate","useReducer","useBooleanEvent","booleanOrCallback","useWrapElement","props","deps","wrapElement","element","usePortalRef","portalProp","portalRefProp","portalNode","setPortalNode","portalRef","domReady","setRef","createComponent","render","forwardRef","createElement","Type","as","As","rest","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","jsx","children","otherProps","createHook","useProps","htmlProps","copy","prop","ariakit_utils_misc__WEBPACK_IMPORTED_MODULE_2__","nr","getActiveElement","node","activeDescendant","activeElement","getDocument","nodeName","isFrame","contentDocument","body","getAttribute","getElementById","canUseDOM","window","document","ownerDocument","getWindow","defaultView","contains","parent","child","isButton","buttonInputTypes","indexOf","matches","selectors","msMatchesSelector","webkitMatchesSelector","isVisible","htmlElement","offsetWidth","offsetHeight","getClientRects","closest","parentElement","parentNode","nodeType","isTextField","isTextInput","HTMLInputElement","selectionStart","isTextArea","error","addGlobalEventListener","listener","options","scope","addEventListener","e","listeners","i","frames","frameWindow","push","removeEventListener","isPortalEvent","event","currentTarget","_dom_js__WEBPACK_IMPORTED_MODULE_0__","r3","target","isSelfTarget","fireClickEvent","eventInit","MouseEvent","dispatchEvent","isFocusEventOutside","container","containerElement","relatedTarget","queueBeforeEvent","raf","requestAnimationFrame","callImmediately","cancelAnimationFrame","once","capture","selector","isFocusable","wB","pn","isTabbable","hasNegativeTabIndex","tabIndex","parseInt","getAllFocusableIn","includeContainer","elements","Array","from","querySelectorAll","unshift","focusableElements","filter","Av","frameBody","splice","getAllTabbableIn","fallbackToFocusable","tabbableElements","allFrameTabbable","getFirstTabbableIn","first","getNextTabbable","fallbackToFirst","getNextTabbableIn","vY","allFocusable","activeIndex","nextFocusableElements","slice","find","getPreviousTabbable","getPreviousTabbableIn","fallbackToLast","reverse","previousFocusableElements","hasFocus","focusIfNeeded","hasFocusWithin","querySelector","CSS","escape","focus","disableFocus","currentTabindex","setAttribute","disableFocusIn","restoreFocusIn","restoreTabIndex","tabindex","removeAttribute","hasAttribute","noop","applyState","argument","currentValue","isLazyValue","hasOwnProperty","object","prototype","call","chain","fns","fn","queueMicrotask","Promise","resolve","then","isApple","test","navigator","platform","isSafari","vendor","isFirefox","userAgent","isMac","startsWith","maxTouchPoints","HeadingContext","createContext","isNativeClick","isTrusted","dom","iK","useCommand","system","Bi","_ref","clickOnEnter","clickOnSpace","react","hooks","O","isNativeButton","setIsNativeButton","active","setActive","activeRef","isDuplicate","onKeyDownProp","onKeyDown","zX","defaultPrevented","disabled","events","Ud","eS","isContentEditable","isEnter","key","isSpace","shouldPreventEnter","shouldPreventSpace","preventDefault","nativeClick","view","click","lO","vU","qx","misc","YE","onKeyUpProp","onKeyUp","metaKey","cR","focusable","LM","az","useButton","role","Button","DialogContext","DialogHeadingContext","DialogDescriptionContext","useDialogState","disclosure","useDisclosureState","_temp","animated","disclosureRef","open","setOpen","zk","defaultOpen","contentElement","setContentElement","animating","setAnimating","prevOpen","zP","mounted","show","hide","toggle","v","stopAnimation","afterTimeout","timeoutMs","cb","timeoutId","setTimeout","clearTimeout","parseCSSTime","times","join","split","reduce","longestTime","currentTimeString","currentTime","parseFloat","useDisclosureContent","Me","transition","setTransition","Gw","isConnected","react_dom","flushSync","transitionDuration","animationDuration","transitionDelay","animationDelay","getComputedStyle","delay","duration","style","hidden","display","useVisuallyHidden","border","clip","height","margin","overflow","padding","position","whiteSpace","width","useFocusTrap","top","left","FocusTrap","useFocusTrapRegion","enabled","OJ","renderFocusTrap","jsx_runtime","onFocus","tabbables","esm_focus","SI","last","jsxs","Fragment","HeadingLevel","level","contextLevel","useContext","_utils_fc7746f4","H","Provider","max","min","PortalContext","queueFocus","usePortal","preserveTabOrder","portalElement","portal","refProp","context","beforeOutsideRef","beforeInsideRef","afterInsideRef","afterOutsideRef","prefix","portalEl","isPortalInDocument","rootElement","appendChild","esm_misc","remove","N","focusing","ss","MN","nextFocusableElement","k0","previousFocusableElement","e8","createPortal","usePreviousMouseDownRef","previousMouseDownRef","iN","DialogBackdrop","backdrop","backdropProps","hideOnInteractOutside","hideOnEscape","ZT","dialog","zIndex","onClickProp","onClick","hideOnInteractOutsideProp","yl","stopPropagation","hideOnEscapeProp","right","bottom","Component","ignoreTags","walkTreeOutside","isValidElement","ignoredElements","includes","enabledElement","disableAccessibilityTreeOutside","cleanups","disableElement$1","previousAriaHidden","useChampionDialog","dialogRef","attribute","updated","retry","NW","isChampionDialog","observer","MutationObserver","observe","attributeFilter","disconnect","useEventOutside","nestedDialogs","callListener","nestedDialogsRef","cP","isDisclosure","activeId","shouldHideOnInteractOutside","NestedDialogsContext","assignStyle","previousStyle","cssText","assign","isSafariBrowser","G6","isInDialog","useDialog","modal","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocusRef","finalFocusRef","openRef","Hw","openStable","shouldDisableAccessibilityTree","nested","useNestedDialogs","openModals","setOpenModals","setNestedDialogs","addDialog","removeFromContext","dialogs","showModal","hideModal","modals","providerValue","usePreventBodyScroll","doc","win","Jj","documentElement","scrollbarWidth","innerWidth","clientWidth","paddingProperty","getPaddingProperty","documentLeft","getBoundingClientRect","scrollbarX","round","scrollLeft","isIOS","mL","V5","tS","setCSSProperty","property","getPropertyValue","setProperty","removeProperty","setIOSStyle","scrollX","scrollY","visualViewport","offsetLeft","offsetTop","restoreStyle","floor","scrollTo","mutation","childList","subtree","useHideOnInteractOutside","_ref2","previousMouseDown","draggingFromDialog","onMouseDown","receivedFocus","Qw","existingDismiss","prependHiddenDismiss","button","textContent","prepend","shouldDisableOutside","disablePointerEventsOutside","disableElement","previousPointerEvents","pointerEvents","prevInitialFocusRef","mayAutoFocusOnShow","autoFocusOnShowProp","hasNestedOpenDialog","initialFocus","YC","prevInitialFocus","mayAutoFocusOnHide","autoFocusOnHideProp","focusOnHide","isAlreadyFocusingAnotherElement","isBackdrop","EB","composite","parentDialog","oq","control","isValidTarget","inNestedDialog","hiddenProp","headingId","setHeadingId","descriptionId","setDescriptionId","dialog_context_a736b58f","D","a","b","focusable_focusable","Dialog","ariakit_utils_platform__WEBPACK_IMPORTED_MODULE_1__","alwaysFocusVisibleInputTypes","isNativeCheckboxOrRadio","useDisableEvent","onEvent","ariakit_react_utils_hooks__WEBPACK_IMPORTED_MODULE_2__","isKeyboardModality","onGlobalMouseDown","onGlobalKeyDown","ctrlKey","useFocusable","ariakit_react_utils_system__WEBPACK_IMPORTED_MODULE_3__","tabIndexProp","accessibleWhenDisabled","autoFocus","onFocusVisible","ariakit_utils_events__WEBPACK_IMPORTED_MODULE_4__","labels","onMouseUp","ariakit_utils_misc__WEBPACK_IMPORTED_MODULE_5__","label","trulyDisabled","focusVisible","setFocusVisible","IntersectionObserver","ariakit_utils_focus__WEBPACK_IMPORTED_MODULE_6__","onKeyPressCapture","onMouseDownCapture","onClickCapture","onMouseDownProp","Ke","ariakit_utils_dom__WEBPACK_IMPORTED_MODULE_7__","handleFocusVisible","H1","onKeyDownCaptureProp","onKeyDownCapture","altKey","onFocusCaptureProp","onFocusCapture","applyFocusVisible","isAlwaysFocusVisible","readOnly","isAlwaysFocusVisibleDelayed","onBlurProp","onBlur","nativeTabbable","supportsDisabled","contentEditable","__WEBPACK_AMD_DEFINE_RESULT__","hasOwn","classNames","classes","argType","isArray","inner","apply","module","exports","default","root","getRawTag","objectToString","symToStringTag","toStringTag","trimmedEndIndex","reTrimStart","string","replace","freeGlobal","g","objectProto","nativeObjectToString","isOwn","tag","unmasked","result","freeSelf","self","Function","reWhitespace","index","charAt","isObject","now","toNumber","nativeMax","nativeMin","func","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","shouldInvoke","timeSinceLastCall","timeSinceLastInvoke","timerExpired","timeWaiting","trailingEdge","debounced","isInvoking","cancel","flush","baseGetTag","isObjectLike","Date","baseTrim","isSymbol","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","other","valueOf","isBinary","_export","all","name","enumerable","get","PrefetchKind","ACTION_REFRESH","ACTION_NAVIGATE","ACTION_RESTORE","ACTION_SERVER_PATCH","ACTION_PREFETCH","ACTION_FAST_REFRESH","ACTION_SERVER_ACTION","__esModule","getDomainLocale","_normalizetrailingslash","require","path","locale","locales","domainLocales","normalizeLocalePath","detectDomainLocale","detectedLocale","domain","proto","http","finalLocale","defaultLocale","normalizePathTrailingSlash","Image","_interop_require_default","_react","_interop_require_wildcard","_","_reactdom","_head","_getimgprops","_imageconfig","_imageconfigcontextsharedruntime","_routercontextsharedruntime","_imageloader","configEnv","process","handleLoading","img","placeholder","onLoadRef","onLoadingCompleteRef","setBlurComplete","unoptimized","src","p","decode","catch","Event","writable","prevented","stopped","_object_spread_props","_object_spread","nativeEvent","isDefaultPrevented","isPropagationStopped","persist","getDynamicProps","fetchPriority","version","majorStr","minorStr","major","minor","fetchpriority","ImageElement","param","forwardedRef","srcSet","sizes","decoding","className","loading","fill","setShowAltText","onError","onLoad","complete","ImagePreload","isAppRouter","imgAttributes","opts","imageSrcSet","imageSizes","crossOrigin","referrerPolicy","preload","rel","href","pagesRouter","RouterContext","configContext","ImageConfigContext","config","c","imageConfigDefault","allSizes","_to_consumable_array","deviceSizes","concat","sort","onLoadingComplete","_sliced_to_array","blurComplete","_ref1","showAltText","getImgProps","defaultLoader","imgConf","meta","imgMeta","priority","_default","_resolvehref","_islocalurl","_formaturl","_utils","_addlocale","_approutercontextsharedruntime","_useintersection","_getdomainlocale","_addbasepath","_routerreducertypes","prefetched","Set","prefetch","router","appOptions","isLocalURL","bypassPrefetchedCheck","prefetchedKey","has","add","err","formatStringOrUrl","urlObjOrString","formatUrl","prefetchProp","passHref","shallow","scroll","onMouseEnter","onTouchStart","legacyBehavior","_props_legacyBehavior","restProps","childrenProp","appRouter","AppRouterContext","prefetchEnabled","appPrefetchKind","AUTO","FULL","resolvedHref","hrefProp","asProp","resolveHref","resolvedAs","previousHref","previousAs","Children","only","childRef","useIntersection","rootMargin","setIntersectionRef","resetVisible","el","kind","childProps","linkClicked","isAnchorNodeName","toUpperCase","isModifiedEvent","eventTarget","shiftKey","which","navigate","routerScroll","forceOptimisticNavigation","startTransition","onMouseEnterProp","onTouchStartProp","isAbsoluteUrl","curLocale","localeDomain","isLocaleDomain","addBasePath","addLocale","cloneElement","pathname","_requestidlecallback","hasIntersectionObserver","observers","Map","idList","rootRef","isDisabled","visible","setVisible","elementRef","setElement","createObserver","instance","existing","obj","entries","entry","isIntersecting","intersectionRatio","set","delete","unobserve","size","findIndex","idleCallback","requestIdleCallback","cancelIdleCallback","_imageblursvg","isStaticRequire","getInt","x","Number","isFinite","NaN","_state","blurWidth","blurHeight","_param_unoptimized","_param_priority","quality","_param_fill","_param_placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot","loader","isDefaultLoader","customImageLoader","layoutStyle","layoutToStyle","intrinsic","maxWidth","responsive","layoutSizes","layoutToSizes","staticSrc","widthInt","heightInt","staticImageData","JSON","stringify","ratio","isLazy","endsWith","dangerouslyAllowSVG","qualityInt","imgStyle","color","backgroundImage","getImageBlurSvg","placeholderStyle","backgroundSize","backgroundPosition","backgroundRepeat","generateImgAttrs","getWidths","viewportWidthRe","percentSizes","match","exec","smallestRatio","widths","s","map","w","svgWidth","svgHeight","viewBox","unstable_getImgProps","_warnonce","_imagecomponent","imgProps","warnOnce","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","next","done","_step_value","return","encodeURIComponent","__next_img_default","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","getShim","isRequired","ReactPropTypes","array","bigint","bool","number","symbol","any","arrayOf","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","getRandomValues","randomUUID","crypto","bind","esm_browser_native","rnds8","Uint8Array","byteToHex","esm_browser_v4","buf","offset","rnds","rng","unsafeStringify","arr","source","api","init","converter","defaultAttributes","attributes","expires","toUTCString","decodeURIComponent","stringifiedAttributes","attributeName","cookie","write","create","cookies","jar","parts","found","read","withAttributes","withConverter","freeze"],"sourceRoot":""}