Last active
October 22, 2020 06:32
-
-
Save michaellunzer/a8da83854e353cf4978dd600d1cabd7b to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! @twilio/flex-webchat-ui.js 2.5.0 | |
The following license applies to all parts of this software except as documented below. | |
Copyright (c) 2018 Twilio, Inc. | |
All rights reserved. | |
Licensed under the Apache License, Version 2.0 (the “Licenseâ€); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an “AS IS†BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
This software includes react under the following license. | |
Copyright (c) Facebook, Inc. and its affiliates. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
This software includes redux under the following license. | |
Copyright (c) 2015-present Dan Abramov | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
This software includes semver under the following license. | |
Copyright (c) Isaac Z. Schlueter and Contributors | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted, provided that the above | |
copyright notice and this permission notice appear in all copies. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR | |
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
This software includes loglevel under the following license. | |
Copyright (c) 2013 Tim Perry | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following | |
conditions: | |
The above copyright notice and this permission notice shall be | |
included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
OTHER DEALINGS IN THE SOFTWARE. | |
This software includes hoist-non-react-statics under the following license. | |
Software License Agreement (BSD License) | |
======================================== | |
Copyright (c) 2015, Yahoo! Inc. All rights reserved. | |
---------------------------------------------------- | |
Redistribution and use of this software in source and binary forms, with or | |
without modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, | |
this list of conditions and the following disclaimer in the documentation | |
and/or other materials provided with the distribution. | |
* Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be | |
used to endorse or promote products derived from this software without | |
specific prior written permission of Yahoo! Inc. | |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | |
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | |
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/ | |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FlexWebChat=t():(e.Twilio=e.Twilio||{},e.Twilio.FlexWebChat=t())}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/assets/",n(n.s=685)}([function(e,t,n){"use strict";e.exports=n(696)},function(e,t,n){"use strict";var r=n(273);n.o(r,"ActionCancelFunction")&&n.d(t,"ActionCancelFunction",(function(){return r.ActionCancelFunction})),n.o(r,"ActionFunction")&&n.d(t,"ActionFunction",(function(){return r.ActionFunction})),n.o(r,"ActionName")&&n.d(t,"ActionName",(function(){return r.ActionName})),n.o(r,"ActionPayload")&&n.d(t,"ActionPayload",(function(){return r.ActionPayload})),n.o(r,"ActionState")&&n.d(t,"ActionState",(function(){return r.ActionState})),n.o(r,"ActionStateListener")&&n.d(t,"ActionStateListener",(function(){return r.ActionStateListener})),n.o(r,"ActionStateListenerProps")&&n.d(t,"ActionStateListenerProps",(function(){return r.ActionStateListenerProps})),n.o(r,"ActionStateListenerState")&&n.d(t,"ActionStateListenerState",(function(){return r.ActionStateListenerState})),n.o(r,"ActionWithPayload")&&n.d(t,"ActionWithPayload",(function(){return r.ActionWithPayload})),n.o(r,"Actions")&&n.d(t,"Actions",(function(){return r.Actions})),n.o(r,"ActionsImpl")&&n.d(t,"ActionsImpl",(function(){return r.ActionsImpl})),n.o(r,"ActionsWithPayload")&&n.d(t,"ActionsWithPayload",(function(){return r.ActionsWithPayload})),n.o(r,"AggregatedDataTile")&&n.d(t,"AggregatedDataTile",(function(){return r.AggregatedDataTile})),n.o(r,"Animations")&&n.d(t,"Animations",(function(){return r.Animations})),n.o(r,"AriaLive")&&n.d(t,"AriaLive",(function(){return r.AriaLive})),n.o(r,"AriaProps")&&n.d(t,"AriaProps",(function(){return r.AriaProps})),n.o(r,"ArrayInterpolation")&&n.d(t,"ArrayInterpolation",(function(){return r.ArrayInterpolation})),n.o(r,"AudioPlayerError")&&n.d(t,"AudioPlayerError",(function(){return r.AudioPlayerError})),n.o(r,"AudioPlayerManager")&&n.d(t,"AudioPlayerManager",(function(){return r.AudioPlayerManager})),n.o(r,"Avatar")&&n.d(t,"Avatar",(function(){return r.Avatar})),n.o(r,"AvatarProps")&&n.d(t,"AvatarProps",(function(){return r.AvatarProps})),n.o(r,"Badge")&&n.d(t,"Badge",(function(){return r.Badge})),n.o(r,"BadgeChildrenProps")&&n.d(t,"BadgeChildrenProps",(function(){return r.BadgeChildrenProps})),n.o(r,"BadgeProps")&&n.d(t,"BadgeProps",(function(){return r.BadgeProps})),n.o(r,"BadgeThemeProps")&&n.d(t,"BadgeThemeProps",(function(){return r.BadgeThemeProps})),n.o(r,"BaseTheme")&&n.d(t,"BaseTheme",(function(){return r.BaseTheme})),n.o(r,"BlueDarkTheme")&&n.d(t,"BlueDarkTheme",(function(){return r.BlueDarkTheme})),n.o(r,"BlueMediumTheme")&&n.d(t,"BlueMediumTheme",(function(){return r.BlueMediumTheme})),n.o(r,"Button")&&n.d(t,"Button",(function(){return r.Button})),n.o(r,"ButtonProps")&&n.d(t,"ButtonProps",(function(){return r.ButtonProps})),n.o(r,"ButtonThemeProps")&&n.d(t,"ButtonThemeProps",(function(){return r.ButtonThemeProps})),n.o(r,"CSSProps")&&n.d(t,"CSSProps",(function(){return r.CSSProps})),n.o(r,"ChatChannelHelper")&&n.d(t,"ChatChannelHelper",(function(){return r.ChatChannelHelper})),n.o(r,"ChatChannelState")&&n.d(t,"ChatChannelState",(function(){return r.ChatChannelState})),n.o(r,"ChatChannelsState")&&n.d(t,"ChatChannelsState",(function(){return r.ChatChannelsState})),n.o(r,"ChatConfig")&&n.d(t,"ChatConfig",(function(){return r.ChatConfig})),n.o(r,"ChatEventEmitter")&&n.d(t,"ChatEventEmitter",(function(){return r.ChatEventEmitter})),n.o(r,"ChatManager")&&n.d(t,"ChatManager",(function(){return r.ChatManager})),n.o(r,"ChatMessageHelper")&&n.d(t,"ChatMessageHelper",(function(){return r.ChatMessageHelper})),n.o(r,"ChatModule")&&n.d(t,"ChatModule",(function(){return r.ChatModule})),n.o(r,"ChatSessionState")&&n.d(t,"ChatSessionState",(function(){return r.ChatSessionState})),n.o(r,"ChatState")&&n.d(t,"ChatState",(function(){return r.ChatState})),n.o(r,"ChatStateCallback")&&n.d(t,"ChatStateCallback",(function(){return r.ChatStateCallback})),n.o(r,"CheckboxGroup")&&n.d(t,"CheckboxGroup",(function(){return r.CheckboxGroup})),n.o(r,"ChildrenCallback")&&n.d(t,"ChildrenCallback",(function(){return r.ChildrenCallback})),n.o(r,"CircularProgress")&&n.d(t,"CircularProgress",(function(){return r.CircularProgress})),n.o(r,"CircularProgressProps")&&n.d(t,"CircularProgressProps",(function(){return r.CircularProgressProps})),n.o(r,"CircularProgressThemeProps")&&n.d(t,"CircularProgressThemeProps",(function(){return r.CircularProgressThemeProps})),n.o(r,"CleanupFunction")&&n.d(t,"CleanupFunction",(function(){return r.CleanupFunction})),n.o(r,"ColumnDefinition")&&n.d(t,"ColumnDefinition",(function(){return r.ColumnDefinition})),n.o(r,"CompiledTemplate")&&n.d(t,"CompiledTemplate",(function(){return r.CompiledTemplate})),n.o(r,"ConnectingAnimation")&&n.d(t,"ConnectingAnimation",(function(){return r.ConnectingAnimation})),n.o(r,"ConnectingAnimationProps")&&n.d(t,"ConnectingAnimationProps",(function(){return r.ConnectingAnimationProps})),n.o(r,"ContentFragment")&&n.d(t,"ContentFragment",(function(){return r.ContentFragment})),n.o(r,"ContentFragmentAlignment")&&n.d(t,"ContentFragmentAlignment",(function(){return r.ContentFragmentAlignment})),n.o(r,"ContentFragmentConditionFunction")&&n.d(t,"ContentFragmentConditionFunction",(function(){return r.ContentFragmentConditionFunction})),n.o(r,"ContentFragmentProps")&&n.d(t,"ContentFragmentProps",(function(){return r.ContentFragmentProps})),n.o(r,"CoreThemeBaseplates")&&n.d(t,"CoreThemeBaseplates",(function(){return r.CoreThemeBaseplates})),n.o(r,"CoreThemeColors")&&n.d(t,"CoreThemeColors",(function(){return r.CoreThemeColors})),n.o(r,"CountryManager")&&n.d(t,"CountryManager",(function(){return r.CountryManager})),n.o(r,"CreateStyled")&&n.d(t,"CreateStyled",(function(){return r.CreateStyled})),n.o(r,"CreateStyledOtherComponent")&&n.d(t,"CreateStyledOtherComponent",(function(){return r.CreateStyledOtherComponent})),n.o(r,"CreateStyledStatelessComponent")&&n.d(t,"CreateStyledStatelessComponent",(function(){return r.CreateStyledStatelessComponent})),n.o(r,"DarkTheme")&&n.d(t,"DarkTheme",(function(){return r.DarkTheme})),n.o(r,"DataTable")&&n.d(t,"DataTable",(function(){return r.DataTable})),n.o(r,"DataTableColumnDefinition")&&n.d(t,"DataTableColumnDefinition",(function(){return r.DataTableColumnDefinition})),n.o(r,"DataTableProps")&&n.d(t,"DataTableProps",(function(){return r.DataTableProps})),n.o(r,"DeepPartial")&&n.d(t,"DeepPartial",(function(){return r.DeepPartial})),n.o(r,"DefaultContentFragment")&&n.d(t,"DefaultContentFragment",(function(){return r.DefaultContentFragment})),n.o(r,"DefaultNotificationHandlerType")&&n.d(t,"DefaultNotificationHandlerType",(function(){return r.DefaultNotificationHandlerType})),n.o(r,"Dialer")&&n.d(t,"Dialer",(function(){return r.Dialer})),n.o(r,"DialerProps")&&n.d(t,"DialerProps",(function(){return r.DialerProps})),n.o(r,"DialerThemeProps")&&n.d(t,"DialerThemeProps",(function(){return r.DialerThemeProps})),n.o(r,"Dialpad")&&n.d(t,"Dialpad",(function(){return r.Dialpad})),n.o(r,"DialpadButtonThemeProps")&&n.d(t,"DialpadButtonThemeProps",(function(){return r.DialpadButtonThemeProps})),n.o(r,"DialpadProps")&&n.d(t,"DialpadProps",(function(){return r.DialpadProps})),n.o(r,"DynamicComponent")&&n.d(t,"DynamicComponent",(function(){return r.DynamicComponent})),n.o(r,"DynamicComponentProps")&&n.d(t,"DynamicComponentProps",(function(){return r.DynamicComponentProps})),n.o(r,"DynamicContentStore")&&n.d(t,"DynamicContentStore",(function(){return r.DynamicContentStore})),n.o(r,"DynamicForm")&&n.d(t,"DynamicForm",(function(){return r.DynamicForm})),n.o(r,"ErrorCode")&&n.d(t,"ErrorCode",(function(){return r.ErrorCode})),n.o(r,"ErrorMessage")&&n.d(t,"ErrorMessage",(function(){return r.ErrorMessage})),n.o(r,"FilterDefinition")&&n.d(t,"FilterDefinition",(function(){return r.FilterDefinition})),n.o(r,"FiltersList")&&n.d(t,"FiltersList",(function(){return r.FiltersList})),n.o(r,"FiltersListItemType")&&n.d(t,"FiltersListItemType",(function(){return r.FiltersListItemType})),n.o(r,"FiltersListProps")&&n.d(t,"FiltersListProps",(function(){return r.FiltersListProps})),n.o(r,"FlexBox")&&n.d(t,"FlexBox",(function(){return r.FlexBox})),n.o(r,"FlexBoxColumn")&&n.d(t,"FlexBoxColumn",(function(){return r.FlexBoxColumn})),n.o(r,"FlexBoxProperties")&&n.d(t,"FlexBoxProperties",(function(){return r.FlexBoxProperties})),n.o(r,"FlexDark")&&n.d(t,"FlexDark",(function(){return r.FlexDark})),n.o(r,"FlexLight")&&n.d(t,"FlexLight",(function(){return r.FlexLight})),n.o(r,"FormAttributes")&&n.d(t,"FormAttributes",(function(){return r.FormAttributes})),n.o(r,"FrameConstants")&&n.d(t,"FrameConstants",(function(){return r.FrameConstants})),n.o(r,"FunctionInterpolation")&&n.d(t,"FunctionInterpolation",(function(){return r.FunctionInterpolation})),n.o(r,"GreyDark")&&n.d(t,"GreyDark",(function(){return r.GreyDark})),n.o(r,"GreyLight")&&n.d(t,"GreyLight",(function(){return r.GreyLight})),n.o(r,"Icon")&&n.d(t,"Icon",(function(){return r.Icon})),n.o(r,"IconButton")&&n.d(t,"IconButton",(function(){return r.IconButton})),n.o(r,"IconButtonProps")&&n.d(t,"IconButtonProps",(function(){return r.IconButtonProps})),n.o(r,"IconProps")&&n.d(t,"IconProps",(function(){return r.IconProps})),n.o(r,"InlineDateSeparator")&&n.d(t,"InlineDateSeparator",(function(){return r.InlineDateSeparator})),n.o(r,"InlineMessage")&&n.d(t,"InlineMessage",(function(){return r.InlineMessage})),n.o(r,"InputItem")&&n.d(t,"InputItem",(function(){return r.InputItem})),n.o(r,"Interpolation")&&n.d(t,"Interpolation",(function(){return r.Interpolation})),n.o(r,"LastSplitterState")&&n.d(t,"LastSplitterState",(function(){return r.LastSplitterState})),n.o(r,"Legend")&&n.d(t,"Legend",(function(){return r.Legend})),n.o(r,"LegendProps")&&n.d(t,"LegendProps",(function(){return r.LegendProps})),n.o(r,"Link")&&n.d(t,"Link",(function(){return r.Link})),n.o(r,"LinkProps")&&n.d(t,"LinkProps",(function(){return r.LinkProps})),n.o(r,"MatchActionPayload")&&n.d(t,"MatchActionPayload",(function(){return r.MatchActionPayload})),n.o(r,"MatchActionPayloadPredicate")&&n.d(t,"MatchActionPayloadPredicate",(function(){return r.MatchActionPayloadPredicate})),n.o(r,"MediaData")&&n.d(t,"MediaData",(function(){return r.MediaData})),n.o(r,"MediumTheme")&&n.d(t,"MediumTheme",(function(){return r.MediumTheme})),n.o(r,"Menu")&&n.d(t,"Menu",(function(){return r.Menu})),n.o(r,"MenuItem")&&n.d(t,"MenuItem",(function(){return r.MenuItem})),n.o(r,"MenuItemProps")&&n.d(t,"MenuItemProps",(function(){return r.MenuItemProps})),n.o(r,"MenuProps")&&n.d(t,"MenuProps",(function(){return r.MenuProps})),n.o(r,"MenuThemeProps")&&n.d(t,"MenuThemeProps",(function(){return r.MenuThemeProps})),n.o(r,"MessageBubble")&&n.d(t,"MessageBubble",(function(){return r.MessageBubble})),n.o(r,"MessageCanvasTray")&&n.d(t,"MessageCanvasTray",(function(){return r.MessageCanvasTray})),n.o(r,"MessageInput")&&n.d(t,"MessageInput",(function(){return r.MessageInput})),n.o(r,"MessageList")&&n.d(t,"MessageList",(function(){return r.MessageList})),n.o(r,"MessageListItem")&&n.d(t,"MessageListItem",(function(){return r.MessageListItem})),n.o(r,"MessagingCanvas")&&n.d(t,"MessagingCanvas",(function(){return r.MessagingCanvas})),n.o(r,"MessagingCanvasContext")&&n.d(t,"MessagingCanvasContext",(function(){return r.MessagingCanvasContext})),n.o(r,"ModalPopup")&&n.d(t,"ModalPopup",(function(){return r.ModalPopup})),n.o(r,"ModalPopupProps")&&n.d(t,"ModalPopupProps",(function(){return r.ModalPopupProps})),n.o(r,"ModalPopupWithEntryControl")&&n.d(t,"ModalPopupWithEntryControl",(function(){return r.ModalPopupWithEntryControl})),n.o(r,"ModalPopupWithEntryControlProps")&&n.d(t,"ModalPopupWithEntryControlProps",(function(){return r.ModalPopupWithEntryControlProps})),n.o(r,"Notification")&&n.d(t,"Notification",(function(){return r.Notification})),n.o(r,"NotificationBar")&&n.d(t,"NotificationBar",(function(){return r.NotificationBar})),n.o(r,"NotificationBarItem")&&n.d(t,"NotificationBarItem",(function(){return r.NotificationBarItem})),n.o(r,"NotificationCancelFunction")&&n.d(t,"NotificationCancelFunction",(function(){return r.NotificationCancelFunction})),n.o(r,"NotificationClickFunction")&&n.d(t,"NotificationClickFunction",(function(){return r.NotificationClickFunction})),n.o(r,"NotificationContentProps")&&n.d(t,"NotificationContentProps",(function(){return r.NotificationContentProps})),n.o(r,"NotificationEvent")&&n.d(t,"NotificationEvent",(function(){return r.NotificationEvent})),n.o(r,"NotificationEventListener")&&n.d(t,"NotificationEventListener",(function(){return r.NotificationEventListener})),n.o(r,"NotificationFilterFunction")&&n.d(t,"NotificationFilterFunction",(function(){return r.NotificationFilterFunction})),n.o(r,"NotificationHandler")&&n.d(t,"NotificationHandler",(function(){return r.NotificationHandler})),n.o(r,"NotificationHandlerType")&&n.d(t,"NotificationHandlerType",(function(){return r.NotificationHandlerType})),n.o(r,"NotificationIds")&&n.d(t,"NotificationIds",(function(){return r.NotificationIds})),n.o(r,"NotificationIsApplicableFunction")&&n.d(t,"NotificationIsApplicableFunction",(function(){return r.NotificationIsApplicableFunction})),n.o(r,"NotificationManager")&&n.d(t,"NotificationManager",(function(){return r.NotificationManager})),n.o(r,"NotificationOptions")&&n.d(t,"NotificationOptions",(function(){return r.NotificationOptions})),n.o(r,"NotificationType")&&n.d(t,"NotificationType",(function(){return r.NotificationType})),n.o(r,"Notifications")&&n.d(t,"Notifications",(function(){return r.Notifications})),n.o(r,"PayloadUpdateFunction")&&n.d(t,"PayloadUpdateFunction",(function(){return r.PayloadUpdateFunction})),n.o(r,"RadioItem")&&n.d(t,"RadioItem",(function(){return r.RadioItem})),n.o(r,"RemoveComponentCall")&&n.d(t,"RemoveComponentCall",(function(){return r.RemoveComponentCall})),n.o(r,"RemoveComponentCallOptions")&&n.d(t,"RemoveComponentCallOptions",(function(){return r.RemoveComponentCallOptions})),n.o(r,"ReplacedActionFunction")&&n.d(t,"ReplacedActionFunction",(function(){return r.ReplacedActionFunction})),n.o(r,"SelectItem")&&n.d(t,"SelectItem",(function(){return r.SelectItem})),n.o(r,"SidePanel")&&n.d(t,"SidePanel",(function(){return r.SidePanel})),n.o(r,"SidePanelProps")&&n.d(t,"SidePanelProps",(function(){return r.SidePanelProps})),n.o(r,"SplitContentContainer")&&n.d(t,"SplitContentContainer",(function(){return r.SplitContentContainer})),n.o(r,"SplitContentContainerProps")&&n.d(t,"SplitContentContainerProps",(function(){return r.SplitContentContainerProps})),n.o(r,"SplitContentContainerState")&&n.d(t,"SplitContentContainerState",(function(){return r.SplitContentContainerState})),n.o(r,"StackedBarChart")&&n.d(t,"StackedBarChart",(function(){return r.StackedBarChart})),n.o(r,"StackedBarChartProps")&&n.d(t,"StackedBarChartProps",(function(){return r.StackedBarChartProps})),n.o(r,"StateMachine")&&n.d(t,"StateMachine",(function(){return r.StateMachine})),n.o(r,"StateMachineCb")&&n.d(t,"StateMachineCb",(function(){return r.StateMachineCb})),n.o(r,"StyledButton")&&n.d(t,"StyledButton",(function(){return r.StyledButton})),n.o(r,"StyledButtonProps")&&n.d(t,"StyledButtonProps",(function(){return r.StyledButtonProps})),n.o(r,"StyledComponent")&&n.d(t,"StyledComponent",(function(){return r.StyledComponent})),n.o(r,"StyledComponentMethods")&&n.d(t,"StyledComponentMethods",(function(){return r.StyledComponentMethods})),n.o(r,"StyledOptions")&&n.d(t,"StyledOptions",(function(){return r.StyledOptions})),n.o(r,"StyledOtherComponent")&&n.d(t,"StyledOtherComponent",(function(){return r.StyledOtherComponent})),n.o(r,"StyledStatelessComponent")&&n.d(t,"StyledStatelessComponent",(function(){return r.StyledStatelessComponent})),n.o(r,"StyledUl")&&n.d(t,"StyledUl",(function(){return r.StyledUl})),n.o(r,"SvgContainerProps")&&n.d(t,"SvgContainerProps",(function(){return r.SvgContainerProps})),n.o(r,"Tab")&&n.d(t,"Tab",(function(){return r.Tab})),n.o(r,"TabProps")&&n.d(t,"TabProps",(function(){return r.TabProps})),n.o(r,"Tabs")&&n.d(t,"Tabs",(function(){return r.Tabs})),n.o(r,"TabsProps")&&n.d(t,"TabsProps",(function(){return r.TabsProps})),n.o(r,"Template")&&n.d(t,"Template",(function(){return r.Template})),n.o(r,"TemplateProps")&&n.d(t,"TemplateProps",(function(){return r.TemplateProps})),n.o(r,"TextareaItem")&&n.d(t,"TextareaItem",(function(){return r.TextareaItem})),n.o(r,"ThemeSupport")&&n.d(t,"ThemeSupport",(function(){return r.ThemeSupport})),n.o(r,"Themed")&&n.d(t,"Themed",(function(){return r.Themed})),n.o(r,"ThumbsUpOrDownItem")&&n.d(t,"ThumbsUpOrDownItem",(function(){return r.ThumbsUpOrDownItem})),n.o(r,"UserCard")&&n.d(t,"UserCard",(function(){return r.UserCard})),n.o(r,"UserCardProps")&&n.d(t,"UserCardProps",(function(){return r.UserCardProps})),n.o(r,"UserCardState")&&n.d(t,"UserCardState",(function(){return r.UserCardState})),n.o(r,"Utils")&&n.d(t,"Utils",(function(){return r.Utils})),n.o(r,"VERSION")&&n.d(t,"VERSION",(function(){return r.VERSION})),n.o(r,"Version")&&n.d(t,"Version",(function(){return r.Version})),n.o(r,"chatReducer")&&n.d(t,"chatReducer",(function(){return r.chatReducer})),n.o(r,"createTheme")&&n.d(t,"createTheme",(function(){return r.createTheme})),n.o(r,"getBackgroundWithHoverCSS")&&n.d(t,"getBackgroundWithHoverCSS",(function(){return r.getBackgroundWithHoverCSS})),n.o(r,"initWithStrings")&&n.d(t,"initWithStrings",(function(){return r.initWithStrings})),n.o(r,"initialize")&&n.d(t,"initialize",(function(){return r.initialize})),n.o(r,"languages")&&n.d(t,"languages",(function(){return r.languages})),n.o(r,"registerGlobalStyles")&&n.d(t,"registerGlobalStyles",(function(){return r.registerGlobalStyles})),n.o(r,"registerStyles")&&n.d(t,"registerStyles",(function(){return r.registerStyles})),n.o(r,"resetCSS")&&n.d(t,"resetCSS",(function(){return r.resetCSS})),n.o(r,"styled")&&n.d(t,"styled",(function(){return r.styled})),n.o(r,"templates")&&n.d(t,"templates",(function(){return r.templates})),n.o(r,"withDefaultPropsUpdate")&&n.d(t,"withDefaultPropsUpdate",(function(){return r.withDefaultPropsUpdate}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(12),o=n(159),i=(n(188),r.c),a=function(e){return Object(o.withTheme)(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e||(e="rgba(0, 0, 0, 0)");var o="rgba(0, 0, 0, 0.2)",i="rgba(0, 0, 0, 0.3)";if(t&&(o="rgba(255, 255, 255, 0.2)",i="rgba(255, 255, 255, 0.3)"),n)return"\n background-image: linear-gradient(to top, ".concat(e,", ").concat(e,");\n background-color: ").concat(o,";\n background-blend-mode: color;\n ");var a="\n background-image: linear-gradient(to top, ".concat(e,", ").concat(e,");\n ");return r||(a="".concat(a,"\n &:hover {\n background-color: ").concat(o,";\n background-blend-mode: color;\n }\n &:active {\n background-color: ").concat(i,";\n background-blend-mode: color;\n }\n ")),a}},function(e,t,n){"use strict";var r=n(43),o=n(94),i=n(64),a=n(38),u=n(88),s=n(143).KEY,c=n(59),l=n(229),f=n(169),d=n(142),p=n(58),h=n(397),g=n(396),m=n(691),y=n(399),b=n(63),v=n(53),S=n(79),w=n(118),_=n(164),O=n(165),C=n(170),P=n(693),E=n(146),T=n(234),x=n(69),k=n(144),N=E.f,M=x.f,A=P.f,j=r.Symbol,I=r.JSON,R=I&&I.stringify,$=p("_hidden"),D=p("toPrimitive"),L={}.propertyIsEnumerable,F=l("symbol-registry"),U=l("symbols"),B=l("op-symbols"),z=Object.prototype,H="function"==typeof j&&!!T.f,V=r.QObject,W=!V||!V.prototype||!V.prototype.findChild,G=i&&c((function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=N(z,t);r&&delete z[t],M(e,t,n),r&&e!==z&&M(z,t,r)}:M,q=function(e){var t=U[e]=C(j.prototype);return t._k=e,t},Y=H&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},K=function(e,t,n){return e===z&&K(B,t,n),b(e),t=_(t,!0),b(n),o(U,t)?(n.enumerable?(o(e,$)&&e[$][t]&&(e[$][t]=!1),n=C(n,{enumerable:O(0,!1)})):(o(e,$)||M(e,$,O(1,{})),e[$][t]=!0),G(e,t,n)):M(e,t,n)},X=function(e,t){b(e);for(var n,r=m(t=w(t)),o=0,i=r.length;i>o;)K(e,n=r[o++],t[n]);return e},J=function(e){var t=L.call(this,e=_(e,!0));return!(this===z&&o(U,e)&&!o(B,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,$)&&this[$][e])||t)},Z=function(e,t){if(e=w(e),t=_(t,!0),e!==z||!o(U,t)||o(B,t)){var n=N(e,t);return!n||!o(U,t)||o(e,$)&&e[$][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=A(w(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==$||t==s||r.push(t);return r},ee=function(e){for(var t,n=e===z,r=A(n?B:w(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(z,t)||i.push(U[t]);return i};H||(u((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(B,n),o(this,$)&&o(this[$],e)&&(this[$][e]=!1),G(this,e,O(1,n))};return i&&W&&G(z,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",(function(){return this._k})),E.f=Z,x.f=K,n(145).f=P.f=Q,n(199).f=J,T.f=ee,i&&!n(116)&&u(z,"propertyIsEnumerable",J,!0),h.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!H,{Symbol:j});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var re=k(p.store),oe=0;re.length>oe;)g(re[oe++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=j(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?C(e):X(C(e),t)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:ee});var ie=c((function(){T.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return T.f(S(e))}}),I&&a(a.S+a.F*(!H||c((function(){var e=j();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(v(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,R.apply(I,r)}}),j.prototype[D]||n(93)(j.prototype,D,j.prototype.valueOf),f(j,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(38);r(r.S+r.F,"Object",{assign:n(404)})},function(e,t,n){n(396)("asyncIterator")},function(e,t,n){"use strict";var r=n(198),o={};o[n(58)("toStringTag")]="z",o+""!="[object z]"&&n(88)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(38);r(r.S,"Object",{setPrototypeOf:n(401).set})},function(e,t,n){for(var r=n(9),o=n(144),i=n(88),a=n(43),u=n(93),s=n(167),c=n(58),l=c("iterator"),f=c("toStringTag"),d=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),g=0;g<h.length;g++){var m,y=h[g],b=p[y],v=a[y],S=v&&v.prototype;if(S&&(S[l]||u(S,l,d),S[f]||u(S,f,y),s[y]=d,b))for(m in r)S[m]||i(S,m,r[m],!0)}},function(e,t,n){"use strict";var r=n(236),o=n(400),i=n(167),a=n(118);e.exports=n(312)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(79),o=n(144);n(235)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(42);n.d(t,"a",(function(){return i.css})),n.d(t,"b",(function(){return i.cx})),n.d(t,"d",(function(){return i.keyframes}));var a=n(188),u=Object(a.a)(i,o.a);t.c=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(589),o=r.getLogger("twilio-flex-ui-core")},function(e,t,n){var r=n(53),o=n(143).onFreeze;n(235)("freeze",(function(e){return function(t){return e&&r(t)?e(o(t)):t}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return s}));var r=n(195),o=n(72);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(e){return e},u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"init",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;e.localStateCallback=n,e.localStore=t}},{key:"dispatch",value:function(t){if(!e.localStore)throw new Error("ChatModule not initialized");return e.localStore.dispatch(t)}},{key:"state",get:function(){if(!e.localStateCallback)throw new Error("ChatModule not initialized");return e.stateCallback(e.localStore.getState())}},{key:"events",get:function(){return e.localEvents}},{key:"stateCallback",get:function(){return e.localStateCallback}}],(n=null)&&i(t.prototype,n),r&&i(t,r),e}();function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=function(t,n){return e(u.stateCallback(t),n)};return Object(r.b)(i,t,n,o)}u.localStore=void 0,u.localStateCallback=void 0,u.localEvents=new o.b},function(e,t,n){var r=n(69).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(64)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";n(695);var r=n(63),o=n(238),i=n(64),a=/./.toString,u=function(e){n(88)(RegExp.prototype,"toString",e,!0)};n(59)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&u((function(){return a.call(this)}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i}));var o=function(e){return e.flex},i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,i=[{key:"init",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;e.stateCallback=n,e.store=t}},{key:"dispatch",value:function(t){if(!e.store)throw new Error("CFModule not initialized");return e.store.dispatch(t)}},{key:"state",get:function(){if(!e.stateCallback)throw new Error("CFModule not initialized");return e.stateCallback(e.store.getState())}},{key:"chatClient",get:function(){return this._chatClient},set:function(e){this._chatClient=e}}],(n=null)&&r(t.prototype,n),i&&r(t,i),e}();i.store=void 0,i.stateCallback=void 0,i._chatClient=void 0},function(e,t,n){e.exports=n(701)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return b})),n.d(t,"f",(function(){return v}));n(5),n(26),n(3),n(11),n(7),n(8),n(9),n(6),n(24),n(54);var r=n(36),o=n(13),i=n(87);n.d(t,"c",(function(){return i}));var a,u,s,c=n(40);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e.Browser="browser",e.InApp="inapp"}(a||(a={})),function(e){e.notificationAdded="notificationAdded",e.notificationDismissed="notificationDismissed",e.beforeAddNotification="beforeAddNotification"}(u||(u={})),function(e){e.information="information",e.success="success",e.warning="warning",e.error="error"}(s||(s={}));var b=function(e){function t(){var e,n;p(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=g(this,(e=m(t)).call.apply(e,[this].concat(o)))).registeredNotifications=new Map,n.activeNotifications=[],n.handlers={},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(t,e),n=t,(r=[{key:"registerNotification",value:function(e){if(e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),this.registeredNotifications.get(e.id))throw new Error("Notification already registered");void 0===e.timeout&&(e.timeout=t.defaultTimeout),void 0===e.closeButton&&(e.closeButton=!0),this.registeredNotifications.set(e.id,e)}},{key:"showNotification",value:function(e,t){var n=this.registeredNotifications.get(e);if(!n)return o.a.warn("Attempting to show a notification that has been deleted or hasn't been registered"),null;var r=c.a.merge({},n);r.context=t;var i=this.listeners("beforeAddNotification");if(i.length>0){var a=!1,s=function(){a=!0};if(o.a.debug('Executing "beforeAddNotification" listeners with',r),i.forEach((function(e){try{e(r,s)}catch(e){o.a.error("Error from beforeAddNotification:",e)}})),a)return void o.a.info("Notification ".concat(e," cancelled by beforeAddNotification event"))}return this.activeNotifications.push(r),this.emit(u.notificationAdded,r),r}},{key:"dismissNotification",value:function(e){var t=this.activeNotifications.indexOf(e);t>-1&&(this.activeNotifications.splice(t,1),this.emit(u.notificationDismissed,e))}},{key:"dismissNotificationById",value:function(e){var t=this;this.activeNotifications.filter((function(t){return t.id===e})).forEach((function(e){t.dismissNotification(e)}))}},{key:"dismissAll",value:function(){var e=this;this.activeNotifications.slice().forEach((function(t){e.dismissNotification(t)}))}},{key:"registerHandler",value:function(e){var t=e.id;o.a.debug("registering notification handler ".concat(t)),this.handlers[t]&&o.a.info("replacing notification handler ".concat(t)),this.handlers[t]=e}},{key:"toggleNotificationHandler",value:function(e,t){this.handlers[e]?this.handlers[e].enabled=t:o.a.warn("handler with id ".concat(e," doesn't exist"))}},{key:"isNotificationHandlerEnabled",value:function(e){return this.handlers[e]&&this.handlers[e].enabled}}])&&h(n.prototype,r),i&&h(n,i),t}(r.EventEmitter);b.defaultTimeout=8e3;var v=new b},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(37);n.d(t,"a",(function(){return r.a}));var o=r.c},function(e,t,n){"use strict";var r,o,i,a,u=n(116),s=n(43),c=n(111),l=n(198),f=n(38),d=n(53),p=n(101),h=n(166),g=n(230),m=n(307),y=n(392).set,b=n(687)(),v=n(395),S=n(688),w=n(689),_=n(690),O=s.TypeError,C=s.process,P=C&&C.versions,E=P&&P.v8||"",T=s.Promise,x="process"==l(C),k=function(){},N=o=v.f,M=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(58)("species")]=function(e){e(k,k)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(k)instanceof t&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},j=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,u=o?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(o||(2==e._h&&$(e),e._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===t.promise?c(O("Promise-chain cycle")):(i=A(n))?i.call(n,s,c):s(n)):c(r)}catch(e){l&&!a&&l.exit(),c(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&I(e)}))}},I=function(e){y.call(s,(function(){var t,n,r,o=e._v,i=R(e);if(i&&(t=S((function(){x?C.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=x||R(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},$=function(e){y.call(s,(function(){var t;x?C.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})}))},D=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=A(e))?b((function(){var r={_w:n,_d:!1};try{t.call(e,c(L,r,1),c(D,r,1))}catch(e){D.call(r,e)}})):(n._v=e,n._s=1,j(n,!1))}catch(e){D.call({_w:n,_d:!1},e)}}};M||(T=function(e){h(this,T,"Promise","_h"),p(e),r.call(this);try{e(c(L,this,1),c(D,this,1))}catch(e){D.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(168)(T.prototype,{then:function(e,t){var n=N(m(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(L,e,1),this.reject=c(D,e,1)},v.f=N=function(e){return e===T||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!M,{Promise:T}),n(169)(T,"Promise"),n(231)("Promise"),a=n(141).Promise,f(f.S+f.F*!M,"Promise",{reject:function(e){var t=N(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(u||!M),"Promise",{resolve:function(e){return _(u&&this===a?T:this,e)}}),f(f.S+f.F*!(M&&n(232)((function(e){T.all(e).catch(k)}))),"Promise",{all:function(e){var t=this,n=N(t),r=n.resolve,o=n.reject,i=S((function(){var n=[],i=0,a=1;g(e,!1,(function(e){var u=i++,s=!1;n.push(void 0),a++,t.resolve(e).then((function(e){s||(s=!0,n[u]=e,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=N(t),r=n.reject,o=S((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(63),o=n(79),i=n(78),a=n(117),u=n(313),s=n(239),c=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(240)("replace",2,(function(e,t,n,h){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var m=f.global;if(m){var y=f.unicode;f.lastIndex=0}for(var b=[];;){var v=s(f,d);if(null===v)break;if(b.push(v),!m)break;""===String(v[0])&&(f.lastIndex=u(d,i(f.lastIndex),y))}for(var S,w="",_=0,O=0;O<b.length;O++){v=b[O];for(var C=String(v[0]),P=c(l(a(v.index),d.length),0),E=[],T=1;T<v.length;T++)E.push(void 0===(S=v[T])?S:String(S));var x=v.groups;if(p){var k=[C].concat(E,P,d);void 0!==x&&k.push(x);var N=String(t.apply(void 0,k))}else N=g(C,d,P,E,x,t);P>=_&&(w+=d.slice(_,P)+N,_=P+C.length)}return w+d.slice(_)}];function g(e,t,r,i,a,u){var s=r+e.length,c=i.length,l=p;return void 0!==a&&(a=o(a),l=d),n.call(u,l,(function(n,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":u=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>c){var d=f(l/10);return 0===d?n:d<=c?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}u=i[l-1]}return void 0===u?"":u}))}}))},function(e,t,n){"use strict";var r=n(402)(!0);n(312)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n(4),e.exports=r},function(e,t,n){var r=n(38),o=n(406),i=n(118),a=n(146),u=n(407);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=s(r,t=c[f++]))&&u(l,t,n);return l}})},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"i",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"j",(function(){return r}));var r,o="CF_SESSION_SET_IDENTITY",i="CF_SESSION_SET_CHANNEL_SID",a="CF_SESSION_SET_ACCESS_TOKEN",u="CF_ACTION_TOGGLE_ENTRY_POINT",s="CF_SESSION_SET_ENTRY_POINT_EXPANDED",c="CF_SESSION_SET_ENGAGEMENT_STAGE",l="CF_SESSION_SET_TASK_SID",f="CF_ACTION_SET_DISABLE_LOCAL_STORAGE",d="CF_ACTION_SET_AVATAR";!function(e){e.INIT_ENGAGEMENT="CF_INIT_ENGAGEMENT",e.PRE_ENGAGEMENT="CF_PRE_ENGAGEMENT",e.IN_ENGAGEMENT="CF_IN_ENGAGEMENT",e.WAITING_ENGAGEMENT="CF_WAITING_ENGAGEMENT"}(r||(r={}))},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(9),n(17),n(22),n(6),n(7),n(16),n(5),n(3),function(n){"use strict";var r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",c="object"===t(e),l=n.regeneratorRuntime;if(l)c&&(e.exports=l);else{(l=n.regeneratorRuntime=c?e.exports:{}).wrap=m;var f={},d={};d[a]=function(){return this};var p=Object.getPrototypeOf,h=p&&p(p(T([])));h&&h!==r&&o.call(h,a)&&(d=h);var g=S.prototype=b.prototype=Object.create(d);v.prototype=g.constructor=S,S.constructor=v,S[s]=v.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(g),e},l.awrap=function(e){return{__await:e}},w(_.prototype),_.prototype[u]=function(){return this},l.AsyncIterator=_,l.async=function(e,t,n,r){var o=new _(m(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(g),g[s]="Generator",g[a]=function(){return this},g.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}}}function m(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return x()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=y(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function y(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function b(){}function v(){}function S(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var n;this._invoke=function(r,i){function a(){return new Promise((function(n,a){!function n(r,i,a,u){var s=y(e[r],e,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===t(l)&&o.call(l,"__await")?Promise.resolve(l.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):Promise.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}))}u(s.arg)}(r,i,n,a)}))}return n=n?n.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=y(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:x}}function x(){return{value:void 0,done:!0}}}(function(){return this||"object"===("undefined"==typeof self?"undefined":t(self))&&self}()||Function("return this")())}).call(this,n(200)(e))},function(e,t,n){n(3);var r=n(724);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(131),o=r.getLogger("twilio-flex-webchat-ui")},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(12),o=n(159);n(188);t.a=r.c;var i=function(e){return Object(o.withTheme)(e)}},function(e,t,n){"use strict";n(14),n(26),n(9),n(11),n(24),n(65),n(17),n(6),n(5),n(3),n(8),n(7),n(84),n(23),n(16);var r=n(0),o=n(42),i=n(12),a=n(40);n(54),n(242);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return f(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,e)})(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,n){return(f=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&d(o,n.prototype),o}).apply(null,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?s(e):t}(this,p(t).call(this))).key=void 0,n.name="DynamicComponentError",n.message="An error has been detected inside the ".concat(e," Dynamic component"),Object.setPrototypeOf(s(n),t.prototype),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),t}(c(Error)),g=n(191),m=n(13),y=n(34);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){var e=_(["\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n"]);return v=function(){return e},e}function S(){var e=_(["\n margin: auto;\n background: yellow;\n z-index: 10000;\n"]);return S=function(){return e},e}function w(){var e=_(["\n .",",\n .",",\n ."," {\n border-color: transparent;\n }\n ."," {\n position: relative;\n }\n .",":hover {\n border: 3px solid red;\n }\n .",":hover {\n border: 2px solid green;\n }\n .",":hover > .DebugLabel,\n .",":hover > .DebugLabel {\n display: flex;\n }\n ."," > * {\n border: 1px solid transparent;\n }\n .",":hover > *:hover {\n border: 1px solid blue;\n }\n ."," > .DebugLabel {\n color: red;\n }\n ."," > .DebugLabel {\n color: green;\n }\n "]);return w=function(){return e},e}function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function N(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return g.a}));var I=n(159),R=I.channel,$=I.contextTypes,D=function(e){function t(){return T(this,t),N(this,M(t).apply(this,arguments))}return A(t,e),k(t,[{key:"render",value:function(){return this.props.children}}]),t}(r.Component),L=function(e){function t(){return T(this,t),N(this,M(t).apply(this,arguments))}return A(t,e),k(t,[{key:"render",value:function(){return this.props.children}}]),t}(r.Component),F=function(e){function t(e){var n;return T(this,t),(n=N(this,M(t).call(this,e))).context=void 0,n.theme=void 0,n.themeUnsubscribeId=void 0,n}return A(t,e),k(t,[{key:"componentDidCatch",value:function(){throw new h(this.props.name)}},{key:"componentWillMount",value:function(){var e=this,t=this.context[R];void 0!==t?this.themeUnsubscribeId=t.subscribe((function(t){e.theme=t,e.forceUpdate()})):m.a.error("No theme context")}},{key:"componentWillUnmount",value:function(){-1!==this.themeUnsubscribeId&&this.context[R].unsubscribe(this.themeUnsubscribeId)}},{key:"parseFragment",value:function(e,n,o,i,u,s){var c,l=[],f=!1,d=function(e,n){var o=r.Children.map(e.props.children,(function(r,o){return{sortOrder:void 0===e.props.sortOrder?l.length+o:e.props.sortOrder,node:r=n?t.cloneElementWithProps(r,u):r}}));e.props.replace?(c=o,f=f||void 0===e.props.align):l.push.apply(l,E(o))},p=r.Children.only(n),h=p.props.children;"start"===e&&(r.Children.toArray(h).find((function(e){return r.isValidElement(e)&&e.type===D}))||d(p,!1));var g=function(t){var n=t;if(!r.isValidElement(n)||n.type!==D)return!1;if(n.props.if&&!n.props.if(u))return!1;var o=n.props.align;return o===e||"start"===e&&void 0===o},m=function(e,t){r.Children.toArray(e).filter(g).forEach((function(e){d(e,t)}))};m(h,!1),m(o,!0),m(i,!0);var y=c&&c.length>0?c:l;if(s.length>0){var b=s.filter((function(e){return!e.options.if||e.options.if(u)}));y=y.filter((function(e){return!b.find((function(t){return!!r.isValidElement(e.node)&&e.node.key===t.key}))}))}if(y.find((function(e){if(!r.isValidElement(e.node))return!1;var t=e.node;return t.type!==L&&(null===t.key||void 0===t.key)})))throw new Error("elements without key in ".concat(this.props.name));var v=a.a.stableSort(y,(function(e,t){return e.sortOrder-t.sortOrder})).map((function(e){return e.node}));return this.props.renderChildren&&(v=this.props.renderChildren(v,e)),{replacedDefault:f,items:v}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.customChildren,i=e.childProps,a=e.contentStore,u=e.name,s=e.vertical,c=e.noContainers,l=e.subContainer,f=r.Children.only(t),d=C({},i,{theme:this.theme}),p=this.parseFragment("start",t,n,a.fragments,d,a.removeRequests),h=null,g=null,m=null;if(c&&l)throw new Error("noContainers and subContainer prop cannot be both set!");c||(g=l?r.cloneElement(l,{vertical:s,key:"start",className:Object(o.cx)("Twilio-".concat(u,"-default"),U&&z),overflow:"hidden"},p.items):r.createElement(y.a,{vertical:s,key:"start",className:Object(o.cx)("Twilio-".concat(u,"-default"),U&&z),overflow:"hidden"},p.items)),p.replacedDefault||(h=this.parseFragment("end",t,n,a.fragments,d,a.removeRequests),c||(U&&h.items.push(r.createElement(W,null,u,"-end")),m=r.createElement(y.a,{vertical:s,key:"end",className:Object(o.cx)("Twilio-".concat(u,"-end"),U&&z),noGrow:!0,overflow:"hidden"},h.items)));var b=Object(o.css)(this.props.rootContainerStyles),v=c?[p.items,h?h.items:[]]:[g,m];if(c&&0===p.items.length&&(!h||0===h.items.length)){var S=r.Children.only(t);if(S.props.children)v=[r.Children.toArray(S.props.children).find((function(e){return r.isValidElement(e)&&e.type===L}))]}return U&&v.push(r.createElement(W,null,u)),r.cloneElement(f,{className:Object(o.cx)("Twilio","Twilio-".concat(u),b,U&&B)},v)}}],[{key:"cloneElementWithProps",value:function(e,t){var n=e;return r.isValidElement(e)&&"string"!=typeof e.type?r.cloneElement(n,C({},t,{},e.props),n.props.children):e}}]),t}(r.PureComponent);F.displayName="DynamicComponent",F.defaultProps={rootContainerStyles:"display: flex;\n position: relative;\n overflow-x: hidden;"},F.contextTypes=$;var U=!1,B="DynamicComponentDebug",z="DynamicComponentContainerDebug";U&&Object(o.injectGlobal)(w(),B,z,"DynamicComponentContainerItemDebug",z,B,z,z,B,z,z,B,z);var H=Object(i.c)("div")(S()),V=Object(i.c)("div")(v()),W=function(e){var t=e.children;return r.createElement(V,{className:"DebugLabel"},r.createElement(H,null,t))}},function(e,t,n){"use strict";n(5),n(3),n(7);var r=n(0),o=n(115),i=n(13),a=(n(14),n(12));function u(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: flex;\n & > * {\n width: ","px;\n height: ","px;\n flex: 0 0 auto;\n margin: auto;\n }\n"]);return u=function(){return e},e}var s=Object(a.c)("div")(u(),(function(e){return e.contentSize}),(function(e){return e.contentSize}));function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return l(this,t),d(this,p(t).apply(this,arguments))}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(a=[{key:"render",value:function(){var e,t=this.props,n=t.icon,a=t.className,u=t.sizeMultiplier;"string"==typeof n?e=n:r.isValidElement(n)&&(e=n.props.className);var c="Twilio-Icon Twilio-Icon-".concat(e||"Custom"," ").concat(a||""),l=u||1;if(r.isValidElement(n))return r.createElement(s,{className:c,contentSize:24*l},n);var f=o["Icn".concat(n)];return f||(i.a.error("Icon ".concat(n," missing")),f=o.IcnHelp),r.createElement(s,{className:c,contentSize:24*l},r.createElement(f,{className:"Twilio-Icon-Content"}))}}])&&f(n.prototype,a),u&&f(n,u),t}(r.PureComponent),m=n(326);n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m.IconProps})),n.d(t,"c",(function(){return m.SvgContainerProps}))},function(e,t,n){"use strict";n(5),n(3),n(7);var r=n(12),o=n(0);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return a(this,t),s(this,c(t).apply(this,arguments))}var n,i,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,f=[{key:"css",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.className,n=void 0===t?"":t,o=e.noGrow,i=void 0!==o&&o,a=e.vertical,u=void 0!==a&&a,s=e.noShrink,c=void 0!==s&&s,l=e.allowWrap,f=void 0!==l&&l,d=e.overflow,p=void 0===d?void 0:d;return Object(r.b)(n,Object(r.a)({display:"flex",flexWrap:f?"wrap":"nowrap",flexGrow:i?0:1,flexShrink:c?0:1,flexDirection:u?"column":"row",overflowX:"hidden"===p?"hidden":void 0}))}}],(i=[{key:"render",value:function(){var e=t.css(this.props);return o.createElement("div",{className:e},this.props.children)}}])&&u(n.prototype,i),f&&u(n,f),t}(o.PureComponent);n(26),n(8),n(9),n(6),n(11);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w=function(e){function t(){return m(this,t),b(this,v(t).apply(this,arguments))}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},g(e,["children"]),{vertical:!0});return o.createElement(f,n,t)}}])&&y(n.prototype,r),i&&y(n,i),t}(o.PureComponent);n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){})),n.d(t,"b",(function(){return w}))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(5),n(8),n(9),n(6),n(11),n(16),n(83),n(408),n(3),n(706),n(707);var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var u=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,u;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=f(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function g(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):y(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||u(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||u(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var u=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw u.context=i,u}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,l=y(s,c);for(n=0;n<c;++n)a(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return g(this,e,!0)},s.prototype.rawListeners=function(e){return g(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return b}));n(5),n(26),n(3),n(7),n(8),n(9),n(6),n(11);var r=n(0),o=n(13);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=/{{{\s*\S+\s*}}}/g;function g(e){function t(t){return"{{{{raw}}}}"!==(n=t[0])&&"{{{{/raw}}}}"!==n&&!((r=t.index)>0&&"\\"===e.charAt(r-1));var n,r}for(var n;null!==(n=h.exec(e));)if(t(n))return!0;return!1}var m={};function y(e){Object.keys(e).forEach((function(t){var n,r=e[t];if(g(r))o.a.error("Unsafe template detected, use {{unsafeString [variableName]}} to render unescaped string. Template key: ",t,"Template:",r),n=function(){return"UNSAFE template: ".concat(t)};else{var i=Handlebars.compile(r);n=function(e){return i(e,{allowProtoMethodsByDefault:!0,allowProtoPropertiesByDefault:!0})}}m[t]=n}))}var b=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=f(this,(e=d(t)).call.apply(e,[this].concat(o)))).escapeHtml=function(e){if(void 0===e)return"";var t=document.createElement("div");return t.appendChild(document.createTextNode(e)),t.innerHTML},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.source,o=t.code,i=s(t,["source","code"]),c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},i,{forceUpdate:i.forceUpdate||function(){return e.forceUpdate()}}),l=n||!!o&&m[o],f=l?l(c):this.escapeHtml(o);return"<"===f.substr(0,1)?r.createElement("div",{className:this.props.className,dangerouslySetInnerHTML:{__html:f}}):r.createElement("span",{className:this.props.className,dangerouslySetInnerHTML:{__html:f}})}}])&&l(n.prototype,o),i&&l(n,i),t}(r.Component);b.defaultProps={className:"Twilio"}},function(e,t,n){var r=n(43),o=n(141),i=n(93),a=n(88),u=n(111),s=function(e,t,n){var c,l,f,d,p=e&s.F,h=e&s.G,g=e&s.S,m=e&s.P,y=e&s.B,b=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,v=h?o:o[t]||(o[t]={}),S=v.prototype||(v.prototype={});for(c in h&&(n=t),n)f=((l=!p&&b&&void 0!==b[c])?b:n)[c],d=y&&l?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,b&&a(b,c,f,e&s.U),v[c]!=f&&i(v,c,d),m&&S[c]!=f&&(S[c]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";n.r(t);var r=n(420),o=n.n(r);n.d(t,"componentPropType",(function(){return o.a}));var i=n(421),a=n.n(i);n.d(t,"chainPropTypes",(function(){return a.a}));var u=n(422),s=n.n(u);n.d(t,"exactProp",(function(){return s.a}));var c=n(423),l=n.n(c);n.d(t,"getDisplayName",(function(){return l.a}));var f=n(424),d=n.n(f);n.d(t,"ponyfillGlobal",(function(){return d.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n(65),n(17),n(5),n(26),n(3),n(24),n(54),n(50),n(23),n(95),n(8),n(9),n(6),n(11),n(120);var r=n(13),o=n(0),i=n(21);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,s;return t=e,s=[{key:"stableSort",value:function(e,t){var n=e.map((function(e,t){return{index:t,value:e}}));return n.sort((function(e,n){return t(e.value,n.value)||e.index-n.index})),n.map((function(e){return e.value}))}},{key:"merge",value:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=c({},t);return e.mergeInto(o,n,r)}},{key:"mergeInto",value:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return Object.keys(n).forEach((function(o){var i=n[o],a=!1;"object"!==u(i)||null===i||i instanceof Array||Object.getPrototypeOf(i)!==Object.prototype||(i=e.merge(t[o]||{},i,r),a=!0),(r||void 0===t[o]||a)&&(t[o]=i)})),t}},{key:"mergeArrayItems",value:function(e){return e.reduce((function(e,t){return e.concat(t)}),[])}},{key:"updateDefaultProps",value:function(e,t){var n=this;t&&0!==Object.keys(t).length&&Object.keys(t).forEach((function(o){var i=e[o];if(!i)return r.a.warn("updateDefaultProps, component does not exist:",o);var a=t[o];if(i.defaultProps){var u=!1;Object.keys(a).forEach((function(e){if(void 0===i.defaultProps[e]){var t=a[e];i.overrideProps&&t!==i.overrideProps[e]&&(i.overrideProps[e]=t,u=!0),delete a[e]}else r.a.warn("updateDefaultProps, component.defaultProps[propName] has been explicity set and cannot be overridden:",o,e)})),u&&Object.prototype.hasOwnProperty.call(i,"updateAll")&&i.updateAll()}return n.updateDefaultProps(i,a)}))}},{key:"getNameForMember",value:function(e,t,n,r){return n&&e?n:t||n||r}},{key:"formatString",value:function(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var n=new RegExp("\\{".concat(t,"\\}"),"gm");e=e.replace(n,t+1<1||arguments.length<=t+1?void 0:arguments[t+1])}return e}},{key:"parseVersion",value:function(e){if(e){var t=e.split(new RegExp("[.+-]"));if(!(t.length<3))return{major:parseInt(t[0],10),minor:parseInt(t[1],10),build:parseInt(t[2],10)}}}},{key:"isGreaterThanTargetVersion",value:function(e,t){return!(!e||!t)&&(e.major>t.major||e.major===t.major&&(e.minor>t.minor||e.minor===t.minor&&e.build>=t.build))}},{key:"copyMap",value:function(e){if(e){var t=new Map;return e.forEach((function(e,n){t.set(n,e)})),t}}},{key:"isSameDate",value:function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},{key:"isToday",value:function(e){var t=new Date;return this.isSameDate(t,e)}},{key:"isYesterday",value:function(e){var t=new Date;return t.setDate(t.getDate()-1),this.isSameDate(e,t)}},{key:"formatSeparatorDate",value:function(e){return this.isToday(e)?i.b.Today():this.isYesterday(e)?i.b.Yesterday():e.toLocaleDateString()}},{key:"parseText",value:function(e){var t=this,n=[];e=e.trim();var r=new RegExp(/[\n\r]/),i=e.split(r);return i.forEach((function(e,r){for(var a,u=0;a=t.urlRegexp.exec(e);){n.push(e.substr(u,a.index+a[1].length-u));var s=a[2],c=s;t.simpleUrlRegexp.exec(s)||(c="http://".concat(s)),n.push(o.createElement("a",{href:c,key:u,target:"_blank"},[s])),u=a.index+a[0].length}u<e.length&&n.push(e.substr(u,e.length)),r<i.length-1&&n.push(o.createElement("br",{key:r}))})),n}},{key:"formatTimeDurationInFull",value:function(e,t,n,r){var o="".concat(e,"d:"),i="".concat(t,":"),a="".concat(n,":"),u=String(r);return 0===e&&(o=""),t<10&&(i="0".concat(i)),0===t&&(i=""),n<10&&(a="0".concat(a)),r<10&&(u="0".concat(u)),o+i+a+u}},{key:"formatTimeDurationInCompact",value:function(e,t,n,r){return e>0?"".concat(e,"d"):t>0?"".concat(t,"h"):n>0?"".concat(n,"m"):"".concat(r,"s")}},{key:"formatTimeDurationInShort",value:function(e,t,n,r){if(e>0){var o=0===t?"":" ".concat(t,"h");return"".concat(e,"d").concat(o)}if(t>0){var i=0===n?"":" ".concat(n,"min");return"".concat(t,"h").concat(i)}if(n>0){var a=r<10?"0".concat(r):"".concat(r);return"".concat(n,":").concat(a)}return"".concat(r,"s")}},{key:"formatTimeDuration",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full",r=864e5,o=new Date(t),i=Math.floor(t/r),a=o.getUTCHours(),u=o.getUTCMinutes(),s=o.getSeconds();return"compact"===n?e.formatTimeDurationInCompact(i,a,u,s):"short"===n?e.formatTimeDurationInShort(i,a,u,s):e.formatTimeDurationInFull(i,a,u,s)}},{key:"areEqual",value:function(e,t){if("object"===u(e)&&"object"===u(t)){if(Object.keys(e).length<Object.keys(t).length){var n=e;e=t,t=n}return Object.keys(e).every((function(n){return e[n]===t[n]}))}return e===t}},{key:"haveSameValues",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=c({},e,{},t);return Object.keys(o).every((function(o){var i=e[o],s=t[o];if(r.equalUndefinedToEmptyArray&&(void 0===i&&(i=[]),void 0===s&&(s=[])),"object"!==u(i)||"object"!==u(s))return i===s;if(!Array.isArray(i)||!Array.isArray(s))return!Array.isArray(i)&&!Array.isArray(s)&&n.haveSameValues(i,s);var c=[].concat(a(i),a(s)).filter((function(e,t,n){return t===n.indexOf(e)}));return c.length===i.length&&c.length===s.length}))}}],(n=null)&&f(t.prototype,n),s&&f(t,s),e}();d.simpleUrlRegexp=new RegExp("^https?://[^\\s]+","i"),d.urlRegexp=RegExp("((?:\\s|^))(((?:(http|https|Http|Https|rtsp|Rtsp):\\/\\/(?:(?:[a-zA-Z0-9\\$\\-\\_\\.\\+\\!\\*\\'\\(\\)\\,\\;\\?\\&\\=]|(?:\\%[a-fA-F0-9]{2})){1,64}(?:\\:(?:[a-zA-Z0-9\\$\\-\\_\\.\\+\\!\\*\\'\\(\\)\\,\\;\\?\\&\\=]|(?:\\%[a-fA-F0-9]{2})){1,25})?\\@)?)?((?:(?:[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}\\.)+(?:(?:aero|arpa|asia|a[cdefgilmnoqrstuwxz])|(?:biz|b[abdefghijmnorstvwyz])|(?:cat|com|coop|c[acdfghiklmnoruvxyz])|d[ejkmoz]|(?:edu|e[cegrstu])|f[ijkmor]|(?:gov|g[abdefghilmnpqrstuwy])|h[kmnrtu]|(?:info|int|i[delmnoqrst])|(?:jobs|j[emop])|k[eghimnrwyz]|l[abcikrstuvy]|(?:mil|mobi|museum|m[acdghklmnopqrstuvwxyz])|(?:name|net|n[acefgilopruz])|(?:org|om)|(?:pro|p[aefghklmnrstwy])|qa|r[eouw]|s[abcdeghijklmnortuvyz]|(?:tel|travel|t[cdfghjklmnoprtvwz])|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]))|(?:(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9])\\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[1-9]|0)\\.(?:25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9][0-9]|[0-9])))(?:\\:\\d{1,5})?)(\\/(?:(?:[a-zA-Z0-9\\;\\/\\?\\:\\@\\&\\=\\#\\~\\-\\.\\+\\!\\*\\'\\(\\)\\,\\_])|(?:\\%[a-fA-F0-9]{2}))*)?(?:\\b|$))","gi")},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));n(5),n(3),n(11),n(84),n(172),n(22),n(28),n(8),n(9),n(6),n(24),n(54);var r=n(36),o=n(13);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=new Map,this.replacedActions=new Map,this.payloadUpdateFunctions=new Map,this.pendingInvocations=new Map,this.blockedActions=new Map,this.emitter=new r.EventEmitter,this.emitter.setMaxListeners(0)}var t,n,i,s,c;return t=e,(n=[{key:"registerAction",value:function(e,t,n){o.a.info("registerAction",e),this.actions.set(e,t),this.payloadUpdateFunctions.set(e,n)}},{key:"invokeAction",value:(s=regeneratorRuntime.mark((function e(t,n){var r,i,a,u,s,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.a.debug('Action "'.concat(t,'" invoked with'),n),r=this.actions.get(t)){e.next=4;break}throw new Error("Action ".concat(t," does not exist!"));case 4:if(!this.findPendingActions(t,n).first){e.next=7;break}return e.abrupt("return",Promise.reject(Error("Action ".concat(t," is pending"))));case 7:if(!this.findBlockedActions(t,n).first){e.next=10;break}return e.abrupt("return",Promise.reject(Error("Action ".concat(t," has been blocked"))));case 10:if((i=this.payloadUpdateFunctions.get(t))&&(n=i(n),o.a.debug("updated payload",n)),a=!1,u=function(){a=!0},this.registerInvocation(t,n),s="before".concat(t),!this.emitter.listeners(s).length){e.next=27;break}return o.a.debug('Executing "'.concat(s,'" listeners with'),n),e.prev=19,e.next=22,this.customEmit(s,n,u);case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(19),o.a.error('Error on "'.concat(s,'":'),e.t0);case 27:if(!a){e.next=31;break}throw this.unregisterInvocation(t,n),o.a.info("Action ".concat(t," cancelled by before event")),new Error("Action ".concat(t," cancelled by before event"));case 31:if(c=this.replacedActions.get(t),l=null,e.prev=33,!c){e.next=41;break}return o.a.debug("Running replaced action ".concat(t," with"),n),e.next=38,c(n,r);case 38:l=e.sent,e.next=45;break;case 41:return o.a.debug('Executing action function "'.concat(t,'" with'),n),e.next=44,r(n);case 44:l=e.sent;case 45:e.next=51;break;case 47:throw e.prev=47,e.t1=e.catch(33),this.unregisterInvocation(t,n),e.t1;case 51:return o.a.debug('Executing "after'.concat(t,'" listeners with'),n),e.prev=52,e.next=55,this.customEmit("after".concat(t),n);case 55:e.next=60;break;case 57:e.prev=57,e.t2=e.catch(52),o.a.error("Error on after".concat(t,":"),e.t2);case 60:return this.unregisterInvocation(t,n),e.abrupt("return",l);case 62:case"end":return e.stop()}}),e,this,[[19,24],[33,47],[52,57]])})),c=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=s.apply(e,t);function i(e){a(o,n,r,i,u,"next",e)}function u(e){a(o,n,r,i,u,"throw",e)}i(void 0)}))},function(e,t){return c.apply(this,arguments)})},{key:"catchErrorIfIsPromise",value:function(e,t){return t&&t.catch?t.catch((function(t){o.a.error("Error on ".concat(e,":"),t)})):t}},{key:"customEmit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=this.emitter.listeners(e);return Promise.all(i.map((function(n){return t.catchErrorIfIsPromise(e,n.apply(void 0,r))})))}},{key:"replaceAction",value:function(e,t){o.a.debug("Replacing action",e,"with",t),this.replacedActions.set(e,t)}},{key:"addListener",value:function(e,t){return o.a.debug('Adding listener to "'.concat(String(e),'" action'),t),this.emitter.addListener(e,t)}},{key:"on",value:function(e,t){return o.a.warn("Please use `addListener` instead"),this.addListener(e,t)}},{key:"removeListener",value:function(e,t){return o.a.debug("Removing listener",t,'from "'.concat(String(e),'" action')),this.emitter.removeListener(e,t)}},{key:"removeAllListeners",value:function(e){return o.a.debug('Removing listener all listeners from "'.concat(String(e),'" action')),this.emitter.removeAllListeners(e)}},{key:"emit",value:function(){return o.a.error("Invalid method. Please use Actions.invokeAction instead."),!1}},{key:"registerInvocation",value:function(e,t){o.a.debug("registerInvocation",e,t);var n=this.pendingInvocations.get(e)||[];this.pendingInvocations.has(e)||this.pendingInvocations.set(e,n),n.push({action:e,payload:t}),this.customEmit("invocationBegin")}},{key:"unregisterInvocation",value:function(e,t){o.a.debug("unregisterInvocation",e,t);var n=this.pendingInvocations.get(e)||[],r=n.findIndex((function(n){return n.action===e&&n.payload===t}));if(r<0)throw new Error("Action with payload was not invoked");n.splice(r,1),this.customEmit("invocationEnd")}},{key:"findPendingActions",value:function(e,t){var n=this,r=(Array.isArray(e)?e:[e]).map((function(e){return(n.pendingInvocations.get(e)||[]).find((function(n){return l(t,e)(n.payload)}))})),o={};return r.forEach((function(e){void 0!==e&&(o[e.action]=e.payload,o.first||(o.first=e))})),o}},{key:"findBlockedActions",value:function(e,t){var n=this,r=(Array.isArray(e)?e:[e]).map((function(e){return(n.blockedActions.get(e)||[]).find((function(n){return l(t,e)(n.payload)}))})),o={};return r.forEach((function(e){void 0!==e&&(o[e.action]=e.payload,o.first||(o.first=e))})),o}},{key:"blockAction",value:function(e,t){this.setActionBlocked(!0,e,t)}},{key:"unblockAction",value:function(e,t){this.setActionBlocked(!1,e,t)}},{key:"setActionBlocked",value:function(e,t,n){o.a.debug("Set action ".concat(t," blocked=").concat(e),n);var r=this.blockedActions.get(t)||[];this.blockedActions.has(t)||this.blockedActions.set(t,r);var i=!1;if(e)r.push({action:t,payload:n}),i=!0;else{var a=r.filter((function(e){return!l(n,t)(e.payload)}));(i=a.length!==r.length)&&this.blockedActions.set(t,a)}i&&this.customEmit("actionBlockedChanged",e,t,n)}}])&&u(t.prototype,n),i&&u(t,i),e}(),c=new s,l=function(e,t){return function(n){return void 0===e||e===n||"function"==typeof e&&!!e(n,t)||"object"===i(e)&&"object"===i(n)&&Object.keys(e).every((function(t){return n[t]===e[t]}))}}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"flush",(function(){return a})),n.d(t,"hydrate",(function(){return u})),n.d(t,"cx",(function(){return s})),n.d(t,"merge",(function(){return c})),n.d(t,"getRegisteredStyles",(function(){return l})),n.d(t,"injectGlobal",(function(){return f})),n.d(t,"keyframes",(function(){return d})),n.d(t,"css",(function(){return p})),n.d(t,"sheet",(function(){return h})),n.d(t,"caches",(function(){return g}));var r=n(601),o=void 0!==e?e:{},i=Object(r.a)(o),a=i.flush,u=i.hydrate,s=i.cx,c=i.merge,l=i.getRegisteredStyles,f=i.injectGlobal,d=i.keyframes,p=i.css,h=i.sheet,g=i.caches}.call(this,n(89))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";n(16),n(8),n(9),n(6),n(24),n(54);var r=n(10);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.sheetsManager=void 0;var o=r(n(47)),i=r(n(25)),a=r(n(55)),u=r(n(56)),s=r(n(60)),c=r(n(61)),l=r(n(62)),f=r(n(29)),d=r(n(0)),p=r(n(19)),h=(r(n(67)),r(n(220))),g=n(39),m=n(425),y=r(n(744)),b=r(n(431)),v=r(n(432)),S=r(n(757)),w=r(n(323)),_=r(n(325)),O=r(n(434)),C=r(n(773)),P=r(n(774)),E=(0,m.create)((0,b.default)()),T=(0,O.default)(),x=-1e11,k=new Map;t.sheetsManager=k;var N={},M=(0,w.default)({typography:{suppressWarning:!0}});g.ponyfillGlobal.__MUI_STYLES__||(g.ponyfillGlobal.__MUI_STYLES__={}),g.ponyfillGlobal.__MUI_STYLES__.withStyles||(g.ponyfillGlobal.__MUI_STYLES__.withStyles=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,g=t.withTheme,m=void 0!==g&&g,b=t.flip,w=void 0===b?null:b,O=t.name,A=(0,f.default)(t,["withTheme","flip","name"]),j=(0,C.default)(e),I=j.themingEnabled||"string"==typeof O||m;x+=1,j.options.index=x;var R=function(e){function t(e,n){var r;(0,a.default)(this,t),(r=(0,s.default)(this,(0,c.default)(t).call(this,e,n))).jss=n[y.default.jss]||E,r.sheetsManager=k,r.unsubscribeId=null;var o=n.muiThemeProviderOptions;return o&&(o.sheetsManager&&(r.sheetsManager=o.sheetsManager),r.sheetsCache=o.sheetsCache,r.disableStylesGeneration=o.disableStylesGeneration),r.stylesCreatorSaved=j,r.sheetOptions=(0,i.default)({generateClassName:T},n[y.default.sheetOptions]),r.theme=I?_.default.initial(n)||M:N,r.attach(r.theme),r.cacheClasses={value:null,lastProp:null,lastJSS:{}},r}return(0,l.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this;I&&(this.unsubscribeId=_.default.subscribe(this.context,(function(t){var n=e.theme;e.theme=t,e.attach(e.theme),e.setState({},(function(){e.detach(n)}))})))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&_.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){if(this.disableStylesGeneration)return this.props.classes||{};var e=!1,t=S.default.get(this.sheetsManager,this.stylesCreatorSaved,this.theme);return t.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=t.sheet.classes,e=!0),this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,e=!0),e&&(this.cacheClasses.value=(0,v.default)({baseClasses:this.cacheClasses.lastJSS,newClasses:this.props.classes,Component:n})),this.cacheClasses.value}},{key:"attach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=S.default.get(this.sheetsManager,t,e);if(n||(n={refs:0,sheet:null},S.default.set(this.sheetsManager,t,e,n)),0===n.refs){var r;this.sheetsCache&&(r=S.default.get(this.sheetsCache,t,e)),r||((r=this.createSheet(e)).attach(),this.sheetsCache&&S.default.set(this.sheetsCache,t,e,r)),n.sheet=r;var o=this.context[y.default.sheetsRegistry];o&&o.add(r)}n.refs+=1}}},{key:"createSheet",value:function(e){var t=this.stylesCreatorSaved.create(e,O),r=O;return this.jss.createStyleSheet(t,(0,i.default)({meta:r,classNamePrefix:r,flip:"boolean"==typeof w?w:"rtl"===e.direction,link:!1},this.sheetOptions,this.stylesCreatorSaved.options,{name:O||n.displayName},A))}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=S.default.get(this.sheetsManager,this.stylesCreatorSaved,e);if(t.refs-=1,0===t.refs){S.default.delete(this.sheetsManager,this.stylesCreatorSaved,e),this.jss.removeStyleSheet(t.sheet);var n=this.context[y.default.sheetsRegistry];n&&n.remove(t.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),r=(0,f.default)(e,["classes","innerRef"]),o=(0,P.default)({theme:this.theme,name:O,props:r});return m&&!o.theme&&(o.theme=this.theme),d.default.createElement(n,(0,i.default)({},o,{classes:this.getClasses(),ref:t}))}}]),t}(d.default.Component);return R.contextTypes=(0,i.default)((r={muiThemeProviderOptions:p.default.object},(0,o.default)(r,y.default.jss,p.default.object),(0,o.default)(r,y.default.sheetOptions,p.default.object),(0,o.default)(r,y.default.sheetsRegistry,p.default.object),r),I?_.default.contextTypes:{}),(0,h.default)(R,n),R}});t.default=function(e,t){return g.ponyfillGlobal.__MUI_STYLES__.withStyles(e,(0,i.default)({defaultTheme:M},t))}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(945),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";n.r(t),n.d(t,"ACTION_ADDED_MESSAGE",(function(){return w})),n.d(t,"ACTION_ADDED_MEMBER",(function(){return _})),n.d(t,"ACTION_USER_UPDATED",(function(){return O})),n.d(t,"ACTION_INIT_CHANNEL",(function(){return C})),n.d(t,"ACTION_UNLOAD_CHANNEL",(function(){return P})),n.d(t,"ACTION_INIT_CHANNEL_MEMBERS",(function(){return E})),n.d(t,"ACTION_CONSUME_MESSAGE",(function(){return T})),n.d(t,"ACTION_LOAD_CHANNEL_MESSAGES",(function(){return x})),n.d(t,"ACTION_REMOVED_MESSAGE",(function(){return k})),n.d(t,"ACTION_REMOVED_MEMBER",(function(){return N})),n.d(t,"ACTION_UPDATED_MEMBER",(function(){return M})),n.d(t,"ACTION_UPDATED_MESSAGE",(function(){return A})),n.d(t,"ACTION_TYPING_STARTED",(function(){return j})),n.d(t,"ACTION_TYPING_ENDED",(function(){return I})),n.d(t,"ACTION_UPDATE_CHANNEL",(function(){return R})),n.d(t,"ACTION_LOAD_CHANNEL",(function(){return $})),n.d(t,"ACTION_ADD_PENDING_MEDIA_MESSAGE",(function(){return D})),n.d(t,"ACTION_REMOVE_PENDING_MEDIA_MESSAGE",(function(){return L})),n.d(t,"ACTION_MEDIA_MESSAGE_REJECTED",(function(){return F})),n.d(t,"reduce",(function(){return U})),n.d(t,"Actions",(function(){return B})),n.d(t,"ChannelListener",(function(){return z})),n.d(t,"ChannelHelper",(function(){return W}));n(65),n(17),n(5),n(26),n(3),n(28),n(16),n(11),n(22),n(172),n(84),n(8),n(9),n(6),n(24),n(54);var r=n(87),o=n(20),i=n(15),a=n(40),u=n(13),s=n(196),c=n(190),l=n(138);function f(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v={currentPaginator:void 0,inputText:"",selectionStart:0,selectionEnd:0,isLoadingMembers:!1,isLoadingMessages:!1,isLoadingChannel:!1,errorWhileLoadingChannel:!1,lastConsumedMessageIndex:0,lastConsumedMessageByCurrentUserIndex:0,listener:void 0,members:new Map,unconsumedMessages:[],messages:[],pendingMessages:[],source:void 0,typers:[]},S=function e(){b(this,e),this.callback=void 0,this.user=void 0},w="CHANNEL_ADD_MESSAGE",_="CHANNEL_ADD_MEMBER",O="CHANNEL_USER_UPDATED",C="CHANNEL_INIT",P="CHANNEL_UNLOAD",E="CHANNEL_INIT_MEMBERS",T="ACTION_CONSUME_MESSAGE",x="CHANNEL_LOAD_MESSAGES",k="CHANNEL_REMOVE_MESSAGE",N="CHANNEL_REMOVE_MEMBER",M="CHANNEL_UPDATED_MEMBER",A="CHANNEL_UPDATE_MESSAGE",j="CHANNEL_TYPING_STARTED",I="CHANNEL_TYPING_ENDED",R="CHANNEL_UPDATE",$="CHANNEL_LOAD",D="ACTION_ADD_PENDING_MEDIA_MESSAGE",L="ACTION_REMOVE_PENDING_MEDIA_MESSAGE",F="ACTION_MEDIA_MESSAGE_REJECTED";function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case C:var n=t.payload;return m({},v,{source:n.channel,listener:n.listener});case P:return e.listener&&e.listener.stop(),m({},v);case"".concat(E,"_PENDING"):return m({},e,{isLoadingMembers:!0});case"".concat(E,"_FULFILLED"):var r=t.payload;return m({},e,{members:r,isLoadingMembers:!1});case"".concat(E,"_REJECTED"):return m({},e,{isLoadingMembers:!1});case"".concat(x,"_PENDING"):return m({},e,{isLoadingMessages:!0});case"".concat(x,"_REJECTED"):return m({},e,{isLoadingMessages:!1});case"".concat(x,"_FULFILLED"):if(!i.a.state.session.client)return e;var o=i.a.state.session.client.user.identity,u=t.payload,s=u.items.map((function(e){return H(e,o)})),c=e.messages.length&&e.messages[0];if(c&&u.items.length&&c.index<=u.items[u.items.length-1].index&&c.index>=u.items[0].index){var f=e.messages.filter((function(e){return!s.find((function(t){return t.index===e.index}))}));s=s.concat(f)}else s=s.concat(e.messages);for(var d=0;d<Math.min(u.items.length+1,s.length);d++)s[d]=H(s[d].source,o,d<s.length-1?s[d+1].source:void 0,d>0?s[d-1].source:void 0);var p=e.source?e.source.lastConsumedMessageIndex:0,g=s.filter((function(e){return e.index>p}));return m({},e,{isLoadingMessages:!1,currentPaginator:u,messages:s,lastConsumedMessageByCurrentUserIndex:p,unconsumedMessages:g});case D:var y=t.payload.media,b=i.a.state.session.client?i.a.state.session.client.user.identity:"",S=e.pendingMessages.length,T=S>0?e.pendingMessages[S-1]:e.messages[e.messages.length-1],U={index:S,groupWithNext:!1,groupWithPrevious:!!T&&T.source.author===b,isFromMe:!0,isSending:!0,source:{index:S,media:y,author:b,type:"media",sid:null,body:null,timestamp:new Date,channel:t.payload.channel}};return m({},e,{pendingMessages:[].concat(h(e.pendingMessages),[U])});case L:var B=t.payload.media;return m({},e,{pendingMessages:e.pendingMessages.filter((function(e){return e.source.media.sid!==B.sid&&e.source.media.filename!==B.filename&&e.source.media.contentType!==B.contentType}))});case F:var z=t.payload.media;return m({},e,{pendingMessages:e.pendingMessages.map((function(e){return e.source.media.sid===z.sid?m({},e,{isSending:!1,error:!0}):e}))});case w:if(!i.a.state.session.client)return e;var W=t.payload,G=e.messages.find((function(e){return e.index===W.index}));if(G)return e;for(var q=H(W,i.a.state.session.client.user.identity),Y=[].concat(h(e.messages),[q]),K=Math.max(Y.length-2,0);K<Y.length;K++)Y[K]=H(Y[K].source,i.a.state.session.client.user.identity,K<Y.length-1?Y[K+1].source:void 0,K>0?Y[K-1].source:void 0);var X,J=i.a.state.messageList,Z=J.activeChatChannel,Q=J.isScrollToBottom;X=q.isFromMe?e.unconsumedMessages:Z===(e.source||{}).sid&&Q?[]:[].concat(h(e.unconsumedMessages),[q]);var ee=[];return e.pendingMessages.length&&(ee=e.pendingMessages.map((function(t,n){var r=0===n?q:e.pendingMessages[n-1];return m({},t,{groupWithPrevious:t.source.author===r.source.author})}))),m({},e,{messages:Y,unconsumedMessages:X,pendingMessages:ee});case k:if(!i.a.state.session.client)return e;var te=t.payload,ne=e.messages.findIndex((function(e){return e.index===te.index})),re=e.messages.slice();re.splice(ne,1);for(var oe=Math.max(0,ne-1);oe<=Math.min(ne,re.length-1);oe++)re[oe]=H(re[oe].source,i.a.state.session.client.user.identity,oe<re.length-1?re[oe+1].source:void 0,oe>0?re[oe-1].source:void 0);return m({},e,{messages:re});case A:if(!i.a.state.session.client)return e;var ie=t.payload,ae=e.messages.findIndex((function(e){return e.index===ie.index})),ue=e.messages.slice();return ue[ae]=H(ie,i.a.state.session.client.user.identity,ae<ue.length-1?ue[ae+1].source:void 0,ae>0?ue[ae-1].source:void 0),m({},e,{messages:ue});case _:var se=t.payload,ce=a.a.copyMap(e.members);return ce.set(se.source.identity,se),m({},e,{members:ce});case N:var le=t.payload,fe=a.a.copyMap(e.members);return fe.delete(le.source.identity)?m({},e,{members:fe}):e;case M:var de=t.payload,pe=de.lastConsumedMessageIndex;if(i.a.state.session.client&&de.identity===i.a.state.session.client.user.identity){var he=e.messages.find((function(e){return e.index>pe})),ge=[];return ge=he?e.unconsumedMessages:[],m({},e,{lastConsumedMessageByCurrentUserIndex:pe,unconsumedMessages:ge})}return m({},e,{lastConsumedMessageIndex:pe});case j:var me=t.payload;if(-1===e.typers.findIndex((function(e){return e.source.identity===me.source.identity}))){var ye=e.typers.slice();return ye.push(me),m({},e,{typers:ye})}return e;case I:var be=t.payload,ve=e.typers.filter((function(e){return e.source.identity!==be.source.identity}));return m({},e,{typers:ve});case O:var Se=t.payload;if(!Se)return e;var we=e.members.get(Se.identity);if(!we)return e;var _e=a.a.copyMap(e.members);return _e.set(Se.identity,V(we.source,Se.friendlyName,Se.online)),m({},e,{members:_e});case R:return m({},e,{},t.payload);case l.a:return t.payload.attachedFile&&e.inputText?m({},e,{inputText:"",selectionStart:0,selectionEnd:0}):e;case"".concat($,"_PENDING"):return m({},e,{isLoadingChannel:!0,errorWhileLoadingChannel:!1});case"".concat($,"_FULFILLED"):return m({},e,{isLoadingChannel:!1,errorWhileLoadingChannel:!1});case"".concat($,"_REJECTED"):return m({},e,{isLoadingChannel:!1,errorWhileLoadingChannel:!0});default:return e}}var B=function(){function e(){b(this,e)}return p(e,null,[{key:"dispatchChannelAction",value:function(e,t,n){this.dispatcher({type:t,payload:n,meta:{channelSid:e}})}},{key:"init",value:function(e){var t=this,n=i.a.state.channels[e.sid];n&&n.listener&&n.listener.stop();var r=new z(e);this.dispatchChannelAction(e.sid,C,{channel:e,listener:r});var o=[],a=e.getMembers().then((function(e){var t=new Map;return e.forEach((function(e){e.getUser().then((function(e){r.startListeningUser(e)}))})),Promise.all(e.map((function(e){return e.getUserDescriptor().then((function(n){o.push(n),t.set(e.identity,V(e,n.friendlyName,n.online))}))}))).then((function(){return t}))}));a.then((function(n){return t.dispatchChannelAction(e.sid,s.a,o),n})),this.dispatchChannelAction(e.sid,E,a);var u,c=e.getMessages(this.MESSAGE_LOAD_COUNT);return this.dispatchChannelAction(e.sid,x,c),a.then((function(e){u=e})).then((function(){return c})).then((function(e){return t.loadUserDescriptorForMissingMembers(e,u)}))}},{key:"unload",value:function(e){this.dispatchChannelAction(e,P,void 0)}},{key:"loadMessagesFromHistory",value:function(e){var t=this;if(!e.source||!e.currentPaginator)return!1;if(!e.currentPaginator.hasPrevPage||e.isLoadingMessages)return!1;var n=e.currentPaginator.prevPage();return this.dispatchChannelAction(e.source.sid,x,n),n.then((function(n){return t.loadUserDescriptorForMissingMembers(n,e.members)}))}},{key:"loadUserDescriptorForMissingMembers",value:function(e,t){e.items.forEach((function(e){t.has(e.author)||s.b.fetchUserDescriptor(e.author)}))}},{key:"deprecatedSetInputText",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;e.source&&this.dispatchChannelAction(e.source.sid,R,{selectionStart:n,selectionEnd:r,inputText:t})}},{key:"updateLastConsumedMessageIndex",value:function(e,t){e.source&&W.isUserMemberOfChannel(e)&&e.source.updateLastConsumedMessageIndex(t)}},{key:"removeAllListeners",value:function(){u.a.debug("Channel state removeAllListeners"),Object.keys(i.a.state.channels).forEach((function(e){var t=i.a.state.channels[e];t.listener&&t.listener.stop()}))}},{key:"initWithChannelSid",value:function(e){var t=this;if(e){var n=i.a.state.channels[e];if(!n||!n.listener&&!n.isLoadingChannel){if(!i.a.state.session.client)throw new Error("No chat client");this.dispatchChannelAction(e,"".concat($,"_PENDING"),{}),i.a.state.session.client.getChannelBySid(e).then((function(n){t.dispatchChannelAction(e,"".concat($,"_FULFILLED"),{}),t.init(n)})).catch((function(){t.dispatchChannelAction(e,"".concat($,"_REJECTED"),{}),u.a.debug("Cannot retrieve channel",e)}))}}else u.a.warn("ChannelSid is invalid ",e)}},{key:"addPendingMessage",value:function(e,t){var n=this.getMediaFromFile(e);this.dispatchChannelAction(t.sid,D,{media:n,channel:t})}},{key:"removePendingMessage",value:function(e,t){var n=this.getMediaFromFile(e);this.dispatchChannelAction(t.sid,L,{media:n})}},{key:"rejectMediaMessage",value:function(e,t){var n=this.getMediaFromFile(e);this.dispatchChannelAction(t.sid,F,{media:n})}},{key:"getMediaFromFile",value:function(e){return{sid:e.name,filename:e.name,contentType:e.type,size:e.size}}},{key:"dispatcher",get:function(){return this._dispatcher||i.a.dispatch},set:function(e){this._dispatcher=e}}]),e}();B.MESSAGE_LOAD_COUNT=20,B._dispatcher=void 0;var z=function(){function e(t){var n=this;b(this,e),this._channel=void 0,this._listening=!1,this._users=void 0,this.handleMessageAdded=function(e){n.dispatchMessageOrMemberAction(w,e),n.showNewMessageNotification(e)},this.handleMessageUpdated=function(e){n.dispatchMessageOrMemberAction(A,e.message)},this.handleMessageRemoved=function(e){n.dispatchMessageOrMemberAction(k,e)},this.handleMemberJoined=function(e){s.b.fetchUserDescriptor(e.identity),e.getUserDescriptor().then((function(t){n.dispatchMessageOrMemberAction(_,V(e,t.friendlyName,t.online))})),e.getUser().then((function(e){n.startListeningUser(e)}))},this.handleMemberLeft=function(e){n.dispatchMessageOrMemberAction(N,V(e,"",!1)),e.getUser().then((function(e){n.stopListeningUser(e)}))},this.handleMemberUpdated=function(e){n.dispatchMessageOrMemberAction(M,e.member)},this.handleTypingStarted=function(e){e.getUserDescriptor().then((function(t){n.dispatchMessageOrMemberAction(j,V(e,t.friendlyName,t.online))}))},this.handleTypingEnded=function(e){e.getUserDescriptor().then((function(t){n.dispatchMessageOrMemberAction(I,V(e,t.friendlyName,t.online))}))},this.handleUserUpdated=function(e){n.dispatchMessageOrMemberAction(O,e.user)},this.handleChannelUpdated=function(e){B.dispatchChannelAction(e.channel.sid,R,{})},this._users=new Map,this._channel=t,this.start()}var t,n;return p(e,[{key:"start",value:function(){this._listening||(this._channel.addListener("messageAdded",this.handleMessageAdded),this._channel.addListener("messageRemoved",this.handleMessageRemoved),this._channel.addListener("messageUpdated",this.handleMessageUpdated),this._channel.addListener("memberJoined",this.handleMemberJoined),this._channel.addListener("memberLeft",this.handleMemberLeft),this._channel.addListener("typingStarted",this.handleTypingStarted),this._channel.addListener("typingEnded",this.handleTypingEnded),this._channel.addListener("memberUpdated",this.handleMemberUpdated),this._channel.on("updated",this.handleChannelUpdated),this._listening=!0)}},{key:"stop",value:function(){var e=this;this._listening&&(this._channel.removeListener("messageAdded",this.handleMessageAdded),this._channel.removeListener("messageRemoved",this.handleMessageRemoved),this._channel.removeListener("messageUpdated",this.handleMessageUpdated),this._channel.removeListener("memberJoined",this.handleMemberJoined),this._channel.removeListener("memberLeft",this.handleMemberLeft),this._channel.removeListener("typingStarted",this.handleTypingStarted),this._channel.removeListener("typingEnded",this.handleTypingEnded),this._channel.removeListener("memberUpdated",this.handleMemberUpdated),this._channel.removeListener("updated",this.handleChannelUpdated),this._users.forEach((function(t){e.stopListeningUser(t.user)})),this._listening=!1)}},{key:"startListeningUser",value:function(e){var t=this;if(!this._users.has(e.identity)){var n=new S;n.user=e,n.callback=function(e){t.handleUserUpdated(e)},e.addListener("updated",n.callback),this._users.set(e.identity,n)}}},{key:"stopListeningUser",value:function(e){if(this._users.has(e.identity)){var t=this._users.get(e.identity);t&&t.user.removeListener("updated",t.callback)}}},{key:"dispatchMessageOrMemberAction",value:function(e,t){B.dispatchChannelAction(this._channel.sid,e,t)}},{key:"showNewMessageNotification",value:(t=regeneratorRuntime.mark((function e(t){var n,a,u,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.a.state.session.client){e.next=2;break}return e.abrupt("return");case 2:return n=i.a.state.session.client.user.identity,e.next=5,t.channel.getMembers();case 5:if(a=e.sent,t.author!==n&&a.find((function(e){return e.identity===n}))){e.next=8;break}return e.abrupt("return");case 8:if(u=t.channel.sid,s=i.a.state.channels[u]){e.next=12;break}return e.abrupt("return");case 12:l=new c.a(s),o.f.showNotification(r.NewChatMessage,{lastMessage:l.lastMessage});case 14:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){f(i,r,o,a,u,"next",e)}function u(e){f(i,r,o,a,u,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)})},{key:"isListening",value:function(){return this._listening}}]),e}();function H(e,t,n,r){return{groupWithNext:!!n&&e.author===n.author,groupWithPrevious:!!r&&e.author===r.author,isFromMe:e.author===t,index:e.index,source:e}}function V(e,t,n){return{friendlyName:t,source:e,online:n}}var W=function(){function e(){b(this,e)}return p(e,null,[{key:"isUserMemberOfChannel",value:function(e){return e&&e.source&&"joined"===e.source.status}}]),e}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} | |
/*! | |
Copyright (c) 2017 Jed Watson. | |
Licensed under the MIT License (MIT), see | |
http://jedwatson.github.io/classnames |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment