botframework-webchat-fluent-theme 4.18.1-main.20250804.93043a9 → 4.18.1-main.20250912.cbaf98f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/botframework-webchat-fluent-theme.css.map +1 -1
  2. package/dist/botframework-webchat-fluent-theme.d.mts +6 -5
  3. package/dist/botframework-webchat-fluent-theme.d.ts +6 -5
  4. package/dist/botframework-webchat-fluent-theme.development.css.map +1 -1
  5. package/dist/botframework-webchat-fluent-theme.development.js +8 -8
  6. package/dist/botframework-webchat-fluent-theme.development.js.map +1 -1
  7. package/dist/botframework-webchat-fluent-theme.js +1 -1
  8. package/dist/botframework-webchat-fluent-theme.js.map +1 -1
  9. package/dist/botframework-webchat-fluent-theme.mjs +1 -1
  10. package/dist/botframework-webchat-fluent-theme.mjs.map +1 -1
  11. package/dist/botframework-webchat-fluent-theme.production.min.css.map +1 -1
  12. package/dist/botframework-webchat-fluent-theme.production.min.js +8 -8
  13. package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
  14. package/package.json +8 -7
  15. package/src/buildInfo.ts +9 -0
  16. package/src/components/activity/ActivityDecorator.module.css +0 -237
  17. package/src/components/activity/ActivityDecorator.tsx +17 -12
  18. package/src/components/activity/ActivityLoader.module.css +1 -1
  19. package/src/components/activity/ActivityLoader.tsx +19 -6
  20. package/src/components/activity/CopilotMessageHeader.tsx +22 -7
  21. package/src/components/activity/PartGroupingDecorator.module.css +480 -0
  22. package/src/components/activity/PartGroupingDecorator.tsx +69 -0
  23. package/src/components/assets/AssetComposer.tsx +2 -0
  24. package/src/components/theme/Theme.module.css +85 -41
  25. package/src/env.d.ts +10 -0
  26. package/src/external.umd/botframework-webchat-api/decorator.ts +2 -0
  27. package/src/external.umd/botframework-webchat-api/index.ts +2 -0
  28. package/src/external.umd/botframework-webchat-component/decorator.ts +2 -0
  29. package/src/external.umd/botframework-webchat-component/internal.ts +2 -0
  30. package/src/external.umd/react.ts +2 -0
  31. package/src/index.ts +6 -11
  32. package/src/private/FluentThemeProvider.tsx +9 -1
  33. package/src/tsconfig.json +8 -12
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/components/sendBox/SendBox.tsx","../src/components/icon/FluentIcon.tsx","../../react-valibot/src/reactNode.ts","../../react-valibot/src/validateProps.ts","../../styles/src/react/private/useStyles.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/icon/FluentIcon.module.css?css_module","../../styles/src/private/makeCreateStyles.ts","../src/styles/createStyles.ts","../src/styles/useVariantClassName.ts","../src/private/useVariants.ts","../src/private/VariantComposer.ts","../src/private/createComposer.tsx","../src/testIds.ts","../src/components/dropZone/DropZone.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/dropZone/DropZone.module.css?css_module","../src/components/suggestedActions/SuggestedActions.tsx","../src/components/preChatActivity/isPreChatMessageActivity.ts","../src/components/preChatActivity/PreChatMessageActivity.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/PreChatMessageActivity.module.css?css_module","../src/components/preChatActivity/StarterPromptsToolbar.tsx","../src/components/preChatActivity/StarterPromptsCardAction.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsCardAction.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsToolbar.module.css?css_module","../src/components/activity/ActivityDecorator.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityDecorator.module.css?css_module","../src/components/activity/CopilotMessageHeader.tsx","../src/components/activity/private/useActivityStyleOptions.ts","../src/components/activity/private/isAIGeneratedActivity.ts","../src/components/activity/private/useActivityAuthor.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/CopilotMessageHeader.module.css?css_module","../src/components/suggestedActions/private/computeSuggestedActionText.ts","../src/components/suggestedActions/private/rovingFocus.tsx","../src/components/suggestedActions/SuggestedAction.tsx","../src/components/suggestedActions/AccessibleButton.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedAction.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedActions.module.css?css_module","../src/components/telephoneKeypad/Provider.tsx","../src/components/telephoneKeypad/private/Context.ts","../src/components/telephoneKeypad/Surrogate.tsx","../src/components/telephoneKeypad/private/TelephoneKeypad.tsx","../src/components/telephoneKeypad/useShown.ts","../src/components/telephoneKeypad/private/Button.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/Button.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/TelephoneKeypad.module.css?css_module","../src/components/sendBox/AddAttachmentButton.tsx","../src/components/sendBox/Toolbar.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/Toolbar.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/AddAttachmentButton.module.css?css_module","../src/components/sendBox/ErrorMessage.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/ErrorMessage.module.css?css_module","../src/components/sendBox/private/useSubmitError.ts","../src/components/sendBox/private/useTranscriptNavigation.ts","../src/components/sendBox/private/useUniqueId.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/SendBox.module.css?css_module","../src/components/sendBox/TelephoneKeypadToolbarButton.tsx","../src/private/FluentThemeProvider.tsx","../src/components/activity/ActivityLoader.tsx","../src/components/assets/SlidingDots.tsx","../src/components/assets/private/useContext.ts","../src/components/assets/private/Context.ts","../src/components/assets/private/useAssetURL.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityLoader.module.css?css_module","../src/components/assets/AssetComposer.tsx","../src/components/linerActivity/private/isLinerMessageActivity.ts","../src/components/linerActivity/private/LinerActivity.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/linerActivity/private/LinerMessageActivity.module.css?css_module","../src/components/theme/Theme.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/theme/Theme.module.css?css_module","../src/components/typingIndicator/SlidingDotsTypingIndicator.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/typingIndicator/SlidingDotsTypingIndicator.module.css?css_module"],"sourcesContent":["import { injectMetaTag } from 'inject-meta-tag';\n\nimport { SendBox as FluentSendBox } from './components/sendBox/index';\nimport FluentThemeProvider from './private/FluentThemeProvider';\nimport testIds from './testIds';\n\nconst buildTool = process.env['build_tool'];\nconst moduleFormat = process.env['module_format'];\nconst version = process.env['npm_package_version'];\n\nconst buildInfo = { buildTool, moduleFormat, version };\n\ninjectMetaTag(\n 'botframework-webchat:fluent-theme',\n `version=${process.env['npm_package_version']}; build-tool=${process.env['build_tool']}; module-format=${process.env['module_format']}`\n);\n\nexport { FluentThemeProvider, FluentSendBox, buildInfo, testIds };\n","import { hooks, Components, type SendBoxFocusOptions } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, {\n memo,\n ReactNode,\n useCallback,\n useRef,\n useState,\n type FormEventHandler,\n type MouseEventHandler\n} from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport { useStyles, useVariantClassName } from '../../styles';\nimport testIds from '../../testIds';\nimport { DropZone } from '../dropZone';\nimport { SuggestedActions } from '../suggestedActions';\nimport { TelephoneKeypadSurrogate, useTelephoneKeypadShown, type DTMF } from '../telephoneKeypad';\nimport AddAttachmentButton from './AddAttachmentButton';\nimport ErrorMessage from './ErrorMessage';\nimport useSubmitError from './private/useSubmitError';\nimport useTranscriptNavigation from './private/useTranscriptNavigation';\nimport useUniqueId from './private/useUniqueId';\nimport styles from './SendBox.module.css';\nimport TelephoneKeypadToolbarButton from './TelephoneKeypadToolbarButton';\nimport { Toolbar, ToolbarButton, ToolbarSeparator } from './Toolbar';\n\nconst {\n useFocus,\n useLocalizer,\n useMakeThumbnail,\n useRegisterFocusSendBox,\n useSendBoxAttachments,\n useSendBoxValue,\n useSendMessage,\n useStyleOptions,\n useUIState\n} = hooks;\n\nconst { AttachmentBar, TextArea } = Components;\n\ntype Props = Readonly<{\n className?: string | undefined;\n completion?: ReactNode | undefined;\n isPrimary?: boolean | undefined;\n placeholder?: string | undefined;\n}>;\n\nfunction SendBox(props: Props) {\n const [{ disableFileUpload, hideTelephoneKeypadButton, maxMessageLength }] = useStyleOptions();\n const [attachments, setAttachments] = useSendBoxAttachments();\n const [globalMessage, setGlobalMessage] = useSendBoxValue();\n const [localMessage, setLocalMessage] = useState('');\n const [telephoneKeypadShown] = useTelephoneKeypadShown();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n const errorMessageId = useUniqueId('sendbox__error-message-id');\n const inputRef = useRef<HTMLTextAreaElement>(null);\n const localize = useLocalizer();\n const makeThumbnail = useMakeThumbnail();\n const sendMessage = useSendMessage();\n const setFocus = useFocus();\n\n const message = props.isPrimary ? globalMessage : localMessage;\n const setMessage = props.isPrimary ? setGlobalMessage : setLocalMessage;\n const isBlueprint = uiState === 'blueprint';\n\n const [errorMessage, commitLatestError] = useSubmitError({ message, attachments });\n const isMessageLengthExceeded = !!maxMessageLength && message.length > maxMessageLength;\n const shouldShowMessageLength =\n !isBlueprint && !telephoneKeypadShown && maxMessageLength && isFinite(maxMessageLength);\n const shouldShowTelephoneKeypad = !isBlueprint && telephoneKeypadShown;\n\n useRegisterFocusSendBox(\n useCallback(\n ({ noKeyboard, waitUntil }: SendBoxFocusOptions) => {\n if (!inputRef.current) {\n return;\n }\n if (noKeyboard) {\n waitUntil(\n (async () => {\n const previousReadOnly = inputRef.current?.getAttribute('readonly');\n inputRef.current?.setAttribute('readonly', 'true');\n // TODO: [P2] We should update this logic to handle quickly-successive `focusCallback`.\n // If a succeeding `focusCallback` is being called, the `setTimeout` should run immediately.\n // Or the second `focusCallback` should not set `readonly` to `true`.\n // eslint-disable-next-line no-restricted-globals\n await new Promise(resolve => setTimeout(resolve, 0));\n inputRef.current?.focus();\n if (typeof previousReadOnly !== 'string') {\n inputRef.current?.removeAttribute('readonly');\n } else {\n inputRef.current?.setAttribute('readonly', previousReadOnly);\n }\n })()\n );\n } else {\n inputRef.current?.focus();\n }\n },\n [inputRef]\n )\n );\n\n const attachmentsRef = useRefFrom(attachments);\n const messageRef = useRefFrom(message);\n\n const handleSendBoxClick = useCallback<MouseEventHandler>(\n event => {\n if ('tabIndex' in event.target && typeof event.target.tabIndex === 'number' && event.target.tabIndex >= 0) {\n return;\n }\n\n setFocus('sendBox');\n },\n [setFocus]\n );\n\n const handleMessageChange: React.FormEventHandler<HTMLTextAreaElement> = useCallback(\n event => setMessage(event.currentTarget.value),\n [setMessage]\n );\n\n const handleAddFiles = useCallback(\n async (inputFiles: File[]) => {\n const newAttachments = Object.freeze(\n await Promise.all(\n inputFiles.map(file =>\n makeThumbnail(file).then(thumbnailURL =>\n Object.freeze({\n blob: file,\n ...(thumbnailURL && { thumbnailURL })\n })\n )\n )\n )\n );\n\n setAttachments(attachmentsRef.current.concat(newAttachments));\n },\n [attachmentsRef, makeThumbnail, setAttachments]\n );\n\n const handleFormSubmit: FormEventHandler<HTMLFormElement> = useCallback(\n event => {\n event.preventDefault();\n const error = commitLatestError();\n\n if (error !== 'empty' && !isMessageLengthExceeded) {\n sendMessage(messageRef.current, undefined, { attachments: attachmentsRef.current });\n\n setMessage('');\n setAttachments([]);\n }\n\n setFocus('sendBox');\n },\n [\n commitLatestError,\n isMessageLengthExceeded,\n setFocus,\n sendMessage,\n setMessage,\n messageRef,\n attachmentsRef,\n setAttachments\n ]\n );\n\n const handleTelephoneKeypadButtonClick = useCallback(\n // TODO: We need more official way of sending DTMF.\n (dtmf: DTMF) => sendMessage(`/DTMFKey ${dtmf}`),\n [sendMessage]\n );\n\n const handleTranscriptNavigation = useTranscriptNavigation();\n\n const aria = {\n 'aria-invalid': 'false' as const,\n ...(errorMessage && {\n 'aria-describedby': errorMessageId,\n 'aria-errormessage': errorMessageId,\n 'aria-invalid': 'true' as const\n })\n };\n\n return (\n <form\n {...aria}\n className={cx(classNames['sendbox'], variantClassName, props.className)}\n data-testid={testIds.sendBoxContainer}\n onSubmit={handleFormSubmit}\n >\n <SuggestedActions />\n <div\n className={cx(classNames['sendbox__sendbox'])}\n onClickCapture={handleSendBoxClick}\n onKeyDown={handleTranscriptNavigation}\n >\n <TextArea\n aria-label={isMessageLengthExceeded ? localize('TEXT_INPUT_LENGTH_EXCEEDED_ALT') : localize('TEXT_INPUT_ALT')}\n className={cx(classNames['sendbox__sendbox-text-area'], classNames['sendbox__text-area--in-grid'])}\n completion={props.completion}\n data-testid={testIds.sendBoxTextBox}\n hidden={shouldShowTelephoneKeypad}\n onInput={handleMessageChange}\n placeholder={props.placeholder ?? localize('TEXT_INPUT_PLACEHOLDER')}\n ref={inputRef}\n value={message}\n />\n <TelephoneKeypadSurrogate\n autoFocus={true}\n className={classNames['sendbox__telephone-keypad--in-grid']}\n isHorizontal={false}\n onButtonClick={handleTelephoneKeypadButtonClick}\n />\n {!isBlueprint && (\n <AttachmentBar\n className={cx(\n 'webchat__send-box__attachment-bar',\n classNames['sendbox__attachment-bar'],\n classNames['sendbox__attachment-bar--in-grid']\n )}\n />\n )}\n <div className={cx(classNames['sendbox__sendbox-controls'], classNames['sendbox__sendbox-controls--in-grid'])}>\n {shouldShowMessageLength && (\n <div\n className={cx(classNames['sendbox__text-counter'], {\n [classNames['sendbox__text-counter--error']]: isMessageLengthExceeded\n })}\n >\n {`${message.length}/${maxMessageLength}`}\n </div>\n )}\n <Toolbar>\n {!hideTelephoneKeypadButton && <TelephoneKeypadToolbarButton />}\n {!disableFileUpload && <AddAttachmentButton onFilesAdded={handleAddFiles} />}\n <ToolbarSeparator />\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_SEND_BUTTON_ALT')}\n data-testid={testIds.sendBoxSendButton}\n disabled={isMessageLengthExceeded || shouldShowTelephoneKeypad}\n type=\"submit\"\n >\n <FluentIcon appearance=\"text\" icon=\"send\" />\n </ToolbarButton>\n </Toolbar>\n </div>\n {!disableFileUpload && <DropZone onFilesAdded={handleAddFiles} />}\n <ErrorMessage error={errorMessage} id={errorMessageId} />\n </div>\n </form>\n );\n}\n\nconst PrimarySendBox = memo((props: Exclude<Props, 'primary'>) => <SendBox {...props} isPrimary={true} />);\n\nPrimarySendBox.displayName = 'PrimarySendBox';\n\nexport default memo(SendBox);\n\nexport { PrimarySendBox };\n","import { createIconComponent } from 'botframework-webchat-component/internal';\nimport { validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { memo, useMemo, type CSSProperties } from 'react';\nimport { object, optional, pipe, readonly, string, type InferInput } from 'valibot';\n\nimport styles from './FluentIcon.module.css';\n\nconst baseFluentIconPropsSchema = pipe(\n object({\n className: optional(string()),\n mask: optional(string())\n }),\n readonly()\n);\n\nfunction BaseFluentIcon(props: InferInput<typeof baseFluentIconPropsSchema>) {\n const { className } = validateProps(baseFluentIconPropsSchema, props);\n\n const classNames = useStyles(styles);\n\n const maskStyle = useMemo(\n () =>\n props.mask ? ({ '--webchat__fluent-icon--mask': `url(${JSON.stringify(props.mask)})` } as CSSProperties) : {},\n [props.mask]\n );\n\n return <div className={cx(classNames['fluent-icon'], className)} style={maskStyle} />;\n}\n\nconst { component: FluentIcon, modifierPropsSchema } = createIconComponent(\n styles,\n ['appearance', 'icon'],\n BaseFluentIcon\n);\n\nFluentIcon.displayName = 'FluentIcon';\n\nconst fluentIconPropsSchema = pipe(\n object({\n ...baseFluentIconPropsSchema.entries,\n ...modifierPropsSchema.entries\n }),\n readonly()\n);\n\ntype FluentIconProps = InferInput<typeof fluentIconPropsSchema>;\n\nexport default memo(FluentIcon);\nexport { fluentIconPropsSchema, type FluentIconProps };\n","import { type ReactNode } from 'react';\nimport { custom, type CustomIssue, type CustomSchema, type ErrorMessage } from 'valibot';\n\nfunction reactNode(): CustomSchema<ReactNode, undefined>;\n\nfunction reactNode<\n const TMessage extends ErrorMessage<CustomIssue> | undefined = ErrorMessage<CustomIssue> | undefined\n>(message: TMessage): CustomSchema<ReactNode, TMessage>;\n\nfunction reactNode<\n const TMessage extends ErrorMessage<CustomIssue> | undefined = ErrorMessage<CustomIssue> | undefined\n>(message?: TMessage): CustomSchema<ReactNode, TMessage> {\n return custom<ReactNode, TMessage>(\n () => true,\n // TODO: Probably lacking some undefined checks, thus, we need to force cast.\n message as TMessage\n );\n}\n\nexport default reactNode;\n","import { parse, safeParse, type BaseIssue, type BaseSchema, type InferInput, type InferOutput } from 'valibot';\n\n/**\n * Specifies the props isolation mode.\n *\n * - `\"no isolation\"` will return the props as-is without cloning or modifications\n * - `\"strict\"` will isolate the props using `valibot.parse()`\n * - Depends on schema design, it could clone object instances, remove extraneous properties from objects, or fill in optional fields\n */\ntype IsolationMode = 'no isolation' | 'strict';\n\ndeclare const process: {\n env: {\n NODE_ENV?: string | undefined;\n };\n};\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'no isolation' | undefined\n): InferInput<TSchema>;\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'strict'\n): InferOutput<TSchema>;\n\n/**\n * Validates props against the specified valibot schema when running under development mode.\n *\n * This function will not perform any validations when running under production mode.\n *\n * @param propsSchema validation schema\n * @param props props to validate\n * @param mode specifies the isolation mode, default to `\"no isolation\"`\n * @returns\n */\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: InferInput<TSchema>,\n isolationMode?: IsolationMode | undefined\n): InferInput<TSchema> | InferOutput<TSchema> {\n if (process.env.NODE_ENV === 'production') {\n return props as unknown as InferInput<TSchema>;\n }\n\n if (isolationMode !== 'strict' && safeParse(propsSchema, props).success) {\n return props as unknown as InferInput<TSchema>;\n }\n\n // Code path hit here when under strict isolation, or no isolation and failed earlier.\n\n try {\n return parse(propsSchema, props);\n } catch (error) {\n console.error(\n 'botframework-webchat: Validation error while parsing props.',\n error && typeof error === 'object' && 'issues' in error && error.issues\n );\n\n throw error;\n }\n}\n","import { useMemo } from 'react';\n\nfunction useStyles<T extends CSSModuleClasses>(styles: T): T {\n // @ts-expect-error: entries/fromEntries don't allow to specify keys type\n return useMemo(\n () =>\n Object.freeze(\n Object.fromEntries(\n Object.entries(styles).map(([baseClassName, resultClassName]) => [\n baseClassName,\n `${baseClassName} ${resultClassName}`\n ])\n )\n ),\n [styles]\n );\n}\n\nexport default useStyles;\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/icon/FluentIcon.module_built.css\";\nconst classes = {\"icon--keypad\":\"wdGN4aG_icon--keypad\",\"icon--send\":\"wdGN4aG_icon--send\",\"icon--add-document\":\"wdGN4aG_icon--add-document\",\"appearance--text\":\"wdGN4aG_appearance--text\",\"fluent-icon\":\"wdGN4aG_fluent-icon\",\"icon--attachment\":\"wdGN4aG_icon--attachment\",\"icon--info-16\":\"wdGN4aG_icon--info-16\"}\nexport default classes\n\nconst _icon__keypad0 = classes[\"icon--keypad\"]\nexport { _icon__keypad0 as \"icon--keypad\" }\n\nconst _icon__send0 = classes[\"icon--send\"]\nexport { _icon__send0 as \"icon--send\" }\n\nconst _icon__add_document0 = classes[\"icon--add-document\"]\nexport { _icon__add_document0 as \"icon--add-document\" }\n\nconst _appearance__text0 = classes[\"appearance--text\"]\nexport { _appearance__text0 as \"appearance--text\" }\n\nconst _fluent_icon0 = classes[\"fluent-icon\"]\nexport { _fluent_icon0 as \"fluent-icon\" }\n\nconst _icon__attachment0 = classes[\"icon--attachment\"]\nexport { _icon__attachment0 as \"icon--attachment\" }\n\nconst _icon__info_160 = classes[\"icon--info-16\"]\nexport { _icon__info_160 as \"icon--info-16\" }\n","function createStyle(content: string, origin?: string) {\n const style = document.createElement('style');\n\n style.append(document.createTextNode(content));\n\n if (origin) {\n style.dataset['webchatInjected'] = origin;\n }\n\n return style;\n}\n\nexport default function makeCreateStyles(...contents: string[]) {\n return function createStyles(origin?: string) {\n if (!globalThis.document) {\n throw new Error('Unable to create styles: document is not defined');\n }\n\n return contents.map(content => createStyle(content, origin));\n };\n}\n","import { makeCreateStyles } from '@msinternal/botframework-webchat-styles';\n\nexport const fluentStyleContent = '@--FLUENT-STYLES-CONTENT--@';\n\nexport default makeCreateStyles(fluentStyleContent);\n","import { useMemo } from 'react';\nimport useVariants from '../private/useVariants';\nimport useStyles from './useStyles';\n\nexport default function useVariantClassName<T extends CSSModuleClasses>(styles: T): string {\n const classNames = useStyles(styles);\n const variants = useVariants();\n return useMemo(\n () =>\n variants\n .map(variant => classNames[`variant-${variant}`])\n .filter(value => value)\n .join(' '),\n [classNames, variants]\n );\n}\n","import { useContext, useMemo } from 'react';\nimport { VariantContext } from './VariantComposer';\n\nexport default function useVariants() {\n const { variant } = useContext(VariantContext);\n return useMemo(() => variant.split(' '), [variant]);\n}\n","import { createContext } from 'react';\n\nimport createComposer from './createComposer';\n\ntype VariantName = 'fluent' | 'copilot' | '';\n\nexport type VariantList = `${VariantName}`;\n\nexport type VariantContextType = {\n variant: VariantList;\n};\n\nexport const VariantContext = createContext<VariantContextType>(\n new Proxy(\n {},\n {\n get() {\n throw new Error('Unable to use VariantContext without VariantComposer');\n }\n }\n ) as unknown as VariantContextType\n);\n\nconst VariantComposer = createComposer<VariantContextType>(VariantContext, {\n defaults: { variant: '' },\n displayName: 'VariantComposer'\n});\n\nexport default VariantComposer;\n","import React, { type Context, memo, type ReactNode, useMemo } from 'react';\n\nexport default function createComposer<\n C,\n P extends { children?: ReactNode | undefined } = Partial<C> & { children?: ReactNode | undefined }\n>({ Provider }: Context<C>, { defaults, displayName }: Readonly<{ defaults: Readonly<C>; displayName: string }>) {\n const Composer = ({ children, ...props }: Readonly<P>) => {\n const value = useMemo(() => Object.freeze({ ...defaults, ...props }), [props]);\n\n return <Provider value={value}>{children}</Provider>;\n };\n\n Composer.displayName = displayName;\n\n return memo(Composer);\n}\n","const testIds = {\n preChatMessageActivityStarterPromptsCardAction: 'pre-chat message activity starter prompts card action',\n sendBoxContainer: 'send box container',\n sendBoxDropZone: 'send box drop zone',\n sendBoxSendButton: 'send box send button',\n sendBoxSuggestedAction: 'send box suggested action',\n sendBoxTextBox: 'send box text area',\n sendBoxTelephoneKeypadButton1: `send box telephone keypad button 1`,\n sendBoxTelephoneKeypadButton2: `send box telephone keypad button 2`,\n sendBoxTelephoneKeypadButton3: `send box telephone keypad button 3`,\n sendBoxTelephoneKeypadButton4: `send box telephone keypad button 4`,\n sendBoxTelephoneKeypadButton5: `send box telephone keypad button 5`,\n sendBoxTelephoneKeypadButton6: `send box telephone keypad button 6`,\n sendBoxTelephoneKeypadButton7: `send box telephone keypad button 7`,\n sendBoxTelephoneKeypadButton8: `send box telephone keypad button 8`,\n sendBoxTelephoneKeypadButton9: `send box telephone keypad button 9`,\n sendBoxTelephoneKeypadButton0: `send box telephone keypad button 0`,\n sendBoxTelephoneKeypadButtonStar: `send box telephone keypad button star`,\n sendBoxTelephoneKeypadButtonPound: `send box telephone keypad button pound`,\n sendBoxTelephoneKeypadToolbarButton: 'send box telephone keypad toolbar button',\n sendBoxUploadButton: 'send box upload button'\n};\n\nexport default testIds;\n","import { hooks } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, {\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n type DragEvent as ReactDragEvent,\n type DragEventHandler\n} from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport styles from './DropZone.module.css';\nimport { useStyles } from '../../styles';\n\nconst { useLocalizer } = hooks;\n\nconst handleDragOver = (event: ReactDragEvent<unknown> | DragEvent) => {\n // Prevent default dragover behavior to enable drop event triggering.\n // Browsers require this to fire subsequent drop events - without it,\n // they would handle the drop directly (e.g., open files in new tabs).\n // This is needed regardless of whether we prevent default drop behavior,\n // as it ensures our dropzone receives the drop event first. If we allow\n // default drop handling (by not calling preventDefault there), the browser\n // will still process the drop after our event handlers complete.\n event.preventDefault();\n};\n\n// Notes: For files dragging from outside of browser, it only tell us if it is a \"File\" instead of \"text/plain\" or \"text/uri-list\".\n// For images dragging inside of browser, it only tell us that it is \"text/plain\", \"text/uri-list\" and \"text/html\". But not \"image/*\".\n// So we cannot allowlist what is droppable.\n// We are using case-insensitive of type \"files\" so we can drag in WebDriver.\nconst isFilesTransferEvent = (event: DragEvent) =>\n !!event.dataTransfer?.types?.some(type => type.toLowerCase() === 'files');\n\nfunction isDescendantOf(target: Node, ancestor: Node): boolean {\n let current = target.parentNode;\n\n while (current) {\n if (current === ancestor) {\n return true;\n }\n\n current = current.parentNode;\n }\n\n return false;\n}\n\nconst DropZone = (props: { readonly onFilesAdded: (files: File[]) => void }) => {\n const [dropZoneState, setDropZoneState] = useState<false | 'visible' | 'droppable'>(false);\n const classNames = useStyles(styles);\n const dropZoneRef = useRef<HTMLDivElement>(null);\n const localize = useLocalizer();\n const onFilesAddedRef = useRefFrom(props.onFilesAdded);\n\n useEffect(() => {\n let entranceCounter = 0;\n\n const handleDragEnter = (event: DragEvent) => {\n document.addEventListener('dragover', handleDragOver);\n\n entranceCounter++;\n\n if (isFilesTransferEvent(event)) {\n setDropZoneState(\n dropZoneRef.current &&\n (event.target === dropZoneRef.current ||\n (event.target instanceof HTMLElement && isDescendantOf(event.target, dropZoneRef.current)))\n ? 'droppable'\n : 'visible'\n );\n }\n };\n\n const handleDragLeave = () => --entranceCounter <= 0 && setDropZoneState(false);\n\n const handleDragEnd = () => {\n document.removeEventListener('dragover', handleDragOver);\n\n entranceCounter = 0;\n\n setDropZoneState(false);\n };\n\n const handleDocumentDrop = (event: DragEvent) => {\n if (!dropZoneRef.current?.contains(event.target as Node)) {\n handleDragEnd();\n }\n };\n\n document.addEventListener('dragend', handleDragEnd);\n document.addEventListener('dragenter', handleDragEnter);\n document.addEventListener('dragleave', handleDragLeave);\n document.addEventListener('drop', handleDocumentDrop);\n\n return () => {\n document.removeEventListener('dragend', handleDragEnd);\n document.removeEventListener('dragenter', handleDragEnter);\n document.removeEventListener('dragleave', handleDragLeave);\n document.removeEventListener('dragover', handleDragOver);\n document.removeEventListener('drop', handleDocumentDrop);\n };\n }, [setDropZoneState]);\n\n const handleDrop = useCallback<DragEventHandler<HTMLDivElement>>(\n event => {\n event.preventDefault();\n\n setDropZoneState(false);\n\n if (!isFilesTransferEvent(event.nativeEvent)) {\n return;\n }\n\n onFilesAddedRef.current([...event.dataTransfer.files]);\n },\n [onFilesAddedRef, setDropZoneState]\n );\n\n return dropZoneState ? (\n <div\n className={cx(classNames['sendbox__attachment-drop-zone'], {\n [classNames['sendbox__attachment-drop-zone--droppable']]: dropZoneState === 'droppable'\n })}\n data-testid={testIds.sendBoxDropZone}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n ref={dropZoneRef}\n >\n <FluentIcon appearance=\"text\" className={classNames['sendbox__attachment-drop-zone-icon']} icon=\"add-document\" />\n {localize('TEXT_INPUT_DROP_ZONE')}\n </div>\n ) : null;\n};\n\nDropZone.displayName = 'DropZone';\n\nexport default memo(DropZone);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/dropZone/DropZone.module_built.css\";\nconst classes = {\"sendbox__attachment-drop-zone\":\"wbibrda_sendbox__attachment-drop-zone\",\"sendbox__attachment-drop-zone-icon\":\"wbibrda_sendbox__attachment-drop-zone-icon\",\"sendbox__attachment-drop-zone--droppable\":\"wbibrda_sendbox__attachment-drop-zone--droppable\"}\nexport default classes\n\nconst _sendbox__attachment_drop_zone0 = classes[\"sendbox__attachment-drop-zone\"]\nexport { _sendbox__attachment_drop_zone0 as \"sendbox__attachment-drop-zone\" }\n\nconst _sendbox__attachment_drop_zone_icon0 = classes[\"sendbox__attachment-drop-zone-icon\"]\nexport { _sendbox__attachment_drop_zone_icon0 as \"sendbox__attachment-drop-zone-icon\" }\n\nconst _sendbox__attachment_drop_zone__droppable0 = classes[\"sendbox__attachment-drop-zone--droppable\"]\nexport { _sendbox__attachment_drop_zone__droppable0 as \"sendbox__attachment-drop-zone--droppable\" }\n","import { hooks } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { memo, useCallback, type ReactNode } from 'react';\nimport { useStyles } from '../../styles';\nimport { isPreChatMessageActivity } from '../preChatActivity';\nimport computeSuggestedActionText from './private/computeSuggestedActionText';\nimport RovingFocusProvider from './private/rovingFocus';\nimport SuggestedAction from './SuggestedAction';\nimport styles from './SuggestedActions.module.css';\n\nconst { useFocus, useLocalizer, useStyleOptions, useStyleSet, useSuggestedActionsHooks, useUIState } = hooks;\n\nfunction SuggestedActionStackedOrFlowContainer(\n props: Readonly<{\n 'aria-label'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n }>\n) {\n const [{ suggestedActionLayout }] = useStyleOptions();\n const [{ suggestedActions: suggestedActionsStyleSet }] = useStyleSet();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n\n return (\n <div\n aria-label={props['aria-label']}\n aria-orientation=\"vertical\"\n className={cx(\n classNames['suggested-actions'],\n suggestedActionsStyleSet + '',\n {\n [classNames['suggested-actions--flow']]: suggestedActionLayout === 'flow',\n [classNames['suggested-actions--stacked']]: suggestedActionLayout !== 'flow'\n },\n props.className\n )}\n role=\"toolbar\"\n >\n {uiState !== 'blueprint' && props.children}\n </div>\n );\n}\n\nfunction SuggestedActions() {\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const [suggestedActions, _, { activity }] = useSuggestedActionsHooks().useSuggestedActions();\n const focus = useFocus();\n\n const handleEscapeKey = useCallback(() => {\n focus('sendBox');\n }, [focus]);\n\n const children = isPreChatMessageActivity(activity)\n ? [] // Do not show suggested actions for pre-chat message, suggested actions has already shown inlined.\n : suggestedActions.map((cardAction, index) => {\n const { displayText, image, imageAltText, text, type, value } = cardAction as {\n displayText?: string;\n image?: string;\n imageAltText?: string;\n text?: string;\n type:\n | 'call'\n | 'downloadFile'\n | 'imBack'\n | 'messageBack'\n | 'openUrl'\n | 'playAudio'\n | 'playVideo'\n | 'postBack'\n | 'showImage'\n | 'signin';\n value?: { [key: string]: any } | string;\n };\n\n if (!suggestedActions?.length) {\n return null;\n }\n\n return (\n <SuggestedAction\n buttonText={computeSuggestedActionText(cardAction)}\n displayText={displayText}\n image={image}\n // Image alt text should use `imageAltText` field and fallback to `text` field.\n // https://github.com/microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#image-alt-text\n imageAlt={image && (imageAltText || text)}\n itemIndex={index}\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n text={text}\n type={type}\n value={value}\n />\n );\n });\n\n return (\n <RovingFocusProvider onEscapeKey={handleEscapeKey}>\n <SuggestedActionStackedOrFlowContainer\n aria-label={localize('SUGGESTED_ACTIONS_LABEL_ALT')}\n className={classNames['suggested-actions']}\n >\n {children}\n </SuggestedActionStackedOrFlowContainer>\n </RovingFocusProvider>\n );\n}\n\nexport default memo(SuggestedActions);\n","import { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isPreChatMessageActivity(\n activity: undefined | WebChatActivity\n): activity is WebChatActivity & { type: 'message' } {\n return !!(activity && getOrgSchemaMessage(activity?.entities || [])?.keywords?.includes('PreChatMessage'));\n}\n","import { hooks } from 'botframework-webchat-component';\nimport { type WebChatActivity } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo, useMemo } from 'react';\nimport { useStyles } from '../../styles/index.js';\nimport styles from './PreChatMessageActivity.module.css';\nimport StarterPromptsToolbar from './StarterPromptsToolbar.js';\nimport { useActivityAuthor } from '../activity/index.js';\n\ntype Props = Readonly<{ activity: WebChatActivity & { type: 'message' } }>;\n\nconst { useLocalizer, useRenderMarkdownAsHTML, useUIState } = hooks;\n\nconst PreChatMessageActivity = ({ activity }: Props) => {\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const renderMarkdownAsHTML = useRenderMarkdownAsHTML();\n const localize = useLocalizer();\n\n const author = useActivityAuthor(activity);\n\n const html = useMemo(\n () => (renderMarkdownAsHTML ? { __html: renderMarkdownAsHTML(author?.description || '') } : { __html: '' }),\n [author?.description, renderMarkdownAsHTML]\n );\n\n return (\n <div className={classNames['pre-chat-message-activity']}>\n {author && (\n <div\n className={cx(\n classNames['pre-chat-message-activity__body'],\n uiState === 'blueprint' && classNames['pre-chat-message-activity__body--blueprint']\n )}\n >\n {author.image && (\n <img\n alt={localize('AVATAR_ALT', author.name)}\n className={classNames['pre-chat-message-activity__body-avatar']}\n src={author.image}\n />\n )}\n {author.name && <h2 className={classNames['pre-chat-message-activity__body-title']}>{author.name}</h2>}\n {author.description && (\n // eslint-disable-next-line react/no-danger\n <div className={classNames['pre-chat-message-activity__body-subtitle']} dangerouslySetInnerHTML={html} />\n )}\n </div>\n )}\n <StarterPromptsToolbar\n cardActions={activity.suggestedActions?.actions || []}\n className={classNames['pre-chat-message-activity__toolbar']}\n />\n </div>\n );\n};\n\nPreChatMessageActivity.displayName = 'PreChatMessageActivity';\n\nexport default memo(PreChatMessageActivity);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/PreChatMessageActivity.module_built.css\";\nconst classes = {\"pre-chat-message-activity__body\":\"wdPvBTa_pre-chat-message-activity__body\",\"pre-chat-message-activity__body-avatar\":\"wdPvBTa_pre-chat-message-activity__body-avatar\",\"pre-chat-message-activity__toolbar\":\"wdPvBTa_pre-chat-message-activity__toolbar\",\"pre-chat-message-activity__body-subtitle\":\"wdPvBTa_pre-chat-message-activity__body-subtitle\",\"pre-chat-message-activity__body-title\":\"wdPvBTa_pre-chat-message-activity__body-title\",\"pre-chat-message-activity__body--blueprint\":\"wdPvBTa_pre-chat-message-activity__body--blueprint\",\"pre-chat-message-activity\":\"wdPvBTa_pre-chat-message-activity\"}\nexport default classes\n\nconst _pre_chat_message_activity__body0 = classes[\"pre-chat-message-activity__body\"]\nexport { _pre_chat_message_activity__body0 as \"pre-chat-message-activity__body\" }\n\nconst _pre_chat_message_activity__body_avatar0 = classes[\"pre-chat-message-activity__body-avatar\"]\nexport { _pre_chat_message_activity__body_avatar0 as \"pre-chat-message-activity__body-avatar\" }\n\nconst _pre_chat_message_activity__toolbar0 = classes[\"pre-chat-message-activity__toolbar\"]\nexport { _pre_chat_message_activity__toolbar0 as \"pre-chat-message-activity__toolbar\" }\n\nconst _pre_chat_message_activity__body_subtitle0 = classes[\"pre-chat-message-activity__body-subtitle\"]\nexport { _pre_chat_message_activity__body_subtitle0 as \"pre-chat-message-activity__body-subtitle\" }\n\nconst _pre_chat_message_activity__body_title0 = classes[\"pre-chat-message-activity__body-title\"]\nexport { _pre_chat_message_activity__body_title0 as \"pre-chat-message-activity__body-title\" }\n\nconst _pre_chat_message_activity__body__blueprint0 = classes[\"pre-chat-message-activity__body--blueprint\"]\nexport { _pre_chat_message_activity__body__blueprint0 as \"pre-chat-message-activity__body--blueprint\" }\n\nconst _pre_chat_message_activity0 = classes[\"pre-chat-message-activity\"]\nexport { _pre_chat_message_activity0 as \"pre-chat-message-activity\" }\n","import { hooks } from 'botframework-webchat-api';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../styles/index.js';\nimport StarterPromptsCardAction from './StarterPromptsCardAction.js';\nimport styles from './StarterPromptsToolbar.module.css';\n\nconst { useUIState } = hooks;\n\ntype Props = Readonly<{\n cardActions: readonly DirectLineCardAction[];\n className?: string | undefined;\n}>;\n\nconst StarterPromptsToolbar = ({ cardActions, className }: Props) => {\n const classNames = useStyles(styles);\n const [uiState] = useUIState();\n\n return (\n // TODO: Accessibility-wise, this should be role=\"toolbar\" with keyboard navigation.\n <div className={cx(className, classNames['pre-chat-message-activity__card-action-toolbar'])}>\n <div className={classNames['pre-chat-message-activity__card-action-toolbar-grid']}>\n {uiState !== 'blueprint' &&\n cardActions\n .filter<DirectLineCardAction & { type: 'messageBack' }>(\n (card: DirectLineCardAction): card is DirectLineCardAction & { type: 'messageBack' } =>\n card.type === 'messageBack'\n )\n // There is no other usable keys in card actions.\n // eslint-disable-next-line react/no-array-index-key\n .map((cardAction, index) => <StarterPromptsCardAction key={index} messageBackAction={cardAction} />)}\n </div>\n </div>\n );\n};\n\nStarterPromptsToolbar.displayName = 'StarterPromptsToolbar';\n\nexport default memo(StarterPromptsToolbar);\n","import { hooks } from 'botframework-webchat-component';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo, useCallback, useMemo } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { useStyles } from '../../styles/index.js';\nimport testIds from '../../testIds.js';\nimport { FluentIcon } from '../icon';\n\nimport styles from './StarterPromptsCardAction.module.css';\n\nconst { useFocus, useRenderMarkdownAsHTML, useSendBoxValue, useUIState } = hooks;\n\ntype Props = Readonly<{\n className?: string | undefined;\n messageBackAction?: (DirectLineCardAction & { type: 'messageBack' }) | undefined;\n}>;\n\nconst StarterPromptsCardAction = ({ className, messageBackAction }: Props) => {\n const [_, setSendBoxValue] = useSendBoxValue();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const focus = useFocus();\n const inputTextRef = useRefFrom(messageBackAction?.displayText || messageBackAction?.text || '');\n const renderMarkdownAsHTML = useRenderMarkdownAsHTML('message activity');\n const subtitleHTML = useMemo<{ __html: string } | undefined>(\n () => (renderMarkdownAsHTML ? { __html: renderMarkdownAsHTML(messageBackAction?.text || '') } : undefined),\n [messageBackAction?.text, renderMarkdownAsHTML]\n );\n const disabled = uiState === 'disabled';\n const title = messageBackAction && 'title' in messageBackAction && messageBackAction.title;\n\n // Every starter prompt card action must have \"title\" field.\n const shouldShowBlueprint = uiState === 'blueprint' || !title;\n\n const handleClick = useCallback(() => {\n setSendBoxValue(inputTextRef.current);\n\n // Focus on the send box after the value is \"pasted.\"\n focus('sendBox');\n }, [focus, inputTextRef, setSendBoxValue]);\n\n return shouldShowBlueprint ? (\n <div\n className={cx(className, classNames['pre-chat-message-activity__card-action-box'])}\n data-testid={testIds.preChatMessageActivityStarterPromptsCardAction}\n />\n ) : (\n <button\n aria-disabled={disabled ? true : undefined}\n className={cx(className, classNames['pre-chat-message-activity__card-action-box'])}\n data-testid={testIds.preChatMessageActivityStarterPromptsCardAction}\n onClick={disabled ? undefined : handleClick}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : undefined}\n type=\"button\"\n >\n <div className={classNames['pre-chat-message-activity__card-action-title']}>{title}</div>\n {'image' in messageBackAction && messageBackAction.image && (\n <FluentIcon\n appearance=\"text\"\n className={classNames['pre-chat-message-activity__card-action-image']}\n mask={messageBackAction.image}\n />\n )}\n <div\n className={classNames['pre-chat-message-activity__card-action-subtitle']}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={subtitleHTML}\n />\n </button>\n );\n};\n\nStarterPromptsCardAction.displayName = 'StarterPromptsCardAction';\n\nexport default memo(StarterPromptsCardAction);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsCardAction.module_built.css\";\nconst classes = {\"pre-chat-message-activity__card-action-box\":\"woY4Pxq_pre-chat-message-activity__card-action-box\",\"pre-chat-message-activity__card-action-subtitle\":\"woY4Pxq_pre-chat-message-activity__card-action-subtitle\",\"pre-chat-message-activity__card-action-image\":\"woY4Pxq_pre-chat-message-activity__card-action-image\",\"pre-chat-message-activity__card-action-title\":\"woY4Pxq_pre-chat-message-activity__card-action-title\"}\nexport default classes\n\nconst _pre_chat_message_activity__card_action_box0 = classes[\"pre-chat-message-activity__card-action-box\"]\nexport { _pre_chat_message_activity__card_action_box0 as \"pre-chat-message-activity__card-action-box\" }\n\nconst _pre_chat_message_activity__card_action_subtitle0 = classes[\"pre-chat-message-activity__card-action-subtitle\"]\nexport { _pre_chat_message_activity__card_action_subtitle0 as \"pre-chat-message-activity__card-action-subtitle\" }\n\nconst _pre_chat_message_activity__card_action_image0 = classes[\"pre-chat-message-activity__card-action-image\"]\nexport { _pre_chat_message_activity__card_action_image0 as \"pre-chat-message-activity__card-action-image\" }\n\nconst _pre_chat_message_activity__card_action_title0 = classes[\"pre-chat-message-activity__card-action-title\"]\nexport { _pre_chat_message_activity__card_action_title0 as \"pre-chat-message-activity__card-action-title\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsToolbar.module_built.css\";\nconst classes = {\"pre-chat-message-activity__card-action-toolbar-grid\":\"wvd8n9G_pre-chat-message-activity__card-action-toolbar-grid\",\"pre-chat-message-activity__card-action-toolbar\":\"wvd8n9G_pre-chat-message-activity__card-action-toolbar\"}\nexport default classes\n\nconst _pre_chat_message_activity__card_action_toolbar_grid0 = classes[\"pre-chat-message-activity__card-action-toolbar-grid\"]\nexport { _pre_chat_message_activity__card_action_toolbar_grid0 as \"pre-chat-message-activity__card-action-toolbar-grid\" }\n\nconst _pre_chat_message_activity__card_action_toolbar0 = classes[\"pre-chat-message-activity__card-action-toolbar\"]\nexport { _pre_chat_message_activity__card_action_toolbar0 as \"pre-chat-message-activity__card-action-toolbar\" }\n","import { WebChatActivity } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { ReactNode, memo } from 'react';\nimport useVariants from '../../private/useVariants';\nimport { useStyles, useVariantClassName } from '../../styles';\nimport styles from './ActivityDecorator.module.css';\nimport CopilotMessageHeader from './CopilotMessageHeader';\n\nfunction ActivityDecorator({ activity, children }: Readonly<{ activity: WebChatActivity; children: ReactNode }>) {\n const classNames = useStyles(styles);\n const variants = useVariants();\n const variantClassName = useVariantClassName(styles);\n\n const shouldRenderHeader = variants.includes('copilot') && activity?.from?.role === 'bot' && !!children;\n\n return (\n <div className={cx(classNames['activity-decorator'], variantClassName)}>\n {shouldRenderHeader && <CopilotMessageHeader activity={activity} />}\n {children}\n </div>\n );\n}\n\nActivityDecorator.displayName = 'ActivityDecorator';\n\nexport default memo(ActivityDecorator);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityDecorator.module_built.css\";\nconst classes = {\"variant-copilot\":\"wLpvzAq_variant-copilot\",\"activity-decorator\":\"wLpvzAq_activity-decorator\",\"variant-fluent\":\"wLpvzAq_variant-fluent\"}\nexport default classes\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n\nconst _activity_decorator0 = classes[\"activity-decorator\"]\nexport { _activity_decorator0 as \"activity-decorator\" }\n\nconst _variant_fluent0 = classes[\"variant-fluent\"]\nexport { _variant_fluent0 as \"variant-fluent\" }\n","import React, { memo, useMemo, type CSSProperties } from 'react';\nimport { WebChatActivity, hooks } from 'botframework-webchat-component';\n\nimport useActivityStyleOptions from './private/useActivityStyleOptions';\nimport isAIGeneratedActivity from './private/isAIGeneratedActivity';\nimport useActivityAuthor from './private/useActivityAuthor';\nimport { useStyles } from '../../styles';\nimport styles from './CopilotMessageHeader.module.css';\n\nconst { useLocalizer } = hooks;\n\nfunction CopilotMessageHeader({ activity }: Readonly<{ activity?: WebChatActivity | undefined }>) {\n const [{ botAvatarImage, botAvatarBackgroundColor }] = useActivityStyleOptions(activity);\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const isAIGenerated = isAIGeneratedActivity(activity);\n\n const avatarStyle = useMemo(\n () => ({ '--background-color': botAvatarBackgroundColor }) as CSSProperties,\n [botAvatarBackgroundColor]\n );\n\n const author = useActivityAuthor(activity);\n const avatarImage = author?.image || botAvatarImage;\n const botTitle = author?.name || activity?.from?.name;\n\n return (\n <div className={classNames['copilot-message-header']}>\n {avatarImage && (\n <img\n alt={localize('AVATAR_ALT', botTitle)}\n className={classNames['copilot-message-header__avatar']}\n src={avatarImage}\n style={avatarStyle}\n />\n )}\n <span className={classNames['copilot-message-header__title']} title={botTitle}>\n {botTitle}\n </span>\n {isAIGenerated && (\n <span className={classNames['copilot-message-header__ai-generated-content']}>\n {localize('ACTIVITY_CONTENT_CAUTION')}\n </span>\n )}\n </div>\n );\n}\n\nexport default memo(CopilotMessageHeader);\n","import { useMemo } from 'react';\nimport { hooks, type WebChatActivity } from 'botframework-webchat-component';\nimport { type StrictStyleOptions } from 'botframework-webchat-api';\n\nconst { useStyleOptions } = hooks;\n\nexport default function useActivityStyleOptions(activity?: WebChatActivity | undefined) {\n const [styleOptions] = useStyleOptions();\n return useMemo<readonly [Readonly<StrictStyleOptions>]>(\n () =>\n Object.freeze([\n {\n ...styleOptions,\n ...activity?.channelData?.webChat?.styleOptions\n }\n ]),\n [activity?.channelData?.webChat?.styleOptions, styleOptions]\n );\n}\n","import { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isAIGeneratedActivity(activity: undefined | WebChatActivity) {\n return !!(activity && getOrgSchemaMessage(activity?.entities || [])?.keywords?.includes('AIGeneratedContent'));\n}\n","import { useMemo } from 'react';\nimport { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function useActivityAuthor(activity?: WebChatActivity | undefined) {\n return useMemo(() => {\n const entity = getOrgSchemaMessage(activity?.entities || []);\n return typeof entity?.author === 'string'\n ? {\n '@type': 'Person',\n description: undefined,\n image: undefined,\n name: entity?.author\n }\n : entity?.author;\n }, [activity]);\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/CopilotMessageHeader.module_built.css\";\nconst classes = {\"copilot-message-header__ai-generated-content\":\"wyJATiG_copilot-message-header__ai-generated-content\",\"copilot-message-header__title\":\"wyJATiG_copilot-message-header__title\",\"copilot-message-header__avatar\":\"wyJATiG_copilot-message-header__avatar\",\"copilot-message-header\":\"wyJATiG_copilot-message-header\"}\nexport default classes\n\nconst _copilot_message_header__ai_generated_content0 = classes[\"copilot-message-header__ai-generated-content\"]\nexport { _copilot_message_header__ai_generated_content0 as \"copilot-message-header__ai-generated-content\" }\n\nconst _copilot_message_header__title0 = classes[\"copilot-message-header__title\"]\nexport { _copilot_message_header__title0 as \"copilot-message-header__title\" }\n\nconst _copilot_message_header__avatar0 = classes[\"copilot-message-header__avatar\"]\nexport { _copilot_message_header__avatar0 as \"copilot-message-header__avatar\" }\n\nconst _copilot_message_header0 = classes[\"copilot-message-header\"]\nexport { _copilot_message_header0 as \"copilot-message-header\" }\n","import type { DirectLineCardAction } from 'botframework-webchat-core';\n\n// Please refer to this article to find out how to compute the \"button text\" for suggested action.\n// https://github.com/Microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#card-action\nexport default function computeSuggestedActionText(cardAction: DirectLineCardAction) {\n // \"CardAction\" must contains at least image or title.\n const { title } = cardAction as { title?: string };\n const { type, value } = cardAction;\n\n if (type === 'messageBack') {\n return title || cardAction.displayText;\n } else if (title) {\n return title;\n } else if (typeof value === 'string') {\n return value;\n }\n\n return JSON.stringify(value);\n}\n\n// TODO: [P1] This is copied from botframework-webchat-component. Think about what we should do to eliminate duplications.\n","/* eslint-disable no-magic-numbers */\nimport React, {\n type MutableRefObject,\n createContext,\n memo,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef\n} from 'react';\n\ntype ItemRef = MutableRefObject<HTMLElement | undefined>;\n\ntype RovingFocusContextType = {\n itemEffector: <T extends HTMLElement>(ref: MutableRefObject<T | null>, index: number) => () => void;\n};\n\nconst RovingFocusContext = createContext<RovingFocusContextType>({\n itemEffector: () => {\n // This will be implemented when using in <RovingFocusProvider>.\n throw new Error('botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.');\n }\n});\n\nfunction RovingFocusProvider(\n props: Readonly<{\n children?: React.ReactNode | undefined;\n direction?: 'vertical' | 'horizontal' | undefined;\n onEscapeKey?: () => void;\n }>\n) {\n const activeItemIndexRef = useRef(0);\n const itemRefsRef = useRef<ItemRef[]>([]);\n\n const updateItemTabIndex = useCallback(\n ({ current }: ItemRef, index: number) =>\n current && (current.tabIndex = activeItemIndexRef.current === index ? 0 : -1),\n [activeItemIndexRef]\n );\n\n const setActiveItemIndex = useCallback(\n (valueOrFunction: number | ((value: number) => number)) => {\n // All calls to this function is expected to be under event handlers (post-rendering).\n let nextActiveItemIndex;\n\n if (typeof valueOrFunction === 'number') {\n nextActiveItemIndex = valueOrFunction;\n } else {\n nextActiveItemIndex = valueOrFunction(activeItemIndexRef.current);\n }\n\n // If the index points to no item, fallback to the first item.\n // This makes sure at least one of the item in the container is selected.\n if (nextActiveItemIndex && !itemRefsRef.current.at(nextActiveItemIndex)?.current) {\n nextActiveItemIndex = 0;\n }\n\n if (activeItemIndexRef.current !== nextActiveItemIndex) {\n activeItemIndexRef.current = nextActiveItemIndex;\n\n itemRefsRef.current.forEach((ref, index) => updateItemTabIndex(ref, index));\n itemRefsRef.current.at(nextActiveItemIndex)?.current?.focus();\n }\n },\n [updateItemTabIndex, itemRefsRef, activeItemIndexRef]\n );\n\n const handleFocus = useCallback(\n event => {\n const { target } = event;\n\n const index = itemRefsRef.current.findIndex(({ current }) => current === target);\n\n // prevent focusing the last element, if we didn't found the element focused\n if (index !== -1) {\n setActiveItemIndex(index);\n }\n },\n [itemRefsRef, setActiveItemIndex]\n );\n\n const handleSetNextActive = useCallback(\n (key: string) =>\n (currentIndex: number): number => {\n const isUnidirectional = !props.direction;\n const isVerticalMove = /up|down/iu.test(key) && props.direction === 'vertical';\n const isHorizontalMove = /left|right/iu.test(key) && props.direction === 'horizontal';\n const isForwardMove = /right|down/iu.test(key);\n const direction = isUnidirectional || isVerticalMove || isHorizontalMove ? (isForwardMove ? 1 : -1) : 0;\n // The `itemRefsRef` array could be a sparse array.\n // Thus, the next item may not be immediately next to the current one.\n const itemIndices = itemRefsRef.current.map((_, index) => index);\n const nextIndex = itemIndices.indexOf(currentIndex) + direction;\n\n return itemIndices.at(nextIndex) ?? 0;\n },\n [props.direction]\n );\n\n const handleKeyDown = useCallback<(event: KeyboardEvent) => void>(\n event => {\n const { key } = event;\n\n switch (key) {\n case 'Up':\n case 'ArrowUp':\n case 'Left':\n case 'ArrowLeft':\n case 'Down':\n case 'ArrowDown':\n case 'Right':\n case 'ArrowRight':\n setActiveItemIndex(handleSetNextActive(key));\n break;\n\n case 'Home':\n setActiveItemIndex(0);\n break;\n\n case 'End':\n setActiveItemIndex(-1);\n break;\n\n case 'Escape':\n props.onEscapeKey?.();\n break;\n\n default:\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n },\n [setActiveItemIndex, handleSetNextActive, props]\n );\n\n const itemEffector = useCallback(\n (ref, index) => {\n const { current } = ref;\n\n itemRefsRef.current[Number(index)] = ref;\n\n current.addEventListener('focus', handleFocus);\n current.addEventListener('keydown', handleKeyDown);\n\n updateItemTabIndex(ref, index);\n\n return () => {\n current.removeEventListener('focus', handleFocus);\n current.removeEventListener('keydown', handleKeyDown);\n\n delete itemRefsRef.current[Number(index)];\n };\n },\n [handleFocus, handleKeyDown, updateItemTabIndex, itemRefsRef]\n );\n\n const value = useMemo<RovingFocusContextType>(\n () => ({\n itemEffector\n }),\n [itemEffector]\n );\n\n return <RovingFocusContext.Provider value={value}>{props.children}</RovingFocusContext.Provider>;\n}\n\nexport function useRovingFocusItemRef<T extends HTMLElement>(itemIndex: number): MutableRefObject<T | null> {\n const ref = useRef<T>(null);\n\n const { itemEffector } = useContext(RovingFocusContext);\n\n useEffect(() => itemEffector(ref, itemIndex));\n\n return ref;\n}\n\nexport default memo(RovingFocusProvider);\n","import { hooks } from 'botframework-webchat-component';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { MouseEventHandler, memo, useCallback } from 'react';\n\nimport { useStyles } from '../../styles';\nimport testIds from '../../testIds';\nimport AccessibleButton from './AccessibleButton';\nimport { useRovingFocusItemRef } from './private/rovingFocus';\nimport styles from './SuggestedAction.module.css';\n\nconst { useFocus, usePerformCardAction, useScrollToEnd, useStyleSet, useSuggestedActionsHooks, useUIState } = hooks;\n\ntype SuggestedActionProps = Readonly<{\n buttonText: string | undefined;\n className?: string | undefined;\n displayText?: string | undefined;\n image?: string | undefined;\n imageAlt?: string | undefined;\n itemIndex: number;\n text?: string | undefined;\n type?:\n | 'call'\n | 'downloadFile'\n | 'imBack'\n | 'messageBack'\n | 'openUrl'\n | 'playAudio'\n | 'playVideo'\n | 'postBack'\n | 'showImage'\n | 'signin';\n value?: any;\n}>;\n\nfunction SuggestedAction({\n buttonText,\n className,\n displayText,\n image,\n imageAlt,\n itemIndex,\n text,\n type,\n value\n}: SuggestedActionProps) {\n const [_, setSuggestedActions] = useSuggestedActionsHooks().useSuggestedActions();\n const [{ suggestedAction: suggestedActionStyleSet }] = useStyleSet();\n const [uiState] = useUIState();\n const focus = useFocus();\n const focusRef = useRovingFocusItemRef<HTMLButtonElement>(itemIndex);\n const performCardAction = usePerformCardAction();\n const classNames = useStyles(styles);\n const scrollToEnd = useScrollToEnd();\n\n const handleClick = useCallback<MouseEventHandler<HTMLButtonElement>>(\n ({ target }) => {\n (async function () {\n // We need to focus to the send box before we are performing this card action.\n // The will make sure the focus is always on Web Chat.\n // Otherwise, the focus may momentarily send to `document.body` and screen reader will be confused.\n await focus('sendBoxWithoutKeyboard');\n\n // TODO: [P3] #XXX We should not destruct DirectLineCardAction into React props and pass them in. It makes typings difficult.\n // Instead, we should pass a \"cardAction\" props.\n performCardAction({ displayText, text, type, value } as DirectLineCardAction, { target });\n\n // Since \"openUrl\" action do not submit, the suggested action buttons do not hide after click.\n type === 'openUrl' && setSuggestedActions([]);\n\n scrollToEnd();\n })();\n },\n [displayText, focus, performCardAction, scrollToEnd, setSuggestedActions, text, type, value]\n );\n\n return (\n <AccessibleButton\n className={cx(classNames['suggested-action'], suggestedActionStyleSet + '', (className || '') + '')}\n data-testid={testIds.sendBoxSuggestedAction}\n disabled={uiState === 'disabled'}\n onClick={handleClick}\n ref={focusRef}\n type=\"button\"\n >\n {image && <img alt={imageAlt} className={classNames['suggested-action__image']} src={image} />}\n <span>{buttonText}</span>\n </AccessibleButton>\n );\n}\n\nexport default memo(SuggestedAction);\n","import React, { MouseEventHandler, ReactNode, forwardRef, memo, useRef } from 'react';\n\nconst preventDefaultHandler: MouseEventHandler<HTMLButtonElement> = event => event.preventDefault();\n\ntype AccessibleButtonProps = Readonly<{\n 'aria-hidden'?: boolean | undefined;\n 'data-testid'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n disabled?: boolean | undefined;\n onClick?: MouseEventHandler<HTMLButtonElement> | undefined;\n tabIndex?: number | undefined;\n type: 'button';\n}>;\n\n// Differences between <button> and <AccessibleButton>:\n// - Disable behavior\n// - When the widget is disabled\n// - Set \"aria-disabled\" attribute to \"true\"\n// - Set \"readonly\" attribute\n// - Set \"tabIndex\" to -1\n// - Remove \"onClick\" handler\n// - Why this is needed\n// - Browser compatibility: when the widget is disabled, different browser send focus to different places\n// - When the widget become disabled, it's reasonable to keep the focus on the same widget for an extended period of time\n// - When the user presses TAB after the current widget is disabled, it should jump to the next non-disabled widget\n\n// Developers using this accessible widget will need to:\n// - Style the disabled widget themselves, using CSS query `:disabled, [aria-disabled=\"true\"] {}`\n// - Modify all code that check disabled through \"disabled\" attribute to use aria-disabled=\"true\" instead\n// - aria-disabled=\"true\" is the source of truth\n// - If the widget is contained by a <form>, the developer need to filter out some `onSubmit` event caused by this widget\n\nconst AccessibleButton = forwardRef<HTMLButtonElement, AccessibleButtonProps>(\n (\n { 'aria-hidden': ariaHidden, children, className, 'data-testid': dataTestId, disabled, onClick, tabIndex },\n forwardedRef\n ) => {\n const targetRef = useRef<HTMLButtonElement>(null);\n\n const ref = forwardedRef || targetRef;\n\n return (\n <button\n aria-disabled={disabled ? 'true' : undefined}\n aria-hidden={ariaHidden}\n className={className}\n data-testid={dataTestId}\n onClick={disabled ? preventDefaultHandler : onClick}\n ref={ref}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : tabIndex}\n type=\"button\"\n >\n {children}\n </button>\n );\n }\n);\n\nexport default memo(AccessibleButton);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedAction.module_built.css\";\nconst classes = {\"suggested-action\":\"wenGMeW_suggested-action\",\"suggested-action__image\":\"wenGMeW_suggested-action__image\"}\nexport default classes\n\nconst _suggested_action0 = classes[\"suggested-action\"]\nexport { _suggested_action0 as \"suggested-action\" }\n\nconst _suggested_action__image0 = classes[\"suggested-action__image\"]\nexport { _suggested_action__image0 as \"suggested-action__image\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedActions.module_built.css\";\nconst classes = {\"suggested-actions--flow\":\"wy3OzFW_suggested-actions--flow\",\"suggested-actions\":\"wy3OzFW_suggested-actions\",\"suggested-actions--stacked\":\"wy3OzFW_suggested-actions--stacked\"}\nexport default classes\n\nconst _suggested_actions__flow0 = classes[\"suggested-actions--flow\"]\nexport { _suggested_actions__flow0 as \"suggested-actions--flow\" }\n\nconst _suggested_actions0 = classes[\"suggested-actions\"]\nexport { _suggested_actions0 as \"suggested-actions\" }\n\nconst _suggested_actions__stacked0 = classes[\"suggested-actions--stacked\"]\nexport { _suggested_actions__stacked0 as \"suggested-actions--stacked\" }\n","import React, { memo, useMemo, useState, type ReactNode } from 'react';\n\nimport Context from './private/Context';\n\ntype Props = Readonly<{ children?: ReactNode | undefined }>;\n\nconst Provider = memo(({ children }: Props) => {\n const [shown, setShown] = useState(false);\n\n const context = useMemo(\n () =>\n Object.freeze({\n setShown,\n shown\n }),\n [setShown, shown]\n );\n\n return <Context.Provider value={context}>{children}</Context.Provider>;\n});\n\nexport default Provider;\n","import { createContext, type Dispatch, type SetStateAction } from 'react';\n\ntype ContextType = Readonly<{\n setShown: Dispatch<SetStateAction<boolean>>;\n shown: boolean;\n}>;\n\nconst Context = createContext<ContextType>(\n new Proxy({} as ContextType, {\n get() {\n throw new Error('botframework-webchat: This hook can only used under its corresponding <Provider>.');\n }\n })\n);\n\nContext.displayName = 'TelephoneKeypad.Context';\n\nexport default Context;\n","import React, { memo } from 'react';\n\nimport type { PropsOf } from '../../types';\nimport TelephoneKeypad from './private/TelephoneKeypad';\nimport useShown from './useShown';\n\ntype Props = PropsOf<typeof TelephoneKeypad>;\n\nconst TelephoneKeypadSurrogate = memo((props: Props) => (useShown()[0] ? <TelephoneKeypad {...props} /> : null));\n\nTelephoneKeypadSurrogate.displayName = 'TelephoneKeypad.Surrogate';\n\nexport default TelephoneKeypadSurrogate;\n","import { Components } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { memo, useCallback, useEffect, useRef, type KeyboardEventHandler, type ReactNode } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\n// import HorizontalDialPadController from './HorizontalDialPadController';\nimport { useStyles } from '../../../styles';\nimport testIds from '../../../testIds';\nimport { FluentIcon } from '../../icon';\nimport { type DTMF } from '../types';\nimport useShown from '../useShown';\nimport Button from './Button';\nimport styles from './TelephoneKeypad.module.css';\n\nconst { LocalizedString } = Components;\n\ntype Props = Readonly<{\n autoFocus?: boolean | undefined;\n className?: string | undefined;\n isHorizontal: boolean;\n onButtonClick: (button: DTMF) => void;\n}>;\n\nconst Orientation = memo(\n ({ children, isHorizontal }: Readonly<{ children?: ReactNode | undefined; isHorizontal: boolean }>) => {\n const classNames = useStyles(styles);\n\n return isHorizontal ? null : ( // <HorizontalDialPadController>{children}</HorizontalDialPadController>\n <div className={classNames['telephone-keypad__box']}>{children}</div>\n );\n }\n);\n\nOrientation.displayName = 'TelephoneKeypad:Orientation';\n\nconst TelephoneKeypad = memo(({ autoFocus, className, onButtonClick, isHorizontal }: Props) => {\n const autoFocusRef = useRefFrom(autoFocus);\n const classNames = useStyles(styles);\n const firstButtonRef = useRef<HTMLButtonElement>(null);\n const onButtonClickRef = useRefFrom(onButtonClick);\n const [, setShown] = useShown();\n\n const handleButton1Click = useCallback(() => onButtonClickRef.current?.('1'), [onButtonClickRef]);\n const handleButton2Click = useCallback(() => onButtonClickRef.current?.('2'), [onButtonClickRef]);\n const handleButton3Click = useCallback(() => onButtonClickRef.current?.('3'), [onButtonClickRef]);\n const handleButton4Click = useCallback(() => onButtonClickRef.current?.('4'), [onButtonClickRef]);\n const handleButton5Click = useCallback(() => onButtonClickRef.current?.('5'), [onButtonClickRef]);\n const handleButton6Click = useCallback(() => onButtonClickRef.current?.('6'), [onButtonClickRef]);\n const handleButton7Click = useCallback(() => onButtonClickRef.current?.('7'), [onButtonClickRef]);\n const handleButton8Click = useCallback(() => onButtonClickRef.current?.('8'), [onButtonClickRef]);\n const handleButton9Click = useCallback(() => onButtonClickRef.current?.('9'), [onButtonClickRef]);\n const handleButton0Click = useCallback(() => onButtonClickRef.current?.('0'), [onButtonClickRef]);\n const handleButtonStarClick = useCallback(() => onButtonClickRef.current?.('*'), [onButtonClickRef]);\n const handleButtonPoundClick = useCallback(() => onButtonClickRef.current?.('#'), [onButtonClickRef]);\n const handleKeyDown = useCallback<KeyboardEventHandler<HTMLDivElement>>(\n event => {\n if (event.key === 'Escape') {\n // TODO: Should send focus to the send box.\n setShown(false);\n }\n },\n [setShown]\n );\n\n useEffect(() => {\n autoFocusRef.current && firstButtonRef.current?.focus();\n }, [autoFocusRef, firstButtonRef]);\n\n return (\n <div className={cx(classNames['telephone-keypad'], className)} onKeyDown={handleKeyDown}>\n <Orientation isHorizontal={isHorizontal}>\n <Button\n button=\"1\"\n data-testid={testIds.sendBoxTelephoneKeypadButton1}\n onClick={handleButton1Click}\n ref={firstButtonRef}\n />\n <Button\n button=\"2\"\n data-testid={testIds.sendBoxTelephoneKeypadButton2}\n onClick={handleButton2Click}\n ruby=\"ABC\"\n />\n <Button\n button=\"3\"\n data-testid={testIds.sendBoxTelephoneKeypadButton3}\n onClick={handleButton3Click}\n ruby=\"DEF\"\n />\n <Button\n button=\"4\"\n data-testid={testIds.sendBoxTelephoneKeypadButton4}\n onClick={handleButton4Click}\n ruby=\"GHI\"\n />\n <Button\n button=\"5\"\n data-testid={testIds.sendBoxTelephoneKeypadButton5}\n onClick={handleButton5Click}\n ruby=\"JKL\"\n />\n <Button\n button=\"6\"\n data-testid={testIds.sendBoxTelephoneKeypadButton6}\n onClick={handleButton6Click}\n ruby=\"MNO\"\n />\n <Button\n button=\"7\"\n data-testid={testIds.sendBoxTelephoneKeypadButton7}\n onClick={handleButton7Click}\n ruby=\"PQRS\"\n />\n <Button\n button=\"8\"\n data-testid={testIds.sendBoxTelephoneKeypadButton8}\n onClick={handleButton8Click}\n ruby=\"TUV\"\n />\n <Button\n button=\"9\"\n data-testid={testIds.sendBoxTelephoneKeypadButton9}\n onClick={handleButton9Click}\n ruby=\"WXYZ\"\n />\n <Button button=\"*\" data-testid={testIds.sendBoxTelephoneKeypadButtonStar} onClick={handleButtonStarClick} />\n <Button button=\"0\" data-testid={testIds.sendBoxTelephoneKeypadButton0} onClick={handleButton0Click} ruby=\"+\" />\n <Button button=\"#\" data-testid={testIds.sendBoxTelephoneKeypadButtonPound} onClick={handleButtonPoundClick} />\n </Orientation>\n <div className={classNames['telephone-keypad__info-message']}>\n <FluentIcon appearance=\"text\" icon=\"info-16\" />\n <LocalizedString\n linkClassName={classNames['telephone-keypad__info-message-link']}\n stringIds=\"TELEPHONE_KEYPAD_INPUT_MESSAGE\"\n />\n </div>\n </div>\n );\n});\n\nTelephoneKeypad.displayName = 'TelephoneKeypad';\n\nexport default TelephoneKeypad;\n","import { useContext, useMemo, type Dispatch, type SetStateAction } from 'react';\n\nimport Context from './private/Context';\n\nexport default function useShown(): readonly [boolean, Dispatch<SetStateAction<boolean>>] {\n const { setShown, shown } = useContext(Context);\n\n return useMemo(() => Object.freeze([shown, setShown]), [shown, setShown]);\n}\n","import React, { forwardRef, memo, useCallback, type Ref } from 'react';\n\nimport { useRefFrom } from 'use-ref-from';\n\nimport { type DTMF } from '../types';\n\nimport styles from './Button.module.css';\nimport { useStyles } from '../../../styles';\n\ntype Props = Readonly<{\n button: DTMF;\n ['data-testid']?: string | undefined;\n onClick?: (() => void) | undefined;\n ruby?: string | undefined;\n}>;\n\nconst Button = memo(\n forwardRef(({ button, 'data-testid': dataTestId, onClick, ruby }: Props, ref: Ref<HTMLButtonElement>) => {\n const classNames = useStyles(styles);\n const onClickRef = useRefFrom(onClick);\n\n const handleClick = useCallback(() => onClickRef.current?.(), [onClickRef]);\n\n return (\n <button\n className={classNames['telephone-keypad__button']}\n data-testid={dataTestId}\n onClick={handleClick}\n ref={ref}\n type=\"button\"\n >\n <span className={classNames['telephone-keypad__button__text']}>{button === '*' ? '\\u2217' : button}</span>\n {!!ruby && <ruby className={classNames['telephone-keypad__button__ruby']}>{ruby}</ruby>}\n </button>\n );\n })\n);\n\nButton.displayName = 'TelephoneKeypad.Button';\n\nexport default Button;\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/Button.module_built.css\";\nconst classes = {\"telephone-keypad__button__text\":\"wwTs9lq_telephone-keypad__button__text\",\"telephone-keypad--horizontal\":\"wwTs9lq_telephone-keypad--horizontal\",\"telephone-keypad__button\":\"wwTs9lq_telephone-keypad__button\",\"telephone-keypad__button__ruby\":\"wwTs9lq_telephone-keypad__button__ruby\"}\nexport default classes\n\nconst _telephone_keypad__button__text0 = classes[\"telephone-keypad__button__text\"]\nexport { _telephone_keypad__button__text0 as \"telephone-keypad__button__text\" }\n\nconst _telephone_keypad__horizontal0 = classes[\"telephone-keypad--horizontal\"]\nexport { _telephone_keypad__horizontal0 as \"telephone-keypad--horizontal\" }\n\nconst _telephone_keypad__button0 = classes[\"telephone-keypad__button\"]\nexport { _telephone_keypad__button0 as \"telephone-keypad__button\" }\n\nconst _telephone_keypad__button__ruby0 = classes[\"telephone-keypad__button__ruby\"]\nexport { _telephone_keypad__button__ruby0 as \"telephone-keypad__button__ruby\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/TelephoneKeypad.module_built.css\";\nconst classes = {\"telephone-keypad\":\"wEgqGmW_telephone-keypad\",\"telephone-keypad__info-message-link\":\"wEgqGmW_telephone-keypad__info-message-link\",\"telephone-keypad__box\":\"wEgqGmW_telephone-keypad__box\",\"telephone-keypad__info-message\":\"wEgqGmW_telephone-keypad__info-message\"}\nexport default classes\n\nconst _telephone_keypad0 = classes[\"telephone-keypad\"]\nexport { _telephone_keypad0 as \"telephone-keypad\" }\n\nconst _telephone_keypad__info_message_link0 = classes[\"telephone-keypad__info-message-link\"]\nexport { _telephone_keypad__info_message_link0 as \"telephone-keypad__info-message-link\" }\n\nconst _telephone_keypad__box0 = classes[\"telephone-keypad__box\"]\nexport { _telephone_keypad__box0 as \"telephone-keypad__box\" }\n\nconst _telephone_keypad__info_message0 = classes[\"telephone-keypad__info-message\"]\nexport { _telephone_keypad__info_message0 as \"telephone-keypad__info-message\" }\n","import { hooks } from 'botframework-webchat-component';\nimport React, { useCallback, useRef, type ChangeEventHandler, memo } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport { ToolbarButton } from './Toolbar';\nimport styles from './AddAttachmentButton.module.css';\nimport { useStyles } from '../../styles';\n\nconst { useLocalizer, useStyleOptions } = hooks;\n\nfunction AddAttachmentButton(\n props: Readonly<{\n disabled?: boolean | undefined;\n onFilesAdded: ((files: File[]) => void) | undefined;\n }>\n) {\n const inputRef = useRef<HTMLInputElement>(null);\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const [{ uploadAccept, uploadMultiple }] = useStyleOptions();\n const onFilesAddedRef = useRefFrom(props.onFilesAdded);\n\n const handleClick = useCallback(() => inputRef.current?.click(), [inputRef]);\n\n const handleFileChange = useCallback<ChangeEventHandler<HTMLInputElement>>(\n ({ target: { files } }) => {\n if (files) {\n onFilesAddedRef.current?.([...files]);\n\n if (inputRef.current) {\n inputRef.current.value = '';\n }\n }\n },\n [inputRef, onFilesAddedRef]\n );\n\n return (\n <div className={classNames['sendbox__add-attachment']}>\n <input\n accept={uploadAccept}\n aria-disabled={props.disabled}\n aria-hidden=\"true\"\n className={classNames['sendbox__add-attachment-input']}\n multiple={uploadMultiple}\n onInput={props.disabled ? undefined : handleFileChange}\n readOnly={props.disabled}\n ref={inputRef}\n role=\"button\"\n tabIndex={-1}\n type=\"file\"\n />\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_UPLOAD_BUTTON_ALT')}\n data-testid={testIds.sendBoxUploadButton}\n onClick={handleClick}\n >\n <FluentIcon appearance=\"text\" icon=\"attachment\" />\n </ToolbarButton>\n </div>\n );\n}\n\nexport default memo(AddAttachmentButton);\n","import { hooks } from 'botframework-webchat-api';\nimport cx from 'classnames';\nimport React, { memo, type MouseEventHandler, type ReactNode } from 'react';\nimport { useStyles } from '../../styles';\nimport styles from './Toolbar.module.css';\n\nconst { useUIState } = hooks;\n\nconst preventDefaultHandler: MouseEventHandler<HTMLButtonElement> = event => event.preventDefault();\n\nexport const ToolbarButton = memo(\n (\n props: Readonly<{\n 'aria-label'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n 'data-testid'?: string | undefined;\n disabled?: boolean | undefined;\n onClick?: MouseEventHandler<HTMLButtonElement> | undefined;\n selected?: boolean | undefined;\n type?: 'button' | 'submit' | undefined;\n }>\n ) => {\n const classNames = useStyles(styles);\n const [uiState] = useUIState();\n\n const disabled = props.disabled || uiState === 'disabled';\n\n return (\n <button\n aria-disabled={disabled ? 'true' : undefined}\n aria-label={props['aria-label']}\n className={cx(classNames['sendbox__toolbar-button'], props.className, {\n [classNames['sendbox__toolbar-button--selected']]: props.selected\n })}\n data-testid={props['data-testid']}\n onClick={disabled ? preventDefaultHandler : props.onClick}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : undefined}\n type={props.type === 'submit' ? 'submit' : 'button'}\n >\n {props.children}\n </button>\n );\n }\n);\n\nToolbarButton.displayName = 'ToolbarButton';\n\nexport const Toolbar = memo((props: Readonly<{ children?: ReactNode | undefined; className?: string | undefined }>) => {\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n\n return (\n <div className={cx(classNames['sendbox__toolbar'], props.className)}>\n {uiState !== 'blueprint' && props.children}\n </div>\n );\n});\n\nToolbar.displayName = 'Toolbar';\n\nexport const ToolbarSeparator = memo(\n (props: Readonly<{ children?: ReactNode | undefined; className?: string | undefined }>) => {\n const classNames = useStyles(styles);\n\n return (\n <div\n aria-orientation=\"vertical\"\n className={cx(classNames['sendbox__toolbar-separator'], props.className)}\n role=\"separator\"\n />\n );\n }\n);\n\nToolbarSeparator.displayName = 'ToolbarSeparator';\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/Toolbar.module_built.css\";\nconst classes = {\"sendbox__toolbar-button--selected\":\"weDCCeq_sendbox__toolbar-button--selected\",\"sendbox__toolbar-separator\":\"weDCCeq_sendbox__toolbar-separator\",\"sendbox__toolbar\":\"weDCCeq_sendbox__toolbar\",\"sendbox__toolbar-button\":\"weDCCeq_sendbox__toolbar-button\"}\nexport default classes\n\nconst _sendbox__toolbar_button__selected0 = classes[\"sendbox__toolbar-button--selected\"]\nexport { _sendbox__toolbar_button__selected0 as \"sendbox__toolbar-button--selected\" }\n\nconst _sendbox__toolbar_separator0 = classes[\"sendbox__toolbar-separator\"]\nexport { _sendbox__toolbar_separator0 as \"sendbox__toolbar-separator\" }\n\nconst _sendbox__toolbar0 = classes[\"sendbox__toolbar\"]\nexport { _sendbox__toolbar0 as \"sendbox__toolbar\" }\n\nconst _sendbox__toolbar_button0 = classes[\"sendbox__toolbar-button\"]\nexport { _sendbox__toolbar_button0 as \"sendbox__toolbar-button\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/AddAttachmentButton.module_built.css\";\nconst classes = {\"sendbox__add-attachment-input\":\"wTxWh-G_sendbox__add-attachment-input\",\"sendbox__add-attachment\":\"wTxWh-G_sendbox__add-attachment\"}\nexport default classes\n\nconst _sendbox__add_attachment_input0 = classes[\"sendbox__add-attachment-input\"]\nexport { _sendbox__add_attachment_input0 as \"sendbox__add-attachment-input\" }\n\nconst _sendbox__add_attachment0 = classes[\"sendbox__add-attachment\"]\nexport { _sendbox__add_attachment0 as \"sendbox__add-attachment\" }\n","import { useLiveRegion } from 'botframework-webchat-component/internal';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../styles';\nimport styles from './ErrorMessage.module.css';\n\ntype ErrorMessageProps = Readonly<{\n error?: string | undefined;\n id: string;\n}>;\n\nfunction ErrorMessage({ error, id }: ErrorMessageProps) {\n const classNames = useStyles(styles);\n\n useLiveRegion(() => error && <div className=\"sendbox__error-message__status\">{error}</div>, [error]);\n\n return (\n // eslint-disable-next-line react/forbid-dom-props\n <span className={classNames['sendbox__error-message']} id={id}>\n {error}\n </span>\n );\n}\n\nErrorMessage.displayName = 'ErrorMessage';\n\nexport default memo(ErrorMessage);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/ErrorMessage.module_built.css\";\nconst classes = {\"sendbox__error-message\":\"wa8yVAW_sendbox__error-message\"}\nexport default classes\n\nconst _sendbox__error_message0 = classes[\"sendbox__error-message\"]\nexport { _sendbox__error_message0 as \"sendbox__error-message\" }\n","import { hooks } from 'botframework-webchat-component';\nimport { useCallback, useMemo, useState } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nconst { useConnectivityStatus, useLocalizer } = hooks;\n\ntype ErrorMessageStringMap = ReadonlyMap<SendError, string>;\n\ntype SendError = 'empty' | 'offline';\n\nconst useSubmitError = ({\n attachments,\n message\n}: Readonly<{\n attachments: readonly Readonly<{ blob: Blob | File; thumbnailURL?: URL | undefined }>[];\n message: string;\n}>) => {\n const [connectivityStatus] = useConnectivityStatus();\n const [error, setError] = useState<SendError | undefined>();\n const localize = useLocalizer();\n\n const submitErrorRef = useRefFrom<'empty' | 'offline' | undefined>(\n connectivityStatus !== 'connected' && connectivityStatus !== 'reconnected'\n ? 'offline'\n : !message && !attachments.length\n ? 'empty'\n : undefined\n );\n\n const errorMessageStringMap = useMemo<ErrorMessageStringMap>(\n () =>\n Object.freeze(\n new Map<SendError, string>()\n .set('empty', localize('SEND_BOX_IS_EMPTY_TOOLTIP_ALT'))\n // TODO: [P0] We should add a new string for \"Cannot send message while offline.\"\n .set('offline', localize('CONNECTIVITY_STATUS_ALT_FATAL'))\n ),\n [localize]\n );\n\n // TODO: we may want to improve this later e.g. to avoid re-render\n // Reset visible error if there is a value\n const hasValue = !!message?.trim();\n if (error === 'empty' && hasValue) {\n setError(undefined);\n }\n\n const commitLatestError = useCallback(() => {\n setError(submitErrorRef.current);\n return submitErrorRef.current;\n }, [submitErrorRef]);\n\n return useMemo<Readonly<[string | undefined, () => typeof submitErrorRef.current]>>(\n () => Object.freeze([error && errorMessageStringMap.get(error), commitLatestError]),\n [error, errorMessageStringMap, commitLatestError]\n );\n};\n\nexport default useSubmitError;\n","import { useCallback, type KeyboardEvent } from 'react';\nimport { hooks } from 'botframework-webchat-component';\n\nconst { useScrollDown, useScrollUp } = hooks;\n\nexport default function useTranscriptNavigation() {\n const scrollDown = useScrollDown();\n const scrollUp = useScrollUp();\n\n return useCallback(\n (event: KeyboardEvent<unknown>) => {\n if (event.target instanceof HTMLTextAreaElement && event.target.value) {\n return;\n }\n\n const { ctrlKey, metaKey, shiftKey } = event;\n\n if (ctrlKey || metaKey || shiftKey) {\n return;\n }\n\n let handled = true;\n\n switch (event.key) {\n case 'End':\n scrollDown({ displacement: Infinity });\n break;\n\n case 'Home':\n scrollUp({ displacement: Infinity });\n break;\n\n case 'PageDown':\n scrollDown();\n break;\n\n case 'PageUp':\n scrollUp();\n break;\n\n default:\n handled = false;\n break;\n }\n\n if (handled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [scrollDown, scrollUp]\n );\n}\n","/* eslint no-magic-numbers: [\"error\", { \"ignore\": [2, 5, 36] }] */\n\nimport { useMemo } from 'react';\n// TODO: fix math-random fails to import crypto\n// import random from 'math-random';\n\nexport default function useUniqueId(prefix?: string): string {\n const id = useMemo(() => Math.random().toString(36).substr(2, 5), []);\n\n prefix = prefix ? `${prefix}--` : '';\n\n return `${prefix}${id}`;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/SendBox.module_built.css\";\nconst classes = {\"sendbox__text-counter--error\":\"wHTirJa_sendbox__text-counter--error\",\"variant-copilot\":\"wHTirJa_variant-copilot\",\"sendbox\":\"wHTirJa_sendbox\",\"sendbox__sendbox-controls--in-grid\":\"wHTirJa_sendbox__sendbox-controls--in-grid\",\"sendbox__sendbox-controls\":\"wHTirJa_sendbox__sendbox-controls\",\"sendbox__attachment-bar--in-grid\":\"wHTirJa_sendbox__attachment-bar--in-grid\",\"sendbox__sendbox-text-area\":\"wHTirJa_sendbox__sendbox-text-area\",\"sendbox__text-area--in-grid\":\"wHTirJa_sendbox__text-area--in-grid\",\"sendbox__attachment-bar\":\"wHTirJa_sendbox__attachment-bar\",\"sendbox__sendbox\":\"wHTirJa_sendbox__sendbox\",\"sendbox__text-counter\":\"wHTirJa_sendbox__text-counter\",\"sendbox__telephone-keypad--in-grid\":\"wHTirJa_sendbox__telephone-keypad--in-grid\"}\nexport default classes\n\nconst _sendbox__text_counter__error0 = classes[\"sendbox__text-counter--error\"]\nexport { _sendbox__text_counter__error0 as \"sendbox__text-counter--error\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n\nconst _sendbox0 = classes[\"sendbox\"]\nexport { _sendbox0 as \"sendbox\" }\n\nconst _sendbox__sendbox_controls__in_grid0 = classes[\"sendbox__sendbox-controls--in-grid\"]\nexport { _sendbox__sendbox_controls__in_grid0 as \"sendbox__sendbox-controls--in-grid\" }\n\nconst _sendbox__sendbox_controls0 = classes[\"sendbox__sendbox-controls\"]\nexport { _sendbox__sendbox_controls0 as \"sendbox__sendbox-controls\" }\n\nconst _sendbox__attachment_bar__in_grid0 = classes[\"sendbox__attachment-bar--in-grid\"]\nexport { _sendbox__attachment_bar__in_grid0 as \"sendbox__attachment-bar--in-grid\" }\n\nconst _sendbox__sendbox_text_area0 = classes[\"sendbox__sendbox-text-area\"]\nexport { _sendbox__sendbox_text_area0 as \"sendbox__sendbox-text-area\" }\n\nconst _sendbox__text_area__in_grid0 = classes[\"sendbox__text-area--in-grid\"]\nexport { _sendbox__text_area__in_grid0 as \"sendbox__text-area--in-grid\" }\n\nconst _sendbox__attachment_bar0 = classes[\"sendbox__attachment-bar\"]\nexport { _sendbox__attachment_bar0 as \"sendbox__attachment-bar\" }\n\nconst _sendbox__sendbox0 = classes[\"sendbox__sendbox\"]\nexport { _sendbox__sendbox0 as \"sendbox__sendbox\" }\n\nconst _sendbox__text_counter0 = classes[\"sendbox__text-counter\"]\nexport { _sendbox__text_counter0 as \"sendbox__text-counter\" }\n\nconst _sendbox__telephone_keypad__in_grid0 = classes[\"sendbox__telephone-keypad--in-grid\"]\nexport { _sendbox__telephone_keypad__in_grid0 as \"sendbox__telephone-keypad--in-grid\" }\n","import React, { memo, useCallback } from 'react';\n\nimport { hooks } from 'botframework-webchat-component';\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport { useTelephoneKeypadShown } from '../telephoneKeypad';\nimport { ToolbarButton } from './Toolbar';\n\nconst { useLocalizer } = hooks;\n\nconst TelephoneKeypadToolbarButton = memo(() => {\n const [telephoneKeypadShown, setTelephoneKeypadShown] = useTelephoneKeypadShown();\n const localize = useLocalizer();\n\n const handleClick = useCallback(() => setTelephoneKeypadShown(shown => !shown), [setTelephoneKeypadShown]);\n\n return (\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT')}\n data-testid={testIds.sendBoxTelephoneKeypadToolbarButton}\n onClick={handleClick}\n selected={telephoneKeypadShown}\n >\n <FluentIcon appearance=\"text\" icon=\"keypad\" />\n </ToolbarButton>\n );\n});\n\nTelephoneKeypadToolbarButton.displayName = 'SendBox.TelephoneKeypadToolbarButton';\n\nexport default TelephoneKeypadToolbarButton;\n","/* eslint-disable prefer-arrow-callback */\nimport { type ActivityMiddleware, type StyleOptions, type TypingIndicatorMiddleware } from 'botframework-webchat-api';\nimport {\n createActivityBorderMiddleware,\n DecoratorComposer,\n type DecoratorMiddleware\n} from 'botframework-webchat-api/decorator';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport { Components } from 'botframework-webchat-component';\nimport React, { memo, type ReactNode } from 'react';\n\nimport { ActivityDecorator } from '../components/activity';\nimport ActivityLoader from '../components/activity/ActivityLoader';\nimport AssetComposer from '../components/assets/AssetComposer';\nimport { isLinerMessageActivity, LinerMessageActivity } from '../components/linerActivity';\nimport { isPreChatMessageActivity, PreChatMessageActivity } from '../components/preChatActivity';\nimport { PrimarySendBox } from '../components/sendBox';\nimport { TelephoneKeypadProvider } from '../components/telephoneKeypad';\nimport { WebChatTheme } from '../components/theme';\nimport SlidingDotsTypingIndicator from '../components/typingIndicator/SlidingDotsTypingIndicator';\nimport { createStyles } from '../styles';\nimport VariantComposer, { VariantList } from './VariantComposer';\n\nconst { ThemeProvider } = Components;\n\ntype FluentThemeProviderProps = Readonly<{\n children?: ReactNode | undefined;\n variant?: VariantList | undefined;\n}>;\n\nconst activityMiddleware: readonly ActivityMiddleware[] = Object.freeze([\n () =>\n next =>\n (...args) => {\n const activity = args[0]?.activity;\n\n // TODO: Should show pre-chat only when it is the very first message in the chat history.\n if (isPreChatMessageActivity(activity)) {\n return () => <PreChatMessageActivity activity={activity} />;\n }\n\n if (isLinerMessageActivity(activity)) {\n return () => <LinerMessageActivity activity={activity} />;\n }\n\n const renderActivity = next(...args);\n\n return renderActivity\n ? (...args) => <ActivityDecorator activity={activity}>{renderActivity(...args)}</ActivityDecorator>\n : renderActivity;\n }\n]);\n\nconst sendBoxMiddleware = [() => () => () => PrimarySendBox];\n\nconst decoratorMiddleware: readonly DecoratorMiddleware[] = Object.freeze([\n createActivityBorderMiddleware(function FluentBorderLoader({ request, Next, ...props }) {\n return (\n <ActivityLoader showLoader={props.showLoader ?? request.livestreamingState === 'preparing'}>\n <Next {...props} showLoader={false} />\n </ActivityLoader>\n );\n })\n]);\n\nconst styles = createStyles('fluent-theme');\n\nconst fluentStyleOptions: StyleOptions = Object.freeze({\n feedbackActionsPlacement: 'activity-actions'\n});\n\nconst typingIndicatorMiddleware = Object.freeze([\n () =>\n next =>\n (...args) =>\n args[0].visible ? <SlidingDotsTypingIndicator /> : next(...args)\n] satisfies TypingIndicatorMiddleware[]);\n\nfunction FluentThemeProvider({ children, variant = 'fluent' }: FluentThemeProviderProps) {\n return (\n <VariantComposer variant={variant}>\n <WebChatTheme>\n <TelephoneKeypadProvider>\n <ThemeProvider\n activityMiddleware={activityMiddleware}\n sendBoxMiddleware={sendBoxMiddleware}\n styleOptions={fluentStyleOptions}\n styles={styles}\n typingIndicatorMiddleware={typingIndicatorMiddleware}\n >\n <AssetComposer>\n <WebChatDecorator>\n <DecoratorComposer middleware={decoratorMiddleware}>{children}</DecoratorComposer>\n </WebChatDecorator>\n </AssetComposer>\n </ThemeProvider>\n </TelephoneKeypadProvider>\n </WebChatTheme>\n </VariantComposer>\n );\n}\n\nexport default memo(FluentThemeProvider);\nexport { type FluentThemeProviderProps };\n","import { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { Fragment, memo, type ReactNode } from 'react';\n\nimport { useVariantClassName } from '../../styles';\nimport SlidingDots from '../assets/SlidingDots';\nimport styles from './ActivityLoader.module.css';\n\nfunction FluentActivityLoader({\n children,\n showLoader = true\n}: Readonly<{ children?: ReactNode | undefined; showLoader?: boolean }>) {\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(classNames);\n\n return (\n <Fragment>\n {children}\n {showLoader && <SlidingDots className={cx(classNames['activity-loader'], variantClassName)} />}\n </Fragment>\n );\n}\n\nexport default memo(FluentActivityLoader);\n","import { hooks } from 'botframework-webchat-component';\nimport React, { memo, useCallback, useEffect, useRef } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport useAssetURL from './private/useAssetURL';\n\nconst { useLocalizer, useShouldReduceMotion } = hooks;\n\ntype SlidingDotsProps = Readonly<{ className: string }>;\n\nconst SlidingDots = ({ className }: SlidingDotsProps) => {\n const [shouldReduceMotion] = useShouldReduceMotion();\n const [url] = useAssetURL('sliding dots');\n const localize = useLocalizer();\n const objectElementRef = useRef<HTMLObjectElement>(null);\n\n const altText = localize('TYPING_INDICATOR_ALT');\n const shouldReduceMotionRef = useRefFrom(shouldReduceMotion);\n\n const pauseAnimations = useCallback(() => {\n const contentDocument = objectElementRef.current?.contentDocument;\n const svgElement = contentDocument?.documentElement;\n const { SVGSVGElement } = contentDocument?.defaultView || {};\n\n SVGSVGElement && svgElement instanceof SVGSVGElement && svgElement.pauseAnimations();\n }, [objectElementRef]);\n\n const unpauseAnimations = useCallback(() => {\n const contentDocument = objectElementRef.current?.contentDocument;\n const svgElement = contentDocument?.documentElement;\n const { SVGSVGElement } = contentDocument?.defaultView || {};\n\n SVGSVGElement && svgElement instanceof SVGSVGElement && svgElement.unpauseAnimations();\n }, [objectElementRef]);\n\n const pauseOrUnpauseAnimations = useCallback(\n () => (shouldReduceMotionRef.current ? pauseAnimations() : unpauseAnimations()),\n [pauseAnimations, shouldReduceMotionRef, unpauseAnimations]\n );\n\n useEffect(pauseOrUnpauseAnimations, [\n pauseOrUnpauseAnimations,\n // Call \"pauseOrUnpauseAnimations()\" when \"shouldReduceMotion\" change.\n shouldReduceMotion\n ]);\n\n return (\n <object\n aria-label={altText}\n className={className}\n data={url.href}\n onLoad={pauseOrUnpauseAnimations}\n ref={objectElementRef}\n type=\"image/svg+xml\"\n />\n );\n};\n\nSlidingDots.displayName = 'SlidingDots';\n\nexport default memo(SlidingDots);\n","import { type ContextOf } from 'botframework-webchat-api';\nimport { useContext as useReactContext } from 'react';\n\nimport Context from './Context';\n\nexport default function useContext(): ContextOf<typeof Context> {\n return useReactContext(Context);\n}\n","import { createContext } from 'react';\n\nimport type { AssetName } from '../AssetName';\n\ntype ContextType = Readonly<{\n urlStateMap: ReadonlyMap<AssetName, readonly [URL]>;\n}>;\n\ntype ContextAsGetter<T extends Record<string, unknown>> =\n T extends Record<infer K, infer V> ? Record<K, { get(): V }> : never;\n\nconst defaultContextValue: ContextAsGetter<ContextType> = {\n urlStateMap: {\n get() {\n throw new Error('urlMap cannot be used outside of <AssetComposerContext>.');\n }\n }\n};\n\nconst Context = createContext<ContextType>(Object.create({}, defaultContextValue));\n\nContext.displayName = 'AssetComposerContext';\n\nexport default Context;\n","import { type AssetName } from '../AssetName';\nimport useContext from './useContext';\n\nexport default function useAssetURL(assetName: AssetName): readonly [URL] {\n const urlState = useContext().urlStateMap.get(assetName);\n\n if (!urlState) {\n throw new Error(`botframework-webchat-fluent-theme internal: Asset \"${assetName}\" was not found.`);\n }\n\n return urlState;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityLoader.module_built.css\";\nconst classes = {\"activity-loader\":\"wnVy-QG_activity-loader\",\"variant-fluent\":\"wnVy-QG_variant-fluent\",\"variant-copilot\":\"wnVy-QG_variant-copilot\"}\nexport default classes\n\nconst _activity_loader0 = classes[\"activity-loader\"]\nexport { _activity_loader0 as \"activity-loader\" }\n\nconst _variant_fluent0 = classes[\"variant-fluent\"]\nexport { _variant_fluent0 as \"variant-fluent\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n","import { type ContextOf } from 'botframework-webchat-api';\nimport React, { memo, useEffect, useMemo, type ReactNode } from 'react';\n\nimport { type AssetName } from './AssetName';\nimport Context from './private/Context';\n\ntype ContextType = ContextOf<typeof Context>;\n\ntype AssetComposerProps = Readonly<{\n children?: ReactNode | undefined;\n}>;\n\nconst SLIDING_DOTS_SVG_STRING =\n '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"400\" height=\"20\" viewBox=\"0 0 400 20\"><defs><linearGradient id=\"a\" x1=\"0\" x2=\"100%\" y1=\"0\" y2=\"0\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#ad5ae1;#ad5ae1;#0E94E1;#0E94E1;#669fc2;#669fc2;#ad5ae1\"/></stop><stop offset=\"50%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#e9618d;#e9618d;#57AB82;#57AB82;#6377e0;#6377e0;#e9618d\"/></stop><stop offset=\"100%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#fd9e5f;#fd9e5f;#C6C225;#C6C225;#9b80ec;#9b80ec;#fd9e5f\"/></stop></linearGradient></defs><g fill=\"url(#a)\"><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"26;26;0;0\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;30;30;20;20\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"1;1;0;0\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"62;62;72;72;26;26;0\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"104;104;20;20;70;70;20\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.8;1\" repeatCount=\"indefinite\" values=\"1;1;0\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"182;182;108;108;112;112;26\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;60;60;20;20\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"218;218;184;184;148;148;62\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"60;60;80;80;40;40;104\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"294;294;280;280;204;204;182\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"40;40;20;20;80;80;20\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"350;350;316;316;300;300;218\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"20;20;60;60;20;20;60\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"386;386;392;392;336;336;294\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;40;40\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"0;0;1;1\"/></rect><rect width=\"20\" height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"422;422;428;428;392;392;350\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.8;1\" repeatCount=\"indefinite\" values=\"0;0;1\"/></rect></g></svg>';\n\nconst AssetComposer = memo(({ children }: AssetComposerProps) => {\n const slidingDotsURL = useMemo(\n () => URL.createObjectURL(new Blob([SLIDING_DOTS_SVG_STRING], { type: 'image/svg+xml' })),\n []\n );\n\n useEffect(() => () => URL.revokeObjectURL(slidingDotsURL), [slidingDotsURL]);\n\n const context = useMemo<ContextType>(\n () =>\n Object.freeze({\n urlStateMap: new Map<AssetName, readonly [URL]>([['sliding dots', Object.freeze([new URL(slidingDotsURL)])]])\n }),\n [slidingDotsURL]\n );\n\n return <Context.Provider value={context}>{children}</Context.Provider>;\n});\n\nAssetComposer.displayName = 'AssetComposer';\n\nexport default AssetComposer;\n","import { type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isLinerMessageActivity(\n activity: undefined | WebChatActivity\n): activity is WebChatActivity & { type: 'message'; from: { role: 'channel' } } {\n return !!(activity && activity.from.role === 'channel' && activity.type === 'message' && 'text' in activity);\n}\n","import { type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../../styles/index.js';\nimport styles from './LinerMessageActivity.module.css';\n\ntype Props = Readonly<{ activity: WebChatActivity & { type: 'message' } }>;\n\nconst LinerMessageActivity = ({ activity }: Props) => {\n const classNames = useStyles(styles);\n\n return (\n <div className={classNames['liner-message-activity']} role=\"separator\">\n <span className={classNames['liner-message-activity__text']}>{activity.text}</span>\n </div>\n );\n};\n\nLinerMessageActivity.displayName = 'LinerMessageActivity';\n\nexport default memo(LinerMessageActivity);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/linerActivity/private/LinerMessageActivity.module_built.css\";\nconst classes = {\"liner-message-activity__text\":\"wQVQNzG_liner-message-activity__text\",\"liner-message-activity\":\"wQVQNzG_liner-message-activity\"}\nexport default classes\n\nconst _liner_message_activity__text0 = classes[\"liner-message-activity__text\"]\nexport { _liner_message_activity__text0 as \"liner-message-activity__text\" }\n\nconst _liner_message_activity0 = classes[\"liner-message-activity\"]\nexport { _liner_message_activity0 as \"liner-message-activity\" }\n","import React, { type ReactNode } from 'react';\nimport cx from 'classnames';\nimport styles from './Theme.module.css';\nimport { useStyles, useVariantClassName } from '../../styles';\n\nexport const rootClassName = 'webchat-fluent';\n\nexport default function Theme(props: Readonly<{ readonly children: ReactNode | undefined }>) {\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n return <div className={cx(rootClassName, classNames['theme'], variantClassName)}>{props.children}</div>;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/theme/Theme.module_built.css\";\nconst classes = {\"theme\":\"w2roZmq_theme\",\"variant-copilot\":\"w2roZmq_variant-copilot\"}\nexport default classes\n\nconst _theme0 = classes[\"theme\"]\nexport { _theme0 as \"theme\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n","import { testIds } from 'botframework-webchat-component';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { memo } from 'react';\n\nimport SlidingDots from '../assets/SlidingDots';\nimport styles from './SlidingDotsTypingIndicator.module.css';\n\nfunction SlidingDotsTypingIndicator() {\n const classNames = useStyles(styles);\n\n return (\n <div className={classNames['sliding-dots-typing-indicator']} data-testid={testIds.typingIndicator}>\n <SlidingDots className={cx(classNames['sliding-dots-typing-indicator__image'])} />\n </div>\n );\n}\n\nexport default memo(SlidingDotsTypingIndicator);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/typingIndicator/SlidingDotsTypingIndicator.module_built.css\";\nconst classes = {\"sliding-dots-typing-indicator\":\"wQOMcSW_sliding-dots-typing-indicator\",\"sliding-dots-typing-indicator__image\":\"wQOMcSW_sliding-dots-typing-indicator__image\"}\nexport default classes\n\nconst _sliding_dots_typing_indicator0 = classes[\"sliding-dots-typing-indicator\"]\nexport { _sliding_dots_typing_indicator0 as \"sliding-dots-typing-indicator\" }\n\nconst _sliding_dots_typing_indicator__image0 = classes[\"sliding-dots-typing-indicator__image\"]\nexport { _sliding_dots_typing_indicator__image0 as \"sliding-dots-typing-indicator__image\" }\n"],"mappings":"AAAA,OAAS,iBAAAA,OAAqB,kBCA9B,OAAS,SAAAC,GAAO,cAAAC,OAA4C,iCAC5D,OAAOC,MAAQ,aACf,OAAOC,GACL,QAAAC,GAEA,eAAAC,EACA,UAAAC,GACA,YAAAC,OAGK,QACP,OAAS,cAAAC,OAAkB,eCX3B,OAAS,uBAAAC,OAA2B,0CCCpC,OAAS,UAAAC,OAAsE,UCD/E,MAAqG,UAuCtF,SAARC,GACLC,EACAC,EACAC,EAC4C,CAE1C,OAAOD,CAmBX,CChEA,OAAS,WAAAE,OAAe,QAExB,SAASC,GAAsCC,EAAc,CAE3D,OAAOF,GACL,IACE,OAAO,OACL,OAAO,YACL,OAAO,QAAQE,CAAM,EAAE,IAAI,CAAC,CAACC,EAAeC,CAAe,IAAM,CAC/DD,EACA,GAAGA,CAAa,IAAIC,CAAe,EACrC,CAAC,CACH,CACF,EACF,CAACF,CAAM,CACT,CACF,CAEA,IAAOG,EAAQJ,GHff,OAAOK,OAAQ,aACf,OAAOC,IAAS,QAAAC,GAAM,WAAAC,OAAmC,QACzD,OAAS,UAAAC,GAAQ,YAAAC,GAAU,QAAAC,GAAM,YAAAC,GAAU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W,aAAAC,GAAc,QAAAC,EAAQ,EAErDE,GACE,oCACA,gFACF","names":["injectMetaTag","hooks","Components","cx","React","memo","useCallback","useRef","useState","useRefFrom","createIconComponent","custom","validateProps","propsSchema","props","isolationMode","useMemo","useStyles","styles","baseClassName","resultClassName","useStyles_default","cx","React","memo","useMemo","object","optional","pipe","readonly","string","classes","FluentIcon_module_default","_icon__keypad0","_icon__send0","classes","_icon__add_document0","classes","_appearance__text0","classes","_fluent_icon0","classes","_icon__attachment0","classes","_icon__info_160","classes","baseFluentIconPropsSchema","pipe","object","optional","string","readonly","BaseFluentIcon","props","className","t","classNames","f","FluentIcon_module_default","maskStyle","useMemo","React","cx","FluentIcon","modifierPropsSchema","createIconComponent","fluentIconPropsSchema","FluentIcon_default","memo","createStyle","content","origin","style","makeCreateStyles","contents","fluentStyleContent","createStyles_default","r","useMemo","useContext","useMemo","createContext","React","memo","useMemo","createComposer","Provider","defaults","displayName","Composer","children","props","value","VariantContext","createContext","VariantComposer","createComposer","VariantComposer_default","useVariants","variant","useContext","VariantContext","useMemo","useVariantClassName","styles","classNames","f","variants","useVariants","useMemo","variant","value","testIds","testIds_default","hooks","cx","React","memo","useCallback","useEffect","useRef","useState","useRefFrom","classes","DropZone_module_default","_sendbox__attachment_drop_zone0","_sendbox__attachment_drop_zone_icon0","classes","_sendbox__attachment_drop_zone__droppable0","classes","useLocalizer","hooks","handleDragOver","event","isFilesTransferEvent","type","isDescendantOf","target","ancestor","current","DropZone","props","dropZoneState","setDropZoneState","useState","classNames","f","DropZone_module_default","dropZoneRef","useRef","localize","onFilesAddedRef","useRefFrom","useEffect","entranceCounter","handleDragEnter","handleDragLeave","handleDragEnd","handleDocumentDrop","handleDrop","useCallback","React","cx","testIds_default","FluentIcon_default","DropZone_default","memo","hooks","cx","React","memo","useCallback","getOrgSchemaMessage","isPreChatMessageActivity","activity","hooks","cx","React","memo","useMemo","classes","PreChatMessageActivity_module_default","_pre_chat_message_activity__body0","_pre_chat_message_activity__body_avatar0","classes","_pre_chat_message_activity__toolbar0","classes","_pre_chat_message_activity__body_subtitle0","classes","_pre_chat_message_activity__body_title0","classes","_pre_chat_message_activity__body__blueprint0","classes","_pre_chat_message_activity0","classes","hooks","cx","React","memo","hooks","cx","React","memo","useCallback","useMemo","useRefFrom","classes","StarterPromptsCardAction_module_default","_pre_chat_message_activity__card_action_box0","_pre_chat_message_activity__card_action_subtitle0","classes","_pre_chat_message_activity__card_action_image0","classes","_pre_chat_message_activity__card_action_title0","classes","useFocus","useRenderMarkdownAsHTML","useSendBoxValue","useUIState","hooks","StarterPromptsCardAction","className","messageBackAction","_","setSendBoxValue","uiState","classNames","f","StarterPromptsCardAction_module_default","focus","inputTextRef","useRefFrom","renderMarkdownAsHTML","subtitleHTML","useMemo","disabled","title","shouldShowBlueprint","handleClick","useCallback","React","cx","testIds_default","FluentIcon_default","StarterPromptsCardAction_default","memo","classes","StarterPromptsToolbar_module_default","_pre_chat_message_activity__card_action_toolbar_grid0","_pre_chat_message_activity__card_action_toolbar0","classes","useUIState","hooks","StarterPromptsToolbar","cardActions","className","classNames","f","StarterPromptsToolbar_module_default","uiState","React","cx","card","cardAction","index","StarterPromptsCardAction_default","StarterPromptsToolbar_default","memo","cx","React","memo","classes","ActivityDecorator_module_default","_variant_copilot0","_activity_decorator0","classes","_variant_fluent0","classes","React","memo","useMemo","hooks","useMemo","hooks","useStyleOptions","useActivityStyleOptions","activity","styleOptions","getOrgSchemaMessage","isAIGeneratedActivity","activity","useMemo","getOrgSchemaMessage","useActivityAuthor","activity","entity","classes","CopilotMessageHeader_module_default","_copilot_message_header__ai_generated_content0","_copilot_message_header__title0","classes","_copilot_message_header__avatar0","classes","_copilot_message_header0","classes","useLocalizer","hooks","CopilotMessageHeader","activity","botAvatarImage","botAvatarBackgroundColor","useActivityStyleOptions","classNames","f","CopilotMessageHeader_module_default","localize","isAIGenerated","isAIGeneratedActivity","avatarStyle","useMemo","author","useActivityAuthor","avatarImage","botTitle","React","CopilotMessageHeader_default","memo","ActivityDecorator","activity","children","classNames","f","ActivityDecorator_module_default","variants","useVariants","variantClassName","useVariantClassName","shouldRenderHeader","React","cx","CopilotMessageHeader_default","ActivityDecorator_default","memo","useLocalizer","useRenderMarkdownAsHTML","useUIState","hooks","PreChatMessageActivity","activity","uiState","classNames","f","PreChatMessageActivity_module_default","renderMarkdownAsHTML","localize","author","useActivityAuthor","html","useMemo","React","cx","StarterPromptsToolbar_default","PreChatMessageActivity_default","memo","computeSuggestedActionText","cardAction","title","type","value","React","createContext","memo","useCallback","useContext","useEffect","useMemo","useRef","RovingFocusContext","RovingFocusProvider","props","activeItemIndexRef","itemRefsRef","updateItemTabIndex","current","index","setActiveItemIndex","valueOrFunction","nextActiveItemIndex","ref","handleFocus","event","target","handleSetNextActive","key","currentIndex","isUnidirectional","isVerticalMove","isHorizontalMove","isForwardMove","direction","itemIndices","_","nextIndex","handleKeyDown","itemEffector","value","useRovingFocusItemRef","itemIndex","rovingFocus_default","hooks","cx","React","memo","useCallback","React","forwardRef","memo","useRef","preventDefaultHandler","event","AccessibleButton","ariaHidden","children","className","dataTestId","disabled","onClick","tabIndex","forwardedRef","targetRef","AccessibleButton_default","classes","SuggestedAction_module_default","_suggested_action0","_suggested_action__image0","classes","useFocus","usePerformCardAction","useScrollToEnd","useStyleSet","useSuggestedActionsHooks","useUIState","hooks","SuggestedAction","buttonText","className","displayText","image","imageAlt","itemIndex","text","type","value","_","setSuggestedActions","suggestedActionStyleSet","uiState","focus","focusRef","useRovingFocusItemRef","performCardAction","classNames","f","SuggestedAction_module_default","scrollToEnd","handleClick","useCallback","target","React","AccessibleButton_default","cx","testIds_default","SuggestedAction_default","memo","classes","SuggestedActions_module_default","_suggested_actions__flow0","_suggested_actions0","classes","_suggested_actions__stacked0","classes","useFocus","useLocalizer","useStyleOptions","useStyleSet","useSuggestedActionsHooks","useUIState","hooks","SuggestedActionStackedOrFlowContainer","props","suggestedActionLayout","suggestedActionsStyleSet","uiState","classNames","f","SuggestedActions_module_default","React","cx","SuggestedActions","localize","suggestedActions","_","activity","focus","handleEscapeKey","useCallback","children","isPreChatMessageActivity","cardAction","index","displayText","image","imageAltText","text","type","value","SuggestedAction_default","computeSuggestedActionText","rovingFocus_default","SuggestedActions_default","memo","React","memo","useMemo","useState","createContext","Context","Context_default","Provider","memo","children","shown","setShown","useState","context","useMemo","React","Context_default","Provider_default","React","memo","Components","cx","React","memo","useCallback","useEffect","useRef","useRefFrom","useContext","useMemo","useShown","setShown","shown","useContext","Context_default","useMemo","React","forwardRef","memo","useCallback","useRefFrom","classes","Button_module_default","_telephone_keypad__button__text0","_telephone_keypad__horizontal0","classes","_telephone_keypad__button0","classes","_telephone_keypad__button__ruby0","classes","Button","memo","forwardRef","button","dataTestId","onClick","ruby","ref","classNames","f","Button_module_default","onClickRef","useRefFrom","handleClick","useCallback","React","Button_default","classes","TelephoneKeypad_module_default","_telephone_keypad0","_telephone_keypad__info_message_link0","classes","_telephone_keypad__box0","classes","_telephone_keypad__info_message0","classes","LocalizedString","Components","Orientation","memo","children","isHorizontal","classNames","f","TelephoneKeypad_module_default","React","TelephoneKeypad","autoFocus","className","onButtonClick","autoFocusRef","useRefFrom","firstButtonRef","useRef","onButtonClickRef","setShown","useShown","handleButton1Click","useCallback","handleButton2Click","handleButton3Click","handleButton4Click","handleButton5Click","handleButton6Click","handleButton7Click","handleButton8Click","handleButton9Click","handleButton0Click","handleButtonStarClick","handleButtonPoundClick","handleKeyDown","event","useEffect","cx","Button_default","testIds_default","FluentIcon_default","TelephoneKeypad_default","TelephoneKeypadSurrogate","memo","props","useShown","React","TelephoneKeypad_default","Surrogate_default","hooks","React","useCallback","useRef","memo","useRefFrom","hooks","cx","React","memo","classes","Toolbar_module_default","_sendbox__toolbar_button__selected0","_sendbox__toolbar_separator0","classes","_sendbox__toolbar0","classes","_sendbox__toolbar_button0","classes","useUIState","hooks","preventDefaultHandler","event","ToolbarButton","memo","props","classNames","f","Toolbar_module_default","uiState","disabled","React","cx","Toolbar","ToolbarSeparator","classes","AddAttachmentButton_module_default","_sendbox__add_attachment_input0","_sendbox__add_attachment0","classes","useLocalizer","useStyleOptions","hooks","AddAttachmentButton","props","inputRef","useRef","classNames","f","AddAttachmentButton_module_default","localize","uploadAccept","uploadMultiple","onFilesAddedRef","useRefFrom","handleClick","useCallback","handleFileChange","files","React","ToolbarButton","testIds_default","FluentIcon_default","AddAttachmentButton_default","memo","useLiveRegion","React","memo","classes","ErrorMessage_module_default","_sendbox__error_message0","ErrorMessage","error","id","classNames","f","ErrorMessage_module_default","useLiveRegion","React","ErrorMessage_default","memo","hooks","useCallback","useMemo","useState","useRefFrom","useConnectivityStatus","useLocalizer","useSubmitError","attachments","message","connectivityStatus","error","setError","localize","submitErrorRef","errorMessageStringMap","hasValue","commitLatestError","useSubmitError_default","useCallback","hooks","useScrollDown","useScrollUp","useTranscriptNavigation","scrollDown","scrollUp","event","ctrlKey","metaKey","shiftKey","handled","useMemo","useUniqueId","prefix","id","classes","SendBox_module_default","_sendbox__text_counter__error0","_variant_copilot0","classes","_sendbox0","classes","_sendbox__sendbox_controls__in_grid0","classes","_sendbox__sendbox_controls0","classes","_sendbox__attachment_bar__in_grid0","classes","_sendbox__sendbox_text_area0","classes","_sendbox__text_area__in_grid0","classes","_sendbox__attachment_bar0","classes","_sendbox__sendbox0","classes","_sendbox__text_counter0","classes","_sendbox__telephone_keypad__in_grid0","classes","React","memo","useCallback","hooks","useLocalizer","hooks","TelephoneKeypadToolbarButton","memo","telephoneKeypadShown","setTelephoneKeypadShown","useShown","localize","handleClick","useCallback","shown","React","ToolbarButton","testIds_default","FluentIcon_default","TelephoneKeypadToolbarButton_default","useFocus","useLocalizer","useMakeThumbnail","useRegisterFocusSendBox","useSendBoxAttachments","useSendBoxValue","useSendMessage","useStyleOptions","useUIState","hooks","AttachmentBar","TextArea","Components","SendBox","props","disableFileUpload","hideTelephoneKeypadButton","maxMessageLength","attachments","setAttachments","globalMessage","setGlobalMessage","localMessage","setLocalMessage","useState","telephoneKeypadShown","useShown","uiState","classNames","f","SendBox_module_default","variantClassName","useVariantClassName","errorMessageId","useUniqueId","inputRef","useRef","localize","makeThumbnail","sendMessage","setFocus","message","setMessage","isBlueprint","errorMessage","commitLatestError","useSubmitError_default","isMessageLengthExceeded","shouldShowMessageLength","shouldShowTelephoneKeypad","useCallback","noKeyboard","waitUntil","previousReadOnly","resolve","attachmentsRef","useRefFrom","messageRef","handleSendBoxClick","event","handleMessageChange","handleAddFiles","inputFiles","newAttachments","file","thumbnailURL","handleFormSubmit","handleTelephoneKeypadButtonClick","dtmf","handleTranscriptNavigation","useTranscriptNavigation","aria","React","cx","testIds_default","SuggestedActions_default","Surrogate_default","Toolbar","TelephoneKeypadToolbarButton_default","AddAttachmentButton_default","ToolbarSeparator","ToolbarButton","FluentIcon_default","DropZone_default","ErrorMessage_default","PrimarySendBox","memo","SendBox_default","createActivityBorderMiddleware","DecoratorComposer","WebChatDecorator","Components","React","memo","cx","React","Fragment","memo","hooks","React","memo","useCallback","useEffect","useRef","useRefFrom","useReactContext","createContext","defaultContextValue","Context","Context_default","useContext","useReactContext","Context_default","useAssetURL","assetName","urlState","useContext","useLocalizer","useShouldReduceMotion","hooks","SlidingDots","className","shouldReduceMotion","url","useAssetURL","localize","objectElementRef","useRef","altText","shouldReduceMotionRef","useRefFrom","pauseAnimations","useCallback","contentDocument","svgElement","SVGSVGElement","unpauseAnimations","pauseOrUnpauseAnimations","useEffect","React","SlidingDots_default","memo","classes","ActivityLoader_module_default","_activity_loader0","_variant_fluent0","classes","_variant_copilot0","classes","FluentActivityLoader","children","showLoader","classNames","f","ActivityLoader_module_default","variantClassName","useVariantClassName","React","Fragment","SlidingDots_default","cx","ActivityLoader_default","memo","React","memo","useEffect","useMemo","SLIDING_DOTS_SVG_STRING","AssetComposer","memo","children","slidingDotsURL","useMemo","useEffect","context","React","Context_default","AssetComposer_default","isLinerMessageActivity","activity","React","memo","classes","LinerMessageActivity_module_default","_liner_message_activity__text0","_liner_message_activity0","classes","LinerMessageActivity","activity","classNames","f","LinerMessageActivity_module_default","React","LinerActivity_default","memo","React","cx","classes","Theme_module_default","_theme0","_variant_copilot0","classes","rootClassName","Theme","props","classNames","f","Theme_module_default","variantClassName","useVariantClassName","React","cx","testIds","cx","React","memo","classes","SlidingDotsTypingIndicator_module_default","_sliding_dots_typing_indicator0","_sliding_dots_typing_indicator__image0","classes","SlidingDotsTypingIndicator","classNames","f","SlidingDotsTypingIndicator_module_default","React","testIds","SlidingDots_default","cx","SlidingDotsTypingIndicator_default","memo","ThemeProvider","Components","activityMiddleware","next","args","activity","isPreChatMessageActivity","React","PreChatMessageActivity_default","isLinerMessageActivity","LinerActivity_default","renderActivity","ActivityDecorator_default","sendBoxMiddleware","PrimarySendBox","decoratorMiddleware","createActivityBorderMiddleware","request","Next","props","ActivityLoader_default","styles","createStyles_default","fluentStyleOptions","typingIndicatorMiddleware","SlidingDotsTypingIndicator_default","FluentThemeProvider","children","variant","VariantComposer_default","Theme","Provider_default","AssetComposer_default","WebChatDecorator","DecoratorComposer","FluentThemeProvider_default","memo","buildTool","moduleFormat","version","buildInfo","injectMetaTag"]}
1
+ {"version":3,"sources":["../src/components/sendBox/SendBox.tsx","../src/components/icon/FluentIcon.tsx","../../react-valibot/src/reactNode.ts","../../react-valibot/src/validateProps.ts","../../styles/src/react/private/useStyles.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/icon/FluentIcon.module.css?css_module","../../styles/src/private/makeCreateStyles.ts","../src/styles/createStyles.ts","../src/styles/useVariantClassName.ts","../src/private/useVariants.ts","../src/private/VariantComposer.ts","../src/private/createComposer.tsx","../src/testIds.ts","../src/components/dropZone/DropZone.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/dropZone/DropZone.module.css?css_module","../src/components/suggestedActions/SuggestedActions.tsx","../src/components/preChatActivity/isPreChatMessageActivity.ts","../src/components/preChatActivity/PreChatMessageActivity.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/PreChatMessageActivity.module.css?css_module","../src/components/preChatActivity/StarterPromptsToolbar.tsx","../src/components/preChatActivity/StarterPromptsCardAction.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsCardAction.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsToolbar.module.css?css_module","../src/components/activity/ActivityDecorator.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityDecorator.module.css?css_module","../src/components/activity/private/useActivityAuthor.ts","../src/components/suggestedActions/private/computeSuggestedActionText.ts","../src/components/suggestedActions/private/rovingFocus.tsx","../src/components/suggestedActions/SuggestedAction.tsx","../src/components/suggestedActions/AccessibleButton.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedAction.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedActions.module.css?css_module","../src/components/telephoneKeypad/Provider.tsx","../src/components/telephoneKeypad/private/Context.ts","../src/components/telephoneKeypad/Surrogate.tsx","../src/components/telephoneKeypad/private/TelephoneKeypad.tsx","../src/components/telephoneKeypad/useShown.ts","../src/components/telephoneKeypad/private/Button.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/Button.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/TelephoneKeypad.module.css?css_module","../src/components/sendBox/AddAttachmentButton.tsx","../src/components/sendBox/Toolbar.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/Toolbar.module.css?css_module","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/AddAttachmentButton.module.css?css_module","../src/components/sendBox/ErrorMessage.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/ErrorMessage.module.css?css_module","../src/components/sendBox/private/useSubmitError.ts","../src/components/sendBox/private/useTranscriptNavigation.ts","../src/components/sendBox/private/useUniqueId.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/SendBox.module.css?css_module","../src/components/sendBox/TelephoneKeypadToolbarButton.tsx","../src/private/FluentThemeProvider.tsx","../src/components/activity/ActivityLoader.tsx","../src/components/assets/SlidingDots.tsx","../src/components/assets/private/useContext.ts","../src/components/assets/private/Context.ts","../src/components/assets/private/useAssetURL.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityLoader.module.css?css_module","../src/components/activity/PartGroupingDecorator.tsx","../src/components/activity/CopilotMessageHeader.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/CopilotMessageHeader.module.css?css_module","../src/components/activity/private/isAIGeneratedActivity.ts","../src/components/activity/private/useActivityStyleOptions.ts","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/PartGroupingDecorator.module.css?css_module","../src/components/assets/AssetComposer.tsx","../src/components/linerActivity/private/isLinerMessageActivity.ts","../src/components/linerActivity/private/LinerActivity.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/linerActivity/private/LinerMessageActivity.module.css?css_module","../src/components/theme/Theme.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/theme/Theme.module.css?css_module","../src/components/typingIndicator/SlidingDotsTypingIndicator.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/typingIndicator/SlidingDotsTypingIndicator.module.css?css_module","../../../node_modules/core-js-pure/internals/global-this.js","../../../node_modules/core-js-pure/internals/fails.js","../../../node_modules/core-js-pure/internals/function-bind-native.js","../../../node_modules/core-js-pure/internals/function-apply.js","../../../node_modules/core-js-pure/internals/function-uncurry-this.js","../../../node_modules/core-js-pure/internals/classof-raw.js","../../../node_modules/core-js-pure/internals/function-uncurry-this-clause.js","../../../node_modules/core-js-pure/internals/is-callable.js","../../../node_modules/core-js-pure/internals/descriptors.js","../../../node_modules/core-js-pure/internals/function-call.js","../../../node_modules/core-js-pure/internals/object-property-is-enumerable.js","../../../node_modules/core-js-pure/internals/create-property-descriptor.js","../../../node_modules/core-js-pure/internals/indexed-object.js","../../../node_modules/core-js-pure/internals/is-null-or-undefined.js","../../../node_modules/core-js-pure/internals/require-object-coercible.js","../../../node_modules/core-js-pure/internals/to-indexed-object.js","../../../node_modules/core-js-pure/internals/is-object.js","../../../node_modules/core-js-pure/internals/path.js","../../../node_modules/core-js-pure/internals/get-built-in.js","../../../node_modules/core-js-pure/internals/object-is-prototype-of.js","../../../node_modules/core-js-pure/internals/environment-user-agent.js","../../../node_modules/core-js-pure/internals/environment-v8-version.js","../../../node_modules/core-js-pure/internals/symbol-constructor-detection.js","../../../node_modules/core-js-pure/internals/use-symbol-as-uid.js","../../../node_modules/core-js-pure/internals/is-symbol.js","../../../node_modules/core-js-pure/internals/try-to-string.js","../../../node_modules/core-js-pure/internals/a-callable.js","../../../node_modules/core-js-pure/internals/get-method.js","../../../node_modules/core-js-pure/internals/ordinary-to-primitive.js","../../../node_modules/core-js-pure/internals/is-pure.js","../../../node_modules/core-js-pure/internals/define-global-property.js","../../../node_modules/core-js-pure/internals/shared-store.js","../../../node_modules/core-js-pure/internals/shared.js","../../../node_modules/core-js-pure/internals/to-object.js","../../../node_modules/core-js-pure/internals/has-own-property.js","../../../node_modules/core-js-pure/internals/uid.js","../../../node_modules/core-js-pure/internals/well-known-symbol.js","../../../node_modules/core-js-pure/internals/to-primitive.js","../../../node_modules/core-js-pure/internals/to-property-key.js","../../../node_modules/core-js-pure/internals/document-create-element.js","../../../node_modules/core-js-pure/internals/ie8-dom-define.js","../../../node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","../../../node_modules/core-js-pure/internals/is-forced.js","../../../node_modules/core-js-pure/internals/function-bind-context.js","../../../node_modules/core-js-pure/internals/v8-prototype-define-bug.js","../../../node_modules/core-js-pure/internals/an-object.js","../../../node_modules/core-js-pure/internals/object-define-property.js","../../../node_modules/core-js-pure/internals/create-non-enumerable-property.js","../../../node_modules/core-js-pure/internals/export.js","../../../node_modules/core-js-pure/internals/environment.js","../../../node_modules/core-js-pure/internals/environment-is-node.js","../../../node_modules/core-js-pure/internals/define-built-in.js","../../../node_modules/core-js-pure/internals/function-uncurry-this-accessor.js","../../../node_modules/core-js-pure/internals/is-possible-prototype.js","../../../node_modules/core-js-pure/internals/a-possible-prototype.js","../../../node_modules/core-js-pure/internals/object-set-prototype-of.js","../../../node_modules/core-js-pure/internals/to-string-tag-support.js","../../../node_modules/core-js-pure/internals/classof.js","../../../node_modules/core-js-pure/internals/object-to-string.js","../../../node_modules/core-js-pure/internals/set-to-string-tag.js","../../../node_modules/core-js-pure/internals/define-built-in-accessor.js","../../../node_modules/core-js-pure/internals/set-species.js","../../../node_modules/core-js-pure/internals/an-instance.js","../../../node_modules/core-js-pure/internals/inspect-source.js","../../../node_modules/core-js-pure/internals/is-constructor.js","../../../node_modules/core-js-pure/internals/a-constructor.js","../../../node_modules/core-js-pure/internals/species-constructor.js","../../../node_modules/core-js-pure/internals/html.js","../../../node_modules/core-js-pure/internals/array-slice.js","../../../node_modules/core-js-pure/internals/validate-arguments-length.js","../../../node_modules/core-js-pure/internals/environment-is-ios.js","../../../node_modules/core-js-pure/internals/task.js","../../../node_modules/core-js-pure/internals/safe-get-built-in.js","../../../node_modules/core-js-pure/internals/queue.js","../../../node_modules/core-js-pure/internals/environment-is-ios-pebble.js","../../../node_modules/core-js-pure/internals/environment-is-webos-webkit.js","../../../node_modules/core-js-pure/internals/microtask.js","../../../node_modules/core-js-pure/internals/host-report-errors.js","../../../node_modules/core-js-pure/internals/perform.js","../../../node_modules/core-js-pure/internals/weak-map-basic-detection.js","../../../node_modules/core-js-pure/internals/shared-key.js","../../../node_modules/core-js-pure/internals/hidden-keys.js","../../../node_modules/core-js-pure/internals/internal-state.js","../../../node_modules/core-js-pure/internals/promise-native-constructor.js","../../../node_modules/core-js-pure/internals/promise-constructor-detection.js","../../../node_modules/core-js-pure/internals/new-promise-capability.js","../../../node_modules/core-js-pure/modules/es.promise.constructor.js","../../../node_modules/core-js-pure/internals/iterators.js","../../../node_modules/core-js-pure/internals/is-array-iterator-method.js","../../../node_modules/core-js-pure/internals/math-trunc.js","../../../node_modules/core-js-pure/internals/to-integer-or-infinity.js","../../../node_modules/core-js-pure/internals/to-length.js","../../../node_modules/core-js-pure/internals/length-of-array-like.js","../../../node_modules/core-js-pure/internals/get-iterator-method.js","../../../node_modules/core-js-pure/internals/get-iterator.js","../../../node_modules/core-js-pure/internals/iterator-close.js","../../../node_modules/core-js-pure/internals/iterate.js","../../../node_modules/core-js-pure/internals/check-correctness-of-iteration.js","../../../node_modules/core-js-pure/internals/promise-statics-incorrect-iteration.js","../../../node_modules/core-js-pure/modules/es.promise.all.js","../../../node_modules/core-js-pure/modules/es.promise.catch.js","../../../node_modules/core-js-pure/modules/es.promise.race.js","../../../node_modules/core-js-pure/modules/es.promise.reject.js","../../../node_modules/core-js-pure/internals/promise-resolve.js","../../../node_modules/core-js-pure/modules/es.promise.resolve.js","../../../node_modules/core-js-pure/modules/es.promise.js","../../../node_modules/core-js-pure/modules/es.promise.with-resolvers.js","../../../node_modules/core-js-pure/es/promise/with-resolvers.js","../../../node_modules/core-js-pure/stable/promise/with-resolvers.js","../../../node_modules/core-js-pure/modules/esnext.promise.with-resolvers.js","../../../node_modules/core-js-pure/actual/promise/with-resolvers.js","../../../node_modules/core-js-pure/full/promise/with-resolvers.js","../../../node_modules/core-js-pure/features/promise/with-resolvers.js","../../base/src/utils/setMetaTag.ts","../../base/src/utils/createBuildInfo.ts","../../base/src/utils/withResolvers.ts","../src/buildInfo.ts","../src/index.ts"],"sourcesContent":["import { hooks, Components, type SendBoxFocusOptions } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, {\n memo,\n ReactNode,\n useCallback,\n useRef,\n useState,\n type FormEventHandler,\n type MouseEventHandler\n} from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport { useStyles, useVariantClassName } from '../../styles';\nimport testIds from '../../testIds';\nimport { DropZone } from '../dropZone';\nimport { SuggestedActions } from '../suggestedActions';\nimport { TelephoneKeypadSurrogate, useTelephoneKeypadShown, type DTMF } from '../telephoneKeypad';\nimport AddAttachmentButton from './AddAttachmentButton';\nimport ErrorMessage from './ErrorMessage';\nimport useSubmitError from './private/useSubmitError';\nimport useTranscriptNavigation from './private/useTranscriptNavigation';\nimport useUniqueId from './private/useUniqueId';\nimport styles from './SendBox.module.css';\nimport TelephoneKeypadToolbarButton from './TelephoneKeypadToolbarButton';\nimport { Toolbar, ToolbarButton, ToolbarSeparator } from './Toolbar';\n\nconst {\n useFocus,\n useLocalizer,\n useMakeThumbnail,\n useRegisterFocusSendBox,\n useSendBoxAttachments,\n useSendBoxValue,\n useSendMessage,\n useStyleOptions,\n useUIState\n} = hooks;\n\nconst { AttachmentBar, TextArea } = Components;\n\ntype Props = Readonly<{\n className?: string | undefined;\n completion?: ReactNode | undefined;\n isPrimary?: boolean | undefined;\n placeholder?: string | undefined;\n}>;\n\nfunction SendBox(props: Props) {\n const [{ disableFileUpload, hideTelephoneKeypadButton, maxMessageLength }] = useStyleOptions();\n const [attachments, setAttachments] = useSendBoxAttachments();\n const [globalMessage, setGlobalMessage] = useSendBoxValue();\n const [localMessage, setLocalMessage] = useState('');\n const [telephoneKeypadShown] = useTelephoneKeypadShown();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n const errorMessageId = useUniqueId('sendbox__error-message-id');\n const inputRef = useRef<HTMLTextAreaElement>(null);\n const localize = useLocalizer();\n const makeThumbnail = useMakeThumbnail();\n const sendMessage = useSendMessage();\n const setFocus = useFocus();\n\n const message = props.isPrimary ? globalMessage : localMessage;\n const setMessage = props.isPrimary ? setGlobalMessage : setLocalMessage;\n const isBlueprint = uiState === 'blueprint';\n\n const [errorMessage, commitLatestError] = useSubmitError({ message, attachments });\n const isMessageLengthExceeded = !!maxMessageLength && message.length > maxMessageLength;\n const shouldShowMessageLength =\n !isBlueprint && !telephoneKeypadShown && maxMessageLength && isFinite(maxMessageLength);\n const shouldShowTelephoneKeypad = !isBlueprint && telephoneKeypadShown;\n\n useRegisterFocusSendBox(\n useCallback(\n ({ noKeyboard, waitUntil }: SendBoxFocusOptions) => {\n if (!inputRef.current) {\n return;\n }\n if (noKeyboard) {\n waitUntil(\n (async () => {\n const previousReadOnly = inputRef.current?.getAttribute('readonly');\n inputRef.current?.setAttribute('readonly', 'true');\n // TODO: [P2] We should update this logic to handle quickly-successive `focusCallback`.\n // If a succeeding `focusCallback` is being called, the `setTimeout` should run immediately.\n // Or the second `focusCallback` should not set `readonly` to `true`.\n // eslint-disable-next-line no-restricted-globals\n await new Promise(resolve => setTimeout(resolve, 0));\n inputRef.current?.focus();\n if (typeof previousReadOnly !== 'string') {\n inputRef.current?.removeAttribute('readonly');\n } else {\n inputRef.current?.setAttribute('readonly', previousReadOnly);\n }\n })()\n );\n } else {\n inputRef.current?.focus();\n }\n },\n [inputRef]\n )\n );\n\n const attachmentsRef = useRefFrom(attachments);\n const messageRef = useRefFrom(message);\n\n const handleSendBoxClick = useCallback<MouseEventHandler>(\n event => {\n if ('tabIndex' in event.target && typeof event.target.tabIndex === 'number' && event.target.tabIndex >= 0) {\n return;\n }\n\n setFocus('sendBox');\n },\n [setFocus]\n );\n\n const handleMessageChange: React.FormEventHandler<HTMLTextAreaElement> = useCallback(\n event => setMessage(event.currentTarget.value),\n [setMessage]\n );\n\n const handleAddFiles = useCallback(\n async (inputFiles: File[]) => {\n const newAttachments = Object.freeze(\n await Promise.all(\n inputFiles.map(file =>\n makeThumbnail(file).then(thumbnailURL =>\n Object.freeze({\n blob: file,\n ...(thumbnailURL && { thumbnailURL })\n })\n )\n )\n )\n );\n\n setAttachments(attachmentsRef.current.concat(newAttachments));\n },\n [attachmentsRef, makeThumbnail, setAttachments]\n );\n\n const handleFormSubmit: FormEventHandler<HTMLFormElement> = useCallback(\n event => {\n event.preventDefault();\n const error = commitLatestError();\n\n if (error !== 'empty' && !isMessageLengthExceeded) {\n sendMessage(messageRef.current, undefined, { attachments: attachmentsRef.current });\n\n setMessage('');\n setAttachments([]);\n }\n\n setFocus('sendBox');\n },\n [\n commitLatestError,\n isMessageLengthExceeded,\n setFocus,\n sendMessage,\n setMessage,\n messageRef,\n attachmentsRef,\n setAttachments\n ]\n );\n\n const handleTelephoneKeypadButtonClick = useCallback(\n // TODO: We need more official way of sending DTMF.\n (dtmf: DTMF) => sendMessage(`/DTMFKey ${dtmf}`),\n [sendMessage]\n );\n\n const handleTranscriptNavigation = useTranscriptNavigation();\n\n const aria = {\n 'aria-invalid': 'false' as const,\n ...(errorMessage && {\n 'aria-describedby': errorMessageId,\n 'aria-errormessage': errorMessageId,\n 'aria-invalid': 'true' as const\n })\n };\n\n return (\n <form\n {...aria}\n className={cx(classNames['sendbox'], variantClassName, props.className)}\n data-testid={testIds.sendBoxContainer}\n onSubmit={handleFormSubmit}\n >\n <SuggestedActions />\n <div\n className={cx(classNames['sendbox__sendbox'])}\n onClickCapture={handleSendBoxClick}\n onKeyDown={handleTranscriptNavigation}\n >\n <TextArea\n aria-label={isMessageLengthExceeded ? localize('TEXT_INPUT_LENGTH_EXCEEDED_ALT') : localize('TEXT_INPUT_ALT')}\n className={cx(classNames['sendbox__sendbox-text-area'], classNames['sendbox__text-area--in-grid'])}\n completion={props.completion}\n data-testid={testIds.sendBoxTextBox}\n hidden={shouldShowTelephoneKeypad}\n onInput={handleMessageChange}\n placeholder={props.placeholder ?? localize('TEXT_INPUT_PLACEHOLDER')}\n ref={inputRef}\n value={message}\n />\n <TelephoneKeypadSurrogate\n autoFocus={true}\n className={classNames['sendbox__telephone-keypad--in-grid']}\n isHorizontal={false}\n onButtonClick={handleTelephoneKeypadButtonClick}\n />\n {!isBlueprint && (\n <AttachmentBar\n className={cx(\n 'webchat__send-box__attachment-bar',\n classNames['sendbox__attachment-bar'],\n classNames['sendbox__attachment-bar--in-grid']\n )}\n />\n )}\n <div className={cx(classNames['sendbox__sendbox-controls'], classNames['sendbox__sendbox-controls--in-grid'])}>\n {shouldShowMessageLength && (\n <div\n className={cx(classNames['sendbox__text-counter'], {\n [classNames['sendbox__text-counter--error']]: isMessageLengthExceeded\n })}\n >\n {`${message.length}/${maxMessageLength}`}\n </div>\n )}\n <Toolbar>\n {!hideTelephoneKeypadButton && <TelephoneKeypadToolbarButton />}\n {!disableFileUpload && <AddAttachmentButton onFilesAdded={handleAddFiles} />}\n <ToolbarSeparator />\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_SEND_BUTTON_ALT')}\n data-testid={testIds.sendBoxSendButton}\n disabled={isMessageLengthExceeded || shouldShowTelephoneKeypad}\n type=\"submit\"\n >\n <FluentIcon appearance=\"text\" icon=\"send\" />\n </ToolbarButton>\n </Toolbar>\n </div>\n {!disableFileUpload && <DropZone onFilesAdded={handleAddFiles} />}\n <ErrorMessage error={errorMessage} id={errorMessageId} />\n </div>\n </form>\n );\n}\n\nconst PrimarySendBox = memo((props: Exclude<Props, 'primary'>) => <SendBox {...props} isPrimary={true} />);\n\nPrimarySendBox.displayName = 'PrimarySendBox';\n\nexport default memo(SendBox);\n\nexport { PrimarySendBox };\n","import { createIconComponent } from 'botframework-webchat-component/internal';\nimport { validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { memo, useMemo, type CSSProperties } from 'react';\nimport { object, optional, pipe, readonly, string, type InferInput } from 'valibot';\n\nimport styles from './FluentIcon.module.css';\n\nconst baseFluentIconPropsSchema = pipe(\n object({\n className: optional(string()),\n mask: optional(string())\n }),\n readonly()\n);\n\nfunction BaseFluentIcon(props: InferInput<typeof baseFluentIconPropsSchema>) {\n const { className } = validateProps(baseFluentIconPropsSchema, props);\n\n const classNames = useStyles(styles);\n\n const maskStyle = useMemo(\n () =>\n props.mask ? ({ '--webchat__fluent-icon--mask': `url(${JSON.stringify(props.mask)})` } as CSSProperties) : {},\n [props.mask]\n );\n\n return <div className={cx(classNames['fluent-icon'], className)} style={maskStyle} />;\n}\n\nconst { component: FluentIcon, modifierPropsSchema } = createIconComponent(\n styles,\n ['appearance', 'icon'],\n BaseFluentIcon\n);\n\nFluentIcon.displayName = 'FluentIcon';\n\nconst fluentIconPropsSchema = pipe(\n object({\n ...baseFluentIconPropsSchema.entries,\n ...modifierPropsSchema.entries\n }),\n readonly()\n);\n\ntype FluentIconProps = InferInput<typeof fluentIconPropsSchema>;\n\nexport default memo(FluentIcon);\nexport { fluentIconPropsSchema, type FluentIconProps };\n","import { type ReactNode } from 'react';\nimport { custom, type CustomIssue, type CustomSchema, type ErrorMessage } from 'valibot';\n\nfunction reactNode(): CustomSchema<ReactNode, undefined>;\n\nfunction reactNode<\n const TMessage extends ErrorMessage<CustomIssue> | undefined = ErrorMessage<CustomIssue> | undefined\n>(message: TMessage): CustomSchema<ReactNode, TMessage>;\n\nfunction reactNode<\n const TMessage extends ErrorMessage<CustomIssue> | undefined = ErrorMessage<CustomIssue> | undefined\n>(message?: TMessage): CustomSchema<ReactNode, TMessage> {\n return custom<ReactNode, TMessage>(\n () => true,\n // TODO: Probably lacking some undefined checks, thus, we need to force cast.\n message as TMessage\n );\n}\n\nexport default reactNode;\n","import { parse, safeParse, type BaseIssue, type BaseSchema, type InferInput, type InferOutput } from 'valibot';\n\n/**\n * Specifies the props isolation mode.\n *\n * - `\"no isolation\"` will return the props as-is without cloning or modifications\n * - `\"strict\"` will isolate the props using `valibot.parse()`\n * - Depends on schema design, it could clone object instances, remove extraneous properties from objects, or fill in optional fields\n */\ntype IsolationMode = 'no isolation' | 'strict';\n\ndeclare const process: {\n env: {\n NODE_ENV?: string | undefined;\n };\n};\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'no isolation' | undefined\n): InferInput<TSchema>;\n\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: unknown,\n isolationMode?: 'strict'\n): InferOutput<TSchema>;\n\n/**\n * Validates props against the specified valibot schema when running under development mode.\n *\n * This function will not perform any validations when running under production mode.\n *\n * @param propsSchema validation schema\n * @param props props to validate\n * @param mode specifies the isolation mode, default to `\"no isolation\"`\n * @returns\n */\nexport default function validateProps<const TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>>(\n propsSchema: TSchema,\n props: InferInput<TSchema>,\n isolationMode?: IsolationMode | undefined\n): InferInput<TSchema> | InferOutput<TSchema> {\n // When an error boundary caught an error, React will render some components again with `props` of `undefined`.\n if (typeof props === 'undefined') {\n // This is probably React rendering while an error is caught, assume it is okay.\n return;\n }\n\n if (process.env.NODE_ENV === 'production') {\n return props as unknown as InferInput<TSchema>;\n }\n\n if (isolationMode !== 'strict' && safeParse(propsSchema, props).success) {\n return props as unknown as InferInput<TSchema>;\n }\n\n // Code path hit here when under strict isolation, or no isolation and failed earlier.\n\n try {\n return parse(propsSchema, props);\n } catch (error) {\n const validationError = new Error('botframework-webchat: Validation error while parsing props.');\n\n console.error(validationError, error && typeof error === 'object' && 'issues' in error && error.issues);\n\n validationError.cause = error;\n\n throw validationError;\n }\n}\n","import { useMemo } from 'react';\n\nfunction useStyles<T extends CSSModuleClasses>(styles: T): T {\n // @ts-expect-error: entries/fromEntries don't allow to specify keys type\n return useMemo(\n () =>\n Object.freeze(\n Object.fromEntries(\n Object.entries(styles).map(([baseClassName, resultClassName]) => [\n baseClassName,\n `${baseClassName} ${resultClassName}`\n ])\n )\n ),\n [styles]\n );\n}\n\nexport default useStyles;\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/icon/FluentIcon.module_built.css\";\nconst classes = {\"icon--attachment\":\"wdGN4aG_icon--attachment\",\"icon--info-16\":\"wdGN4aG_icon--info-16\",\"icon--send\":\"wdGN4aG_icon--send\",\"icon--keypad\":\"wdGN4aG_icon--keypad\",\"fluent-icon\":\"wdGN4aG_fluent-icon\",\"appearance--text\":\"wdGN4aG_appearance--text\",\"icon--add-document\":\"wdGN4aG_icon--add-document\"}\nexport default classes\n\nconst _icon__attachment0 = classes[\"icon--attachment\"]\nexport { _icon__attachment0 as \"icon--attachment\" }\n\nconst _icon__info_160 = classes[\"icon--info-16\"]\nexport { _icon__info_160 as \"icon--info-16\" }\n\nconst _icon__send0 = classes[\"icon--send\"]\nexport { _icon__send0 as \"icon--send\" }\n\nconst _icon__keypad0 = classes[\"icon--keypad\"]\nexport { _icon__keypad0 as \"icon--keypad\" }\n\nconst _fluent_icon0 = classes[\"fluent-icon\"]\nexport { _fluent_icon0 as \"fluent-icon\" }\n\nconst _appearance__text0 = classes[\"appearance--text\"]\nexport { _appearance__text0 as \"appearance--text\" }\n\nconst _icon__add_document0 = classes[\"icon--add-document\"]\nexport { _icon__add_document0 as \"icon--add-document\" }\n","function createStyle(content: string, origin?: string) {\n const style = document.createElement('style');\n\n style.append(document.createTextNode(content));\n\n if (origin) {\n style.dataset['webchatInjected'] = origin;\n }\n\n return style;\n}\n\nexport default function makeCreateStyles(...contents: string[]) {\n return function createStyles(origin?: string) {\n if (!globalThis.document) {\n throw new Error('Unable to create styles: document is not defined');\n }\n\n return contents.map(content => createStyle(content, origin));\n };\n}\n","import { makeCreateStyles } from '@msinternal/botframework-webchat-styles';\n\nexport const fluentStyleContent = '@--FLUENT-STYLES-CONTENT--@';\n\nexport default makeCreateStyles(fluentStyleContent);\n","import { useMemo } from 'react';\nimport useVariants from '../private/useVariants';\nimport useStyles from './useStyles';\n\nexport default function useVariantClassName<T extends CSSModuleClasses>(styles: T): string {\n const classNames = useStyles(styles);\n const variants = useVariants();\n return useMemo(\n () =>\n variants\n .map(variant => classNames[`variant-${variant}`])\n .filter(value => value)\n .join(' '),\n [classNames, variants]\n );\n}\n","import { useContext, useMemo } from 'react';\nimport { VariantContext } from './VariantComposer';\n\nexport default function useVariants() {\n const { variant } = useContext(VariantContext);\n return useMemo(() => variant.split(' '), [variant]);\n}\n","import { createContext } from 'react';\n\nimport createComposer from './createComposer';\n\ntype VariantName = 'fluent' | 'copilot' | '';\n\nexport type VariantList = `${VariantName}`;\n\nexport type VariantContextType = {\n variant: VariantList;\n};\n\nexport const VariantContext = createContext<VariantContextType>(\n new Proxy(\n {},\n {\n get() {\n throw new Error('Unable to use VariantContext without VariantComposer');\n }\n }\n ) as unknown as VariantContextType\n);\n\nconst VariantComposer = createComposer<VariantContextType>(VariantContext, {\n defaults: { variant: '' },\n displayName: 'VariantComposer'\n});\n\nexport default VariantComposer;\n","import React, { type Context, memo, type ReactNode, useMemo } from 'react';\n\nexport default function createComposer<\n C,\n P extends { children?: ReactNode | undefined } = Partial<C> & { children?: ReactNode | undefined }\n>({ Provider }: Context<C>, { defaults, displayName }: Readonly<{ defaults: Readonly<C>; displayName: string }>) {\n const Composer = ({ children, ...props }: Readonly<P>) => {\n const value = useMemo(() => Object.freeze({ ...defaults, ...props }), [props]);\n\n return <Provider value={value}>{children}</Provider>;\n };\n\n Composer.displayName = displayName;\n\n return memo(Composer);\n}\n","const testIds = {\n preChatMessageActivityStarterPromptsCardAction: 'pre-chat message activity starter prompts card action',\n sendBoxContainer: 'send box container',\n sendBoxDropZone: 'send box drop zone',\n sendBoxSendButton: 'send box send button',\n sendBoxSuggestedAction: 'send box suggested action',\n sendBoxTextBox: 'send box text area',\n sendBoxTelephoneKeypadButton1: `send box telephone keypad button 1`,\n sendBoxTelephoneKeypadButton2: `send box telephone keypad button 2`,\n sendBoxTelephoneKeypadButton3: `send box telephone keypad button 3`,\n sendBoxTelephoneKeypadButton4: `send box telephone keypad button 4`,\n sendBoxTelephoneKeypadButton5: `send box telephone keypad button 5`,\n sendBoxTelephoneKeypadButton6: `send box telephone keypad button 6`,\n sendBoxTelephoneKeypadButton7: `send box telephone keypad button 7`,\n sendBoxTelephoneKeypadButton8: `send box telephone keypad button 8`,\n sendBoxTelephoneKeypadButton9: `send box telephone keypad button 9`,\n sendBoxTelephoneKeypadButton0: `send box telephone keypad button 0`,\n sendBoxTelephoneKeypadButtonStar: `send box telephone keypad button star`,\n sendBoxTelephoneKeypadButtonPound: `send box telephone keypad button pound`,\n sendBoxTelephoneKeypadToolbarButton: 'send box telephone keypad toolbar button',\n sendBoxUploadButton: 'send box upload button'\n};\n\nexport default testIds;\n","import { hooks } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, {\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n type DragEvent as ReactDragEvent,\n type DragEventHandler\n} from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport styles from './DropZone.module.css';\nimport { useStyles } from '../../styles';\n\nconst { useLocalizer } = hooks;\n\nconst handleDragOver = (event: ReactDragEvent<unknown> | DragEvent) => {\n // Prevent default dragover behavior to enable drop event triggering.\n // Browsers require this to fire subsequent drop events - without it,\n // they would handle the drop directly (e.g., open files in new tabs).\n // This is needed regardless of whether we prevent default drop behavior,\n // as it ensures our dropzone receives the drop event first. If we allow\n // default drop handling (by not calling preventDefault there), the browser\n // will still process the drop after our event handlers complete.\n event.preventDefault();\n};\n\n// Notes: For files dragging from outside of browser, it only tell us if it is a \"File\" instead of \"text/plain\" or \"text/uri-list\".\n// For images dragging inside of browser, it only tell us that it is \"text/plain\", \"text/uri-list\" and \"text/html\". But not \"image/*\".\n// So we cannot allowlist what is droppable.\n// We are using case-insensitive of type \"files\" so we can drag in WebDriver.\nconst isFilesTransferEvent = (event: DragEvent) =>\n !!event.dataTransfer?.types?.some(type => type.toLowerCase() === 'files');\n\nfunction isDescendantOf(target: Node, ancestor: Node): boolean {\n let current = target.parentNode;\n\n while (current) {\n if (current === ancestor) {\n return true;\n }\n\n current = current.parentNode;\n }\n\n return false;\n}\n\nconst DropZone = (props: { readonly onFilesAdded: (files: File[]) => void }) => {\n const [dropZoneState, setDropZoneState] = useState<false | 'visible' | 'droppable'>(false);\n const classNames = useStyles(styles);\n const dropZoneRef = useRef<HTMLDivElement>(null);\n const localize = useLocalizer();\n const onFilesAddedRef = useRefFrom(props.onFilesAdded);\n\n useEffect(() => {\n let entranceCounter = 0;\n\n const handleDragEnter = (event: DragEvent) => {\n document.addEventListener('dragover', handleDragOver);\n\n entranceCounter++;\n\n if (isFilesTransferEvent(event)) {\n setDropZoneState(\n dropZoneRef.current &&\n (event.target === dropZoneRef.current ||\n (event.target instanceof HTMLElement && isDescendantOf(event.target, dropZoneRef.current)))\n ? 'droppable'\n : 'visible'\n );\n }\n };\n\n const handleDragLeave = () => --entranceCounter <= 0 && setDropZoneState(false);\n\n const handleDragEnd = () => {\n document.removeEventListener('dragover', handleDragOver);\n\n entranceCounter = 0;\n\n setDropZoneState(false);\n };\n\n const handleDocumentDrop = (event: DragEvent) => {\n if (!dropZoneRef.current?.contains(event.target as Node)) {\n handleDragEnd();\n }\n };\n\n document.addEventListener('dragend', handleDragEnd);\n document.addEventListener('dragenter', handleDragEnter);\n document.addEventListener('dragleave', handleDragLeave);\n document.addEventListener('drop', handleDocumentDrop);\n\n return () => {\n document.removeEventListener('dragend', handleDragEnd);\n document.removeEventListener('dragenter', handleDragEnter);\n document.removeEventListener('dragleave', handleDragLeave);\n document.removeEventListener('dragover', handleDragOver);\n document.removeEventListener('drop', handleDocumentDrop);\n };\n }, [setDropZoneState]);\n\n const handleDrop = useCallback<DragEventHandler<HTMLDivElement>>(\n event => {\n event.preventDefault();\n\n setDropZoneState(false);\n\n if (!isFilesTransferEvent(event.nativeEvent)) {\n return;\n }\n\n onFilesAddedRef.current([...event.dataTransfer.files]);\n },\n [onFilesAddedRef, setDropZoneState]\n );\n\n return dropZoneState ? (\n <div\n className={cx(classNames['sendbox__attachment-drop-zone'], {\n [classNames['sendbox__attachment-drop-zone--droppable']]: dropZoneState === 'droppable'\n })}\n data-testid={testIds.sendBoxDropZone}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n ref={dropZoneRef}\n >\n <FluentIcon appearance=\"text\" className={classNames['sendbox__attachment-drop-zone-icon']} icon=\"add-document\" />\n {localize('TEXT_INPUT_DROP_ZONE')}\n </div>\n ) : null;\n};\n\nDropZone.displayName = 'DropZone';\n\nexport default memo(DropZone);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/dropZone/DropZone.module_built.css\";\nconst classes = {\"sendbox__attachment-drop-zone\":\"wbibrda_sendbox__attachment-drop-zone\",\"sendbox__attachment-drop-zone-icon\":\"wbibrda_sendbox__attachment-drop-zone-icon\",\"sendbox__attachment-drop-zone--droppable\":\"wbibrda_sendbox__attachment-drop-zone--droppable\"}\nexport default classes\n\nconst _sendbox__attachment_drop_zone0 = classes[\"sendbox__attachment-drop-zone\"]\nexport { _sendbox__attachment_drop_zone0 as \"sendbox__attachment-drop-zone\" }\n\nconst _sendbox__attachment_drop_zone_icon0 = classes[\"sendbox__attachment-drop-zone-icon\"]\nexport { _sendbox__attachment_drop_zone_icon0 as \"sendbox__attachment-drop-zone-icon\" }\n\nconst _sendbox__attachment_drop_zone__droppable0 = classes[\"sendbox__attachment-drop-zone--droppable\"]\nexport { _sendbox__attachment_drop_zone__droppable0 as \"sendbox__attachment-drop-zone--droppable\" }\n","import { hooks } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { memo, useCallback, type ReactNode } from 'react';\nimport { useStyles } from '../../styles';\nimport { isPreChatMessageActivity } from '../preChatActivity';\nimport computeSuggestedActionText from './private/computeSuggestedActionText';\nimport RovingFocusProvider from './private/rovingFocus';\nimport SuggestedAction from './SuggestedAction';\nimport styles from './SuggestedActions.module.css';\n\nconst { useFocus, useLocalizer, useStyleOptions, useStyleSet, useSuggestedActionsHooks, useUIState } = hooks;\n\nfunction SuggestedActionStackedOrFlowContainer(\n props: Readonly<{\n 'aria-label'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n }>\n) {\n const [{ suggestedActionLayout }] = useStyleOptions();\n const [{ suggestedActions: suggestedActionsStyleSet }] = useStyleSet();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n\n return (\n <div\n aria-label={props['aria-label']}\n aria-orientation=\"vertical\"\n className={cx(\n classNames['suggested-actions'],\n suggestedActionsStyleSet + '',\n {\n [classNames['suggested-actions--flow']]: suggestedActionLayout === 'flow',\n [classNames['suggested-actions--stacked']]: suggestedActionLayout !== 'flow'\n },\n props.className\n )}\n role=\"toolbar\"\n >\n {uiState !== 'blueprint' && props.children}\n </div>\n );\n}\n\nfunction SuggestedActions() {\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const [suggestedActions, _, { activity }] = useSuggestedActionsHooks().useSuggestedActions();\n const focus = useFocus();\n\n const handleEscapeKey = useCallback(() => {\n focus('sendBox');\n }, [focus]);\n\n const children = isPreChatMessageActivity(activity)\n ? [] // Do not show suggested actions for pre-chat message, suggested actions has already shown inlined.\n : suggestedActions.map((cardAction, index) => {\n const { displayText, image, imageAltText, text, type, value } = cardAction as {\n displayText?: string;\n image?: string;\n imageAltText?: string;\n text?: string;\n type:\n | 'call'\n | 'downloadFile'\n | 'imBack'\n | 'messageBack'\n | 'openUrl'\n | 'playAudio'\n | 'playVideo'\n | 'postBack'\n | 'showImage'\n | 'signin';\n value?: { [key: string]: any } | string;\n };\n\n if (!suggestedActions?.length) {\n return null;\n }\n\n return (\n <SuggestedAction\n buttonText={computeSuggestedActionText(cardAction)}\n displayText={displayText}\n image={image}\n // Image alt text should use `imageAltText` field and fallback to `text` field.\n // https://github.com/microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#image-alt-text\n imageAlt={image && (imageAltText || text)}\n itemIndex={index}\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n text={text}\n type={type}\n value={value}\n />\n );\n });\n\n return (\n <RovingFocusProvider onEscapeKey={handleEscapeKey}>\n <SuggestedActionStackedOrFlowContainer\n aria-label={localize('SUGGESTED_ACTIONS_LABEL_ALT')}\n className={classNames['suggested-actions']}\n >\n {children}\n </SuggestedActionStackedOrFlowContainer>\n </RovingFocusProvider>\n );\n}\n\nexport default memo(SuggestedActions);\n","import { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isPreChatMessageActivity(\n activity: undefined | WebChatActivity\n): activity is WebChatActivity & { type: 'message' } {\n return !!(activity && getOrgSchemaMessage(activity?.entities || [])?.keywords?.includes('PreChatMessage'));\n}\n","import { hooks } from 'botframework-webchat-component';\nimport { type WebChatActivity } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo, useMemo } from 'react';\nimport { useStyles } from '../../styles/index.js';\nimport styles from './PreChatMessageActivity.module.css';\nimport StarterPromptsToolbar from './StarterPromptsToolbar.js';\nimport { useActivityAuthor } from '../activity/index.js';\n\ntype Props = Readonly<{ activity: WebChatActivity & { type: 'message' } }>;\n\nconst { useLocalizer, useRenderMarkdownAsHTML, useUIState } = hooks;\n\nconst PreChatMessageActivity = ({ activity }: Props) => {\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const renderMarkdownAsHTML = useRenderMarkdownAsHTML();\n const localize = useLocalizer();\n\n const author = useActivityAuthor(activity);\n\n const html = useMemo(\n () => (renderMarkdownAsHTML ? { __html: renderMarkdownAsHTML(author?.description || '') } : { __html: '' }),\n [author?.description, renderMarkdownAsHTML]\n );\n\n return (\n <div className={classNames['pre-chat-message-activity']}>\n {author && (\n <div\n className={cx(\n classNames['pre-chat-message-activity__body'],\n uiState === 'blueprint' && classNames['pre-chat-message-activity__body--blueprint']\n )}\n >\n {author.image && (\n <img\n alt={localize('AVATAR_ALT', author.name)}\n className={classNames['pre-chat-message-activity__body-avatar']}\n src={author.image}\n />\n )}\n {author.name && <h2 className={classNames['pre-chat-message-activity__body-title']}>{author.name}</h2>}\n {author.description && (\n // eslint-disable-next-line react/no-danger\n <div className={classNames['pre-chat-message-activity__body-subtitle']} dangerouslySetInnerHTML={html} />\n )}\n </div>\n )}\n <StarterPromptsToolbar\n cardActions={activity.suggestedActions?.actions || []}\n className={classNames['pre-chat-message-activity__toolbar']}\n />\n </div>\n );\n};\n\nPreChatMessageActivity.displayName = 'PreChatMessageActivity';\n\nexport default memo(PreChatMessageActivity);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/PreChatMessageActivity.module_built.css\";\nconst classes = {\"pre-chat-message-activity\":\"wdPvBTa_pre-chat-message-activity\",\"pre-chat-message-activity__body-subtitle\":\"wdPvBTa_pre-chat-message-activity__body-subtitle\",\"pre-chat-message-activity__toolbar\":\"wdPvBTa_pre-chat-message-activity__toolbar\",\"pre-chat-message-activity__body-title\":\"wdPvBTa_pre-chat-message-activity__body-title\",\"pre-chat-message-activity__body\":\"wdPvBTa_pre-chat-message-activity__body\",\"pre-chat-message-activity__body--blueprint\":\"wdPvBTa_pre-chat-message-activity__body--blueprint\",\"pre-chat-message-activity__body-avatar\":\"wdPvBTa_pre-chat-message-activity__body-avatar\"}\nexport default classes\n\nconst _pre_chat_message_activity0 = classes[\"pre-chat-message-activity\"]\nexport { _pre_chat_message_activity0 as \"pre-chat-message-activity\" }\n\nconst _pre_chat_message_activity__body_subtitle0 = classes[\"pre-chat-message-activity__body-subtitle\"]\nexport { _pre_chat_message_activity__body_subtitle0 as \"pre-chat-message-activity__body-subtitle\" }\n\nconst _pre_chat_message_activity__toolbar0 = classes[\"pre-chat-message-activity__toolbar\"]\nexport { _pre_chat_message_activity__toolbar0 as \"pre-chat-message-activity__toolbar\" }\n\nconst _pre_chat_message_activity__body_title0 = classes[\"pre-chat-message-activity__body-title\"]\nexport { _pre_chat_message_activity__body_title0 as \"pre-chat-message-activity__body-title\" }\n\nconst _pre_chat_message_activity__body0 = classes[\"pre-chat-message-activity__body\"]\nexport { _pre_chat_message_activity__body0 as \"pre-chat-message-activity__body\" }\n\nconst _pre_chat_message_activity__body__blueprint0 = classes[\"pre-chat-message-activity__body--blueprint\"]\nexport { _pre_chat_message_activity__body__blueprint0 as \"pre-chat-message-activity__body--blueprint\" }\n\nconst _pre_chat_message_activity__body_avatar0 = classes[\"pre-chat-message-activity__body-avatar\"]\nexport { _pre_chat_message_activity__body_avatar0 as \"pre-chat-message-activity__body-avatar\" }\n","import { hooks } from 'botframework-webchat-api';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../styles/index.js';\nimport StarterPromptsCardAction from './StarterPromptsCardAction.js';\nimport styles from './StarterPromptsToolbar.module.css';\n\nconst { useUIState } = hooks;\n\ntype Props = Readonly<{\n cardActions: readonly DirectLineCardAction[];\n className?: string | undefined;\n}>;\n\nconst StarterPromptsToolbar = ({ cardActions, className }: Props) => {\n const classNames = useStyles(styles);\n const [uiState] = useUIState();\n\n return (\n // TODO: Accessibility-wise, this should be role=\"toolbar\" with keyboard navigation.\n <div className={cx(className, classNames['pre-chat-message-activity__card-action-toolbar'])}>\n <div className={classNames['pre-chat-message-activity__card-action-toolbar-grid']}>\n {uiState !== 'blueprint' &&\n cardActions\n .filter<DirectLineCardAction & { type: 'messageBack' }>(\n (card: DirectLineCardAction): card is DirectLineCardAction & { type: 'messageBack' } =>\n card.type === 'messageBack'\n )\n // There is no other usable keys in card actions.\n // eslint-disable-next-line react/no-array-index-key\n .map((cardAction, index) => <StarterPromptsCardAction key={index} messageBackAction={cardAction} />)}\n </div>\n </div>\n );\n};\n\nStarterPromptsToolbar.displayName = 'StarterPromptsToolbar';\n\nexport default memo(StarterPromptsToolbar);\n","import { hooks } from 'botframework-webchat-component';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo, useCallback, useMemo } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { useStyles } from '../../styles/index.js';\nimport testIds from '../../testIds.js';\nimport { FluentIcon } from '../icon';\n\nimport styles from './StarterPromptsCardAction.module.css';\n\nconst { useFocus, useRenderMarkdownAsHTML, useSendBoxValue, useUIState } = hooks;\n\ntype Props = Readonly<{\n className?: string | undefined;\n messageBackAction?: (DirectLineCardAction & { type: 'messageBack' }) | undefined;\n}>;\n\nconst StarterPromptsCardAction = ({ className, messageBackAction }: Props) => {\n const [_, setSendBoxValue] = useSendBoxValue();\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n const focus = useFocus();\n const inputTextRef = useRefFrom(messageBackAction?.displayText || messageBackAction?.text || '');\n const renderMarkdownAsHTML = useRenderMarkdownAsHTML('message activity');\n const subtitleHTML = useMemo<{ __html: string } | undefined>(\n () => (renderMarkdownAsHTML ? { __html: renderMarkdownAsHTML(messageBackAction?.text || '') } : undefined),\n [messageBackAction?.text, renderMarkdownAsHTML]\n );\n const disabled = uiState === 'disabled';\n const title = messageBackAction && 'title' in messageBackAction && messageBackAction.title;\n\n // Every starter prompt card action must have \"title\" field.\n const shouldShowBlueprint = uiState === 'blueprint' || !title;\n\n const handleClick = useCallback(() => {\n setSendBoxValue(inputTextRef.current);\n\n // Focus on the send box after the value is \"pasted.\"\n focus('sendBox');\n }, [focus, inputTextRef, setSendBoxValue]);\n\n return shouldShowBlueprint ? (\n <div\n className={cx(className, classNames['pre-chat-message-activity__card-action-box'])}\n data-testid={testIds.preChatMessageActivityStarterPromptsCardAction}\n />\n ) : (\n <button\n aria-disabled={disabled ? true : undefined}\n className={cx(className, classNames['pre-chat-message-activity__card-action-box'])}\n data-testid={testIds.preChatMessageActivityStarterPromptsCardAction}\n onClick={disabled ? undefined : handleClick}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : undefined}\n type=\"button\"\n >\n <div className={classNames['pre-chat-message-activity__card-action-title']}>{title}</div>\n {'image' in messageBackAction && messageBackAction.image && (\n <FluentIcon\n appearance=\"text\"\n className={classNames['pre-chat-message-activity__card-action-image']}\n mask={messageBackAction.image}\n />\n )}\n <div\n className={classNames['pre-chat-message-activity__card-action-subtitle']}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={subtitleHTML}\n />\n </button>\n );\n};\n\nStarterPromptsCardAction.displayName = 'StarterPromptsCardAction';\n\nexport default memo(StarterPromptsCardAction);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsCardAction.module_built.css\";\nconst classes = {\"pre-chat-message-activity__card-action-subtitle\":\"woY4Pxq_pre-chat-message-activity__card-action-subtitle\",\"pre-chat-message-activity__card-action-image\":\"woY4Pxq_pre-chat-message-activity__card-action-image\",\"pre-chat-message-activity__card-action-title\":\"woY4Pxq_pre-chat-message-activity__card-action-title\",\"pre-chat-message-activity__card-action-box\":\"woY4Pxq_pre-chat-message-activity__card-action-box\"}\nexport default classes\n\nconst _pre_chat_message_activity__card_action_subtitle0 = classes[\"pre-chat-message-activity__card-action-subtitle\"]\nexport { _pre_chat_message_activity__card_action_subtitle0 as \"pre-chat-message-activity__card-action-subtitle\" }\n\nconst _pre_chat_message_activity__card_action_image0 = classes[\"pre-chat-message-activity__card-action-image\"]\nexport { _pre_chat_message_activity__card_action_image0 as \"pre-chat-message-activity__card-action-image\" }\n\nconst _pre_chat_message_activity__card_action_title0 = classes[\"pre-chat-message-activity__card-action-title\"]\nexport { _pre_chat_message_activity__card_action_title0 as \"pre-chat-message-activity__card-action-title\" }\n\nconst _pre_chat_message_activity__card_action_box0 = classes[\"pre-chat-message-activity__card-action-box\"]\nexport { _pre_chat_message_activity__card_action_box0 as \"pre-chat-message-activity__card-action-box\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/preChatActivity/StarterPromptsToolbar.module_built.css\";\nconst classes = {\"pre-chat-message-activity__card-action-toolbar-grid\":\"wvd8n9G_pre-chat-message-activity__card-action-toolbar-grid\",\"pre-chat-message-activity__card-action-toolbar\":\"wvd8n9G_pre-chat-message-activity__card-action-toolbar\"}\nexport default classes\n\nconst _pre_chat_message_activity__card_action_toolbar_grid0 = classes[\"pre-chat-message-activity__card-action-toolbar-grid\"]\nexport { _pre_chat_message_activity__card_action_toolbar_grid0 as \"pre-chat-message-activity__card-action-toolbar-grid\" }\n\nconst _pre_chat_message_activity__card_action_toolbar0 = classes[\"pre-chat-message-activity__card-action-toolbar\"]\nexport { _pre_chat_message_activity__card_action_toolbar0 as \"pre-chat-message-activity__card-action-toolbar\" }\n","import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { WebChatActivity } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { ReactNode, memo } from 'react';\nimport { object, optional, pipe, readonly, type InferInput } from 'valibot';\n\nimport { useStyles, useVariantClassName } from '../../styles';\nimport styles from './ActivityDecorator.module.css';\n\nconst activityDecoratorPropsSchema = pipe(\n object({\n children: optional(reactNode())\n }),\n readonly()\n);\n\ntype ActivityDecoratorProps = InferInput<typeof activityDecoratorPropsSchema>;\n\nfunction ActivityDecorator(props: Readonly<{ activity: WebChatActivity; children: ReactNode }>) {\n const { children } = validateProps(activityDecoratorPropsSchema, props);\n\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n\n return <div className={cx(classNames['activity-decorator'], variantClassName)}>{children}</div>;\n}\n\nActivityDecorator.displayName = 'ActivityDecorator';\n\nexport default memo(ActivityDecorator);\nexport { activityDecoratorPropsSchema, type ActivityDecoratorProps };\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityDecorator.module_built.css\";\nconst classes = {\"activity-decorator\":\"wLpvzAq_activity-decorator\"}\nexport default classes\n\nconst _activity_decorator0 = classes[\"activity-decorator\"]\nexport { _activity_decorator0 as \"activity-decorator\" }\n","import { useMemo } from 'react';\nimport { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function useActivityAuthor(activity?: WebChatActivity | undefined) {\n return useMemo(() => {\n const entity = getOrgSchemaMessage(activity?.entities || []);\n return typeof entity?.author === 'string'\n ? {\n '@type': 'Person',\n description: undefined,\n image: undefined,\n name: entity?.author\n }\n : entity?.author;\n }, [activity]);\n}\n","import type { DirectLineCardAction } from 'botframework-webchat-core';\n\n// Please refer to this article to find out how to compute the \"button text\" for suggested action.\n// https://github.com/Microsoft/botframework-sdk/blob/main/specs/botframework-activity/botframework-activity.md#card-action\nexport default function computeSuggestedActionText(cardAction: DirectLineCardAction) {\n // \"CardAction\" must contains at least image or title.\n const { title } = cardAction as { title?: string };\n const { type, value } = cardAction;\n\n if (type === 'messageBack') {\n return title || cardAction.displayText;\n } else if (title) {\n return title;\n } else if (typeof value === 'string') {\n return value;\n }\n\n return JSON.stringify(value);\n}\n\n// TODO: [P1] This is copied from botframework-webchat-component. Think about what we should do to eliminate duplications.\n","/* eslint-disable no-magic-numbers */\nimport React, {\n type MutableRefObject,\n createContext,\n memo,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useRef\n} from 'react';\n\ntype ItemRef = MutableRefObject<HTMLElement | undefined>;\n\ntype RovingFocusContextType = {\n itemEffector: <T extends HTMLElement>(ref: MutableRefObject<T | null>, index: number) => () => void;\n};\n\nconst RovingFocusContext = createContext<RovingFocusContextType>({\n itemEffector: () => {\n // This will be implemented when using in <RovingFocusProvider>.\n throw new Error('botframework-webchat-fluent-theme rovingFocus: no provider for RovingFocusContext.');\n }\n});\n\nfunction RovingFocusProvider(\n props: Readonly<{\n children?: React.ReactNode | undefined;\n direction?: 'vertical' | 'horizontal' | undefined;\n onEscapeKey?: () => void;\n }>\n) {\n const activeItemIndexRef = useRef(0);\n const itemRefsRef = useRef<ItemRef[]>([]);\n\n const updateItemTabIndex = useCallback(\n ({ current }: ItemRef, index: number) =>\n current && (current.tabIndex = activeItemIndexRef.current === index ? 0 : -1),\n [activeItemIndexRef]\n );\n\n const setActiveItemIndex = useCallback(\n (valueOrFunction: number | ((value: number) => number)) => {\n // All calls to this function is expected to be under event handlers (post-rendering).\n let nextActiveItemIndex;\n\n if (typeof valueOrFunction === 'number') {\n nextActiveItemIndex = valueOrFunction;\n } else {\n nextActiveItemIndex = valueOrFunction(activeItemIndexRef.current);\n }\n\n // If the index points to no item, fallback to the first item.\n // This makes sure at least one of the item in the container is selected.\n if (nextActiveItemIndex && !itemRefsRef.current.at(nextActiveItemIndex)?.current) {\n nextActiveItemIndex = 0;\n }\n\n if (activeItemIndexRef.current !== nextActiveItemIndex) {\n activeItemIndexRef.current = nextActiveItemIndex;\n\n itemRefsRef.current.forEach((ref, index) => updateItemTabIndex(ref, index));\n itemRefsRef.current.at(nextActiveItemIndex)?.current?.focus();\n }\n },\n [updateItemTabIndex, itemRefsRef, activeItemIndexRef]\n );\n\n const handleFocus = useCallback(\n event => {\n const { target } = event;\n\n const index = itemRefsRef.current.findIndex(({ current }) => current === target);\n\n // prevent focusing the last element, if we didn't found the element focused\n if (index !== -1) {\n setActiveItemIndex(index);\n }\n },\n [itemRefsRef, setActiveItemIndex]\n );\n\n const handleSetNextActive = useCallback(\n (key: string) =>\n (currentIndex: number): number => {\n const isUnidirectional = !props.direction;\n const isVerticalMove = /up|down/iu.test(key) && props.direction === 'vertical';\n const isHorizontalMove = /left|right/iu.test(key) && props.direction === 'horizontal';\n const isForwardMove = /right|down/iu.test(key);\n const direction = isUnidirectional || isVerticalMove || isHorizontalMove ? (isForwardMove ? 1 : -1) : 0;\n // The `itemRefsRef` array could be a sparse array.\n // Thus, the next item may not be immediately next to the current one.\n const itemIndices = itemRefsRef.current.map((_, index) => index);\n const nextIndex = itemIndices.indexOf(currentIndex) + direction;\n\n return itemIndices.at(nextIndex) ?? 0;\n },\n [props.direction]\n );\n\n const handleKeyDown = useCallback<(event: KeyboardEvent) => void>(\n event => {\n const { key } = event;\n\n switch (key) {\n case 'Up':\n case 'ArrowUp':\n case 'Left':\n case 'ArrowLeft':\n case 'Down':\n case 'ArrowDown':\n case 'Right':\n case 'ArrowRight':\n setActiveItemIndex(handleSetNextActive(key));\n break;\n\n case 'Home':\n setActiveItemIndex(0);\n break;\n\n case 'End':\n setActiveItemIndex(-1);\n break;\n\n case 'Escape':\n props.onEscapeKey?.();\n break;\n\n default:\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n },\n [setActiveItemIndex, handleSetNextActive, props]\n );\n\n const itemEffector = useCallback(\n (ref, index) => {\n const { current } = ref;\n\n itemRefsRef.current[Number(index)] = ref;\n\n current.addEventListener('focus', handleFocus);\n current.addEventListener('keydown', handleKeyDown);\n\n updateItemTabIndex(ref, index);\n\n return () => {\n current.removeEventListener('focus', handleFocus);\n current.removeEventListener('keydown', handleKeyDown);\n\n delete itemRefsRef.current[Number(index)];\n };\n },\n [handleFocus, handleKeyDown, updateItemTabIndex, itemRefsRef]\n );\n\n const value = useMemo<RovingFocusContextType>(\n () => ({\n itemEffector\n }),\n [itemEffector]\n );\n\n return <RovingFocusContext.Provider value={value}>{props.children}</RovingFocusContext.Provider>;\n}\n\nexport function useRovingFocusItemRef<T extends HTMLElement>(itemIndex: number): MutableRefObject<T | null> {\n const ref = useRef<T>(null);\n\n const { itemEffector } = useContext(RovingFocusContext);\n\n useEffect(() => itemEffector(ref, itemIndex));\n\n return ref;\n}\n\nexport default memo(RovingFocusProvider);\n","import { hooks } from 'botframework-webchat-component';\nimport { type DirectLineCardAction } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { MouseEventHandler, memo, useCallback } from 'react';\n\nimport { useStyles } from '../../styles';\nimport testIds from '../../testIds';\nimport AccessibleButton from './AccessibleButton';\nimport { useRovingFocusItemRef } from './private/rovingFocus';\nimport styles from './SuggestedAction.module.css';\n\nconst { useFocus, usePerformCardAction, useScrollToEnd, useStyleSet, useSuggestedActionsHooks, useUIState } = hooks;\n\ntype SuggestedActionProps = Readonly<{\n buttonText: string | undefined;\n className?: string | undefined;\n displayText?: string | undefined;\n image?: string | undefined;\n imageAlt?: string | undefined;\n itemIndex: number;\n text?: string | undefined;\n type?:\n | 'call'\n | 'downloadFile'\n | 'imBack'\n | 'messageBack'\n | 'openUrl'\n | 'playAudio'\n | 'playVideo'\n | 'postBack'\n | 'showImage'\n | 'signin';\n value?: any;\n}>;\n\nfunction SuggestedAction({\n buttonText,\n className,\n displayText,\n image,\n imageAlt,\n itemIndex,\n text,\n type,\n value\n}: SuggestedActionProps) {\n const [_, setSuggestedActions] = useSuggestedActionsHooks().useSuggestedActions();\n const [{ suggestedAction: suggestedActionStyleSet }] = useStyleSet();\n const [uiState] = useUIState();\n const focus = useFocus();\n const focusRef = useRovingFocusItemRef<HTMLButtonElement>(itemIndex);\n const performCardAction = usePerformCardAction();\n const classNames = useStyles(styles);\n const scrollToEnd = useScrollToEnd();\n\n const handleClick = useCallback<MouseEventHandler<HTMLButtonElement>>(\n ({ target }) => {\n (async function () {\n // We need to focus to the send box before we are performing this card action.\n // The will make sure the focus is always on Web Chat.\n // Otherwise, the focus may momentarily send to `document.body` and screen reader will be confused.\n await focus('sendBoxWithoutKeyboard');\n\n // TODO: [P3] #XXX We should not destruct DirectLineCardAction into React props and pass them in. It makes typings difficult.\n // Instead, we should pass a \"cardAction\" props.\n performCardAction({ displayText, text, type, value } as DirectLineCardAction, { target });\n\n // Since \"openUrl\" action do not submit, the suggested action buttons do not hide after click.\n type === 'openUrl' && setSuggestedActions([]);\n\n scrollToEnd();\n })();\n },\n [displayText, focus, performCardAction, scrollToEnd, setSuggestedActions, text, type, value]\n );\n\n return (\n <AccessibleButton\n className={cx(classNames['suggested-action'], suggestedActionStyleSet + '', (className || '') + '')}\n data-testid={testIds.sendBoxSuggestedAction}\n disabled={uiState === 'disabled'}\n onClick={handleClick}\n ref={focusRef}\n type=\"button\"\n >\n {image && <img alt={imageAlt} className={classNames['suggested-action__image']} src={image} />}\n <span>{buttonText}</span>\n </AccessibleButton>\n );\n}\n\nexport default memo(SuggestedAction);\n","import React, { MouseEventHandler, ReactNode, forwardRef, memo, useRef } from 'react';\n\nconst preventDefaultHandler: MouseEventHandler<HTMLButtonElement> = event => event.preventDefault();\n\ntype AccessibleButtonProps = Readonly<{\n 'aria-hidden'?: boolean | undefined;\n 'data-testid'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n disabled?: boolean | undefined;\n onClick?: MouseEventHandler<HTMLButtonElement> | undefined;\n tabIndex?: number | undefined;\n type: 'button';\n}>;\n\n// Differences between <button> and <AccessibleButton>:\n// - Disable behavior\n// - When the widget is disabled\n// - Set \"aria-disabled\" attribute to \"true\"\n// - Set \"readonly\" attribute\n// - Set \"tabIndex\" to -1\n// - Remove \"onClick\" handler\n// - Why this is needed\n// - Browser compatibility: when the widget is disabled, different browser send focus to different places\n// - When the widget become disabled, it's reasonable to keep the focus on the same widget for an extended period of time\n// - When the user presses TAB after the current widget is disabled, it should jump to the next non-disabled widget\n\n// Developers using this accessible widget will need to:\n// - Style the disabled widget themselves, using CSS query `:disabled, [aria-disabled=\"true\"] {}`\n// - Modify all code that check disabled through \"disabled\" attribute to use aria-disabled=\"true\" instead\n// - aria-disabled=\"true\" is the source of truth\n// - If the widget is contained by a <form>, the developer need to filter out some `onSubmit` event caused by this widget\n\nconst AccessibleButton = forwardRef<HTMLButtonElement, AccessibleButtonProps>(\n (\n { 'aria-hidden': ariaHidden, children, className, 'data-testid': dataTestId, disabled, onClick, tabIndex },\n forwardedRef\n ) => {\n const targetRef = useRef<HTMLButtonElement>(null);\n\n const ref = forwardedRef || targetRef;\n\n return (\n <button\n aria-disabled={disabled ? 'true' : undefined}\n aria-hidden={ariaHidden}\n className={className}\n data-testid={dataTestId}\n onClick={disabled ? preventDefaultHandler : onClick}\n ref={ref}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : tabIndex}\n type=\"button\"\n >\n {children}\n </button>\n );\n }\n);\n\nexport default memo(AccessibleButton);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedAction.module_built.css\";\nconst classes = {\"suggested-action__image\":\"wenGMeW_suggested-action__image\",\"suggested-action\":\"wenGMeW_suggested-action\"}\nexport default classes\n\nconst _suggested_action__image0 = classes[\"suggested-action__image\"]\nexport { _suggested_action__image0 as \"suggested-action__image\" }\n\nconst _suggested_action0 = classes[\"suggested-action\"]\nexport { _suggested_action0 as \"suggested-action\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/suggestedActions/SuggestedActions.module_built.css\";\nconst classes = {\"suggested-actions\":\"wy3OzFW_suggested-actions\",\"suggested-actions--flow\":\"wy3OzFW_suggested-actions--flow\",\"suggested-actions--stacked\":\"wy3OzFW_suggested-actions--stacked\"}\nexport default classes\n\nconst _suggested_actions0 = classes[\"suggested-actions\"]\nexport { _suggested_actions0 as \"suggested-actions\" }\n\nconst _suggested_actions__flow0 = classes[\"suggested-actions--flow\"]\nexport { _suggested_actions__flow0 as \"suggested-actions--flow\" }\n\nconst _suggested_actions__stacked0 = classes[\"suggested-actions--stacked\"]\nexport { _suggested_actions__stacked0 as \"suggested-actions--stacked\" }\n","import React, { memo, useMemo, useState, type ReactNode } from 'react';\n\nimport Context from './private/Context';\n\ntype Props = Readonly<{ children?: ReactNode | undefined }>;\n\nconst Provider = memo(({ children }: Props) => {\n const [shown, setShown] = useState(false);\n\n const context = useMemo(\n () =>\n Object.freeze({\n setShown,\n shown\n }),\n [setShown, shown]\n );\n\n return <Context.Provider value={context}>{children}</Context.Provider>;\n});\n\nexport default Provider;\n","import { createContext, type Dispatch, type SetStateAction } from 'react';\n\ntype ContextType = Readonly<{\n setShown: Dispatch<SetStateAction<boolean>>;\n shown: boolean;\n}>;\n\nconst Context = createContext<ContextType>(\n new Proxy({} as ContextType, {\n get() {\n throw new Error('botframework-webchat: This hook can only used under its corresponding <Provider>.');\n }\n })\n);\n\nContext.displayName = 'TelephoneKeypad.Context';\n\nexport default Context;\n","import React, { memo } from 'react';\n\nimport type { PropsOf } from '../../types';\nimport TelephoneKeypad from './private/TelephoneKeypad';\nimport useShown from './useShown';\n\ntype Props = PropsOf<typeof TelephoneKeypad>;\n\nconst TelephoneKeypadSurrogate = memo((props: Props) => (useShown()[0] ? <TelephoneKeypad {...props} /> : null));\n\nTelephoneKeypadSurrogate.displayName = 'TelephoneKeypad.Surrogate';\n\nexport default TelephoneKeypadSurrogate;\n","import { Components } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { memo, useCallback, useEffect, useRef, type KeyboardEventHandler, type ReactNode } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\n// import HorizontalDialPadController from './HorizontalDialPadController';\nimport { useStyles } from '../../../styles';\nimport testIds from '../../../testIds';\nimport { FluentIcon } from '../../icon';\nimport { type DTMF } from '../types';\nimport useShown from '../useShown';\nimport Button from './Button';\nimport styles from './TelephoneKeypad.module.css';\n\nconst { LocalizedString } = Components;\n\ntype Props = Readonly<{\n autoFocus?: boolean | undefined;\n className?: string | undefined;\n isHorizontal: boolean;\n onButtonClick: (button: DTMF) => void;\n}>;\n\nconst Orientation = memo(\n ({ children, isHorizontal }: Readonly<{ children?: ReactNode | undefined; isHorizontal: boolean }>) => {\n const classNames = useStyles(styles);\n\n return isHorizontal ? null : ( // <HorizontalDialPadController>{children}</HorizontalDialPadController>\n <div className={classNames['telephone-keypad__box']}>{children}</div>\n );\n }\n);\n\nOrientation.displayName = 'TelephoneKeypad:Orientation';\n\nconst TelephoneKeypad = memo(({ autoFocus, className, onButtonClick, isHorizontal }: Props) => {\n const autoFocusRef = useRefFrom(autoFocus);\n const classNames = useStyles(styles);\n const firstButtonRef = useRef<HTMLButtonElement>(null);\n const onButtonClickRef = useRefFrom(onButtonClick);\n const [, setShown] = useShown();\n\n const handleButton1Click = useCallback(() => onButtonClickRef.current?.('1'), [onButtonClickRef]);\n const handleButton2Click = useCallback(() => onButtonClickRef.current?.('2'), [onButtonClickRef]);\n const handleButton3Click = useCallback(() => onButtonClickRef.current?.('3'), [onButtonClickRef]);\n const handleButton4Click = useCallback(() => onButtonClickRef.current?.('4'), [onButtonClickRef]);\n const handleButton5Click = useCallback(() => onButtonClickRef.current?.('5'), [onButtonClickRef]);\n const handleButton6Click = useCallback(() => onButtonClickRef.current?.('6'), [onButtonClickRef]);\n const handleButton7Click = useCallback(() => onButtonClickRef.current?.('7'), [onButtonClickRef]);\n const handleButton8Click = useCallback(() => onButtonClickRef.current?.('8'), [onButtonClickRef]);\n const handleButton9Click = useCallback(() => onButtonClickRef.current?.('9'), [onButtonClickRef]);\n const handleButton0Click = useCallback(() => onButtonClickRef.current?.('0'), [onButtonClickRef]);\n const handleButtonStarClick = useCallback(() => onButtonClickRef.current?.('*'), [onButtonClickRef]);\n const handleButtonPoundClick = useCallback(() => onButtonClickRef.current?.('#'), [onButtonClickRef]);\n const handleKeyDown = useCallback<KeyboardEventHandler<HTMLDivElement>>(\n event => {\n if (event.key === 'Escape') {\n // TODO: Should send focus to the send box.\n setShown(false);\n }\n },\n [setShown]\n );\n\n useEffect(() => {\n autoFocusRef.current && firstButtonRef.current?.focus();\n }, [autoFocusRef, firstButtonRef]);\n\n return (\n <div className={cx(classNames['telephone-keypad'], className)} onKeyDown={handleKeyDown}>\n <Orientation isHorizontal={isHorizontal}>\n <Button\n button=\"1\"\n data-testid={testIds.sendBoxTelephoneKeypadButton1}\n onClick={handleButton1Click}\n ref={firstButtonRef}\n />\n <Button\n button=\"2\"\n data-testid={testIds.sendBoxTelephoneKeypadButton2}\n onClick={handleButton2Click}\n ruby=\"ABC\"\n />\n <Button\n button=\"3\"\n data-testid={testIds.sendBoxTelephoneKeypadButton3}\n onClick={handleButton3Click}\n ruby=\"DEF\"\n />\n <Button\n button=\"4\"\n data-testid={testIds.sendBoxTelephoneKeypadButton4}\n onClick={handleButton4Click}\n ruby=\"GHI\"\n />\n <Button\n button=\"5\"\n data-testid={testIds.sendBoxTelephoneKeypadButton5}\n onClick={handleButton5Click}\n ruby=\"JKL\"\n />\n <Button\n button=\"6\"\n data-testid={testIds.sendBoxTelephoneKeypadButton6}\n onClick={handleButton6Click}\n ruby=\"MNO\"\n />\n <Button\n button=\"7\"\n data-testid={testIds.sendBoxTelephoneKeypadButton7}\n onClick={handleButton7Click}\n ruby=\"PQRS\"\n />\n <Button\n button=\"8\"\n data-testid={testIds.sendBoxTelephoneKeypadButton8}\n onClick={handleButton8Click}\n ruby=\"TUV\"\n />\n <Button\n button=\"9\"\n data-testid={testIds.sendBoxTelephoneKeypadButton9}\n onClick={handleButton9Click}\n ruby=\"WXYZ\"\n />\n <Button button=\"*\" data-testid={testIds.sendBoxTelephoneKeypadButtonStar} onClick={handleButtonStarClick} />\n <Button button=\"0\" data-testid={testIds.sendBoxTelephoneKeypadButton0} onClick={handleButton0Click} ruby=\"+\" />\n <Button button=\"#\" data-testid={testIds.sendBoxTelephoneKeypadButtonPound} onClick={handleButtonPoundClick} />\n </Orientation>\n <div className={classNames['telephone-keypad__info-message']}>\n <FluentIcon appearance=\"text\" icon=\"info-16\" />\n <LocalizedString\n linkClassName={classNames['telephone-keypad__info-message-link']}\n stringIds=\"TELEPHONE_KEYPAD_INPUT_MESSAGE\"\n />\n </div>\n </div>\n );\n});\n\nTelephoneKeypad.displayName = 'TelephoneKeypad';\n\nexport default TelephoneKeypad;\n","import { useContext, useMemo, type Dispatch, type SetStateAction } from 'react';\n\nimport Context from './private/Context';\n\nexport default function useShown(): readonly [boolean, Dispatch<SetStateAction<boolean>>] {\n const { setShown, shown } = useContext(Context);\n\n return useMemo(() => Object.freeze([shown, setShown]), [shown, setShown]);\n}\n","import React, { forwardRef, memo, useCallback, type Ref } from 'react';\n\nimport { useRefFrom } from 'use-ref-from';\n\nimport { type DTMF } from '../types';\n\nimport styles from './Button.module.css';\nimport { useStyles } from '../../../styles';\n\ntype Props = Readonly<{\n button: DTMF;\n ['data-testid']?: string | undefined;\n onClick?: (() => void) | undefined;\n ruby?: string | undefined;\n}>;\n\nconst Button = memo(\n forwardRef(({ button, 'data-testid': dataTestId, onClick, ruby }: Props, ref: Ref<HTMLButtonElement>) => {\n const classNames = useStyles(styles);\n const onClickRef = useRefFrom(onClick);\n\n const handleClick = useCallback(() => onClickRef.current?.(), [onClickRef]);\n\n return (\n <button\n className={classNames['telephone-keypad__button']}\n data-testid={dataTestId}\n onClick={handleClick}\n ref={ref}\n type=\"button\"\n >\n <span className={classNames['telephone-keypad__button__text']}>{button === '*' ? '\\u2217' : button}</span>\n {!!ruby && <ruby className={classNames['telephone-keypad__button__ruby']}>{ruby}</ruby>}\n </button>\n );\n })\n);\n\nButton.displayName = 'TelephoneKeypad.Button';\n\nexport default Button;\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/Button.module_built.css\";\nconst classes = {\"telephone-keypad--horizontal\":\"wwTs9lq_telephone-keypad--horizontal\",\"telephone-keypad__button__ruby\":\"wwTs9lq_telephone-keypad__button__ruby\",\"telephone-keypad__button__text\":\"wwTs9lq_telephone-keypad__button__text\",\"telephone-keypad__button\":\"wwTs9lq_telephone-keypad__button\"}\nexport default classes\n\nconst _telephone_keypad__horizontal0 = classes[\"telephone-keypad--horizontal\"]\nexport { _telephone_keypad__horizontal0 as \"telephone-keypad--horizontal\" }\n\nconst _telephone_keypad__button__ruby0 = classes[\"telephone-keypad__button__ruby\"]\nexport { _telephone_keypad__button__ruby0 as \"telephone-keypad__button__ruby\" }\n\nconst _telephone_keypad__button__text0 = classes[\"telephone-keypad__button__text\"]\nexport { _telephone_keypad__button__text0 as \"telephone-keypad__button__text\" }\n\nconst _telephone_keypad__button0 = classes[\"telephone-keypad__button\"]\nexport { _telephone_keypad__button0 as \"telephone-keypad__button\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/telephoneKeypad/private/TelephoneKeypad.module_built.css\";\nconst classes = {\"telephone-keypad__info-message-link\":\"wEgqGmW_telephone-keypad__info-message-link\",\"telephone-keypad__box\":\"wEgqGmW_telephone-keypad__box\",\"telephone-keypad\":\"wEgqGmW_telephone-keypad\",\"telephone-keypad__info-message\":\"wEgqGmW_telephone-keypad__info-message\"}\nexport default classes\n\nconst _telephone_keypad__info_message_link0 = classes[\"telephone-keypad__info-message-link\"]\nexport { _telephone_keypad__info_message_link0 as \"telephone-keypad__info-message-link\" }\n\nconst _telephone_keypad__box0 = classes[\"telephone-keypad__box\"]\nexport { _telephone_keypad__box0 as \"telephone-keypad__box\" }\n\nconst _telephone_keypad0 = classes[\"telephone-keypad\"]\nexport { _telephone_keypad0 as \"telephone-keypad\" }\n\nconst _telephone_keypad__info_message0 = classes[\"telephone-keypad__info-message\"]\nexport { _telephone_keypad__info_message0 as \"telephone-keypad__info-message\" }\n","import { hooks } from 'botframework-webchat-component';\nimport React, { useCallback, useRef, type ChangeEventHandler, memo } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport { ToolbarButton } from './Toolbar';\nimport styles from './AddAttachmentButton.module.css';\nimport { useStyles } from '../../styles';\n\nconst { useLocalizer, useStyleOptions } = hooks;\n\nfunction AddAttachmentButton(\n props: Readonly<{\n disabled?: boolean | undefined;\n onFilesAdded: ((files: File[]) => void) | undefined;\n }>\n) {\n const inputRef = useRef<HTMLInputElement>(null);\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const [{ uploadAccept, uploadMultiple }] = useStyleOptions();\n const onFilesAddedRef = useRefFrom(props.onFilesAdded);\n\n const handleClick = useCallback(() => inputRef.current?.click(), [inputRef]);\n\n const handleFileChange = useCallback<ChangeEventHandler<HTMLInputElement>>(\n ({ target: { files } }) => {\n if (files) {\n onFilesAddedRef.current?.([...files]);\n\n if (inputRef.current) {\n inputRef.current.value = '';\n }\n }\n },\n [inputRef, onFilesAddedRef]\n );\n\n return (\n <div className={classNames['sendbox__add-attachment']}>\n <input\n accept={uploadAccept}\n aria-disabled={props.disabled}\n aria-hidden=\"true\"\n className={classNames['sendbox__add-attachment-input']}\n multiple={uploadMultiple}\n onInput={props.disabled ? undefined : handleFileChange}\n readOnly={props.disabled}\n ref={inputRef}\n role=\"button\"\n tabIndex={-1}\n type=\"file\"\n />\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_UPLOAD_BUTTON_ALT')}\n data-testid={testIds.sendBoxUploadButton}\n onClick={handleClick}\n >\n <FluentIcon appearance=\"text\" icon=\"attachment\" />\n </ToolbarButton>\n </div>\n );\n}\n\nexport default memo(AddAttachmentButton);\n","import { hooks } from 'botframework-webchat-api';\nimport cx from 'classnames';\nimport React, { memo, type MouseEventHandler, type ReactNode } from 'react';\nimport { useStyles } from '../../styles';\nimport styles from './Toolbar.module.css';\n\nconst { useUIState } = hooks;\n\nconst preventDefaultHandler: MouseEventHandler<HTMLButtonElement> = event => event.preventDefault();\n\nexport const ToolbarButton = memo(\n (\n props: Readonly<{\n 'aria-label'?: string | undefined;\n children?: ReactNode | undefined;\n className?: string | undefined;\n 'data-testid'?: string | undefined;\n disabled?: boolean | undefined;\n onClick?: MouseEventHandler<HTMLButtonElement> | undefined;\n selected?: boolean | undefined;\n type?: 'button' | 'submit' | undefined;\n }>\n ) => {\n const classNames = useStyles(styles);\n const [uiState] = useUIState();\n\n const disabled = props.disabled || uiState === 'disabled';\n\n return (\n <button\n aria-disabled={disabled ? 'true' : undefined}\n aria-label={props['aria-label']}\n className={cx(classNames['sendbox__toolbar-button'], props.className, {\n [classNames['sendbox__toolbar-button--selected']]: props.selected\n })}\n data-testid={props['data-testid']}\n onClick={disabled ? preventDefaultHandler : props.onClick}\n // eslint-disable-next-line no-magic-numbers\n tabIndex={disabled ? -1 : undefined}\n type={props.type === 'submit' ? 'submit' : 'button'}\n >\n {props.children}\n </button>\n );\n }\n);\n\nToolbarButton.displayName = 'ToolbarButton';\n\nexport const Toolbar = memo((props: Readonly<{ children?: ReactNode | undefined; className?: string | undefined }>) => {\n const [uiState] = useUIState();\n const classNames = useStyles(styles);\n\n return (\n <div className={cx(classNames['sendbox__toolbar'], props.className)}>\n {uiState !== 'blueprint' && props.children}\n </div>\n );\n});\n\nToolbar.displayName = 'Toolbar';\n\nexport const ToolbarSeparator = memo(\n (props: Readonly<{ children?: ReactNode | undefined; className?: string | undefined }>) => {\n const classNames = useStyles(styles);\n\n return (\n <div\n aria-orientation=\"vertical\"\n className={cx(classNames['sendbox__toolbar-separator'], props.className)}\n role=\"separator\"\n />\n );\n }\n);\n\nToolbarSeparator.displayName = 'ToolbarSeparator';\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/Toolbar.module_built.css\";\nconst classes = {\"sendbox__toolbar-button\":\"weDCCeq_sendbox__toolbar-button\",\"sendbox__toolbar\":\"weDCCeq_sendbox__toolbar\",\"sendbox__toolbar-button--selected\":\"weDCCeq_sendbox__toolbar-button--selected\",\"sendbox__toolbar-separator\":\"weDCCeq_sendbox__toolbar-separator\"}\nexport default classes\n\nconst _sendbox__toolbar_button0 = classes[\"sendbox__toolbar-button\"]\nexport { _sendbox__toolbar_button0 as \"sendbox__toolbar-button\" }\n\nconst _sendbox__toolbar0 = classes[\"sendbox__toolbar\"]\nexport { _sendbox__toolbar0 as \"sendbox__toolbar\" }\n\nconst _sendbox__toolbar_button__selected0 = classes[\"sendbox__toolbar-button--selected\"]\nexport { _sendbox__toolbar_button__selected0 as \"sendbox__toolbar-button--selected\" }\n\nconst _sendbox__toolbar_separator0 = classes[\"sendbox__toolbar-separator\"]\nexport { _sendbox__toolbar_separator0 as \"sendbox__toolbar-separator\" }\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/AddAttachmentButton.module_built.css\";\nconst classes = {\"sendbox__add-attachment\":\"wTxWh-G_sendbox__add-attachment\",\"sendbox__add-attachment-input\":\"wTxWh-G_sendbox__add-attachment-input\"}\nexport default classes\n\nconst _sendbox__add_attachment0 = classes[\"sendbox__add-attachment\"]\nexport { _sendbox__add_attachment0 as \"sendbox__add-attachment\" }\n\nconst _sendbox__add_attachment_input0 = classes[\"sendbox__add-attachment-input\"]\nexport { _sendbox__add_attachment_input0 as \"sendbox__add-attachment-input\" }\n","import { useLiveRegion } from 'botframework-webchat-component/internal';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../styles';\nimport styles from './ErrorMessage.module.css';\n\ntype ErrorMessageProps = Readonly<{\n error?: string | undefined;\n id: string;\n}>;\n\nfunction ErrorMessage({ error, id }: ErrorMessageProps) {\n const classNames = useStyles(styles);\n\n useLiveRegion(() => error && <div className=\"sendbox__error-message__status\">{error}</div>, [error]);\n\n return (\n // eslint-disable-next-line react/forbid-dom-props\n <span className={classNames['sendbox__error-message']} id={id}>\n {error}\n </span>\n );\n}\n\nErrorMessage.displayName = 'ErrorMessage';\n\nexport default memo(ErrorMessage);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/ErrorMessage.module_built.css\";\nconst classes = {\"sendbox__error-message\":\"wa8yVAW_sendbox__error-message\"}\nexport default classes\n\nconst _sendbox__error_message0 = classes[\"sendbox__error-message\"]\nexport { _sendbox__error_message0 as \"sendbox__error-message\" }\n","import { hooks } from 'botframework-webchat-component';\nimport { useCallback, useMemo, useState } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nconst { useConnectivityStatus, useLocalizer } = hooks;\n\ntype ErrorMessageStringMap = ReadonlyMap<SendError, string>;\n\ntype SendError = 'empty' | 'offline';\n\nconst useSubmitError = ({\n attachments,\n message\n}: Readonly<{\n attachments: readonly Readonly<{ blob: Blob | File; thumbnailURL?: URL | undefined }>[];\n message: string;\n}>) => {\n const [connectivityStatus] = useConnectivityStatus();\n const [error, setError] = useState<SendError | undefined>();\n const localize = useLocalizer();\n\n const submitErrorRef = useRefFrom<'empty' | 'offline' | undefined>(\n connectivityStatus !== 'connected' && connectivityStatus !== 'reconnected'\n ? 'offline'\n : !message && !attachments.length\n ? 'empty'\n : undefined\n );\n\n const errorMessageStringMap = useMemo<ErrorMessageStringMap>(\n () =>\n Object.freeze(\n new Map<SendError, string>()\n .set('empty', localize('SEND_BOX_IS_EMPTY_TOOLTIP_ALT'))\n // TODO: [P0] We should add a new string for \"Cannot send message while offline.\"\n .set('offline', localize('CONNECTIVITY_STATUS_ALT_FATAL'))\n ),\n [localize]\n );\n\n // TODO: we may want to improve this later e.g. to avoid re-render\n // Reset visible error if there is a value\n const hasValue = !!message?.trim();\n if (error === 'empty' && hasValue) {\n setError(undefined);\n }\n\n const commitLatestError = useCallback(() => {\n setError(submitErrorRef.current);\n return submitErrorRef.current;\n }, [submitErrorRef]);\n\n return useMemo<Readonly<[string | undefined, () => typeof submitErrorRef.current]>>(\n () => Object.freeze([error && errorMessageStringMap.get(error), commitLatestError]),\n [error, errorMessageStringMap, commitLatestError]\n );\n};\n\nexport default useSubmitError;\n","import { useCallback, type KeyboardEvent } from 'react';\nimport { hooks } from 'botframework-webchat-component';\n\nconst { useScrollDown, useScrollUp } = hooks;\n\nexport default function useTranscriptNavigation() {\n const scrollDown = useScrollDown();\n const scrollUp = useScrollUp();\n\n return useCallback(\n (event: KeyboardEvent<unknown>) => {\n if (event.target instanceof HTMLTextAreaElement && event.target.value) {\n return;\n }\n\n const { ctrlKey, metaKey, shiftKey } = event;\n\n if (ctrlKey || metaKey || shiftKey) {\n return;\n }\n\n let handled = true;\n\n switch (event.key) {\n case 'End':\n scrollDown({ displacement: Infinity });\n break;\n\n case 'Home':\n scrollUp({ displacement: Infinity });\n break;\n\n case 'PageDown':\n scrollDown();\n break;\n\n case 'PageUp':\n scrollUp();\n break;\n\n default:\n handled = false;\n break;\n }\n\n if (handled) {\n event.preventDefault();\n event.stopPropagation();\n }\n },\n [scrollDown, scrollUp]\n );\n}\n","/* eslint no-magic-numbers: [\"error\", { \"ignore\": [2, 5, 36] }] */\n\nimport { useMemo } from 'react';\n// TODO: fix math-random fails to import crypto\n// import random from 'math-random';\n\nexport default function useUniqueId(prefix?: string): string {\n const id = useMemo(() => Math.random().toString(36).substr(2, 5), []);\n\n prefix = prefix ? `${prefix}--` : '';\n\n return `${prefix}${id}`;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/sendBox/SendBox.module_built.css\";\nconst classes = {\"sendbox__sendbox-controls\":\"wHTirJa_sendbox__sendbox-controls\",\"sendbox\":\"wHTirJa_sendbox\",\"sendbox__attachment-bar\":\"wHTirJa_sendbox__attachment-bar\",\"sendbox__text-counter\":\"wHTirJa_sendbox__text-counter\",\"sendbox__text-counter--error\":\"wHTirJa_sendbox__text-counter--error\",\"sendbox__telephone-keypad--in-grid\":\"wHTirJa_sendbox__telephone-keypad--in-grid\",\"sendbox__text-area--in-grid\":\"wHTirJa_sendbox__text-area--in-grid\",\"variant-copilot\":\"wHTirJa_variant-copilot\",\"sendbox__sendbox\":\"wHTirJa_sendbox__sendbox\",\"sendbox__attachment-bar--in-grid\":\"wHTirJa_sendbox__attachment-bar--in-grid\",\"sendbox__sendbox-controls--in-grid\":\"wHTirJa_sendbox__sendbox-controls--in-grid\",\"sendbox__sendbox-text-area\":\"wHTirJa_sendbox__sendbox-text-area\"}\nexport default classes\n\nconst _sendbox__sendbox_controls0 = classes[\"sendbox__sendbox-controls\"]\nexport { _sendbox__sendbox_controls0 as \"sendbox__sendbox-controls\" }\n\nconst _sendbox0 = classes[\"sendbox\"]\nexport { _sendbox0 as \"sendbox\" }\n\nconst _sendbox__attachment_bar0 = classes[\"sendbox__attachment-bar\"]\nexport { _sendbox__attachment_bar0 as \"sendbox__attachment-bar\" }\n\nconst _sendbox__text_counter0 = classes[\"sendbox__text-counter\"]\nexport { _sendbox__text_counter0 as \"sendbox__text-counter\" }\n\nconst _sendbox__text_counter__error0 = classes[\"sendbox__text-counter--error\"]\nexport { _sendbox__text_counter__error0 as \"sendbox__text-counter--error\" }\n\nconst _sendbox__telephone_keypad__in_grid0 = classes[\"sendbox__telephone-keypad--in-grid\"]\nexport { _sendbox__telephone_keypad__in_grid0 as \"sendbox__telephone-keypad--in-grid\" }\n\nconst _sendbox__text_area__in_grid0 = classes[\"sendbox__text-area--in-grid\"]\nexport { _sendbox__text_area__in_grid0 as \"sendbox__text-area--in-grid\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n\nconst _sendbox__sendbox0 = classes[\"sendbox__sendbox\"]\nexport { _sendbox__sendbox0 as \"sendbox__sendbox\" }\n\nconst _sendbox__attachment_bar__in_grid0 = classes[\"sendbox__attachment-bar--in-grid\"]\nexport { _sendbox__attachment_bar__in_grid0 as \"sendbox__attachment-bar--in-grid\" }\n\nconst _sendbox__sendbox_controls__in_grid0 = classes[\"sendbox__sendbox-controls--in-grid\"]\nexport { _sendbox__sendbox_controls__in_grid0 as \"sendbox__sendbox-controls--in-grid\" }\n\nconst _sendbox__sendbox_text_area0 = classes[\"sendbox__sendbox-text-area\"]\nexport { _sendbox__sendbox_text_area0 as \"sendbox__sendbox-text-area\" }\n","import React, { memo, useCallback } from 'react';\n\nimport { hooks } from 'botframework-webchat-component';\nimport { FluentIcon } from '../icon';\nimport testIds from '../../testIds';\nimport { useTelephoneKeypadShown } from '../telephoneKeypad';\nimport { ToolbarButton } from './Toolbar';\n\nconst { useLocalizer } = hooks;\n\nconst TelephoneKeypadToolbarButton = memo(() => {\n const [telephoneKeypadShown, setTelephoneKeypadShown] = useTelephoneKeypadShown();\n const localize = useLocalizer();\n\n const handleClick = useCallback(() => setTelephoneKeypadShown(shown => !shown), [setTelephoneKeypadShown]);\n\n return (\n <ToolbarButton\n aria-label={localize('TEXT_INPUT_TELEPHONE_KEYPAD_BUTTON_ALT')}\n data-testid={testIds.sendBoxTelephoneKeypadToolbarButton}\n onClick={handleClick}\n selected={telephoneKeypadShown}\n >\n <FluentIcon appearance=\"text\" icon=\"keypad\" />\n </ToolbarButton>\n );\n});\n\nTelephoneKeypadToolbarButton.displayName = 'SendBox.TelephoneKeypadToolbarButton';\n\nexport default TelephoneKeypadToolbarButton;\n","/* eslint-disable prefer-arrow-callback */\nimport { type ActivityMiddleware, type StyleOptions, type TypingIndicatorMiddleware } from 'botframework-webchat-api';\nimport {\n createActivityBorderMiddleware,\n createActivityGroupingMiddleware,\n DecoratorComposer,\n type DecoratorMiddleware\n} from 'botframework-webchat-api/decorator';\nimport { Components } from 'botframework-webchat-component';\nimport { WebChatDecorator } from 'botframework-webchat-component/decorator';\nimport React, { memo, type ReactNode } from 'react';\n\nimport { ActivityDecorator } from '../components/activity';\nimport ActivityLoader from '../components/activity/ActivityLoader';\nimport PartGroupDecorator from '../components/activity/PartGroupingDecorator';\nimport AssetComposer from '../components/assets/AssetComposer';\nimport { isLinerMessageActivity, LinerMessageActivity } from '../components/linerActivity';\nimport { isPreChatMessageActivity, PreChatMessageActivity } from '../components/preChatActivity';\nimport { PrimarySendBox } from '../components/sendBox';\nimport { TelephoneKeypadProvider } from '../components/telephoneKeypad';\nimport { WebChatTheme } from '../components/theme';\nimport SlidingDotsTypingIndicator from '../components/typingIndicator/SlidingDotsTypingIndicator';\nimport { createStyles } from '../styles';\nimport VariantComposer, { VariantList } from './VariantComposer';\n\nconst { ThemeProvider } = Components;\n\ntype FluentThemeProviderProps = Readonly<{\n children?: ReactNode | undefined;\n variant?: VariantList | undefined;\n}>;\n\nconst activityMiddleware: readonly ActivityMiddleware[] = Object.freeze([\n () =>\n next =>\n (...args) => {\n const activity = args[0]?.activity;\n\n // TODO: Should show pre-chat only when it is the very first message in the chat history.\n if (isPreChatMessageActivity(activity)) {\n return () => <PreChatMessageActivity activity={activity} />;\n }\n\n if (isLinerMessageActivity(activity)) {\n return () => <LinerMessageActivity activity={activity} />;\n }\n\n const renderActivity = next(...args);\n\n return renderActivity\n ? (...args) => <ActivityDecorator activity={activity}>{renderActivity(...args)}</ActivityDecorator>\n : renderActivity;\n }\n]);\n\nconst sendBoxMiddleware = [() => () => () => PrimarySendBox];\n\nconst decoratorMiddleware: readonly DecoratorMiddleware[] = Object.freeze([\n createActivityGroupingMiddleware(next => request => {\n if (request.groupingName === 'part') {\n return PartGroupDecorator;\n }\n return next(request);\n }),\n createActivityBorderMiddleware(function FluentBorderLoader({ request, Next, ...props }) {\n return (\n <ActivityLoader showLoader={props.showLoader ?? request.livestreamingState === 'preparing'}>\n <Next {...props} showLoader={false} />\n </ActivityLoader>\n );\n })\n]);\n\nconst styles = createStyles('fluent-theme');\n\nconst fluentStyleOptions: StyleOptions = Object.freeze({\n feedbackActionsPlacement: 'activity-actions'\n});\n\nconst typingIndicatorMiddleware = Object.freeze([\n () =>\n next =>\n (...args) =>\n args[0].visible ? <SlidingDotsTypingIndicator /> : next(...args)\n] satisfies TypingIndicatorMiddleware[]);\n\nfunction FluentThemeProvider({ children, variant = 'fluent' }: FluentThemeProviderProps) {\n return (\n <VariantComposer variant={variant}>\n <WebChatTheme>\n <TelephoneKeypadProvider>\n <ThemeProvider\n activityMiddleware={activityMiddleware}\n sendBoxMiddleware={sendBoxMiddleware}\n styleOptions={fluentStyleOptions}\n styles={styles}\n typingIndicatorMiddleware={typingIndicatorMiddleware}\n >\n <AssetComposer>\n <WebChatDecorator>\n <DecoratorComposer middleware={decoratorMiddleware}>{children}</DecoratorComposer>\n </WebChatDecorator>\n </AssetComposer>\n </ThemeProvider>\n </TelephoneKeypadProvider>\n </WebChatTheme>\n </VariantComposer>\n );\n}\n\nexport default memo(FluentThemeProvider);\nexport { type FluentThemeProviderProps };\n","import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { Fragment, memo } from 'react';\nimport { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot';\n\nimport { useVariantClassName } from '../../styles';\nimport SlidingDots from '../assets/SlidingDots';\nimport styles from './ActivityLoader.module.css';\n\nconst fluentActivityLoaderPropsSchema = pipe(\n object({\n children: optional(reactNode()),\n className: optional(string()),\n showLoader: optional(boolean(), true)\n }),\n readonly()\n);\n\ntype FluentActivityLoaderProps = InferInput<typeof fluentActivityLoaderPropsSchema>;\n\nfunction FluentActivityLoader(props: FluentActivityLoaderProps) {\n const { children, className, showLoader } = validateProps(fluentActivityLoaderPropsSchema, props);\n\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(classNames);\n\n return (\n <Fragment>\n {children}\n {showLoader && <SlidingDots className={cx(classNames['activity-loader'], variantClassName, className)} />}\n </Fragment>\n );\n}\n\nexport default memo(FluentActivityLoader);\nexport { fluentActivityLoaderPropsSchema, type FluentActivityLoaderProps };\n","import { hooks } from 'botframework-webchat-component';\nimport React, { memo, useCallback, useEffect, useRef } from 'react';\nimport { useRefFrom } from 'use-ref-from';\n\nimport useAssetURL from './private/useAssetURL';\n\nconst { useLocalizer, useShouldReduceMotion } = hooks;\n\ntype SlidingDotsProps = Readonly<{ className: string }>;\n\nconst SlidingDots = ({ className }: SlidingDotsProps) => {\n const [shouldReduceMotion] = useShouldReduceMotion();\n const [url] = useAssetURL('sliding dots');\n const localize = useLocalizer();\n const objectElementRef = useRef<HTMLObjectElement>(null);\n\n const altText = localize('TYPING_INDICATOR_ALT');\n const shouldReduceMotionRef = useRefFrom(shouldReduceMotion);\n\n const pauseAnimations = useCallback(() => {\n const contentDocument = objectElementRef.current?.contentDocument;\n const svgElement = contentDocument?.documentElement;\n const { SVGSVGElement } = contentDocument?.defaultView || {};\n\n SVGSVGElement && svgElement instanceof SVGSVGElement && svgElement.pauseAnimations();\n }, [objectElementRef]);\n\n const unpauseAnimations = useCallback(() => {\n const contentDocument = objectElementRef.current?.contentDocument;\n const svgElement = contentDocument?.documentElement;\n const { SVGSVGElement } = contentDocument?.defaultView || {};\n\n SVGSVGElement && svgElement instanceof SVGSVGElement && svgElement.unpauseAnimations();\n }, [objectElementRef]);\n\n const pauseOrUnpauseAnimations = useCallback(\n () => (shouldReduceMotionRef.current ? pauseAnimations() : unpauseAnimations()),\n [pauseAnimations, shouldReduceMotionRef, unpauseAnimations]\n );\n\n useEffect(pauseOrUnpauseAnimations, [\n pauseOrUnpauseAnimations,\n // Call \"pauseOrUnpauseAnimations()\" when \"shouldReduceMotion\" change.\n shouldReduceMotion\n ]);\n\n return (\n <object\n aria-label={altText}\n className={className}\n data={url.href}\n onLoad={pauseOrUnpauseAnimations}\n ref={objectElementRef}\n type=\"image/svg+xml\"\n />\n );\n};\n\nSlidingDots.displayName = 'SlidingDots';\n\nexport default memo(SlidingDots);\n","import { type ContextOf } from 'botframework-webchat-api';\nimport { useContext as useReactContext } from 'react';\n\nimport Context from './Context';\n\nexport default function useContext(): ContextOf<typeof Context> {\n return useReactContext(Context);\n}\n","import { createContext } from 'react';\n\nimport type { AssetName } from '../AssetName';\n\ntype ContextType = Readonly<{\n urlStateMap: ReadonlyMap<AssetName, readonly [URL]>;\n}>;\n\ntype ContextAsGetter<T extends Record<string, unknown>> =\n T extends Record<infer K, infer V> ? Record<K, { get(): V }> : never;\n\nconst defaultContextValue: ContextAsGetter<ContextType> = {\n urlStateMap: {\n get() {\n throw new Error('urlMap cannot be used outside of <AssetComposerContext>.');\n }\n }\n};\n\nconst Context = createContext<ContextType>(Object.create({}, defaultContextValue));\n\nContext.displayName = 'AssetComposerContext';\n\nexport default Context;\n","import { type AssetName } from '../AssetName';\nimport useContext from './useContext';\n\nexport default function useAssetURL(assetName: AssetName): readonly [URL] {\n const urlState = useContext().urlStateMap.get(assetName);\n\n if (!urlState) {\n throw new Error(`botframework-webchat-fluent-theme internal: Asset \"${assetName}\" was not found.`);\n }\n\n return urlState;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/ActivityLoader.module_built.css\";\nconst classes = {\"variant-fluent\":\"wnVy-QG_variant-fluent\",\"variant-copilot\":\"wnVy-QG_variant-copilot\",\"activity-loader\":\"wnVy-QG_activity-loader\"}\nexport default classes\n\nconst _variant_fluent0 = classes[\"variant-fluent\"]\nexport { _variant_fluent0 as \"variant-fluent\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n\nconst _activity_loader0 = classes[\"activity-loader\"]\nexport { _activity_loader0 as \"activity-loader\" }\n","import { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { PartGrouping } from 'botframework-webchat-component/internal';\nimport { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\nimport cx from 'classnames';\nimport React, { memo, useMemo, type ReactNode } from 'react';\nimport { array, custom, object, optional, pipe, readonly, safeParse } from 'valibot';\n\nimport useVariants from '../../private/useVariants';\nimport { useStyles, useVariantClassName } from '../../styles';\nimport CopilotMessageHeader from './CopilotMessageHeader';\n\nimport styles from './PartGroupingDecorator.module.css';\n\nconst partGroupingDecoratorPropsSchema = pipe(\n object({\n activities: pipe(array(custom<WebChatActivity>(value => safeParse(object({}), value).success)), readonly()),\n children: optional(reactNode())\n }),\n readonly()\n);\n\n// TODO: [P2] InferInput does not add the required readonly, need to have a better way to define props.\ntype PartGroupingDecoratorProps = {\n readonly activities: readonly WebChatActivity[];\n readonly children?: ReactNode | undefined;\n};\n\nfunction PartGroupingDecorator(props: PartGroupingDecoratorProps) {\n const {\n activities: [activity, ...restActivities]\n } = validateProps(partGroupingDecoratorPropsSchema, props);\n\n const variants = useVariants();\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n\n const isInGroup = useMemo(\n () =>\n restActivities.length > 0 || !!(activity?.entities && getOrgSchemaMessage(activity.entities)?.isPartOf?.['@id']),\n [activity, restActivities.length]\n );\n\n const isFromUser = activity?.from?.role === 'user';\n const isFromBot = activity?.from?.role === 'bot';\n\n const shouldRenderHeader = variants.includes('copilot') && activity?.from?.role === 'bot';\n\n return (\n <div\n className={cx(\n classNames['part-grouping-decorator'],\n {\n [classNames['part-grouping-decorator--group']]: isInGroup,\n [classNames['part-grouping-decorator--from-user']]: isFromUser,\n [classNames['part-grouping-decorator--from-bot']]: isFromBot\n },\n variantClassName\n )}\n >\n {shouldRenderHeader && (\n <CopilotMessageHeader activity={activity} className={classNames['part-grouping-decorator__header']} />\n )}\n <PartGrouping {...props} />\n </div>\n );\n}\n\nexport default memo(PartGroupingDecorator);\nexport { type PartGroupingDecoratorProps };\n","import { validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport { WebChatActivity, hooks } from 'botframework-webchat-component';\nimport cx from 'classnames';\nimport React, { memo, useMemo, type CSSProperties } from 'react';\nimport { custom, object, optional, pipe, readonly, safeParse, string, type InferInput } from 'valibot';\nimport { useStyles } from '../../styles';\nimport styles from './CopilotMessageHeader.module.css';\nimport isAIGeneratedActivity from './private/isAIGeneratedActivity';\nimport useActivityAuthor from './private/useActivityAuthor';\nimport useActivityStyleOptions from './private/useActivityStyleOptions';\n\nconst { useLocalizer } = hooks;\n\nconst copilotMessageHeaderPropsSchema = pipe(\n object({\n activity: optional(custom<Readonly<WebChatActivity>>(value => safeParse(object({}), value).success)),\n className: optional(string())\n }),\n readonly()\n);\n\ntype CopilotMessageHeaderProps = InferInput<typeof copilotMessageHeaderPropsSchema>;\n\nfunction CopilotMessageHeader(props: CopilotMessageHeaderProps) {\n const { activity, className } = validateProps(copilotMessageHeaderPropsSchema, props);\n\n const [{ botAvatarImage, botAvatarBackgroundColor }] = useActivityStyleOptions(activity);\n const classNames = useStyles(styles);\n const localize = useLocalizer();\n const isAIGenerated = isAIGeneratedActivity(activity);\n\n const avatarStyle = useMemo(\n () => ({ '--background-color': botAvatarBackgroundColor }) as CSSProperties,\n [botAvatarBackgroundColor]\n );\n\n const author = useActivityAuthor(activity);\n const avatarImage = author?.image || botAvatarImage;\n const botTitle = author?.name || activity?.from?.name;\n\n return (\n <div className={cx(classNames['copilot-message-header'], className)}>\n {avatarImage && (\n <img\n alt={localize('AVATAR_ALT', botTitle)}\n className={classNames['copilot-message-header__avatar']}\n src={avatarImage}\n style={avatarStyle}\n />\n )}\n <span className={classNames['copilot-message-header__title']} title={botTitle}>\n {botTitle}\n </span>\n {isAIGenerated && (\n <span className={classNames['copilot-message-header__ai-generated-content']}>\n {localize('ACTIVITY_CONTENT_CAUTION')}\n </span>\n )}\n </div>\n );\n}\n\nexport default memo(CopilotMessageHeader);\nexport { copilotMessageHeaderPropsSchema, type CopilotMessageHeaderProps };\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/CopilotMessageHeader.module_built.css\";\nconst classes = {\"copilot-message-header__ai-generated-content\":\"wyJATiG_copilot-message-header__ai-generated-content\",\"copilot-message-header\":\"wyJATiG_copilot-message-header\",\"copilot-message-header__avatar\":\"wyJATiG_copilot-message-header__avatar\",\"copilot-message-header__title\":\"wyJATiG_copilot-message-header__title\"}\nexport default classes\n\nconst _copilot_message_header__ai_generated_content0 = classes[\"copilot-message-header__ai-generated-content\"]\nexport { _copilot_message_header__ai_generated_content0 as \"copilot-message-header__ai-generated-content\" }\n\nconst _copilot_message_header0 = classes[\"copilot-message-header\"]\nexport { _copilot_message_header0 as \"copilot-message-header\" }\n\nconst _copilot_message_header__avatar0 = classes[\"copilot-message-header__avatar\"]\nexport { _copilot_message_header__avatar0 as \"copilot-message-header__avatar\" }\n\nconst _copilot_message_header__title0 = classes[\"copilot-message-header__title\"]\nexport { _copilot_message_header__title0 as \"copilot-message-header__title\" }\n","import { getOrgSchemaMessage, type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isAIGeneratedActivity(activity: undefined | WebChatActivity) {\n return !!(activity && getOrgSchemaMessage(activity?.entities || [])?.keywords?.includes('AIGeneratedContent'));\n}\n","import { useMemo } from 'react';\nimport { hooks, type WebChatActivity } from 'botframework-webchat-component';\nimport { type StrictStyleOptions } from 'botframework-webchat-api';\n\nconst { useStyleOptions } = hooks;\n\nexport default function useActivityStyleOptions(activity?: WebChatActivity | undefined) {\n const [styleOptions] = useStyleOptions();\n return useMemo<readonly [Readonly<StrictStyleOptions>]>(\n () =>\n Object.freeze([\n {\n ...styleOptions,\n ...activity?.channelData?.webChat?.styleOptions\n }\n ]),\n [activity?.channelData?.webChat?.styleOptions, styleOptions]\n );\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/activity/PartGroupingDecorator.module_built.css\";\nconst classes = {\"variant-fluent\":\"w6hsPoW_variant-fluent\",\"part-grouping-decorator\":\"w6hsPoW_part-grouping-decorator\",\"part-grouping-decorator--group\":\"w6hsPoW_part-grouping-decorator--group\",\"part-grouping-decorator__header\":\"w6hsPoW_part-grouping-decorator__header\",\"part-grouping-decorator--from-user\":\"w6hsPoW_part-grouping-decorator--from-user\",\"part-grouping-decorator--from-bot\":\"w6hsPoW_part-grouping-decorator--from-bot\",\"variant-copilot\":\"w6hsPoW_variant-copilot\"}\nexport default classes\n\nconst _variant_fluent0 = classes[\"variant-fluent\"]\nexport { _variant_fluent0 as \"variant-fluent\" }\n\nconst _part_grouping_decorator0 = classes[\"part-grouping-decorator\"]\nexport { _part_grouping_decorator0 as \"part-grouping-decorator\" }\n\nconst _part_grouping_decorator__group0 = classes[\"part-grouping-decorator--group\"]\nexport { _part_grouping_decorator__group0 as \"part-grouping-decorator--group\" }\n\nconst _part_grouping_decorator__header0 = classes[\"part-grouping-decorator__header\"]\nexport { _part_grouping_decorator__header0 as \"part-grouping-decorator__header\" }\n\nconst _part_grouping_decorator__from_user0 = classes[\"part-grouping-decorator--from-user\"]\nexport { _part_grouping_decorator__from_user0 as \"part-grouping-decorator--from-user\" }\n\nconst _part_grouping_decorator__from_bot0 = classes[\"part-grouping-decorator--from-bot\"]\nexport { _part_grouping_decorator__from_bot0 as \"part-grouping-decorator--from-bot\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n","import { type ContextOf } from 'botframework-webchat-api';\nimport React, { memo, useEffect, useMemo, type ReactNode } from 'react';\n\nimport { type AssetName } from './AssetName';\nimport Context from './private/Context';\n\ntype ContextType = ContextOf<typeof Context>;\n\ntype AssetComposerProps = Readonly<{\n children?: ReactNode | undefined;\n}>;\n\nconst SLIDING_DOTS_SVG_STRING =\n '<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"400\" height=\"20\" viewBox=\"0 0 400 20\"><defs><linearGradient id=\"a\" x1=\"0\" x2=\"100%\" y1=\"0\" y2=\"0\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#ad5ae1;#ad5ae1;#0E94E1;#0E94E1;#669fc2;#669fc2;#ad5ae1\"/></stop><stop offset=\"50%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#e9618d;#e9618d;#57AB82;#57AB82;#6377e0;#6377e0;#e9618d\"/></stop><stop offset=\"100%\"><animate attributeName=\"stop-color\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"#fd9e5f;#fd9e5f;#C6C225;#C6C225;#9b80ec;#9b80ec;#fd9e5f\"/></stop></linearGradient></defs><g fill=\"url(#a)\"><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"26;26;0;0\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;30;30;20;20\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"1;1;0;0\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"62;62;72;72;26;26;0\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"104;104;20;20;70;70;20\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.8;1\" repeatCount=\"indefinite\" values=\"1;1;0\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"182;182;108;108;112;112;26\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;60;60;20;20\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"218;218;184;184;148;148;62\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"60;60;80;80;40;40;104\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"294;294;280;280;204;204;182\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"40;40;20;20;80;80;20\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"350;350;316;316;300;300;218\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"20;20;60;60;20;20;60\"/></rect><rect height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"386;386;392;392;336;336;294\"/><animate attributeName=\"width\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"20;20;40;40\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.5;0.66;1\" repeatCount=\"indefinite\" values=\"0;0;1;1\"/></rect><rect width=\"20\" height=\"20\" rx=\"10\"><animate attributeName=\"x\" dur=\"2s\" keyTimes=\"0;0.2;0.33;0.5;0.66;0.8;1\" repeatCount=\"indefinite\" values=\"422;422;428;428;392;392;350\"/><animate attributeName=\"opacity\" dur=\"2s\" keyTimes=\"0;0.8;1\" repeatCount=\"indefinite\" values=\"0;0;1\"/></rect></g></svg>';\n\nconst AssetComposer = memo(({ children }: AssetComposerProps) => {\n const slidingDotsURL = useMemo(\n // Content is hardcoded.\n // eslint-disable-next-line no-restricted-properties\n () => URL.createObjectURL(new Blob([SLIDING_DOTS_SVG_STRING], { type: 'image/svg+xml' })),\n []\n );\n\n useEffect(() => () => URL.revokeObjectURL(slidingDotsURL), [slidingDotsURL]);\n\n const context = useMemo<ContextType>(\n () =>\n Object.freeze({\n urlStateMap: new Map<AssetName, readonly [URL]>([['sliding dots', Object.freeze([new URL(slidingDotsURL)])]])\n }),\n [slidingDotsURL]\n );\n\n return <Context.Provider value={context}>{children}</Context.Provider>;\n});\n\nAssetComposer.displayName = 'AssetComposer';\n\nexport default AssetComposer;\n","import { type WebChatActivity } from 'botframework-webchat-core';\n\nexport default function isLinerMessageActivity(\n activity: undefined | WebChatActivity\n): activity is WebChatActivity & { type: 'message'; from: { role: 'channel' } } {\n return !!(activity && activity.from.role === 'channel' && activity.type === 'message' && 'text' in activity);\n}\n","import { type WebChatActivity } from 'botframework-webchat-core';\nimport React, { memo } from 'react';\nimport { useStyles } from '../../../styles/index.js';\nimport styles from './LinerMessageActivity.module.css';\n\ntype Props = Readonly<{ activity: WebChatActivity & { type: 'message' } }>;\n\nconst LinerMessageActivity = ({ activity }: Props) => {\n const classNames = useStyles(styles);\n\n return (\n <div className={classNames['liner-message-activity']} role=\"separator\">\n <span className={classNames['liner-message-activity__text']}>{activity.text}</span>\n </div>\n );\n};\n\nLinerMessageActivity.displayName = 'LinerMessageActivity';\n\nexport default memo(LinerMessageActivity);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/linerActivity/private/LinerMessageActivity.module_built.css\";\nconst classes = {\"liner-message-activity__text\":\"wQVQNzG_liner-message-activity__text\",\"liner-message-activity\":\"wQVQNzG_liner-message-activity\"}\nexport default classes\n\nconst _liner_message_activity__text0 = classes[\"liner-message-activity__text\"]\nexport { _liner_message_activity__text0 as \"liner-message-activity__text\" }\n\nconst _liner_message_activity0 = classes[\"liner-message-activity\"]\nexport { _liner_message_activity0 as \"liner-message-activity\" }\n","import React, { type ReactNode } from 'react';\nimport cx from 'classnames';\nimport styles from './Theme.module.css';\nimport { useStyles, useVariantClassName } from '../../styles';\n\nexport const rootClassName = 'webchat-fluent';\n\nexport default function Theme(props: Readonly<{ readonly children: ReactNode | undefined }>) {\n const classNames = useStyles(styles);\n const variantClassName = useVariantClassName(styles);\n return <div className={cx(rootClassName, classNames['theme'], variantClassName)}>{props.children}</div>;\n}\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/theme/Theme.module_built.css\";\nconst classes = {\"theme\":\"w2roZmq_theme\",\"variant-copilot\":\"w2roZmq_variant-copilot\"}\nexport default classes\n\nconst _theme0 = classes[\"theme\"]\nexport { _theme0 as \"theme\" }\n\nconst _variant_copilot0 = classes[\"variant-copilot\"]\nexport { _variant_copilot0 as \"variant-copilot\" }\n","import { testIds } from 'botframework-webchat-component';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\nimport cx from 'classnames';\nimport React, { memo } from 'react';\n\nimport SlidingDots from '../assets/SlidingDots';\nimport styles from './SlidingDotsTypingIndicator.module.css';\n\nfunction SlidingDotsTypingIndicator() {\n const classNames = useStyles(styles);\n\n return (\n <div className={classNames['sliding-dots-typing-indicator']} data-testid={testIds.typingIndicator}>\n <SlidingDots className={cx(classNames['sliding-dots-typing-indicator__image'])} />\n </div>\n );\n}\n\nexport default memo(SlidingDotsTypingIndicator);\n","import \"/__w/1/s/BotFramework-WebChat/packages/fluent-theme/src/components/typingIndicator/SlidingDotsTypingIndicator.module_built.css\";\nconst classes = {\"sliding-dots-typing-indicator\":\"wQOMcSW_sliding-dots-typing-indicator\",\"sliding-dots-typing-indicator__image\":\"wQOMcSW_sliding-dots-typing-indicator__image\"}\nexport default classes\n\nconst _sliding_dots_typing_indicator0 = classes[\"sliding-dots-typing-indicator\"]\nexport { _sliding_dots_typing_indicator0 as \"sliding-dots-typing-indicator\" }\n\nconst _sliding_dots_typing_indicator__image0 = classes[\"sliding-dots-typing-indicator__image\"]\nexport { _sliding_dots_typing_indicator__image0 as \"sliding-dots-typing-indicator__image\" }\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n check(typeof this == 'object' && this) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","'use strict';\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar documentAll = typeof document == 'object' && document.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nmodule.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n// eslint-disable-next-line es/no-function-prototype-bind -- safe\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar path = require('../internals/path');\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (variable) {\n return isCallable(variable) ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace])\n : path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method];\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\nvar navigator = globalThis.navigator;\nvar userAgent = navigator && navigator.userAgent;\n\nmodule.exports = userAgent ? String(userAgent) : '';\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar userAgent = require('../internals/environment-user-agent');\n\nvar process = globalThis.process;\nvar Deno = globalThis.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/environment-v8-version');\nvar fails = require('../internals/fails');\nvar globalThis = require('../internals/global-this');\n\nvar $String = globalThis.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL &&\n !Symbol.sham &&\n typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nmodule.exports = true;\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(globalThis, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n globalThis[key] = value;\n } return value;\n};\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar globalThis = require('../internals/global-this');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});\n\n(store.versions || (store.versions = [])).push({\n version: '3.44.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\nvar store = require('../internals/shared-store');\n\nmodule.exports = function (key, value) {\n return store[key] || (store[key] = value || {});\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.1.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = globalThis.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\n\nvar document = globalThis.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar isCallable = require('../internals/is-callable');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\n// add debugging info\nrequire('../internals/shared-store');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof Wrapper) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return apply(NativeConstructor, this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? globalThis : STATIC ? globalThis[TARGET] : globalThis[TARGET] && globalThis[TARGET].prototype;\n\n var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && hasOwn(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue;\n\n // bind methods to global for calling from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, globalThis);\n // wrap global constructors for prevent changes in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && isCallable(sourceProperty)) resultProperty = uncurryThis(sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n createNonEnumerableProperty(target, key, resultProperty);\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!hasOwn(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);\n // export real prototype methods\n if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","'use strict';\n/* global Bun, Deno -- detection */\nvar globalThis = require('../internals/global-this');\nvar userAgent = require('../internals/environment-user-agent');\nvar classof = require('../internals/classof-raw');\n\nvar userAgentStartsWith = function (string) {\n return userAgent.slice(0, string.length) === string;\n};\n\nmodule.exports = (function () {\n if (userAgentStartsWith('Bun/')) return 'BUN';\n if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';\n if (userAgentStartsWith('Deno/')) return 'DENO';\n if (userAgentStartsWith('Node.js/')) return 'NODE';\n if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN';\n if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO';\n if (classof(globalThis.process) === 'process') return 'NODE';\n if (globalThis.window && globalThis.document) return 'BROWSER';\n return 'REST';\n})();\n","'use strict';\nvar ENVIRONMENT = require('../internals/environment');\n\nmodule.exports = ENVIRONMENT === 'NODE';\n","'use strict';\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n return target;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nmodule.exports = function (argument) {\n return isObject(argument) || argument === null;\n};\n","'use strict';\nvar isPossiblePrototype = require('../internals/is-possible-prototype');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (isPossiblePrototype(argument)) return argument;\n throw new $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","'use strict';\n/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar isObject = require('../internals/is-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n requireObjectCoercible(O);\n aPossiblePrototype(proto);\n if (!isObject(O)) return O;\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n var target = STATIC ? it : it && it.prototype;\n if (target) {\n if (!hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","'use strict';\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","'use strict';\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw new $TypeError('Incorrect invocation');\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.test(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, [], argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","'use strict';\nvar isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar userAgent = require('../internals/environment-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/environment-is-ios');\nvar IS_NODE = require('../internals/environment-is-node');\n\nvar set = globalThis.setImmediate;\nvar clear = globalThis.clearImmediate;\nvar process = globalThis.process;\nvar Dispatch = globalThis.Dispatch;\nvar Function = globalThis.Function;\nvar MessageChannel = globalThis.MessageChannel;\nvar String = globalThis.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = globalThis.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n globalThis.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n globalThis.addEventListener &&\n isCallable(globalThis.postMessage) &&\n !globalThis.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n globalThis.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar DESCRIPTORS = require('../internals/descriptors');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Avoid NodeJS experimental warning\nmodule.exports = function (name) {\n if (!DESCRIPTORS) return globalThis[name];\n var descriptor = getOwnPropertyDescriptor(globalThis, name);\n return descriptor && descriptor.value;\n};\n","'use strict';\nvar Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n var tail = this.tail;\n if (tail) tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n var next = this.head = entry.next;\n if (next === null) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","'use strict';\nvar userAgent = require('../internals/environment-user-agent');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';\n","'use strict';\nvar userAgent = require('../internals/environment-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar safeGetBuiltIn = require('../internals/safe-get-built-in');\nvar bind = require('../internals/function-bind-context');\nvar macrotask = require('../internals/task').set;\nvar Queue = require('../internals/queue');\nvar IS_IOS = require('../internals/environment-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/environment-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/environment-is-webos-webkit');\nvar IS_NODE = require('../internals/environment-is-node');\n\nvar MutationObserver = globalThis.MutationObserver || globalThis.WebKitMutationObserver;\nvar document = globalThis.document;\nvar process = globalThis.process;\nvar Promise = globalThis.Promise;\nvar microtask = safeGetBuiltIn('queueMicrotask');\nvar notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!microtask) {\n var queue = new Queue();\n\n var flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (fn = queue.get()) try {\n fn();\n } catch (error) {\n if (queue.head) notify();\n throw error;\n }\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // `webpack` dev server bug on IE global methods - use bind(fn, global)\n macrotask = bind(macrotask, globalThis);\n notify = function () {\n macrotask(flush);\n };\n }\n\n microtask = function (fn) {\n if (!queue.head) notify();\n queue.add(fn);\n };\n}\n\nmodule.exports = microtask;\n","'use strict';\nmodule.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = globalThis.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar globalThis = require('../internals/global-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = globalThis.TypeError;\nvar WeakMap = globalThis.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar globalThis = require('../internals/global-this');\n\nmodule.exports = globalThis.Promise;\n","'use strict';\nvar globalThis = require('../internals/global-this');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ENVIRONMENT = require('../internals/environment');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/environment-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(globalThis.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/environment-is-node');\nvar globalThis = require('../internals/global-this');\nvar path = require('../internals/path');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = globalThis.TypeError;\nvar document = globalThis.document;\nvar process = globalThis.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\nvar DISPATCH_EVENT = !!(document && document.createEvent && globalThis.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state === FULFILLED;\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(new TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n call(then, result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n};\n\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n globalThis.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, globalThis, function () {\n var promise = state.facade;\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, globalThis, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw new TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: null\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state === PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n// `Promise` constructor\n// https://tc39.es/ecma262/#sec-promise-executor\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nPromiseWrapper = path.Promise;\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n var len = toIntegerOrInfinity(argument);\n return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw new $TypeError(tryToString(argument) + ' is not iterable');\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal');\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n try {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n } catch (error) { return false; } // workaround of old WebKit + `eval` bug\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","'use strict';\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n remaining++;\n call($promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n var capabilityReject = capability.reject;\n capabilityReject(r);\n return capability.promise;\n }\n});\n","'use strict';\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","'use strict';\n// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/es.promise.constructor');\nrequire('../modules/es.promise.all');\nrequire('../modules/es.promise.catch');\nrequire('../modules/es.promise.race');\nrequire('../modules/es.promise.reject');\nrequire('../modules/es.promise.resolve');\n","'use strict';\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\n// `Promise.withResolvers` method\n// https://tc39.es/ecma262/#sec-promise.withResolvers\n$({ target: 'Promise', stat: true }, {\n withResolvers: function withResolvers() {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n return {\n promise: promiseCapability.promise,\n resolve: promiseCapability.resolve,\n reject: promiseCapability.reject\n };\n }\n});\n","'use strict';\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.with-resolvers');\nvar call = require('../../internals/function-call');\nvar isCallable = require('../../internals/is-callable');\nvar path = require('../../internals/path');\n\nvar Promise = path.Promise;\nvar promiseWithResolvers = Promise.withResolvers;\n\nmodule.exports = function withResolvers() {\n return call(promiseWithResolvers, isCallable(this) ? this : Promise);\n};\n","'use strict';\nvar parent = require('../../es/promise/with-resolvers');\n\nmodule.exports = parent;\n","'use strict';\n// TODO: Remove from `core-js@4`\nrequire('../modules/es.promise.with-resolvers');\n","'use strict';\nvar parent = require('../../stable/promise/with-resolvers');\n// TODO: Remove from `core-js@4`\nrequire('../../modules/esnext.promise.with-resolvers');\n\nmodule.exports = parent;\n","'use strict';\nvar parent = require('../../actual/promise/with-resolvers');\n\nmodule.exports = parent;\n","'use strict';\nmodule.exports = require('../../full/promise/with-resolvers');\n","/// <reference lib=\"dom\" />\n\n// Courtesy of https://stackoverflow.com/a/67243723.\nfunction kebabCase(value: string): string {\n return value.replace(/[A-Z]+(?![a-z])|[A-Z]/gu, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());\n}\n\nexport default function setMetaTag(name: string, content: string): void;\nexport default function setMetaTag(name: string, contentMap: ReadonlyMap<string, string | undefined>): void;\n\nexport default function setMetaTag(name: string, contentMap: ReadonlyMap<string, string | undefined> | string): void {\n try {\n const { document } = globalThis;\n\n if (typeof document !== 'undefined' && document.createElement && document.head && document.head.appendChild) {\n const meta = document.querySelector(`html meta[name=\"${encodeURI(name)}\"]`) || document.createElement('meta');\n\n meta.setAttribute('name', name);\n meta.setAttribute(\n 'content',\n typeof contentMap === 'string'\n ? contentMap\n : Array.from(contentMap.entries())\n .map(([key, value]) => {\n const name = kebabCase(encodeURIComponent(key));\n\n return typeof value === 'undefined' ? name : `${name}=${encodeURIComponent(value)}`;\n })\n .join('; ')\n );\n\n document.head.appendChild(meta);\n }\n } catch {\n // Intentionally left blank.\n }\n}\n","import setMetaTag from './setMetaTag';\n\ntype BaseBuildInfoObject = {\n readonly buildTool?: string | undefined;\n readonly moduleFormat?: string | undefined;\n readonly version?: string | undefined;\n};\n\ninterface ReadonlyBuildInfo {\n get name(): string;\n get object(): BaseBuildInfoObject;\n get version(): string | undefined;\n\n delete(key: string): void;\n get(key: string): string | undefined;\n set(key: 'variant', value: 'full' | 'full-es5' | 'minimal'): void;\n set(key: string, value: string | undefined): void;\n}\n\nclass BuildInfo implements ReadonlyBuildInfo {\n constructor(name: string) {\n this.#name = name;\n }\n\n #map = new Map<string, string | undefined>();\n #name: string;\n #object: BaseBuildInfoObject = {};\n\n get name() {\n return this.#name;\n }\n\n get object() {\n return this.#object;\n }\n\n get version(): string | undefined {\n return this.#map.get('version');\n }\n\n #commit() {\n setMetaTag(this.name, this.#map);\n\n this.version && setMetaTag(`${this.name}:version`, this.version);\n }\n\n delete(key: string) {\n this.#map.delete(key);\n }\n\n get(key: string): string | undefined {\n return this.#map.get(key);\n }\n\n set(key: string, value: string | undefined): void {\n this.#map.set(key, value);\n\n Object.defineProperty(this.#object, key, {\n configurable: true,\n enumerable: true,\n value,\n writable: false\n });\n\n this.#commit();\n }\n}\n\nfunction createBuildInfo(name: 'botframework-webchat' | `botframework-webchat:${string}`): ReadonlyBuildInfo {\n return new BuildInfo(name);\n}\n\nexport default createBuildInfo;\nexport { type BuildInfo, type ReadonlyBuildInfo };\n","// Promise.withResolvers() is about 90 KiB.\n// @ts-expect-error: no types available\nimport coreJSWithResolvers from 'core-js-pure/features/promise/with-resolvers.js';\n\nexport type PromiseWithResolvers<T> = {\n promise: Promise<T>;\n reject: (error: unknown) => void;\n resolve: (value: T) => void;\n};\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSWithResolvers();\n}\n","import { createBuildInfo } from '@msinternal/botframework-webchat-base/utils';\n\nconst buildInfo = createBuildInfo('botframework-webchat:fluent-theme');\n\nbuildInfo.set('buildTool', globalThis.WEB_CHAT_BUILD_INFO_BUILD_TOOL);\nbuildInfo.set('moduleFormat', globalThis.WEB_CHAT_BUILD_INFO_MODULE_FORMAT);\nbuildInfo.set('version', globalThis.WEB_CHAT_BUILD_INFO_VERSION);\n\nexport default buildInfo;\n","import { SendBox as FluentSendBox } from './components/sendBox/index';\nimport FluentThemeProvider from './private/FluentThemeProvider';\nimport testIds from './testIds';\n\nexport { FluentSendBox, FluentThemeProvider, testIds };\n\n// #region Build info\nimport buildInfo from './buildInfo';\n\nconst { object: buildInfoObject, version } = buildInfo;\n\nexport { buildInfoObject as buildInfo, version };\n// #endregion\n"],"mappings":"AAAA,OAAS,SAAAA,GAAO,cAAAC,OAA4C,iCAC5D,OAAOC,OAAQ,aACf,OAAOC,GACL,QAAAC,GAEA,eAAAC,GACA,UAAAC,GACA,YAAAC,OAGK,QACP,OAAS,cAAAC,OAAkB,eCX3B,OAAS,uBAAAC,OAA2B,0CCCpC,OAAS,UAAAC,OAAsE,UCD/E,MAAqG,UDSrG,SAASC,GAEPC,EAAuD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,CACxB,KAAK6b,GAAQ7b,CACf,CAEA8b,GAAO,IAAI,IACXD,GACAE,GAA+B,CAAC,EAEhC,IAAI,MAAO,CACT,OAAO,KAAKF,EACd,CAEA,IAAI,QAAS,CACX,OAAO,KAAKE,EACd,CAEA,IAAI,SAA8B,CAChC,OAAO,KAAKD,GAAK,IAAI,SAAS,CAChC,CAEAE,IAAU,CACRP,GAAW,KAAK,KAAM,KAAKK,EAAI,EAE/B,KAAK,SAAWL,GAAW,GAAG,KAAK,IAAI,WAAY,KAAK,OAAO,CACjE,CAEA,OAAOrd,EAAa,CAClB,KAAK0d,GAAK,OAAO1d,CAAG,CACtB,CAEA,IAAIA,EAAiC,CACnC,OAAO,KAAK0d,GAAK,IAAI1d,CAAG,CAC1B,CAEA,IAAIA,EAAa3E,EAAiC,CAChD,KAAKqiB,GAAK,IAAI1d,EAAK3E,CAAK,EAExB,OAAO,eAAe,KAAKsiB,GAAS3d,EAAK,CACvC,aAAc,GACd,WAAY,GACZ,MAAA3E,EACA,SAAU,EACZ,CAAC,EAED,KAAKuiB,GAAQ,CACf,CACF,EAEA,SAASC,GAAgBjc,EAAoF,CAC3G,OAAO,IAAI4b,GAAU5b,CAAI,CAC3B,CAEA,IAAOkc,GAAQD,GCtEfE,GAAgCC,GAAAC,GAAA,CAAA,ECAhC,IAAMC,GAAYC,GAAgB,mCAAmC,EAErED,GAAU,IAAI,YAAa,MAAyC,EACpEA,GAAU,IAAI,eAAgB,WAA4C,EAC1EA,GAAU,IAAI,UAAW,8BAAsC,EAE/D,IAAOE,GAAQF,GCCf,GAAM,CAAE,OAAQG,GAAiB,QAAAC,EAAQ,EAAIC","names":["hooks","Components","cx","React","memo","useCallback","useRef","useState","useRefFrom","createIconComponent","custom","reactNode","message","reactNode_default","validateProps","propsSchema","props","isolationMode","useMemo","useStyles","styles","baseClassName","resultClassName","useStyles_default","cx","React","memo","useMemo","object","optional","pipe","readonly","string","classes","FluentIcon_module_default","_icon__attachment0","_icon__info_160","classes","_icon__send0","classes","_icon__keypad0","classes","_fluent_icon0","classes","_appearance__text0","classes","_icon__add_document0","classes","baseFluentIconPropsSchema","pipe","object","optional","string","readonly","BaseFluentIcon","props","className","o","classNames","FluentIcon_module_default","maskStyle","useMemo","React","cx","FluentIcon","modifierPropsSchema","createIconComponent","fluentIconPropsSchema","FluentIcon_default","memo","createStyle","content","origin","style","makeCreateStyles","contents","fluentStyleContent","createStyles_default","r","useMemo","useContext","useMemo","createContext","React","memo","useMemo","createComposer","Provider","defaults","displayName","Composer","children","props","value","VariantContext","createContext","VariantComposer","createComposer","VariantComposer_default","useVariants","variant","useContext","VariantContext","useMemo","useVariantClassName","styles","classNames","variants","useVariants","useMemo","variant","value","testIds","testIds_default","hooks","cx","React","memo","useCallback","useEffect","useRef","useState","useRefFrom","classes","DropZone_module_default","_sendbox__attachment_drop_zone0","_sendbox__attachment_drop_zone_icon0","classes","_sendbox__attachment_drop_zone__droppable0","classes","useLocalizer","hooks","handleDragOver","event","isFilesTransferEvent","type","isDescendantOf","target","ancestor","current","DropZone","props","dropZoneState","setDropZoneState","useState","classNames","DropZone_module_default","dropZoneRef","useRef","localize","onFilesAddedRef","useRefFrom","useEffect","entranceCounter","handleDragEnter","handleDragLeave","handleDragEnd","handleDocumentDrop","handleDrop","useCallback","React","cx","testIds_default","FluentIcon_default","DropZone_default","memo","hooks","cx","React","memo","useCallback","getOrgSchemaMessage","isPreChatMessageActivity","activity","hooks","cx","React","memo","useMemo","classes","PreChatMessageActivity_module_default","_pre_chat_message_activity0","_pre_chat_message_activity__body_subtitle0","classes","_pre_chat_message_activity__toolbar0","classes","_pre_chat_message_activity__body_title0","classes","_pre_chat_message_activity__body0","classes","_pre_chat_message_activity__body__blueprint0","classes","_pre_chat_message_activity__body_avatar0","classes","hooks","cx","React","memo","hooks","cx","React","memo","useCallback","useMemo","useRefFrom","classes","StarterPromptsCardAction_module_default","_pre_chat_message_activity__card_action_subtitle0","_pre_chat_message_activity__card_action_image0","classes","_pre_chat_message_activity__card_action_title0","classes","_pre_chat_message_activity__card_action_box0","classes","useFocus","useRenderMarkdownAsHTML","useSendBoxValue","useUIState","hooks","StarterPromptsCardAction","className","messageBackAction","_","setSendBoxValue","uiState","classNames","StarterPromptsCardAction_module_default","focus","inputTextRef","useRefFrom","renderMarkdownAsHTML","subtitleHTML","useMemo","disabled","title","shouldShowBlueprint","handleClick","useCallback","React","cx","testIds_default","FluentIcon_default","StarterPromptsCardAction_default","memo","classes","StarterPromptsToolbar_module_default","_pre_chat_message_activity__card_action_toolbar_grid0","_pre_chat_message_activity__card_action_toolbar0","classes","useUIState","hooks","StarterPromptsToolbar","cardActions","className","classNames","StarterPromptsToolbar_module_default","uiState","React","cx","card","cardAction","index","StarterPromptsCardAction_default","StarterPromptsToolbar_default","memo","cx","React","memo","object","optional","pipe","readonly","classes","ActivityDecorator_module_default","_activity_decorator0","activityDecoratorPropsSchema","pipe","object","optional","c","readonly","ActivityDecorator","props","children","o","classNames","ActivityDecorator_module_default","variantClassName","useVariantClassName","React","cx","ActivityDecorator_default","memo","useMemo","getOrgSchemaMessage","useActivityAuthor","activity","entity","useLocalizer","useRenderMarkdownAsHTML","useUIState","hooks","PreChatMessageActivity","activity","uiState","classNames","PreChatMessageActivity_module_default","renderMarkdownAsHTML","localize","author","useActivityAuthor","html","useMemo","React","cx","StarterPromptsToolbar_default","PreChatMessageActivity_default","memo","computeSuggestedActionText","cardAction","title","type","value","React","createContext","memo","useCallback","useContext","useEffect","useMemo","useRef","RovingFocusContext","RovingFocusProvider","props","activeItemIndexRef","itemRefsRef","updateItemTabIndex","current","index","setActiveItemIndex","valueOrFunction","nextActiveItemIndex","ref","handleFocus","event","target","handleSetNextActive","key","currentIndex","isUnidirectional","isVerticalMove","isHorizontalMove","isForwardMove","direction","itemIndices","_","nextIndex","handleKeyDown","itemEffector","value","useRovingFocusItemRef","itemIndex","rovingFocus_default","hooks","cx","React","memo","useCallback","React","forwardRef","memo","useRef","preventDefaultHandler","event","AccessibleButton","ariaHidden","children","className","dataTestId","disabled","onClick","tabIndex","forwardedRef","targetRef","AccessibleButton_default","classes","SuggestedAction_module_default","_suggested_action__image0","_suggested_action0","classes","useFocus","usePerformCardAction","useScrollToEnd","useStyleSet","useSuggestedActionsHooks","useUIState","hooks","SuggestedAction","buttonText","className","displayText","image","imageAlt","itemIndex","text","type","value","_","setSuggestedActions","suggestedActionStyleSet","uiState","focus","focusRef","useRovingFocusItemRef","performCardAction","classNames","SuggestedAction_module_default","scrollToEnd","handleClick","useCallback","target","React","AccessibleButton_default","cx","testIds_default","SuggestedAction_default","memo","classes","SuggestedActions_module_default","_suggested_actions0","_suggested_actions__flow0","classes","_suggested_actions__stacked0","classes","useFocus","useLocalizer","useStyleOptions","useStyleSet","useSuggestedActionsHooks","useUIState","hooks","SuggestedActionStackedOrFlowContainer","props","suggestedActionLayout","suggestedActionsStyleSet","uiState","classNames","SuggestedActions_module_default","React","cx","SuggestedActions","localize","suggestedActions","_","activity","focus","handleEscapeKey","useCallback","children","isPreChatMessageActivity","cardAction","index","displayText","image","imageAltText","text","type","value","SuggestedAction_default","computeSuggestedActionText","rovingFocus_default","SuggestedActions_default","memo","React","memo","useMemo","useState","createContext","Context","Context_default","Provider","memo","children","shown","setShown","useState","context","useMemo","React","Context_default","Provider_default","React","memo","Components","cx","React","memo","useCallback","useEffect","useRef","useRefFrom","useContext","useMemo","useShown","setShown","shown","useContext","Context_default","useMemo","React","forwardRef","memo","useCallback","useRefFrom","classes","Button_module_default","_telephone_keypad__horizontal0","_telephone_keypad__button__ruby0","classes","_telephone_keypad__button__text0","classes","_telephone_keypad__button0","classes","Button","memo","forwardRef","button","dataTestId","onClick","ruby","ref","classNames","Button_module_default","onClickRef","useRefFrom","handleClick","useCallback","React","Button_default","classes","TelephoneKeypad_module_default","_telephone_keypad__info_message_link0","_telephone_keypad__box0","classes","_telephone_keypad0","classes","_telephone_keypad__info_message0","classes","LocalizedString","Components","Orientation","memo","children","isHorizontal","classNames","TelephoneKeypad_module_default","React","TelephoneKeypad","autoFocus","className","onButtonClick","autoFocusRef","useRefFrom","firstButtonRef","useRef","onButtonClickRef","setShown","useShown","handleButton1Click","useCallback","handleButton2Click","handleButton3Click","handleButton4Click","handleButton5Click","handleButton6Click","handleButton7Click","handleButton8Click","handleButton9Click","handleButton0Click","handleButtonStarClick","handleButtonPoundClick","handleKeyDown","event","useEffect","cx","Button_default","testIds_default","FluentIcon_default","TelephoneKeypad_default","TelephoneKeypadSurrogate","memo","props","useShown","React","TelephoneKeypad_default","Surrogate_default","hooks","React","useCallback","useRef","memo","useRefFrom","hooks","cx","React","memo","classes","Toolbar_module_default","_sendbox__toolbar_button0","_sendbox__toolbar0","classes","_sendbox__toolbar_button__selected0","classes","_sendbox__toolbar_separator0","classes","useUIState","hooks","preventDefaultHandler","event","ToolbarButton","memo","props","classNames","Toolbar_module_default","uiState","disabled","React","cx","Toolbar","ToolbarSeparator","classes","AddAttachmentButton_module_default","_sendbox__add_attachment0","_sendbox__add_attachment_input0","classes","useLocalizer","useStyleOptions","hooks","AddAttachmentButton","props","inputRef","useRef","classNames","AddAttachmentButton_module_default","localize","uploadAccept","uploadMultiple","onFilesAddedRef","useRefFrom","handleClick","useCallback","handleFileChange","files","React","ToolbarButton","testIds_default","FluentIcon_default","AddAttachmentButton_default","memo","useLiveRegion","React","memo","classes","ErrorMessage_module_default","_sendbox__error_message0","ErrorMessage","error","id","classNames","ErrorMessage_module_default","useLiveRegion","React","ErrorMessage_default","memo","hooks","useCallback","useMemo","useState","useRefFrom","useConnectivityStatus","useLocalizer","useSubmitError","attachments","message","connectivityStatus","error","setError","localize","submitErrorRef","errorMessageStringMap","hasValue","commitLatestError","useSubmitError_default","useCallback","hooks","useScrollDown","useScrollUp","useTranscriptNavigation","scrollDown","scrollUp","event","ctrlKey","metaKey","shiftKey","handled","useMemo","useUniqueId","prefix","id","classes","SendBox_module_default","_sendbox__sendbox_controls0","_sendbox0","classes","_sendbox__attachment_bar0","classes","_sendbox__text_counter0","classes","_sendbox__text_counter__error0","classes","_sendbox__telephone_keypad__in_grid0","classes","_sendbox__text_area__in_grid0","classes","_variant_copilot0","classes","_sendbox__sendbox0","classes","_sendbox__attachment_bar__in_grid0","classes","_sendbox__sendbox_controls__in_grid0","classes","_sendbox__sendbox_text_area0","classes","React","memo","useCallback","hooks","useLocalizer","hooks","TelephoneKeypadToolbarButton","memo","telephoneKeypadShown","setTelephoneKeypadShown","useShown","localize","handleClick","useCallback","shown","React","ToolbarButton","testIds_default","FluentIcon_default","TelephoneKeypadToolbarButton_default","useFocus","useLocalizer","useMakeThumbnail","useRegisterFocusSendBox","useSendBoxAttachments","useSendBoxValue","useSendMessage","useStyleOptions","useUIState","hooks","AttachmentBar","TextArea","Components","SendBox","props","disableFileUpload","hideTelephoneKeypadButton","maxMessageLength","attachments","setAttachments","globalMessage","setGlobalMessage","localMessage","setLocalMessage","useState","telephoneKeypadShown","useShown","uiState","classNames","SendBox_module_default","variantClassName","useVariantClassName","errorMessageId","useUniqueId","inputRef","useRef","localize","makeThumbnail","sendMessage","setFocus","message","setMessage","isBlueprint","errorMessage","commitLatestError","useSubmitError_default","isMessageLengthExceeded","shouldShowMessageLength","shouldShowTelephoneKeypad","useCallback","noKeyboard","waitUntil","previousReadOnly","resolve","attachmentsRef","useRefFrom","messageRef","handleSendBoxClick","event","handleMessageChange","handleAddFiles","inputFiles","newAttachments","file","thumbnailURL","handleFormSubmit","handleTelephoneKeypadButtonClick","dtmf","handleTranscriptNavigation","useTranscriptNavigation","aria","React","cx","testIds_default","SuggestedActions_default","Surrogate_default","Toolbar","TelephoneKeypadToolbarButton_default","AddAttachmentButton_default","ToolbarSeparator","ToolbarButton","FluentIcon_default","DropZone_default","ErrorMessage_default","PrimarySendBox","memo","SendBox_default","createActivityBorderMiddleware","createActivityGroupingMiddleware","DecoratorComposer","Components","WebChatDecorator","React","memo","cx","React","Fragment","memo","boolean","object","optional","pipe","readonly","string","hooks","React","memo","useCallback","useEffect","useRef","useRefFrom","useReactContext","createContext","defaultContextValue","Context","Context_default","useContext","useReactContext","Context_default","useAssetURL","assetName","urlState","useContext","useLocalizer","useShouldReduceMotion","hooks","SlidingDots","className","shouldReduceMotion","url","useAssetURL","localize","objectElementRef","useRef","altText","shouldReduceMotionRef","useRefFrom","pauseAnimations","useCallback","contentDocument","svgElement","SVGSVGElement","unpauseAnimations","pauseOrUnpauseAnimations","useEffect","React","SlidingDots_default","memo","classes","ActivityLoader_module_default","_variant_fluent0","_variant_copilot0","classes","_activity_loader0","classes","fluentActivityLoaderPropsSchema","pipe","object","optional","c","string","boolean","readonly","FluentActivityLoader","props","children","className","showLoader","o","classNames","ActivityLoader_module_default","variantClassName","useVariantClassName","React","Fragment","SlidingDots_default","cx","ActivityLoader_default","memo","PartGrouping","getOrgSchemaMessage","cx","React","memo","useMemo","array","custom","object","optional","pipe","readonly","safeParse","hooks","cx","React","memo","useMemo","custom","object","optional","pipe","readonly","safeParse","string","classes","CopilotMessageHeader_module_default","_copilot_message_header__ai_generated_content0","_copilot_message_header0","classes","_copilot_message_header__avatar0","classes","_copilot_message_header__title0","classes","getOrgSchemaMessage","isAIGeneratedActivity","activity","useMemo","hooks","useStyleOptions","useActivityStyleOptions","activity","styleOptions","useLocalizer","hooks","copilotMessageHeaderPropsSchema","pipe","object","optional","custom","value","safeParse","string","readonly","CopilotMessageHeader","props","activity","className","o","botAvatarImage","botAvatarBackgroundColor","useActivityStyleOptions","classNames","CopilotMessageHeader_module_default","localize","isAIGenerated","isAIGeneratedActivity","avatarStyle","useMemo","author","useActivityAuthor","avatarImage","botTitle","React","cx","CopilotMessageHeader_default","memo","classes","PartGroupingDecorator_module_default","_variant_fluent0","_part_grouping_decorator0","classes","_part_grouping_decorator__group0","classes","_part_grouping_decorator__header0","classes","_part_grouping_decorator__from_user0","classes","_part_grouping_decorator__from_bot0","classes","_variant_copilot0","classes","partGroupingDecoratorPropsSchema","pipe","object","array","custom","value","safeParse","readonly","optional","c","PartGroupingDecorator","props","activity","restActivities","o","variants","useVariants","classNames","PartGroupingDecorator_module_default","variantClassName","useVariantClassName","isInGroup","useMemo","getOrgSchemaMessage","isFromUser","isFromBot","shouldRenderHeader","React","cx","CopilotMessageHeader_default","PartGrouping","PartGroupingDecorator_default","memo","React","memo","useEffect","useMemo","SLIDING_DOTS_SVG_STRING","AssetComposer","memo","children","slidingDotsURL","useMemo","useEffect","context","React","Context_default","AssetComposer_default","isLinerMessageActivity","activity","React","memo","classes","LinerMessageActivity_module_default","_liner_message_activity__text0","_liner_message_activity0","classes","LinerMessageActivity","activity","classNames","LinerMessageActivity_module_default","React","LinerActivity_default","memo","React","cx","classes","Theme_module_default","_theme0","_variant_copilot0","classes","rootClassName","Theme","props","classNames","Theme_module_default","variantClassName","useVariantClassName","React","cx","testIds","cx","React","memo","classes","SlidingDotsTypingIndicator_module_default","_sliding_dots_typing_indicator0","_sliding_dots_typing_indicator__image0","classes","SlidingDotsTypingIndicator","classNames","SlidingDotsTypingIndicator_module_default","React","testIds","SlidingDots_default","cx","SlidingDotsTypingIndicator_default","memo","ThemeProvider","Components","activityMiddleware","next","args","activity","isPreChatMessageActivity","React","PreChatMessageActivity_default","isLinerMessageActivity","LinerActivity_default","renderActivity","ActivityDecorator_default","sendBoxMiddleware","PrimarySendBox","decoratorMiddleware","createActivityGroupingMiddleware","request","PartGroupingDecorator_default","createActivityBorderMiddleware","Next","props","ActivityLoader_default","styles","createStyles_default","fluentStyleOptions","typingIndicatorMiddleware","SlidingDotsTypingIndicator_default","FluentThemeProvider","children","variant","VariantComposer_default","Theme","Provider_default","AssetComposer_default","WebChatDecorator","DecoratorComposer","FluentThemeProvider_default","memo","require_global_this","__commonJSMin","exports","module","check","it","require_fails","exec","require_function_bind_native","fails","S","test","require_function_apply","NATIVE_BIND","er","FunctionPrototype","apply","call","require_function_uncurry_this","uncurryThisWithBind","fn","require_classof_raw","uncurryThis","g","toString","stringSlice","require_function_uncurry_this_clause","classofRaw","tr","require_is_callable","documentAll","argument","require_descriptors","require_function_call","require_object_property_is_enumerable","$propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","V","descriptor","require_create_property_descriptor","bitmap","value","require_indexed_object","classof","$Object","split","require_is_null_or_undefined","require_require_object_coercible","isNullOrUndefined","ir","$TypeError","require_to_indexed_object","IndexedObject","_t","requireObjectCoercible","Tr","require_is_object","isCallable","q","require_path","require_get_built_in","path","nr","globalThis","v","aFunction","variable","namespace","method","require_object_is_prototype_of","require_environment_user_agent","navigator","userAgent","require_environment_v8_version","$","process","Deno","versions","v8","match","version","require_symbol_constructor_detection","V8_VERSION","ee","$String","symbol","require_use_symbol_as_uid","NATIVE_SYMBOL","te","require_is_symbol","getBuiltIn","j","isPrototypeOf","mr","USE_SYMBOL_AS_UID","ie","$Symbol","require_try_to_string","require_a_callable","tryToString","ar","require_get_method","aCallable","w","P","func","require_ordinary_to_primitive","b","isObject","R","input","pref","val","require_is_pure","require_define_global_property","defineProperty","key","require_shared_store","IS_PURE","G","defineGlobalProperty","si","SHARED","store","require_shared","or","require_to_object","require_has_own_property","toObject","qi","hasOwnProperty","require_uid","id","postfix","require_well_known_symbol","shared","se","hasOwn","D","uid","ce","Symbol","WellKnownSymbolsStore","createWellKnownSymbol","name","require_to_primitive","isSymbol","ne","getMethod","Sr","ordinaryToPrimitive","ni","wellKnownSymbol","m","TO_PRIMITIVE","exoticToPrim","result","require_to_property_key","toPrimitive","Oi","require_document_create_element","document","EXISTS","require_ie8_dom_define","DESCRIPTORS","C","createElement","pe","require_object_get_own_property_descriptor","propertyIsEnumerableModule","wt","createPropertyDescriptor","Yr","toIndexedObject","At","toPropertyKey","le","IE8_DOM_DEFINE","de","$getOwnPropertyDescriptor","O","require_is_forced","replacement","isForced","feature","detection","data","normalize","POLYFILL","NATIVE","string","require_function_bind_context","zr","bind","that","require_v8_prototype_define_bug","require_an_object","require_object_define_property","V8_PROTOTYPE_DEFINE_BUG","Ai","anObject","A","$defineProperty","ENUMERABLE","CONFIGURABLE","WRITABLE","Attributes","current","require_create_non_enumerable_property","definePropertyModule","Ir","object","require_export","Kr","xi","qe","sr","createNonEnumerableProperty","cr","wrapConstructor","NativeConstructor","Wrapper","a","c","options","source","TARGET","GLOBAL","STATIC","PROTO","nativeSource","target","targetPrototype","FORCED","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","require_environment","userAgentStartsWith","require_environment_is_node","ENVIRONMENT","be","require_define_built_in","require_function_uncurry_this_accessor","require_is_possible_prototype","require_a_possible_prototype","isPossiblePrototype","zi","require_object_set_prototype_of","uncurryThisAccessor","Ki","aPossiblePrototype","Yi","CORRECT_SETTER","setter","proto","require_to_string_tag_support","TO_STRING_TAG","require_classof","TO_STRING_TAG_SUPPORT","Cr","CORRECT_ARGUMENTS","tryGet","tag","require_object_to_string","_r","require_set_to_string_tag","nn","TAG","SET_METHOD","require_define_built_in_accessor","require_set_species","defineBuiltInAccessor","cn","SPECIES","CONSTRUCTOR_NAME","Constructor","require_an_instance","Prototype","require_inspect_source","functionToString","require_is_constructor","inspectSource","Oe","noop","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","called","require_a_constructor","isConstructor","Tn","require_species_constructor","aConstructor","On","defaultConstructor","require_html","require_array_slice","require_validate_arguments_length","passed","required","require_environment_is_ios","require_task","html","wn","arraySlice","xn","validateArgumentsLength","Nn","IS_IOS","Re","IS_NODE","wr","set","clear","Dispatch","Function","MessageChannel","String","counter","queue","ONREADYSTATECHANGE","$location","defer","channel","port","run","runner","eventListener","event","globalPostMessageDefer","handler","args","require_safe_get_built_in","require_queue","Queue","item","entry","tail","next","require_environment_is_ios_pebble","require_environment_is_webos_webkit","require_microtask","safeGetBuiltIn","Wn","macrotask","De","Ae","IS_IOS_PEBBLE","Jn","IS_WEBOS_WEBKIT","Qn","MutationObserver","Promise","microtask","notify","toggle","node","promise","then","flush","parent","error","require_host_report_errors","require_perform","require_weak_map_basic_detection","WeakMap","require_shared_key","keys","require_hidden_keys","require_internal_state","NATIVE_WEAK_MAP","va","sharedKey","pa","hiddenKeys","qa","OBJECT_ALREADY_INITIALIZED","TypeError","get","has","enforce","getterFor","TYPE","state","metadata","STATE","require_promise_native_constructor","require_promise_constructor_detection","NativePromiseConstructor","z","NativePromisePrototype","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","resolve","FakePromise","constructor","require_new_promise_capability","PromiseCapability","reject","$$resolve","$$reject","require_es_promise_constructor","x","defineBuiltIn","Te","setPrototypeOf","Zi","setToStringTag","un","setSpecies","anInstance","dn","speciesConstructor","In","task","na","hostReportErrors","oa","perform","Dr","InternalStateModule","ga","PromiseConstructorDetection","J","newPromiseCapabilityModule","B","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","setInternalState","PromiseConstructor","PromisePrototype","newPromiseCapability","newGenericPromiseCapability","DISPATCH_EVENT","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","isThenable","callReaction","reaction","ok","domain","exited","onHandleUnhandled","isReject","reactions","onUnhandled","dispatchEvent","reason","IS_UNHANDLED","isUnhandled","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","require_iterators","require_is_array_iterator_method","Iterators","rt","ITERATOR","ArrayPrototype","require_math_trunc","ceil","floor","n","require_to_integer_or_infinity","trunc","Qa","number","require_to_length","toIntegerOrInfinity","Xa","min","len","require_length_of_array_like","toLength","eo","obj","require_get_iterator_method","require_get_iterator","getIteratorMethod","et","usingIterator","iteratorMethod","require_iterator_close","iterator","kind","innerResult","innerError","require_iterate","isArrayIteratorMethod","Ja","lengthOfArrayLike","io","getIterator","uo","iteratorClose","vo","Result","stopped","ResultPrototype","iterable","unboundFunction","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","iterFn","index","length","step","stop","condition","callFn","require_check_correctness_of_iteration","SAFE_CLOSING","iteratorWithReturn","SKIP_CLOSING","ITERATION_SUPPORT","require_promise_statics_incorrect_iteration","checkCorrectnessOfIteration","bo","require_es_promise_all","iterate","tt","PROMISE_STATICS_INCORRECT_ITERATION","nt","capability","$promiseResolve","values","remaining","alreadyCalled","require_es_promise_catch","require_es_promise_race","require_es_promise_reject","r","capabilityReject","require_promise_resolve","promiseCapability","require_es_promise_resolve","promiseResolve","wo","PromiseConstructorWrapper","CHECK_WRAPPER","require_es_promise","Ka","mo","So","Ro","Io","_o","require_es_promise_with_resolvers","require_with_resolvers","No","ut","promiseWithResolvers","Ao","require_esnext_promise_with_resolvers","Uo","Bo","Lo","Go","kebabCase","ofs","setMetaTag","contentMap","meta","BuildInfo","#name","#map","#object","#commit","createBuildInfo","createBuildInfo_default","import_with_resolvers","Xo","Vo","buildInfo","tu","buildInfo_default","buildInfoObject","version","buildInfo_default"]}