!function(e){function t(t){for(var n,i,a=t[0],s=t[1],o=0,c=[];o{const{attachment:n,threadId:i}=t.payload;return e.withMutations(e=>{Object(r.a)([i],e)||e.set(i,new a.OrderedMap);e.setIn([i,Object(u.getLocalId)(n)],n)})},[l.c]:(e,t)=>{const{localId:n,progress:r,threadId:i}=t.payload;return Object(f.a)({localId:n,threadId:i},e)?e.updateIn([i,n],e=>c(r,e)):e},[l.b]:(e,t)=>{const{fileId:n,localId:r,threadId:i}=t.payload;return Object(f.a)({localId:r,threadId:i},e)?e.updateIn([i,r],e=>e.withMutations(e=>{c(100,e);o(n,e)})):e},[l.g]:(e,t)=>{const{localId:n,threadId:r}=t.payload;return e.deleteIn([r,n])},[l.e]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[d.a]:e=>e.delete(p.a),[l.a]:(e,t)=>{const{threadId:n}=t.payload;return e.deleteIn([n])}};t.a=Object(i.c)(b,h)},"+2bk":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("xOzo"),i=n("/OK6"),a=n("iPDb"),s=n("kWFB");const o=e=>Object(s.hasMessages)(e)&&Object(r.a)(i.isFromBot,Object(a.a)(e))},"+2tz":function(e,t){e.exports={pageviewFiftyThree:{name:"pageviewfiftythree",class:"view",properties:{screen:"string",subscreen:"string",action:"string",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},pageview:{name:"pageview",class:"view",properties:{screen:"string",subscreen:"string",action:"string",pageViewSamplePercent:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"start-conversation":{name:"start-conversation",class:"interaction",properties:{action:{type:"string",isOptional:!0},threadId:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"send-message":{name:"send-message",class:"interaction",properties:{threadId:{type:"number",isOptional:!0},isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"republish-message":{name:"republish-message",class:"interaction",namespace:"conversations-visitor-ui",properties:{isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}}},"dragged-widget":{name:"dragged-widget",class:"interaction",properties:{isOpen:"boolean",timeOnPage:"number",isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"widget-interaction":{name:"widget-interaction",class:"interaction",properties:{action:["system open widget","user open widget","close widget","view thread list","create new thread","view thread","view email capture","submit email","clicked meeting link","view reply time","view return time","view consent to process","close consent to process","view consent to cookies","clicked consent to process button","clicked consent to cookies button","clicked decline cookies button"],isIncludedInPageViewSample:"boolean",privateLoad:"boolean",chatflowId:{type:"number",isOptional:!0},path:{type:"string",isOptional:!0},promptEnabled:{type:"string",isOptional:!0},botEnabled:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},knowledgeBaseEnabled:{type:"boolean",isOptional:!0},visitorIdentificationEnabled:{type:"boolean",isOptional:!0},feedbackSurveyEnabled:{type:"boolean",isOptional:!0}},namespace:"conversations-visitor-ui"},"failed-to-attach-file":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["failed to attach file"],"failure-type":["size limit exceeded","upload error","invalid file type"]},namespace:"conversations-visitor-ui"},"attached-file":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["attached file"],"attachment-type":"string","attachment-size-bytes":"number","upload-time-ms":"number"},namespace:"conversations-visitor-ui"},"retry-attachment-upload":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["retry attachment upload"]},namespace:"conversations-visitor-ui"},"remove-staged-attachment":{name:"widget-interaction",class:"interaction",properties:{path:{type:"string",isOptional:!0},state:{type:"string",isOptional:!0},action:["remove staged attachment"]},namespace:"conversations-visitor-ui"}}},"+3Rj":function(e,t,n){"use strict";n.r(t);n.d(t,"fetchSupplementalInitialMessages",(function(){return i}));var r=n("VYoM");function i({botId:e,sessionId:t,hubspotUtk:n}){return r.a.getWithResponse(`livechat-public/v1/bots/public/bot/${e}/welcomeMessages`,{query:{sessionId:t,hubspotUtk:n}})}},"+GKH":function(e,t,n){e.exports=n.dlbpr(1,76)},"+HSX":function(e,t,n){"use strict";n.r(t);n.d(t,"addMessageToThreadHistory",(function(){return l}));var r=n("qjq5"),i=n("DdHT"),a=n("Y/B+"),s=n("Hnia"),o=n("eeeG"),c=n("OHie"),u=n("R6gb");const l=Object(r.a)((e,t,n)=>{Object(a.messageKeyInvariant)(e);Object(u.historyMessageInvariant)(t);Object(s.threadHistoryInvariant)(n);return Object(i.a)(Object(o.setMessage)(e,t),c.sortMessages)(n)})},"+KD7":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"m",(function(){return s}));n.d(t,"o",(function(){return o}));n.d(t,"n",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"p",(function(){return l}));n.d(t,"u",(function(){return d}));n.d(t,"s",(function(){return p}));n.d(t,"q",(function(){return f}));n.d(t,"k",(function(){return h}));n.d(t,"t",(function(){return b}));n.d(t,"g",(function(){return g}));n.d(t,"h",(function(){return m}));n.d(t,"a",(function(){return O}));n.d(t,"i",(function(){return v}));n.d(t,"l",(function(){return j}));n.d(t,"f",(function(){return y}));n.d(t,"j",(function(){return E}));n.d(t,"r",(function(){return T}));const r="#00a4bd",i="#7fd1de",a="#e5f5f8",s="#f5c26b",o="#fae0b5",c="#fef8f0",u="#f2545b",l="#d94c71",d="#5e6ab8",p="#7fded2",f="#33475b",h="#425b76",b="#516f90",g="#7c98b6",m="#99acc2",O="#cbd6e2",v="#dfe3eb",j="#eaf0f6",y="#f2f5f8",E="#f5f8fa",T="#ffffff"},"+KeY":function(e,t,n){"use strict";n.r(t);var r=n("66eB"),i=n("Nh7c"),a=n.n(i);n.d(t,"notifyBySound",(function(){return s}));const s=(()=>{if("function"!=typeof window.Audio)return r.a;let e=!0,t=null,n=null;const i=()=>{const t=new window.Audio(a.a);if(e){e=!1;n=t.play();void 0!==n?n.then(()=>{e=!0}).catch(()=>{e=!0}):e=!0}};return e=>{i();if(e){window.removeEventListener("focus",t);i();t=window.addEventListener("focus",()=>{window.removeEventListener("focus",t)})}}})()},"+LtA":function(e,t,n){"use strict";var r=n("slCD"),i=n("QYOI"),a=n("JGJA"),s=n("3Yas");const o=e=>Object(i.Seq)(e).keySeq();s.g.implement(Array,o);s.g.implementInherited(i.Iterable,e=>e.keySeq());s.g.implement(Object,o);var c=s.g,u=n("IcZZ"),l=n("6O34"),d=n("Zui/");const p={[d.d]:!0,[d.i]:!0,[d.f]:!0,[d.b]:!0},f={attachments:Object(i.List)(),genericChannelId:null,messageStatus:null,messageTimestamp:null,senders:Object(i.List)(),truncatedText:""},h=Object(i.Record)(f,"DirectReply");var b=function(e){return e?h(Object.assign({},f,{attachments:Object(u.a)(e.attachments,p),genericChannelId:Object(a.a)("genericChannelId",e),messageStatus:Object(a.a)("messageStatus",e),messageTimestamp:Object(a.a)("messageTimestamp",e),senders:Object(l.a)(e.senders),truncatedText:Object(a.a)("truncatedText",e)})):h()};const g=e=>{const t=Object(a.a)("directReplyMessages",e);if(!t)return Object(i.Map)({directReplyMessages:Object(i.Map)()});const n=c(t).reduce((e,n)=>{const r=Object(a.a)(n,t);return e.set(n,b(r))},Object(i.Map)());return Object(i.Map)({directReplyMessages:n})};var m=n("sxmL");class O extends(Object(i.Record)({results:Object(i.OrderedMap)(),hasMore:!1,offset:Object(i.Map)()},"ThreadHistoryMessages")){constructor(e={}){const{results:t}=e,n=Object(r.a)(e,["results"]);super(Object.assign({},n,{results:Object(m.a)(t)}))}}class v extends(Object(i.Record)({messages:null,visitorLastReadAtTimestamp:0,numSoftDeletedMessages:0,attachments:Object(i.Map)(),directReplies:Object(i.Map)(),friendlyNames:[],friendlyNameResults:[]},"ThreadHistory")){constructor(e={}){const{messages:t,directReplies:n,friendlyNames:i=[],friendlyNameResults:a=[]}=e,s=Object(r.a)(e,["messages","directReplies","friendlyNames","friendlyNameResults"]);super(Object.assign({},s,{messages:new O(t),directReplies:g(n),friendlyNames:i,friendlyNameResults:a}))}}t.a=v},"+TdC":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("DdHT"),s=n("bYG+"),o=n("9Mwj"),c=n("8f+m"),u=n("ubOH"),l=n("rA/t"),d=n("BvOu"),p=n("c1C1"),f=n("tY0N");class h extends(Object(r.Record)({"@type":f.a,id:null,timestamp:null,echo:!1,sender:Object(r.Map)(),messageDeletedStatus:o.a,clientType:null,status:Object(u.a)(),genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"TypingIndicatorMessage")){constructor(e={}){const t=Object(l.a)(e),n=Object(i.a)("id",e)||Object(d.generateUuid)(),o=Object(i.a)("timestamp",e)||Object(p.generateUniqueClientTimestamp)("buildTypingMessage-timestamp"),f=Object(i.a)("status",e),h=Object(u.a)(f||{}),b=Object(i.a)("recipients",e)||[],g=Object(r.List)(b.filter(Boolean).map(e=>Object(c.a)(e)));super(Object(a.a)(Object(s.a)("id",n),Object(s.a)("timestamp",o),Object(s.a)("status",h),Object(s.a)("recipients",g))(t))}}t.a=h},"+hQr":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Zulv"),i=n("okxY"),a=n("xr6y");function s(e,t){let n,{elementType:s="button",isDisabled:o,onPress:c,onPressStart:u,onPressEnd:l,onPressChange:d,preventFocusOnPress:p,allowFocusWhenDisabled:f,onClick:h,href:b,target:g,rel:m,type:O="button"}=e;n="button"===s?{type:O,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===s&&o?void 0:b,target:"a"===s?g:void 0,type:"input"===s?O:void 0,disabled:"input"===s?o:void 0,"aria-disabled":o&&"input"!==s?o:void 0,rel:"a"===s?m:void 0};let{pressProps:v,isPressed:j}=Object(a.j)({onPressStart:u,onPressEnd:l,onPressChange:d,onPress:c,isDisabled:o,preventFocusOnPress:p,ref:t}),{focusableProps:y}=Object(i.d)(e,t);f&&(y.tabIndex=o?-1:y.tabIndex);let E=Object(r.i)(y,v,Object(r.b)(e,{labelable:!0}));return{isPressed:j,buttonProps:Object(r.i)(n,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{if(h){h(e);console.warn("onClick is deprecated, please use onPress")}}})}}},"+l17":function(e,t,n){"use strict";n.r(t);n.d(t,"setThreadsSuccess",(function(){return a}));var r=n("Ut5p"),i=n("cXEp");const a=Object(r.b)(i.a)},"+lAi":function(e,t,n){"use strict";var r=n("QYOI"),i=n("YQHs"),a=n("7ede");t.a=Object(r.Record)({enabled:!1,usingCustomResponse:!1,standardResponse:i.a,customResponseQuantity:5,customResponseUnit:a.b},"TypicalResponseTime")},"+lXL":function(e,t,n){"use strict";n.r(t);n.d(t,"addTypingTimeoutIdForAgentInThread",(function(){return a}));var r=n("Ut5p"),i=n("/UYW");const a=Object(r.b)(i.a,(e,t,n)=>({threadId:e,senderId:t,timeoutId:n}))},"+tWo":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));var r=n("VVfI");const i=Object(r.a)("FETCH_THREAD_HISTORY"),a="REMOVE_MESSAGE_IN_CONVERSATION"},"+xqs":function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({hasFileAttachment:!1,previewText:null,failed:!1,responder:null,visitor:null},"ThreadPreviewRecord");t.a=i},"/He/":function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"h",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"k",(function(){return o}));n.d(t,"j",(function(){return c}));n.d(t,"l",(function(){return u}));n.d(t,"i",(function(){return l}));n.d(t,"a",(function(){return d}));n.d(t,"c",(function(){return p}));n.d(t,"b",(function(){return f}));n.d(t,"d",(function(){return h}));const r=["messages"],i=["messages","results"],a=["messages","hasMore"],s=["messages","offset"],o=["messages","offset","timestamp"],c=["messages","offset","ordinal"],u=["visitorLastReadAtTimestamp"],l=["numSoftDeletedMessages"],d=["attachments"],p=["attachments","files"],f=["directReplies","directReplyMessages"],h=["friendlyNameResults"]},"/Ihs":function(e,t,n){"use strict";n.r(t);n.d(t,"getKnowledgeBaseEnabled",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("OmJX");const s=Object(r.a)(a.a,Object(i.a)("knowledgeBaseEnabled"))},"/Jc5":function(e,t,n){"use strict";n.r(t);n.d(t,"fetchCurrentThreadHistory",(function(){return o}));var r=n("NpZo"),i=n("E6wg"),a=n("eg5p"),s=n("HiOC");const o=()=>(e,t)=>{const n=Object(i.getSessionId)(t()),o=Object(r.getSelectedThreadId)(t());null!==o&&o!==a.a&&e(Object(s.fetchThreadHistory)({threadId:o,sessionId:n}))}},"/KG3":function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("QYOI"),i=n("xZ3y"),a=n("BxyF"),s=n("BnUr"),o=n("Pda3"),c=n("2Sm/"),u=n("rjAk"),l=n("8HpB"),d=n("PaBm"),p=n("mYl/"),f=n("cjt2"),h=n("yb5F"),b=n("bco+"),g=n("t0Ql");const m=[f.c,f.g,c.a.SUCCEEDED,i.GET_VISITOR_THREADS_SUCCESS,g.a],O=e=>{const t=t=>t.reduce((t,n)=>{const r=Object(s.getChannelName)(n),i=Object(s.getThreadId)(n);return t.set(r,{onMessage:t=>e.dispatch(Object(p.a)({channel:r,message:t,threadId:i,publishContext:{playback:!1}})),onPlayback:t=>{t.forEach(t=>{e.dispatch(Object(p.a)({channel:r,message:t,threadId:i,publishContext:{playback:!0}}))})},onPresence:e=>{}})},Object(r.Map)()).toJS();return n=>r=>{const s=n(r),p=Object(a.getAsyncPubSubClient)(e.getState()),f=r.type===c.a.SUCCEEDED,g=r.type===i.GET_VISITOR_THREADS_SUCCESS&&Object(u.hasPersistedThreads)(e.getState());Object(o.isUninitialized)(p)&&(f||g)&&e.dispatch(Object(l.startPubSub)({newThreadCreated:f}));if(Object(d.isClientReady)(p)&&m.includes(r.type)){const n=Object(b.getThreads)(e.getState()),r=t(n);e.dispatch(Object(h.updateSubscriptions)(r))}return s}}},"/OK6":function(e,t,n){"use strict";n.r(t);n.d(t,"isSenderType",(function(){return s}));n.d(t,"isFromAgent",(function(){return o}));n.d(t,"isFromBot",(function(){return c}));n.d(t,"isFromSystem",(function(){return u}));n.d(t,"isFromVisitor",(function(){return l}));var r=n("qjq5"),i=n("0IK8"),a=n("Mx3c");const s=Object(r.a)((e,t)=>Object(i.getSenderType)(t)===e),o=s(a.AGENT),c=s(a.BOT),u=s(a.SYSTEM),l=s(a.VISITOR)},"/UYW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="ADD_TYPING_TIMEOUT_ID",i="REMOVE_TYPING_TIMEOUT_ID"},"/fsP":function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("l0Ga"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",channelInstanceId:null,genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"EmailCaptureResponseMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("EmailCaptureResponseMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},"/kBF":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("kevw"),i=n("7eQh");const a=e=>{const t=Object(r.d)(e);return Object(i.a)(t,e)}},"/mXs":function(e,t,n){"use strict";var r=n("QgEn"),i=n("VfuR"),a=n.n(i),s=n("9f1P"),o=n.n(s),c=n("CR0J"),u=n("Z/Dw"),l=n("NfCo"),d=n("InFa"),p=n("7719"),f=n("Ktcs"),h=n("wjRl"),b=n("aXPX"),g=n("rdz/"),m=n("rkZZ");const O=(e,t=1)=>{const{r:n,g:r,b:i}=Object(m.a)(e);return`rgba(${n}, ${r}, ${i}, ${t})`},v={baseStyle:Object(s.css)(["flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:",";width:","px;height:","px;vertical-align:middle;padding:0;text-align:center;text-overflow:clip;font-size:18px;line-height:18px;outline:none;transition:background-color 150ms ease-out;"," border:none;"," > *{user-select:none;}"],({shape:e})=>e===d.a?"50%":"3px",({size:e})=>e&&b.c[e]||40,({size:e})=>e&&b.c[e]||40,({use:e,theme:{colors:t}})=>e===l.TRANSPARENT_ON_BACKGROUND||e===l.TRANSPARENT_ON_PRIMARY?"background-color: transparent;":`background-color: ${t.primary};`,({use:e,theme:{colors:t}})=>e===l.TRANSPARENT_ON_BACKGROUND?`color: ${t.transparentOnBackgroundIconButton||t.primary};`:`color: ${t.textOnPrimary};`),_disabled:Object(s.css)([""," color:",";cursor:not-allowed;"],({theme:{colors:e},use:t})=>`\n background-color: ${t===l.TRANSPARENT_ON_BACKGROUND||t===l.TRANSPARENT_ON_PRIMARY?"transparent":e.disabledBackground};\n `,({theme:{colors:e}})=>e.disabledText),_focused:h.a,_hovered:Object(s.css)(["",""],({theme:{colors:e},use:t})=>t===l.TRANSPARENT_ON_BACKGROUND?`background-color: ${O(e.transparentOnBackgroundIconButton||e.primary,.1)};`:t===l.TRANSPARENT_ON_PRIMARY?`background-color: ${O(e.textOnPrimary,.1)};`:`background-color: ${Object(g.a)(e.primary,20)};`),_pressed:Object(s.css)(["",""],({theme:{colors:e},use:t})=>t===l.TRANSPARENT_ON_BACKGROUND?`background-color: ${O(e.transparentOnBackgroundIconButton||e.primary,.4)};`:t===l.TRANSPARENT_ON_PRIMARY?`background-color: ${O(e.textOnPrimary,.4)};`:`background-color: ${Object(g.a)(e.primary,-10)};`)};var j=n("W/H/");const y={shape:d.b,size:p.e,use:l.PRIMARY},E=o.a.button.withConfig({displayName:"VizExIconButton__AbstractVizExIconButton",componentId:"sc-1i8wmsf-0"})(["",""],({theme:e})=>Object(j.a)({component:"IconButton",defaultStyles:v,theme:e})),T=Object(f.forwardRef)((e,t)=>Object(r.jsx)(E,Object.assign({},e,{ref:t})));T.displayName="VizExIconButton";T.propTypes=Object.assign({children:a.a.node,onClick:a.a.func,shape:a.a.oneOf([d.a,d.b]),size:a.a.oneOf([p.c,p.f,p.e]),theme:c.a,use:a.a.oneOf(Object.values(l))},u.a);T.defaultProps=y;t.a=T},"/u6M":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("RESOLVE_ATTACHMENTS")},"/uLy":function(e,t,n){"use strict";n.r(t);n.d(t,"navigateToThreadListKnowledgebase",(function(){return o}));var r=n("Ux+X"),i=n("qAIk"),a=n("v2h7"),s=n("WTKJ");function o(){return e=>{e(Object(i.a)());e(Object(a.a)(s.a));e(Object(r.trackInteraction)("widget-interaction",{action:"view thread list"}))}}},"021p":function(e,t,n){"use strict";n.d(t,"f",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"b",(function(){return u}));n.d(t,"c",(function(){return l}));var r=n("MJM1"),i=n("/He/");Object(r.a)(i.e),Object(r.a)(i.f),Object(r.a)(i.g);const a=Object(r.a)(i.k),s=Object(r.a)(i.j),o=Object(r.a)(i.h),c=(Object(r.a)(i.l),Object(r.a)(i.i),Object(r.a)(i.a)),u=(Object(r.a)(i.c),Object(r.a)(i.b)),l=Object(r.a)(i.d)},"02LW":function(e,t,n){"use strict";n.r(t);var r=(e,t)=>e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t;n.d(t,"default",(function(){return i}));function i(e,t=r){let n,i,a=!1;const s=function(...r){if(!a||r.some((e,r)=>!t(e,n[r]))){a=!0;n=r;i=e(...r)}return i};s.resetCache=()=>{const e=a?1:0;a=!1;return e};return s}},"04om":function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));n.d(t,"b",(function(){return y}));n("VfuR");var r=n("Ktcs"),i=n.n(r),a=n("r1tY"),s=n.n(a),o=Object.assign;function c(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}return i}function u(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function l(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function d(e,t){e.classList?e.classList.add(t):l(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function p(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function f(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=p(e.className,t):e.setAttribute("class",p(e.className&&e.className.baseVal||"",t))}var h={disabled:!1},b=i.a.createContext(null),g="unmounted",m="exited",O="entering",v="entered",j="exiting",y=function(e){u(t,e);function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;r.appearStatus=null;if(t.in)if(a){i=m;r.appearStatus=O}else i=v;else i=t.unmountOnExit||t.mountOnEnter?g:m;r.state={status:i};r.nextCallback=null;return r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===g?{status:m}:null};var n=t.prototype;n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)};n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==O&&n!==v&&(t=O):n!==O&&n!==v||(t=j)}this.updateStatus(!1,t)};n.componentWillUnmount=function(){this.cancelNextCallback()};n.getTimeouts=function(){var e,t,n,r=this.props.timeout;e=t=n=r;if(null!=r&&"number"!=typeof r){e=r.exit;t=r.enter;n=void 0!==r.appear?r.appear:t}return{exit:e,enter:t,appear:n}};n.updateStatus=function(e,t){void 0===e&&(e=!1);if(null!==t){this.cancelNextCallback();t===O?this.performEnter(e):this.performExit()}else this.props.unmountOnExit&&this.state.status===m&&this.setState({status:g})};n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s.a.findDOMNode(this),r],a=i[0],o=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;if(!e&&!n||h.disabled)this.safeSetState({status:v},(function(){t.props.onEntered(a)}));else{this.props.onEnter(a,o);this.safeSetState({status:O},(function(){t.props.onEntering(a,o);t.onTransitionEnd(u,(function(){t.safeSetState({status:v},(function(){t.props.onEntered(a,o)}))}))}))}};n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.a.findDOMNode(this);if(t&&!h.disabled){this.props.onExit(r);this.safeSetState({status:j},(function(){e.props.onExiting(r);e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:m},(function(){e.props.onExited(r)}))}))}))}else this.safeSetState({status:m},(function(){e.props.onExited(r)}))};n.cancelNextCallback=function(){if(null!==this.nextCallback){this.nextCallback.cancel();this.nextCallback=null}};n.safeSetState=function(e,t){t=this.setNextCallback(t);this.setState(e,t)};n.setNextCallback=function(e){var t=this,n=!0;this.nextCallback=function(r){if(n){n=!1;t.nextCallback=null;e(r)}};this.nextCallback.cancel=function(){n=!1};return this.nextCallback};n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)};n.render=function(){var e=this.state.status;if(e===g)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,c(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.a.createElement(b.Provider,{value:null},"function"==typeof n?n(e,r):i.a.cloneElement(i.a.Children.only(n),r))};return t}(i.a.Component);y.contextType=b;y.propTypes={};function E(){}y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E};y.UNMOUNTED=g;y.EXITED=m;y.ENTERING=O;y.ENTERED=v;y.EXITING=j;var T=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return d(e,t)}))},w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return f(e,t)}))},I=function(e){u(t,e);function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{Object(i.postExternalApiEvent)({eventType:a.h,payload:{conversation:{conversationId:e}}})};var o=n("Qvwz"),c=n("2Sm/");const u=null;t.a=Object(r.c)({[Object(r.a)(o.b,c.a.SUCCEEDED)](e,t){const{threadId:n}=t.payload;n&&s(n);return n},[o.a]:()=>u},u)},"081M":function(e,t,n){"use strict";n.r(t);var r=n("q8Gl"),i=n("Syy6");const a=300,s=({key:e,value:t})=>{const n=Object(r.getWindowLocation)();n.upsertParam(e,t);window.history.replaceState(null,null,n.search)},o=n.n(i)()(({key:e,value:t})=>s({key:e,value:t}),a,{leading:!0,trailing:!1});n.d(t,"getHubspotUtk",(function(){return c}));n.d(t,"setHubspotUtk",(function(){return u}));const c=()=>Object(r.getWindowLocation)().paramValue("hubspotUtk"),u=e=>{c()!==e&&o({key:"hubspotUtk",value:e})}},"08EF":function(e,t,n){"use strict";var r=n("+GKH"),i=n("uB3n"),a=n("MZef"),s=n("eJ3n"),o=n("4cwC"),c=n("y+PV"),u=n("nt9Q"),l=n("stzZ"),d=n("DrqF");const p=e=>{Object(d.a)("string"==typeof e,"Expected id to be a string not a %s",typeof e)};var f=n("cjt2"),h=n("tXbc");const b=e=>e,g=Object(i.a)({name:"pubSubClient",idInvariant:p,notSetValue:Object(a.a)()}),m=(e=g,t)=>{switch(t.type){case f.a.STARTED:{const{clientKey:n}=t.payload;return Object(s.a)(n,c.a,e)}case f.a.SUCCEEDED:{const{client:n,clientKey:r}=t.payload;return Object(s.a)(r,Object(l.a)(()=>n),e)}case f.a.FAILED:{const{clientKey:n}=t.payload;return Object(s.a)(n,o.a,e)}case f.e:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.c,b),e)}case f.d:case f.c:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.a,b),e)}case f.b:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.b,b),e)}case f.f:{const{clientKey:n}=t.payload;return Object(s.a)(n,Object(u.a)(h.e,b),e)}default:return e}};var O=n("ImcI"),v=n("9pgs");const j=Object(i.a)({name:"subscriptions",idInvariant:p,notSetValue:Object(a.a)({data:null})}),y=(e=j,t)=>{switch(t.type){case f.h.STARTED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(O.a)(()=>r),e)}case f.g.STARTED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(u.a)(h.d,()=>r),e)}case f.g.SUCCEEDED:case f.h.SUCCEEDED:{const{clientKey:n,subscriptions:r}=t.payload;return Object(s.a)(n,Object(l.a)(()=>r),e)}case f.g.FAILED:case f.h.FAILED:{const{clientKey:n,error:r}=t.payload;return Object(s.a)(n,Object(v.a)(r),e)}default:return e}};var E=n("U7wy"),T=n("Ut5p"),w=n("I6ms"),I=n("KXCN"),C=n("bYG+");const A=Object(C.a)("globalCookieOptOut"),x=Object(C.a)("isFirstVisitorSession");var S=Object(T.c)({[w.a]:(e,t)=>{const{globalCookieOptOut:n}=t.payload;return A(n,e)},[w.b]:(e,t)=>{const{isFirstVisitorSession:n}=t.payload;return x(n,e)}},new I.a),_=n("nyI8"),R=n("ES4X"),D=n("4pOi"),M=n("JPbb"),N=n("M5PA"),P=n("WYdz"),k=n("V9Mx"),L=n("+282"),B=n("1Hpf"),F=n("9HFe"),H=n("ISr8"),U=n("VSQ5");const G=null;var q=Object(T.c)({[U.a]:(e,t)=>{const{view:n}=t.payload;return n}},G),W=n("kMhZ"),V=n("QYOI"),z=n("VB2T");const J=Object(V.Map)({timeoutId:0}),K={[z.a](e,t){const{timeoutId:n}=t.payload;return e.set("timeoutId",n,e)},[z.b]:e=>e.set("timeoutId",0,e)};var Y=Object(T.c)(K,J),Q=n("q6sI");const Z=!1;var X=Object(T.c)({[w.c](e,t){const{visible:n}=t.payload;return n}},Z);const $=!1;var ee=Object(T.c)({[w.d](e,t){const{enabled:n}=t.payload;return n}},$),te=n("05rB"),ne=n("dIRc"),re=n("aPre"),ie=n("xZ3y");const ae={widgetInputIsOnFocus:!1};function se(e=ae,t){switch(t.type){case ie.USER_INPUT_ON_FOCUS:return Object.assign({},e,{},t.payload);default:return e}}var oe=n("w1qe"),ce=n("KnhK");const ue=!1;var le=Object(T.c)({[ce.a](e,t){const{enabled:n}=t.payload;return n}},ue);t.a=Object(r.combineReducers)({typingStates:k.a,availabilityMessageTimeouts:D.a,clientData:M.a,cookieBannerOnExitVisible:X,currentView:q,emailCapture:R.a,fileUploads:L.a,fileUploadsErrors:B.a,gdpr:H.a,initialMessageBubbleVisible:W.a,messageEditorStaging:oe.b,pubSubClient:m,resolvedAttachments:F.a,responders:N.a,selectedThreadId:te.a,stagedThread:re.a,subscriptions:y,threadHistories:P.a,threads:Q.a,timeOnPageTrigger:Y,unpublishedMessages:ne.a,visitorIdentity:S,widgetData:E.a,widgetInputFocusStatus:se,widgetUi:_.a,feedbackSurveyEnabled:le,visitorIdentificationEnabled:ee})},"0934":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("7Qhs");const a=e=>Object(r.getTopLevelType)(e)===i.a},"0Aa+":function(e,t,n){var r=n("kmmH"),i=n("FU2H"),a=NaN,s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;function d(e){if("number"==typeof e)return e;if(i(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):o.test(e)?a:+e}e.exports=d},"0BtU":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("slCD"),i=n("gIaP"),a=n("d+x8");const s=e=>{let{attachments:t,hasVisitorEmail:n}=e,s=Object(r.a)(e,["attachments","hasVisitorEmail"]);return{files:Object(i.buildResolvedAttachmentsMapFromResponse)(t.files),threadHistory:Object(a.buildThreadHistoryFromResponse)(s),hasVisitorEmail:n}}},"0FzD":function(e,t,n){"use strict";t.a={COMPANY:"company",CUSTOMER:"customer"}},"0G/n":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="HS_EMAIL_ADDRESS",i="CHANNEL_SPECIFIC_OPAQUE_ID"},"0GGv":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("MJM1"),a=n("QnHA");const s=Object(r.a)([a.a],Object(i.a)(["userInteractedWithWidget"]))},"0GyJ":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="COMMON_MESSAGE"},"0H74":function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.k.implement(Array,(e,t,n)=>{if(Object(r.is)(n[e],t))return n;const i=n.concat();i.splice(e,1,t);return i});i.k.implementInherited(r.Iterable,(e,t,n)=>n.set(e,t));i.k.implement(Object,(e,t,n)=>{if(Object(r.is)(n[e],t))return n;const i=Object.assign({},n);i[e]=t;return i});t.a=i.k},"0IK8":function(e,t,n){"use strict";n.r(t);var r=n("yivD"),i=n("DFoL");function a(e="",t){const n=Object(r.a)("deprecated-function-");return(...r)=>{Object(i.b)({message:"Deprecation Warning: "+e,key:n});return t(...r)}}var s=n("MJM1"),o=n("DdHT"),c=n("2Zef"),u=n("MWj0"),l=n("bWKF"),d=n("qkre"),p=n("iapW"),f=n("PJuP"),h=n("cPs9"),b=n("9F2+"),g=n("Zui/"),m=n("JGJA"),O=n("QYOI");const v=e=>{const t=Object(b.a)(e);if(t){const e=t.find(e=>Object(m.a)("@type",e)===g.e);return e&&e.size>=1?e:Object(O.List)()}return Object(O.List)()};var j=n("L8e7");n.d(t,"getClientType",(function(){return y}));n.d(t,"getId",(function(){return E}));n.d(t,"getContentType",(function(){return T}));n.d(t,"getPlainTextForCmf",(function(){return w}));n.d(t,"getRichTextForCmf",(function(){return I}));n.d(t,"getStatusForCmf",(function(){return C}));n.d(t,"getStatusTimestamp",(function(){return A}));n.d(t,"getMessageIdForCmf",(function(){return x}));n.d(t,"getAuditForCmf",(function(){return S}));n.d(t,"getStrippedAttachmentCount",(function(){return _}));n.d(t,"getHasInlineImagesStripped",(function(){return R}));n.d(t,"getFileIds",(function(){return D}));n.d(t,"getAttachmentStrippedCount",(function(){return M}));n.d(t,"hasInlineImagesStripped",(function(){return N}));n.d(t,"getTopLevelType",(function(){return P}));n.d(t,"getInReplyToId",(function(){return k}));n.d(t,"getDirectReplyToMessageId",(function(){return L}));n.d(t,"getSenderTypeForCMF",(function(){return F}));n.d(t,"getMessageSendFailure",(function(){return U}));n.d(t,"getSender",(function(){return G}));n.d(t,"getSenderKey",(function(){return q}));n.d(t,"getSenderType",(function(){return V}));n.d(t,"getHasMetadata",(function(){return z}));n.d(t,"getSubject",(function(){return J}));n.d(t,"getFromAddress",(function(){return K}));n.d(t,"getOriginalSenderEmail",(function(){return Y}));n.d(t,"getOriginalSenderName",(function(){return Q}));n.d(t,"getFromName",(function(){return Z}));n.d(t,"getAttachments",(function(){return X}));n.d(t,"getToAddresses",(function(){return $}));n.d(t,"getBCC",(function(){return ee}));n.d(t,"getCC",(function(){return te}));n.d(t,"getConnectedAccountAddress",(function(){return ne}));n.d(t,"getHasReplies",(function(){return re}));n.d(t,"getPreviousRepliesHtml",(function(){return ie}));n.d(t,"getPreviousRepliesPlainText",(function(){return ae}));n.d(t,"getIsMemberOfForwardedSubthread",(function(){return se}));n.d(t,"getIsForward",(function(){return oe}));n.d(t,"getLocalizedErrorKey",(function(){return ce}));n.d(t,"getErrorMessage",(function(){return ue}));n.d(t,"getAudit",(function(){return S}));n.d(t,"getMessageDeleteStatus",(function(){return H}));n.d(t,"getEmailMessageId",(function(){return x}));n.d(t,"getPlainText",(function(){return w}));n.d(t,"getRichText",(function(){return I}));n.d(t,"getSenderId",(function(){return W}));n.d(t,"getStatus",(function(){return C}));n.d(t,"getTimestamp",(function(){return B}));n.d(t,"getType",(function(){return P}));const y=Object(s.a)(u.c),E=Object(s.a)(u.h),T=Object(s.a)(u.d),w=Object(s.a)(u.w),I=Object(s.a)(u.r),C=Object(s.a)(u.n),A=Object(s.a)(u.o),x=Object(s.a)(u.l),S=Object(s.a)(u.b),_=Object(s.a)(u.v),R=Object(s.a)(u.g),D=Object(o.a)(f.a,p.a),M=Object(o.a)(f.a,_),N=Object(o.a)(v,R),P=Object(s.a)(u.y),k=Object(s.a)(u.i),L=Object(s.a)(u.e),B=Object(s.a)(u.x),F=Object(s.a)(u.t),H=Object(s.a)(u.k),U=Object(s.a)(u.m),G=Object(s.a)(u.s),q=e=>{const t=F(e);return Object(h.a)(t)},W=e=>F(e)===c.SYSTEM_SENDER?null:Object(s.a)(["sender",q(e)],e),V=e=>Object(l.a)(F(e)),z=e=>!!Object(j.a)(e),J=e=>d.m(e),K=e=>d.d(e),Y=e=>d.i(e),Q=e=>d.j(e),Z=e=>d.e(e),X=a("Use fileAttachmentGetters instead.",e=>D(e)),$=e=>d.n(e),ee=e=>d.a(e),te=e=>d.b(e),ne=e=>d.c(e),re=e=>d.f(e),ie=e=>d.k(e),ae=e=>d.l(e),se=e=>d.h(e),oe=e=>d.g(e),ce=Object(s.a)(u.j),ue=Object(s.a)(u.f)},"0JoJ":function(e,t,n){"use strict";var r=n("ZVbf"),i=n("4e8t"),a=n.n(i),s=n("rwJP"),o=n.n(s),c=n("1EKh");const u=Object(r.createStack)(o.a,Object(c.a)()),l=a()(u);t.a=l},"0Me1":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("LJpC"),i=n("HCGK");const a=Object(r.a)(i.a)},"0NIc":function(e,t,n){"use strict";var r=n("QYOI"),i=n("kq2S");t.a=Object(r.Record)({assignedAgentId:null,channelDetails:Object(i.a)(),currentUrl:null,latestMessageTimestamp:0,latestReadTimestamp:0,responder:null,originalGenericChannelId:null,status:null,threadId:null,unseenCount:0,hasFileAttachment:!1,previewText:null,previewMessageId:null},"Thread")},"0U0A":function(e,t,n){"use strict";n.r(t);n.d(t,"getChannelInstanceId",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("647q");const s=Object(r.a)([a.getLatestWidgetData],Object(i.a)("channelInstanceId"))},"0Zm1":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));n.d(t,"b",(function(){return o}));n("slCD");var r=n("Ktcs"),i=n.n(r),a=(n("Zulv"),n("CyI/"),n("xr6y"));n("r1tY"),n("Ex4o"),n("Te0v");"undefined"!=typeof window&&window.visualViewport;new WeakMap;"undefined"!=typeof window&&window.visualViewport;const s=[];function o(e,t){let{onClose:n,shouldCloseOnBlur:i,isOpen:o,isDismissable:c=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:l}=e;Object(r.useEffect)(()=>{o&&s.push(t);return()=>{let e=s.indexOf(t);e>=0&&s.splice(e,1)}},[o,t]);let d=()=>{s[s.length-1]===t&&n&&n()},p=e=>{if((!l||l(e.target))&&s[s.length-1]===t){e.stopPropagation();e.preventDefault()}},f=e=>{if(!l||l(e.target)){if(s[s.length-1]===t){e.stopPropagation();e.preventDefault()}d()}},h=e=>{if("Escape"===e.key&&!u){e.stopPropagation();e.preventDefault();d()}};Object(a.g)({ref:t,onInteractOutside:c?f:null,onInteractOutsideStart:p});let{focusWithinProps:b}=Object(a.e)({isDisabled:!i,onBlurWithin:e=>{l&&!l(e.relatedTarget)||n()}}),g=e=>{e.target===e.currentTarget&&e.preventDefault()};return{overlayProps:Object.assign({onKeyDown:h},b),underlayProps:{onPointerDown:g}}}"undefined"!=typeof window&&window.visualViewport,new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const c=i.a.createContext(null);function u(e){let{children:t}=e,n=Object(r.useContext)(c),[a,s]=Object(r.useState)(0),o=Object(r.useMemo)(()=>({parent:n,modalCount:a,addModal(){s(e=>e+1);n&&n.addModal()},removeModal(){s(e=>e-1);n&&n.removeModal()}}),[n,a]);return i.a.createElement(c.Provider,{value:o},t)}function l(){let e=Object(r.useContext)(c);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}function d(e){let{modalProviderProps:t}=l();return i.a.createElement("div",Object.assign({"data-overlay-container":!0},e,{},t))}function p(e){return i.a.createElement(u,null,i.a.createElement(d,e))}({"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}});new WeakMap},"0c9j":function(e,t,n){"use strict";n.r(t);n.d(t,"getWindowUrl",(function(){return i}));const r=e=>{try{return Boolean(new URL(e))}catch(e){return!1}},i=()=>{const e=new URL(window.location.href),t=e.searchParams.get("url");return t&&r(t)?new URL(t):e}},"0fuM":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"a",(function(){return a}));const r="thread-list",i="thread-view",a="knowledge-base"},"1+S/":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={HUBLYTICS_EVENTS_53:"HUBLYTICS_EVENTS_53",HMPL:"__hmpl"}},"12C0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CONTEXT_UPDATE"},"15+n":function(e,t,n){"use strict";n.r(t);n.d(t,"formatOfficeHoursWillReturnTimestamp",(function(){return s}));var r=n("npjq"),i=n("mM7p"),a=n("6mRi");const s=(e,t)=>{const n=new Date(e),s=n.toLocaleTimeString(t,{hour:"2-digit",minute:"2-digit"});return Object(i.timestampIsToday)(e)?r.a.text("conversationsVisitorUIAvailability.sameDay",{time:s}):Object(a.timestampIsTomorrow)(e)?r.a.text("conversationsVisitorUIAvailability.nextDay",{time:s}):r.a.text("conversationsVisitorUIAvailability.nextWeek",{dayOfWeek:n.toLocaleDateString(t,{weekday:"long"}),time:s})}},"19qb":function(e,t,n){e.exports=n.dlbpr(1,73)},"1EKh":function(e,t,n){"use strict";var r=n("ZVbf"),i=n("LN55"),a=n("LZPL"),s=n.n(a),o=n("Gpbg"),c=n.n(o);const u=5e3,l=()=>s.a.deployed()?"app":"local",d=()=>s.a.isQa()?"qa":"",p=()=>c.a.get(`https://${l()}.hubspot${d()}.com/network-check/is-the-internet-up.txt`,{timeout:u,query:{rnd:Math.random()}}).then(()=>({online:!0}),e=>({online:!1,error:e})),f=(e,...t)=>Object.assign(new Error,...t,{message:e}),h=e=>f("Network Unavailable",Object.assign({},e,{retry:null}));n.d(t,"a",(function(){return g}));const b=["TIMEOUT","NETWORKERROR"],g=()=>{let e=!0;return Object(r.createStack)(Object(i.onResponse)(t=>{e=!0;return Promise.resolve(t)}),Object(i.onResponseError)(t=>{const{status:n,errorCode:r}=t;return 0===n&&b.includes(r)?e?p().then(({online:n})=>{if(!n){e=!1;return Promise.reject(h(t))}return Promise.reject(t)}):Promise.reject(h(t)):Promise.reject(t)}))}},"1Hpf":function(e,t,n){"use strict";var r=n("Ut5p"),i=n("QYOI"),a=n("OIId");const s=new i.Map,o={[a.a]:(e,t)=>{const{error:n,threadId:r}=t.payload;return e.set(r,n)},[a.f]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[a.d]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)},[a.g]:(e,t)=>{const{threadId:n}=t.payload;return e.delete(n)}};t.a=Object(r.c)(o,s)},"1UfY":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("MBJP"),i=n("x1JE"),a=n("BnUr"),s=n("LB97"),o=n("BMD5");const c=Object(r.a)([s.a,o.a],(e,t)=>{const n=Object(a.getThreadId)(t);return"number"!=typeof n?null:Object(i.getEntry)(n,e)})},"1YzF":function(e,t,n){"use strict";n.r(t);n.d(t,"selectThread",(function(){return a}));var r=n("Ut5p"),i=n("Qvwz");const a=Object(r.b)(i.b,e=>({threadId:e}))},"1pGl":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"e",(function(){return u}));n.d(t,"h",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"d",(function(){return p}));n.d(t,"b",(function(){return f}));n.d(t,"g",(function(){return h}));n.d(t,"f",(function(){return b}));var r=n("8ASW"),i=n("Rd7q"),a=n("CQiV"),s=n("HY4P");const o="en",c={nb:"no-no",noNO:"no-no",pt:"pt-br",no:"no-no",ca:"ca-es",ar:"ar-eg"},u={pt:"pt-br","en-ie":"en-gb","en-nz":"en-au","es-co":"es-do","es-ar":"es-do","es-mx":"es",de:"de",ja:"ja","en-gb":"en-gb","en-in":"en-au",es:"es","zh-cn":"zh-cn","zh-hk":"zh-hk",nl:"nl","en-au":"en-au","en-ca":"en-ca",fi:"fi",fr:"fr","fr-ca":"fr-ca",it:"it","pt-br":"pt-br",sv:"sv",da:"da",pl:"pl",cs:"cs",ko:"ko",no:"nb","no-no":"nb",noNO:"nb","x-pseudo":"x-pseudo",id:"id",ro:"ro",ru:"ru",th:"th",hr:"hr",vi:"vi",hu:"hu",bn:"bn",af:"af","ar-eg":"ar",bg:"bg","ca-es":"ca",sl:"sl",tr:"tr",uk:"uk","he-il":"he",he:"he",sk:"sk",lt:"lt",ms:"ms","zh-tw":"zh-tw",tl:"tl-ph","pt-pt":"pt"};function l(e){if(!r.a.moment)return;if(!e||!e.id){r.a.moment.portalTz=r.a.manualTimezone?r.a.moment.portalTz:r.a.moment.userTz;r.a.timezone=r.a.manualTimezone||"US/Eastern";r.a.manualTimezone&&r.a.moment.tz.setDefault(r.a.manualTimezone);return}if(r.a.manualTimezone){r.a.moment.tz.setDefault(r.a.manualTimezone);return}const t=e.id;try{if(e["moment-data"]){r.a.moment.tz.zone(t)||r.a.moment.tz.add(`${t}|${e["moment-data"]}`);r.a.moment.tz(t);r.a.timezone=t}else window.Raven&&window.Raven.captureMessage("I18n failed to parse api-verify data")}catch(e){console.error("Unable to set up timezone",e);window.Raven&&window.Raven.captureException(e)}r.a.timezone=r.a.manualTimezone||window.I18N_RENDERED_TZ||r.a.timezone}function d(e){let t=(e||o).toLowerCase();const n=c[t]||c[t.substring(0,2)];n&&(t=n);return t||r.a.locale}function p(e){let t=d(e);t=u[t]&&u[t]||null;return t}function f(e){return r.a.langEnabled?e:[r.a.locale,...e]}function h(){r.a.manualLocale=window.I18N_MANUAL_LANG;r.a.manualTimezone=window.I18N_TZ;try{const e=localStorage&&localStorage.I18N_MANUAL_LANG,t=localStorage&&localStorage.I18N_TZ;if(e){s.a.counter("localStorage-overwrote-locale").increment();r.a.manualLocale=e}if(t){s.a.counter("localStorage-overwrote-timezone").increment();r.a.manualTimezone=t}}catch(e){r.a.debugLog("Failed access localStorage "+e)}}function b(){const e=document.querySelector("html");e.className=e.className.replace(/(^|\b)lang-[a-z]{2}($|\b)/,"");e.className+=" lang-"+Object(a.a)();e.setAttribute("lang",Object(i.a)())}},"1qF3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("sZZm"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.g,payload:{message:"User has interacted with the widget"}})}},"1sEq":function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return i}));var r=n("W/fk");class i extends r.b{constructor(e){super(e);this.resolved={}}report(e){if("COMPONENT_RENDERED"===e.type||this.resolved[e.payload.entry.id]&&"CHECKS_CHANGED"!==e.type)return;const{entry:{pathname:t,timestamp:n,expiredTimestamp:r,checks:i,id:a},routeSpec:s}=e.payload;if(!this.debug)return;const o=(...e)=>console.log(`[${this.libName}]`,t,...e),c=e=>e.toFixed(2)+"ms",u=e=>{this.options.timingOffset&&o(`adjusted: ${c(e+this.options.timingOffset)} (offset ${this.options.timingOffset})`)};switch(e.type){case"ROUTE_STARTED":{const{route:e}=s;o(`(${e})`);break}case"ROUTE_UNEXPECTED":o("(unexpected)");break;case"ROUTE_ABANDONED":o("(abandoned)");break;case"ROUTE_SUCCEEDED":{const{scenario:t}=e.payload.extra,r=this.toDuration(i,n,s.success[t]);o("(success) "+c(r));u(r);break}case"ROUTE_FAILED":{const{error:e}=s,t=this.toDuration(i,n,e);o("(failure) "+c(t));u(t);break}case"ROUTE_TIMEOUT_EXPIRED":{const e=r-n;o("(timeout) "+c(e));u(e);break}case"CHECKS_CHANGED":o("(update)")}switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_UNEXPECTED":case"ROUTE_SUCCEEDED":case"ROUTE_FAILED":this.resolved[a]=!0}}}},"2+C7":function(e,t,n){"use strict";n.r(t);n.d(t,"clearExistingTypingTimeout",(function(){return s}));var r=n("0IK8"),i=n("6T8d"),a=n("lEMs");const s=(e,t)=>(n,s)=>{const o=Object(r.getSenderId)(e),c=Object(i.typingStates)(s()),u=Object(a.getTypingTimeoutIdForAgentInThread)({threadId:""+t,senderId:""+o,typingStates:c});"number"==typeof u&&clearTimeout(u)}},"20e/":function(e,t,n){"use strict";var r=n("MBJP"),i=n("kWFB"),a=n("NpZo"),s=n("xk3e"),o=n("Avso");const c=Object(r.a)([s.getAssignedResponderInWidget],e=>!e||Object(o.getIsBot)(e));var u=n("J4oD");n.d(t,"a",(function(){return l}));const l=Object(r.a)([a.getSelectedThreadId,c,u.historyDataForThread],(e,t,n)=>null!==e&&t&&Boolean(n)&&Object(i.hasMessages)(n))},"20uS":function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));const r=["email","userId","hubId","hstc","utk","deviceId","device_id"],i=["what_event_subtype","what_value","what_value_str","where_subscreen2"],a=["userId","hubId","hstc","utk","email","lang","deviceId","namespace",...i]},"2BFa":function(e,t,n){"use strict";n.r(t);n.d(t,"gdprCookieConsentOnExitIntentEnabled",(function(){return o}));n.d(t,"gdprCookieConsentOnWidgetLoadEnabled",(function(){return c}));var r=n("hj2G"),i=n("Jpeq"),a=n("647q"),s=n("VTHq");const o=(e,t)=>{const n=Object(a.getLatestWidgetData)(e),o=Object(s.getAPIEnableWidgetCookieBannerOnExitIntent)(e);return Object(r.gdprCookieConsentPrompt)(t||n)===i.b||o},c=e=>Object(r.gdprCookieConsentPrompt)(e)===i.c},"2Sm/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("CREATE_NEW_THREAD")},"2Zef":function(e,t,n){"use strict";n.r(t);n.d(t,"VISITOR_SENDER",(function(){return r}));n.d(t,"AGENT_SENDER",(function(){return i}));n.d(t,"BOT_SENDER",(function(){return a}));n.d(t,"SYSTEM_SENDER",(function(){return s}));n.d(t,"VID_SENDER",(function(){return o}));n.d(t,"INTEGRATOR_SENDER",(function(){return c}));const r="VISITOR_SENDER",i="AGENT_SENDER",a="BOT_SENDER",s="SYSTEM_SENDER",o="VID_SENDER",c="INTEGRATOR_SENDER"},"2fjV":function(e,t,n){"use strict";var r=n("rCfO"),i=n("xZ3y"),a=n("nf9S"),s=n("0IK8"),o=n("GRT8");function c(e){const t=Object(s.getType)(e);return o.a.includes(t)}var u=n("/OK6"),l=n("kZvQ"),d=n("Lp6C"),p=n("AYvj"),f=n("jvmB"),h=n("k09d"),b=n("2Sm/"),g=n("BnUr"),m=n("PaBm"),O=n("BxyF"),v=n("xk3e"),j=n("t4ZQ"),y=n("Mx3c");const E=1e3,T=e=>t=>{const n={},s=e=>clearTimeout(n[e]),o=Object(r.default)((t,r,i)=>{n[t]=setTimeout(()=>{e.dispatch(Object(f.default)({channel:r,threadId:t}))},i)});return n=>{switch(n.type){case i.THREAD_CREATED_AND_NETWORK_ONLINE:case b.a.SUCCEEDED:{const t=Object(O.getAsyncPubSubClient)(e.getState());if(!Object(m.isClientReady)(t))break;let r,a;if(n.type===b.a.SUCCEEDED){r=n.payload.threadId;a=n.payload.channel}if(n.type===i.THREAD_CREATED_AND_NETWORK_ONLINE){const t=Object(h.a)(e.getState());a=Object(g.getChannelName)(t);r=Object(g.getThreadId)(t)}const s=Object(p.widgetIsInAwayMode)(e.getState());if(!(Object(j.getAgentType)(Object(v.getAssignedResponderInWidget)(e.getState()))===y.BOT)&&Object(d.shouldCaptureVisitorEmailAddress)(e.getState())){const t=Object(l.a)(e.getState());o(r,a,s?E:t||E)}break}case i.RECEIVED_INCOMING_MESSAGE:{const{message:e,threadId:t}=n.payload;Object(a.isConversationalMessage)(e)&&!c(e)&&Object(u.isFromAgent)(e)&&s(t);break}}return t(n)}};t.a=T},"2fwB":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bYG+");const i=Object(r.a)("name");Object(r.a)("type")},"2gT5":function(e,t,n){"use strict";n.r(t);n.d(t,"isPersistedThread",(function(){return s}));var r=n("DdHT"),i=n("BnUr"),a=n("eg5p");const s=Object(r.a)(i.getThreadId,e=>e!==a.a)},"2kog":function(e,t,n){"use strict";n.r(t);n.d(t,"getInitialResponder",(function(){return o}));var r=n("MBJP"),i=n("xk3e"),a=n("QYon"),s=n("RyNb");const o=Object(r.a)([i.getAssignedResponderInWidget,a.a,s.a],(e,t,n)=>n||(e||t.get(0)))},"3+Hx":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("slCD"),i=n("Zulv"),a=n("okxY"),s=n("xr6y");function o(e,t){let n,{elementType:o="a",onPress:c,onPressStart:u,onPressEnd:l,onClick:d,isDisabled:p}=e,f=Object(r.a)(e,["elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled"]);"a"!==o&&(n={role:"link",tabIndex:p?void 0:0});let{focusableProps:h}=Object(a.d)(e,t),{pressProps:b,isPressed:g}=Object(s.j)({onPress:c,onPressStart:u,onPressEnd:l,isDisabled:p,ref:t}),m=Object(i.b)(f,{labelable:!0}),O=Object(i.i)(h,b);return{isPressed:g,linkProps:Object(i.i)(m,Object.assign({},O,{},n,{"aria-disabled":p||void 0,onClick:e=>{b.onClick(e);if(d){d(e);console.warn("onClick is deprecated, please use onPress")}}}))}}},"30KC":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_INBOX_UPDATED"},"34eX":function(e,t,n){var r=n("TG7G");function i(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}e.exports=i},"38AR":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("9f1P"),c=n.n(o),u=n("t6nY"),l=n.n(u),d=n("6Jpi"),p=n("4fRi"),f=n("+KD7"),h=n("JxxT");const b={small:"small","extra-small":"extra-small",default:"default"},g=8,m=c.a.div.withConfig({displayName:"VisitorWidgetStyleWrapper__WidgetStyleWrapper",componentId:"sc-1yffujg-0"})(["display:flex;flex-direction:column;align-items:flex-end;height:",";width:",";margin-top:",";transform:",";transform-origin:bottom right;"],({inline:e,mobile:t})=>e||t?"100%":void 0,({mobile:e})=>e?"100%":void 0,({inline:e})=>e?"0":void 0,({size:e})=>e===b.small?"scale(0.75)":e===b["extra-small"]?"scale(0.5)":void 0),O={[d.a]:Object(o.css)(["margin-left:0;margin-right:","px;"],h.j),[d.b]:Object(o.css)(["margin-left:","px;margin-right:0;"],h.j)},v=c.a.div.withConfig({displayName:"VisitorWidgetStyleWrapper__WidgetContentStyleWrapper",componentId:"sc-1yffujg-1"})(["height:",";background:",";border-radius:","px;box-shadow:0 5px 20px rgba(0,0,0,0.1);position:relative;width:","px;transition:bottom 0.25s ease-in-out;&.inline{box-shadow:none;height:100%;margin:0;width:100%;border-radius:0;}",""],({mobile:e,browserWindowHeight:t,showCloseButton:n})=>e?"100%":Object(p.a)(t,{showCloseButton:n})+"px",f.r,g,h.b,({widgetLocation:e})=>O[e||d.b]),j="chat-widget-wrapper",y=e=>{const{browserWindowHeight:t,children:n,className:a,inline:s=!1,showCloseButton:o=!0,size:c=b.default,style:u,mobile:p,widgetLocation:f=d.b,forwardedRef:h}=e,g=Object(r.a)(e,["browserWindowHeight","children","className","inline","showCloseButton","size","style","mobile","widgetLocation","forwardedRef"]);return Object(i.jsx)(m,{style:u,inline:s,size:c,mobile:!!p,"data-test-id":"widget-style-wrapper",children:Object(i.jsx)(v,Object.assign({className:l()("chat-widget",a,p&&"mobile",s&&"inline"),"data-test-id":j,browserWindowHeight:t,widgetLocation:f,mobile:!!p,showCloseButton:!!o,ref:h},g,{children:n}))})};y.propTypes={browserWindowHeight:s.a.number.isRequired,children:s.a.node.isRequired,className:s.a.string,forwardedRef:s.a.object,inline:s.a.bool.isRequired,mobile:s.a.bool,showCloseButton:s.a.bool,size:s.a.oneOf(Object.keys(b)).isRequired,style:s.a.object,widgetLocation:d.c};y.defaultProps={inline:!1,showCloseButton:!0,size:b.default,widgetLocation:d.b};y.displayName="VisitorWidgetStyleWrapper";t.b=y},"3Ezh":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="Helvetica, Arial, sans-serif"},"3HLt":function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"g",(function(){return u}));const r=["@type"],i=["fallback"],a=["userIds"],s=["teamIds"],o=["customChatName"],c=["companyLogoUrl"],u=["useCustomBrandingAsAgentAlias"]},"3MJX":function(e,t,n){"use strict";var r=n("QgEn");n("Ktcs");const i=e=>Object(r.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{d:"M2.276.39L12 10.115 21.724.391c.486-.486 1.254-.519 1.777-.098l.108.098c.521.52.521 1.364 0 1.885L13.886 12l9.723 9.724c.521.52.521 1.365 0 1.885-.52.521-1.364.521-1.885 0L12 13.886l-9.724 9.723c-.486.486-1.254.519-1.777.098l-.108-.098c-.521-.52-.521-1.364 0-1.885L10.114 12 .391 2.276C-.13 1.756-.13.911.39.391.91-.13 1.755-.13 2.276.39z",id:"close__a"})}),Object(r.jsx)("use",{xlinkHref:"#close__a",fillRule:"evenodd"})]}));i.displayName="SVGClose";t.a=i},"3Yas":function(e,t,n){"use strict";function r(e){return()=>e}function i(e){return"function"==typeof e}function a(e){return"number"==typeof e&&!isNaN(e)}var s=n("yivD");function o(e){return"function"==typeof Symbol?Symbol(e):Object(s.a)(e)}var c=n("lTIY");const u=o("protocolType");function l(e,t){switch(t){case null:case void 0:return""+t;default:return t.constructor&&t.constructor[e]||t[e]}}function d(e,t){switch(t){case null:return"null";case void 0:return"undefined";default:return t[e]||Object(s.a)()}}function p(e,t){switch(t){case null:return"null";case void 0:return"undefined";default:return t.prototype.hasOwnProperty(e)?t.prototype[e]:Object(s.a)()}}function f(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!1,value:n,writable:!0});return e}function h({args:e,name:t,fallback:n}){const r=e.indexOf(u),i=o("__p_"+t),a={},s=Object(c.a)(e.length,(...e)=>{const s=e[r],o=l(i,s),c=o&&a[o]||n;if(!c)throw new Error(`${t}: not implemented for type \`${s}\``);return c(...e)});s.implement=(e,t)=>{const n=d(i,e);null==e||e[i]||f(e,i,n);a[n]=t;return t};s.implementInherited=(e,t)=>{const n=p(i,e);null==e||e.prototype.hasOwnProperty(i)||f(e.prototype,i,n);a[n]=t;return t};return s}h.TYPE=u;n.d(t,"b",(function(){return g}));n.d(t,"a",(function(){return m}));n.d(t,"c",(function(){return O}));n.d(t,"d",(function(){return v}));n.d(t,"e",(function(){return j}));n.d(t,"f",(function(){return y}));n.d(t,"g",(function(){return E}));n.d(t,"h",(function(){return T}));n.d(t,"i",(function(){return w}));n.d(t,"j",(function(){return I}));n.d(t,"k",(function(){return C}));n.d(t,"l",(function(){return A}));n.d(t,"m",(function(){return x}));const b=r(!0),g=(h({args:[h.TYPE],name:"clear"}),h({args:[h.TYPE],name:"count"})),m=h({args:[b,h.TYPE],name:"concat"}),O=(h({args:[h.TYPE],name:"entrySeq"}),h({args:[i,h.TYPE],name:"every"})),v=h({args:[i,h.TYPE],name:"filter"}),j=(h({args:[a,h.TYPE],name:"flattenN"}),h({args:[i,h.TYPE],name:"forEach"}),h({args:[b,h.TYPE],name:"get",fallback:(e,t)=>t[e]})),y=h({args:[b,h.TYPE],name:"has"}),E=h({args:[h.TYPE],name:"keySeq"}),T=h({args:[h.TYPE],name:"keyedEquivalent"}),w=h({args:[i,h.TYPE],name:"map"}),I=h({args:[b,i,h.TYPE],name:"reduce"}),C=h({args:[b,b,h.TYPE],name:"set"}),A=h({args:[i,h.TYPE],name:"some"}),x=h({args:[i,h.TYPE],name:"sortBy"});h({args:[h.TYPE],name:"valueSeq"})},"3ZFB":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("qqP0"),i=n("OBCX"),a=n("xmwc"),s=n("p5It");const o=e=>t=>{t(Object(a.removeTimeOnPageTrigger)());const n=Object(r.timeOnPageTriggerDelaySeconds)(e),o=setTimeout(()=>{t(Object(s.executeTimeOnPageTrigger)())},1e3*n);t(Object(i.addTimeOnPageTriggerAction)(o))}},"3gKe":function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("JGJA");const a=Object(i.a)("gdpr"),s=Object(r.a)([a],Object(i.a)("consentToProcessStatus"));var o=n("3z2x");n.d(t,"getUserHasGivenConsentToProcess",(function(){return c}));const c=Object(r.a)([s],e=>{switch(e){case o.a:return!1;case o.b:return!0;case o.c:default:try{return localStorage.getItem("userHasGivenConsentToProcess")}catch(e){return!1}}})},"3z2x":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));const r="SHOULD_ASK_FOR_CONSENT",i="SHOULD_NOT_ASK_FOR_CONSENT",a="UNDETERMINED"},"46XF":function(e,t,n){"use strict";n.d(t,"d",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"c",(function(){return u}));var r=n("xCrP"),i=n("g4ag"),a=n("N7dr");const s=Object(r.a)(a.a),o=Object(i.a)(a.c),c=Object(i.a)(a.b);function u(e){return Object(i.a)(a.d,Date.now(),e)}},"47FM":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("jxkM"),i=n("ktW+"),a=n("L0zh"),s=n("647q"),o=n("tTno"),c=n("y5Tz"),u=n("wD2U"),l=n("g9p1"),d=n("PBVa"),p=n("QgQx"),f=n("wrz1");const h=()=>(e,t)=>{Object(c.a)();const n=t(),h=Object(s.getLatestWidgetData)(n),b=!Object(d.shouldOverrideTrigger)(Object(l.getWidgetStartOpen)(n));Object(f.a)(t())||(Object(o.scrollTriggerEnabled)(h)&&Object(i.getPopOpenWidget)(n)&&!Object(u.getIsMobile)(n)&&b?e(Object(r.toggleOpen)({isOpened:!0})):Object(o.scrollTriggerEnabled)(h)&&!Object(p.getShouldHideWelcomeMessage)(n)&&e(Object(a.toggleInitialMessageBubble)(!0)))}},"4Brc":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("visitorIdentity",e)},"4SpI":function(e,t,n){"use strict";n.r(t);var r=n("BxyF"),i=n("k8Ub"),a=n("0IK8"),s=n("nf9S"),o=n("8Xfw"),c=n("/OK6"),u=n("UxsU"),l=n("BnUr");function d(e){return Object(l.getStatus)(e)===u.a.ENDED}var p=n("Ut5p"),f=n("mEYk"),h=n.n(f),b=n("A1pw"),g=n("qQrL"),m=n("c2PF"),O=n("KXN9"),v=n("MBJP"),j=n("ZSXR");const y=Object(v.a)(j.a,O.c);var E=n("VToG");n.d(t,"publishMessageStarted",(function(){return T}));n.d(t,"publishMessageSucceeded",(function(){return w}));n.d(t,"publishMessageFailed",(function(){return I}));n.d(t,"publishMessage",(function(){return A}));const T=Object(p.b)(g.b.STARTED,({channel:e,message:t,messageKey:n,threadId:r})=>({channel:e,message:t,messageKey:n,threadId:r})),w=Object(p.b)(g.b.SUCCEEDED,({channel:e,messageKey:t,publishedMessage:n,threadId:r})=>({channel:e,messageKey:t,publishedMessage:n,threadId:r})),I=Object(p.b)(g.b.FAILED,({channel:e,messageKey:t,message:n,threadId:r,error:i})=>({channel:e,messageKey:t,message:n,threadId:r,error:i}));let C;const A=({channel:e,message:t,threadId:n})=>(u,l)=>{const p=Object(m.getThreadByThreadId)(l(),{threadId:n});if(t.id===C){h.a.captureMessage("publishMessage attempted duplicate message",{level:"warning",extra:{messageId:t.id}});return Promise.resolve()}C=t.id;if(y(l())===E.c&&Object(c.isFromVisitor)(t)){u(I({channel:e,messageKey:Object(a.getId)(t),message:t,threadId:n,error:"message sent while threads fetching"}));return Promise.resolve()}if(d(p))return Promise.resolve();u(T({channel:e,message:t,messageKey:Object(a.getId)(t),threadId:n}));const f=Object(r.getPubSubClient)(l()),g={message:Object(o.serialize)(t),channel:e},O=f.publish(g).then(({data:r})=>{const i=Object(o.deserialize)({json:r});u(w({channel:e,messageKey:Object(a.getId)(t),publishedMessage:i,threadId:n}));u(Object(b.a)({updated:i,channel:e,message:t,threadId:n}))}).catch(r=>{u(I({channel:e,messageKey:Object(a.getId)(t),message:t,threadId:n,error:r}))});try{const e=Boolean(Object(i.a)(t));Object(s.isConversationalMessage)(t)&&!e&&d(p)&&h.a.captureMessage("VISITOR_MESSAGE_PUBLISHED_ON_CLOSED_THREAD",{extra:{threadId:n,publishData:g}})}catch(e){}O.catch(e=>{setTimeout(()=>{throw e})});return O}},"4cwC":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.a,r.a)},"4dq7":function(e,t,n){"use strict";n.r(t);n.d(t,"addAvailabilityMessage",(function(){return o}));var r=n("mmfe"),i=n("As+A"),a=n("Zmc6");const s=5e3;function o({channel:e,threadId:t}){return(n,o)=>{if(!Object(a.default)(o()).get(e)){const a=setTimeout(()=>{n(Object(i.publishAvailabilityMessage)({channel:e,threadId:t}))},s);n(Object(r.a)(e,a))}}}},"4e8t":function(e,t,n){e.exports=n.dlbpr(1,14)},"4fRi":function(e,t,n){"use strict";var r=n("JxxT");function i({showCloseButton:e}){let t=r.a+r.i;e&&(t+=r.c);return t}function a({showCloseButton:e}){let t=r.h+r.i;e&&(t+=r.c);return t}function s(e,{showCloseButton:t}){const n=i({showCloseButton:t}),r=a({showCloseButton:t});return e>=n?0:e<=r?n-r:n-e}n.d(t,"a",(function(){return o}));function o(e,{showCloseButton:t}){return r.a-s(e,{showCloseButton:t})}},"4pOi":function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("SGAL");const s=Object(r.Map)();t.a=Object(i.c)({[a.a]:(e,t)=>{const{channel:n,timeout:r}=t.payload;return e.set(n,r)}},s)},"4vna":function(e,t,n){"use strict";var r=n("QYOI");const i=new r.Record({enabled:!1,scrollPercentage:50},"ScrollPercentageTrigger");t.a=i},"53K1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("currentView")},"54uz":function(e,t,n){"use strict";var r=n("QgEn");n("Ktcs");const i=e=>Object(r.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{d:"M20.054.39c-.521-.52-1.365-.52-1.885 0l-3.166 3.166H3.111C1.396 3.556 0 4.95 0 6.667v14.222C0 22.604 1.396 24 3.111 24h14.222c1.716 0 3.111-1.396 3.111-3.111v-5.333c0-.737-.596-1.334-1.333-1.334-.736 0-1.334.597-1.334 1.334v5.333c0 .244-.199.444-.444.444H3.111c-.244 0-.444-.2-.444-.444V6.667c0-.245.2-.444.444-.444h9.226l-4.835 4.834c-.147.147-.257.325-.322.521l-1.777 5.333c-.16.48-.036 1.007.321 1.365.255.254.595.39.943.39.142 0 .284-.022.422-.069l5.333-1.777c.196-.065.375-.175.52-.322L23.61 5.83c.521-.52.521-1.365 0-1.885L20.054.391z",id:"compose__a"})}),Object(r.jsx)("use",{xlinkHref:"#compose__a",fillRule:"evenodd"})]}));i.displayName="SVGCompose";t.a=i},"54vt":function(e,t,n){"use strict";n.r(t);n.d(t,"PRIMARY",(function(){return r}));n.d(t,"SECONDARY",(function(){return i}));const r="primary",i="secondary"},"57op":function(e,t,n){"use strict";n.d(t,"w",(function(){return s}));n.d(t,"k",(function(){return o}));n.d(t,"h",(function(){return u}));n.d(t,"t",(function(){return l}));n.d(t,"i",(function(){return d}));n.d(t,"u",(function(){return p}));n.d(t,"j",(function(){return f}));n.d(t,"v",(function(){return h}));n.d(t,"c",(function(){return b}));n.d(t,"n",(function(){return g}));n.d(t,"a",(function(){return m}));n.d(t,"l",(function(){return O}));n.d(t,"b",(function(){return v}));n.d(t,"m",(function(){return j}));n.d(t,"s",(function(){return y}));n.d(t,"g",(function(){return E}));n.d(t,"f",(function(){return T}));n.d(t,"r",(function(){return w}));n.d(t,"e",(function(){return I}));n.d(t,"q",(function(){return C}));n.d(t,"p",(function(){return A}));n.d(t,"d",(function(){return x}));n.d(t,"o",(function(){return S}));var r=n("pdKL");const i=Object(r.a)((e,t,n)=>{if("object"!=typeof n||null===n)throw new Error(`Error getting '${t}': the theme for VizExComponents has not been defined. Please provide a theme through the component props or styled-components ThemeProvider.`);if("object"!=typeof n[e]||null===n[e])throw new Error(`Error getting 'theme.${e}': the theme object is missing ${e} property. Please ensure the ${e} was defined on theme.`);if(!n[e][t])throw new Error(`Error getting '${t}': the property was not defined on theme.`);return n[e][t]}),a=Object(r.a)((e,t,n,r)=>Object.assign({},r,{[e]:Object.assign({},r[e],{[t]:n})}));function s(e){return a("colors")(e)}function o(e){return i("colors")(e)}function c(e){return a("font")(e)}const u=o("primary"),l=s("primary"),d=o("text"),p=s("text"),f=o("textOnPrimary"),h=s("textOnPrimary"),b=o("errorText"),g=s("errorText"),m=o("disabledBackground"),O=s("disabledBackground"),v=o("disabledText"),j=s("disabledText"),y=s("placeholderText"),E=o("placeholderText"),T=o("inputBorder"),w=s("inputBorder"),I=o("inputBackground"),C=s("inputBackground"),A=s("helpText"),x=o("helpText"),S=c("fontFamily");o("fontFamily")},"5ZU4":function(e,t,n){"use strict";var r={mode:"lazy",source:"I18n/lang",context:{af:function(){return n.e("I18n-lang-af").then(n.t.bind(null,"5J9a",7))},"ar-eg":function(){return n.e("I18n-lang-ar-eg").then(n.t.bind(null,"9cUw",7))},bg:function(){return n.e("I18n-lang-bg").then(n.t.bind(null,"enDn",7))},bn:function(){return n.e("I18n-lang-bn").then(n.t.bind(null,"2ioL",7))},"ca-es":function(){return n.e("I18n-lang-ca-es").then(n.t.bind(null,"d3FG",7))},cs:function(){return n.e("I18n-lang-cs").then(n.t.bind(null,"aBxb",7))},da:function(){return n.e("I18n-lang-da").then(n.t.bind(null,"f5ft",7))},de:function(){return n.e("I18n-lang-de").then(n.t.bind(null,"bIfN",7))},el:function(){return n.e("I18n-lang-el").then(n.t.bind(null,"Elwx",7))},"en-gb":function(){return n.e("I18n-lang-en-gb").then(n.t.bind(null,"BpI3",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"rmOE",7))},"es-mx":function(){return n.e("I18n-lang-es-mx").then(n.t.bind(null,"sO2o",7))},es:function(){return n.e("I18n-lang-es").then(n.t.bind(null,"gQm2",7))},et:function(){return n.e("I18n-lang-et").then(n.t.bind(null,"Mwea",7))},fi:function(){return n.e("I18n-lang-fi").then(n.t.bind(null,"U91Y",7))},"fr-ca":function(){return n.e("I18n-lang-fr-ca").then(n.t.bind(null,"eTR/",7))},fr:function(){return n.e("I18n-lang-fr").then(n.t.bind(null,"6hWD",7))},"he-il":function(){return n.e("I18n-lang-he-il").then(n.t.bind(null,"EFaT",7))},hi:function(){return n.e("I18n-lang-hi").then(n.t.bind(null,"pzG6",7))},hr:function(){return n.e("I18n-lang-hr").then(n.t.bind(null,"GKsO",7))},hu:function(){return n.e("I18n-lang-hu").then(n.t.bind(null,"QHwc",7))},id:function(){return n.e("I18n-lang-id").then(n.t.bind(null,"WztN",7))},it:function(){return n.e("I18n-lang-it").then(n.t.bind(null,"ZwCu",7))},ja:function(){return n.e("I18n-lang-ja").then(n.t.bind(null,"JsHX",7))},ko:function(){return n.e("I18n-lang-ko").then(n.t.bind(null,"5bVR",7))},lt:function(){return n.e("I18n-lang-lt").then(n.t.bind(null,"iQfO",7))},ms:function(){return n.e("I18n-lang-ms").then(n.t.bind(null,"KmBw",7))},nl:function(){return n.e("I18n-lang-nl").then(n.t.bind(null,"c1ol",7))},no:function(){return n.e("I18n-lang-no").then(n.t.bind(null,"3rFF",7))},pl:function(){return n.e("I18n-lang-pl").then(n.t.bind(null,"fHtQ",7))},"pt-br":function(){return n.e("I18n-lang-pt-br").then(n.t.bind(null,"aB4H",7))},"pt-pt":function(){return n.e("I18n-lang-pt-pt").then(n.t.bind(null,"NqiS",7))},ro:function(){return n.e("I18n-lang-ro").then(n.t.bind(null,"qDWE",7))},ru:function(){return n.e("I18n-lang-ru").then(n.t.bind(null,"6xwc",7))},sk:function(){return n.e("I18n-lang-sk").then(n.t.bind(null,"Bd94",7))},sl:function(){return n.e("I18n-lang-sl").then(n.t.bind(null,"UhEX",7))},sv:function(){return n.e("I18n-lang-sv").then(n.t.bind(null,"/zYT",7))},th:function(){return n.e("I18n-lang-th").then(n.t.bind(null,"RR1a",7))},tl:function(){return n.e("I18n-lang-tl").then(n.t.bind(null,"O83g",7))},tr:function(){return n.e("I18n-lang-tr").then(n.t.bind(null,"buqO",7))},uk:function(){return n.e("I18n-lang-uk").then(n.t.bind(null,"SwWm",7))},vi:function(){return n.e("I18n-lang-vi").then(n.t.bind(null,"zMgw",7))},"x-pseudo":function(){return n.e("I18n-lang-x-pseudo").then(n.t.bind(null,"FA1n",7))},"zh-cn":function(){return n.e("I18n-lang-zh-cn").then(n.t.bind(null,"qZ5b",7))},"zh-hk":function(){return n.e("I18n-lang-zh-hk").then(n.t.bind(null,"C3mt",7))},"zh-tw":function(){return n.e("I18n-lang-zh-tw").then(n.t.bind(null,"SNiJ",7))}}},i=n("1pGl");t.a=e=>e.register(r,{getLocales:i.b})},"5jhX":function(e,t,n){"use strict";n.r(t);n.d(t,"removeTypingTimeoutIdForAgentInThread",(function(){return a}));var r=n("Ut5p"),i=n("/UYW");const a=Object(r.b)(i.b,(e,t)=>({threadId:e,senderId:t}))},"5tDa":function(e,t,n){"use strict";var r=n("JGJA"),i=n("QYOI"),a=n("F4Hj"),s=n("/kBF"),o=n("yslo");const c=e=>e?new o.a({userIds:Object(i.List)([Object(r.a)("user_id",e)])}):new o.a,u=e=>e?Object(s.a)(e):c();var l=n("kg2E"),d=n("Hnb1"),p=n("4vna"),f=n("DmNG");const h=(e={})=>new l.a({displayOnScrollPercentage:new p.a(Object(r.a)("displayOnScrollPercentage",e)),displayOnTimeDelay:new f.a(Object(r.a)("displayOnTimeDelay",e)),displayOnExitIntent:new d.a(Object(r.a)("displayOnExitIntent",e))});n.d(t,"a",(function(){return b}));function b(e={}){const t=Object(r.a)("clientTriggers",e),n=Object(r.a)("chatHeadingConfig",e);return Object(a.a)(Object(i.fromJS)(e)).merge({clientTriggers:h(t),chatHeadingConfig:u(n)})}},"5vQK":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="DEFAULT_CLIENT_KEY"},"5xOy":function(e,t,n){"use strict";n.r(t);n.d(t,"resetStubbedThread",(function(){return a}));var r=n("Ut5p"),i=n("ffqu");const a=Object(r.b)(i.a)},"647q":function(e,t,n){"use strict";n.r(t);n.d(t,"getLatestWidgetData",(function(){return s}));var r=n("MBJP"),i=n("KXN9"),a=n("QDdj");const s=Object(r.a)(a.a,e=>Object(i.a)(e))},"66eB":function(e,t,n){"use strict";function r(e){return()=>e}const i=()=>{};i.thatReturns=r;i.thatReturnsFalse=r(!1);i.thatReturnsTrue=r(!0);i.thatReturnsNull=r(null);i.thatReturnsThis=()=>{};i.thatReturnsArgument=e=>e;t.a=i},"6IxM":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("bSHG");const i=(e,t)=>"p"===t&&e&&e.classList&&e.classList.contains("MsoNormal")&&e.children&&e.children.length,a=e=>{const t=r.c.createElement("o:p");if(e.innerHTML.includes(" ")){t.innerHTML=e.innerHTML.replace(/ /g,"").trim();return t}return e},s=e=>{if(!e||"o:p"!==e.tagName.toLowerCase())return!1;const t=a(e);return!t.children.length&&""===t.innerHTML},o=e=>e&&"span"===e.tagName.toLowerCase()&&s(e.firstElementChild),c=({node:e,node_name:t})=>{if(!i(e,t))return null;const n=e.firstElementChild;if(n&&o(n)&&n.childNodes.length>1){const t=n.firstElementChild;if(t){n.removeChild(t);return c({node:e,node_name:"p"})}}if(n&&(s(n)||o(n))){if(e.childNodes.length>1){e.removeChild(n);return c({node:e,node_name:"p"})}return{node:r.c.createElement("br")}}const a=r.c.createElement("div");Object.values(e.attributes).forEach(e=>{try{e.nodeValue&&a.setAttribute(e.nodeName,e.nodeValue)}catch(e){}});a.innerHTML=e.innerHTML.replace(/ /g," ").trim();return{node:a}}},"6Jpi":function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r);const a="RIGHT_ALIGNED",s="LEFT_ALIGNED";n.d(t,"c",(function(){return o}));n.d(t,"a",(function(){return s}));n.d(t,"b",(function(){return a}));const o=i.a.oneOf([s,a])},"6O34":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("QYOI"),i=n("6xui"),a=n("TWJS");const s=(e=[])=>Object(i.a)(Object(r.List)(),(e,t)=>e.push(Object(a.a)(t)),Object(r.List)(e))},"6OYF":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TYPICAL_RESPONSE_TIME"},"6T8d":function(e,t,n){"use strict";n.r(t);n.d(t,"typingStates",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("typingStates")},"6WMu":function(e,t,n){"use strict";n.r(t);n.d(t,"serializeThreadForExternalEvent",(function(){return i}));var r=n("BnUr");const i=e=>({conversationId:Object(r.getThreadId)(e)})},"6Y5w":function(e,t,n){"use strict";n.r(t);n.d(t,"sentByVisitorClient",(function(){return c}));var r=n("usEm"),i=n("ul3k"),a=n("Euo8"),s=n("UJtG"),o=n("/OK6");const c=e=>Object(o.isFromVisitor)(e)||Object(r.isEmailCapturePromptMessage)(e)||Object(i.isEmailCaptureResponseMessage)(e)||Object(s.isTypicalResponseTimeMessage)(e)||Object(a.isOfficeHoursMessage)(e)},"6d8N":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA");function a(e){return"object"==typeof e&&e?"function"==typeof e.toJS?e.toJS():"function"==typeof e.toJSON?e.toJSON():e:e}var s=n("Zui/");class o extends(Object(r.Record)({"@type":s.i,quickReplies:Object(r.OrderedSet)(),allowMultiSelect:!1,allowUserInput:!1},"QuickReplyAttachment")){constructor(e=Object(r.Map)()){const t=Object(r.fromJS)(Object(i.a)("quickReplies",e));super(Object.assign({},a(e),{quickReplies:Object(r.OrderedSet)(t)}))}}t.a=o},"6mRi":function(e,t,n){"use strict";n.r(t);n.d(t,"timestampIsTomorrow",(function(){return r}));const r=e=>{const t=new Date(e),n=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-1).valueOf()===new Date(n.getFullYear(),n.getMonth(),n.getDate()).valueOf()}},"6pce":function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("0fuM");t.a=i.a.oneOf([a.b,a.c,a.a])},"6pgb":function(e,t,n){"use strict";var r=n("aYGO"),i=n("g4ag"),a=n("PJuP"),s=n("0IK8"),o=n("VBzW");const c=Object(i.a)(o.b),u=Object(i.a)(o.d),l=Object(i.a)(o.c);Object(i.a)(o.a),Object(i.a)(o.e),Object(i.a)(o.f);n.d(t,"a",(function(){return d}));const d=(e,t)=>{t=Object(i.a)(r.d)(Object(s.getTimestamp)(e),t);t=c(Boolean(Object(a.a)(e)&&Object(a.a)(e).length),t);t=u(Object(s.getPlainText)(e),t);return t=l(Object(s.getId)(e),t)}},"6sJ9":function(e,t,n){"use strict";n.r(t);n.d(t,"getResponderByIdAndType",(function(){return s}));var r=n("x1JE"),i=n("MBJP"),a=n("bXuJ");const s=Object(i.b)(({responders:e,senderId:t,senderType:n})=>{if(!t||!n)return null;const i=Object(a.a)({senderId:t,senderType:n});return Object(r.getEntry)(i,e)})},"6xui":function(e,t,n){"use strict";var r=n("qjq5"),i=n("gjm2");t.a=Object(r.a)(i.a)},7719:function(e,t,n){"use strict";n.d(t,"e",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"b",(function(){return c}));const r="md",i="xs",a="sm",s="xxs",o="lg",c="xl"},"7CK0":function(e,t,n){"use strict";var r={mode:"lazy",source:"i18n-data/data/locales",context:{bn:function(){return n.e("i18n-data-data-locales-bn").then(n.t.bind(null,"eT/O",7))},cs:function(){return n.e("i18n-data-data-locales-cs").then(n.t.bind(null,"nf2r",7))},da:function(){return n.e("i18n-data-data-locales-da").then(n.t.bind(null,"/+G0",7))},de:function(){return n.e("i18n-data-data-locales-de").then(n.t.bind(null,"9Pvd",7))},el:function(){return n.e("i18n-data-data-locales-el").then(n.t.bind(null,"BZUh",7))},"en-au":function(){return n.e("i18n-data-data-locales-en-au").then(n.t.bind(null,"mU1X",7))},"en-ca":function(){return n.e("i18n-data-data-locales-en-ca").then(n.t.bind(null,"VtKT",7))},"en-gb":function(){return n.e("i18n-data-data-locales-en-gb").then(n.t.bind(null,"zv3j",7))},"en-ie":function(){return n.e("i18n-data-data-locales-en-ie").then(n.t.bind(null,"d3gs",7))},"en-in":function(){return n.e("i18n-data-data-locales-en-in").then(n.t.bind(null,"30Xk",7))},"en-nz":function(){return n.e("i18n-data-data-locales-en-nz").then(n.t.bind(null,"GBS4",7))},"en-us":function(){return n.e("i18n-data-data-locales-en-us").then(n.t.bind(null,"vynX",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"8Y7A",7))},"es-ar":function(){return n.e("i18n-data-data-locales-es-ar").then(n.t.bind(null,"gwgK",7))},"es-mx":function(){return n.e("i18n-data-data-locales-es-mx").then(n.t.bind(null,"/N0y",7))},es:function(){return n.e("i18n-data-data-locales-es").then(n.t.bind(null,"tIsI",7))},fi:function(){return n.e("i18n-data-data-locales-fi").then(n.t.bind(null,"Lcs2",7))},"fr-ca":function(){return n.e("i18n-data-data-locales-fr-ca").then(n.t.bind(null,"QkX2",7))},fr:function(){return n.e("i18n-data-data-locales-fr").then(n.t.bind(null,"nPfl",7))},"he-il":function(){return n.e("i18n-data-data-locales-he-il").then(n.t.bind(null,"jK0O",7))},hr:function(){return n.e("i18n-data-data-locales-hr").then(n.t.bind(null,"xyEa",7))},hu:function(){return n.e("i18n-data-data-locales-hu").then(n.t.bind(null,"hZ8T",7))},id:function(){return n.e("i18n-data-data-locales-id").then(n.t.bind(null,"weft",7))},it:function(){return n.e("i18n-data-data-locales-it").then(n.t.bind(null,"NGwE",7))},ja:function(){return n.e("i18n-data-data-locales-ja").then(n.t.bind(null,"yFci",7))},ko:function(){return n.e("i18n-data-data-locales-ko").then(n.t.bind(null,"u4N6",7))},lt:function(){return n.e("i18n-data-data-locales-lt").then(n.t.bind(null,"qYsQ",7))},ms:function(){return n.e("i18n-data-data-locales-ms").then(n.t.bind(null,"6it5",7))},nl:function(){return n.e("i18n-data-data-locales-nl").then(n.t.bind(null,"fr/p",7))},"no-no":function(){return n.e("i18n-data-data-locales-no-no").then(n.t.bind(null,"UWzM",7))},pl:function(){return n.e("i18n-data-data-locales-pl").then(n.t.bind(null,"RcmD",7))},"pt-br":function(){return n.e("i18n-data-data-locales-pt-br").then(n.t.bind(null,"b2SI",7))},"pt-pt":function(){return n.e("i18n-data-data-locales-pt-pt").then(n.t.bind(null,"52A5",7))},ro:function(){return n.e("i18n-data-data-locales-ro").then(n.t.bind(null,"j31A",7))},ru:function(){return n.e("i18n-data-data-locales-ru").then(n.t.bind(null,"hOM3",7))},sk:function(){return n.e("i18n-data-data-locales-sk").then(n.t.bind(null,"WJja",7))},sv:function(){return n.e("i18n-data-data-locales-sv").then(n.t.bind(null,"Wwx/",7))},th:function(){return n.e("i18n-data-data-locales-th").then(n.t.bind(null,"zaug",7))},tl:function(){return n.e("i18n-data-data-locales-tl").then(n.t.bind(null,"fLdh",7))},vi:function(){return n.e("i18n-data-data-locales-vi").then(n.t.bind(null,"h97c",7))},"zh-cn":function(){return n.e("i18n-data-data-locales-zh-cn").then(n.t.bind(null,"4VEW",7))},"zh-hk":function(){return n.e("i18n-data-data-locales-zh-hk").then(n.t.bind(null,"m6Fd",7))},"zh-tw":function(){return n.e("i18n-data-data-locales-zh-tw").then(n.t.bind(null,"9Ik6",7))}}},i=n("1pGl");t.a=e=>e.register(r,{getLocales:i.b})},"7Qhs":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CRM_OBJECT_LIFECYCLE_UPDATE"},"7eQh":function(e,t,n){"use strict";var r=n("uOZ5"),i=n("QYOI"),a=Object(i.Record)({"@type":r.a,companyLogoUrl:"",customChatName:"",useCustomBrandingAsAgentAlias:!1},"CompanyChatHeadingConfig"),s=n("yslo"),o=n("JGJA"),c=n("/kBF");class u extends(Object(i.Record)({"@type":r.b,fallback:null},"OwnerChatHeadingConfig")){constructor(e){const t=Object(i.fromJS)(e),n=Object(o.a)("fallback",t);super({fallback:Object(c.a)(n)})}}var l=u;n.d(t,"a",(function(){return d}));function d(e,t){switch(e){case r.c:return new s.a(t);case r.b:return new l(t);case r.a:default:return new a(t)}}},"7ede":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="MINUTES",i="HOURS"},"7jiL":function(e,t,n){"use strict";var r=n("QYOI"),i=n("kdZJ"),a=n("9Mwj"),s=n("BvOu");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null,echo:!1,sender:Object(r.Map)(),messageDeletedStatus:a.a,clientType:null},"ReadThreadMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)()})).filterNot(e=>void 0===e))}}t.a=o},"7pHJ":function(e,t,n){"use strict";n.d(t,"c",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"a",(function(){return o}));var r=n("I5zW");const i=Object(r.createMetricsFactory)("page-load",{library:"react-rhumb"}),a=Object(r.createMetricsFactory)("redux-store-metrics",{library:"react-rhumb"}),s=Object(r.createMetricsFactory)("application-memory",{library:"react-rhumb"}),o=Object(r.createMetricsFactory)("global-error",{library:"react-rhumb"})},"8+iK":function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SIMPLE",i="EMAIL"},"84LK":function(e,t,n){"use strict";var r=n("L0zh"),i=n("n6ol"),a=n("P5YW");const s=e=>Object(a.a)(i.e,e);var o=n("IKdf");n.d(t,"a",(function(){return c}));const c=()=>e=>{s();e(Object(r.toggleInitialMessageBubble)(!1,!0));e(Object(o.a)())}},"861u":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]);Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}});Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}});Object.defineProperty(t,"exports",{enumerable:!0});t.webpackPolyfill=1}return t}},"8ASW":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n("npjq").a},"8CDR":function(e,t,n){"use strict";var r=n("LZPL"),i=n.n(r);const a={hubapi:["api","email","etsu","feedback","internal","onboarding","nav","private","users","zorse"],hubspot:["app","developers","cms2","cta","forms","library","login","marketplace","onboarding","payment","services","signup","sites","spitfire","uploads"],hubteam:["graph","mesos","rodan2","tools","bootstrap","test"]},s=["sidekick","sidekickapp","hs-sites","mktg-grader","inbound","signals","private-hubteam","app-api"],o={hubapi:"api",hubspot:"app",hubteam:"tools"},c={sidekick:{true:{true:"local.getsidekick.com",false:"api.getsidekick.com"},false:{true:"local.getsidekickqa.com",false:"api.getsidekickqa.com"}},sidekickapp:{true:{true:"local.getsidekick.com",false:"app.getsidekick.com"},false:{true:"local.getsidekickqa.com",false:"app.getsidekickqa.com"}},"hs-sites":{true:{true:"local.hs-sites.com",false:"hs-sites.com"},false:{true:"local.qa.hs-sites.com",false:"qa.hs-sites.com"}},"mktg-grader":{true:{true:"local.grader.com",false:"marketing.grader.com"},false:{true:"local.graderqa.com",false:"marketing.graderqa.com"}},inbound:{true:{true:"local.inbound.org",false:"inbound.org"},false:{true:"local.dev.inbound.org",false:"dev.inbound.org"}},signals:{true:{true:"local.getsignals.com",false:"api.getsignals.com"},false:{true:"local.getsignalsqa.com",false:"api.getsignalsqa.com"}},"private-hubteam":{true:{true:"local.hubteam.com",false:"private.hubteam.com"},false:{true:"local.hubteamqa.com",false:"private.hubteamqa.com"}},"app-api":{true:{true:"local.hubspot.com",false:"api.hubspot.com"},false:{true:"local.hubspotqa.com",false:"api.hubspotqa.com"}}};class u{constructor(){this.lbDomainMap=u._buildLbDomainMap();this.domainLbMap=u._buildDomainLbMap(this.lbDomainMap)}static _buildLbDomainMap(){const e={};Object.keys(a).forEach(t=>a[t].forEach(n=>e[n]={true:{true:`local.${t}.com`,false:`${n}.${t}.com`},false:{true:`local.${t}qa.com`,false:`${n}.${t}qa.com`}}));s.forEach(t=>e[t]=c[t]);return e}static _buildDomainLbMap(e){const t=[!0,!1],n={};Object.keys(e).forEach(r=>t.forEach(i=>t.forEach(t=>{let a=e[r][i][t],s=n[a];if(s){s.lbs[r]=!0;s.multiple=!0}else n[a]={defaultLb:r,lbs:{[r]:!0},production:i,local:t}})));Object.keys(o).forEach(e=>{let t=o[e];n[`local.${e}qa.com`].defaultLb=t;n[`local.${e}.com`].defaultLb=t});return n}getDomain(e,t=!1,n=!1){let r=this.lbDomainMap[e];if(r)return r[t][n]}getLbInfo(e,t){let n=this.domainLbMap[e];if(!n)return;let r=n.defaultLb;t&&n.multiple&&n.lbs[t]&&(r=t);return{lb:r,production:n.production,local:n.local}}getLb(e,t){let n=this.getLbInfo(e,t);if(n)return n.lb}getProduction(e){let t=this.getLbInfo(e);if(t)return t.production}getLocal(e){let t=this.getLbInfo(e);if(t)return t.local}}const l=new u;l.STANDARD_LBS=a;l.NONSTANDARD_LBS=s;var d=l;const p=e=>"boolean"==typeof e||null!=e&&e.valueOf&&"boolean"==typeof e.valueOf();class f{constructor(e,t,n){this._paramIndex={};this._lonelyQMark=!1;this.encodedParamTuples=[];if(null===e||"object"!=typeof e||e instanceof f)(n=n||{}).url=e;else if(e===window.location){(n=n||{}).protocol=e.protocol.slice(0,-1);n.hostname=e.hostname;n.pathname=e.pathname;n.search=e.search;n.hash=e.hash}else n=e;if(n.url instanceof f){this._cloneFrom(n.url);this.upsertParams(n.params||{})}else{n.protocol=n.protocol||window.location.protocol.slice(0,-1);this._set(n,t)}this.update(t)}_set(e={},t={}){let n=e.url||"",r=n.indexOf("#");t.hash||(this.hash=r>=0?n.substr(r):e.hash||"");n=r>=0?n.substr(0,r):n;let i=n.indexOf("?");if(!t.params&&!t.search){this.search=i>=0?n.substr(i):e.search||"";this.upsertParams(e.params||{})}n=i>=0?n.substr(0,i):n;i=n.indexOf("//");i>0&&":"!=n[i-1]&&(i=-1);t.protocol||(this.protocol=i>0?n.substr(0,i-1):e.protocol);let a=i<0?0:i+2,s=n.indexOf("/",a);void 0===t.pathname&&(this.pathname=(s<0?"":n.substr(s))||e.pathname||"");if(void 0===t.hostname){let t=(s<0?n.substr(a):n.substr(a,s-a))||e.hostname;if(t){this._lb=e.lb;this.hostname=t}else e.lb&&this.setLb(e.lb,e)}}update(e={}){e.protocol&&(this.protocol=e.protocol);void 0!==e.hostname&&(this.hostname=e.hostname);void 0!==e.pathname&&(this.pathname=e.pathname);void 0!==e.hash&&(this.hash=e.hash);if(e.lb||void 0!==e.production||void 0!==e.local){let t={production:void 0!==e.production?e.production:this.production,local:void 0!==e.local?e.local:this.local};this.setLb(e.lb||this._lb,t)}if(e.search)this.search=e.search;else if(e.params)this.params=e.params;else if(e.paramTuples)this.paramTuples=e.paramTuples;else if(e.encodedParamTuples){this._lonelyQMark=!1;this.encodedParamTuples=e.encodedParamTuples.slice(0);this._rebuildParamInfo()}}setLb(e,t={}){let n=this.segments[0],r=this._getProduction(t.production,n),i=this._getLocal(t.local,n);this._hostname=d.getDomain(e,r,i);this._lb=this._hostname&&e;this._production=this._hostname&&r;this._local=this._hostname&&i}get href(){return this.protocol+"://"+(this.hostname||"")+this.pathname+this.search+this.hash}set href(e){this._set({url:e})}get search(){let e=this.encodedParamTuples.map(e=>e.join("=")).join("&");return e.length>0||this._lonelyQMark?"?"+e:e}set search(e){this.encodedParamTuples=[];this._lonelyQMark=!1;e.length>1?e.substr(1).split("&").forEach(e=>this.encodedParamTuples.push(e.split("="))):"?"===e[0]&&(this._lonelyQMark=!0);this._rebuildParamInfo()}normalize(){this._lonelyQMark=!1}set hostname(e){this._hostname=e;let t=d.getLbInfo(e,this._lb);this._lb=t&&t.lb;this._production=t&&t.production;this._local=t&&t.local}get hostname(){return this._hostname}get lb(){return this._lb}set lb(e){this.setLb(e)}get production(){return this._production}set production(e){if(this._lb){this._production=!!e;this._hostname=d.getDomain(this._lb,this._production,this._local)}}get local(){return this._local}set local(e){if(this._lb){this._local=!!e;this._hostname=d.getDomain(this._lb,this._production,this._local)}}get env(){return void 0===this._production?"unknown":this._production?"prod":"qa"}get lbInfo(){return{lb:this._lb,production:this._production,local:this._local}}get segments(){let e=this.pathname.replace(/(^\/)|\/$/g,"");return(e?e.split("/"):[]).map(e=>decodeURIComponent(e))}_rebuildParamInfo(){this._paramIndex={};this.validParams=!0;this.encodedParamTuples.forEach((e,t)=>{this.validParams=this.validParams&&2==e.length;let n=decodeURIComponent(e[0]);this._paramIndex[n]?this._paramIndex[n].push(t):this._paramIndex[n]=[t]})}get paramTuples(){return this.encodedParamTuples.map(e=>[decodeURIComponent(e[0]),decodeURIComponent(e[1])])}set paramTuples(e){this.encodedParamTuples=[];this._lonelyQMark=!1;e.forEach(e=>this.encodedParamTuples.push([e[0],e[1]]));this._rebuildParamInfo()}get params(){const e={};Object.keys(this._paramIndex).forEach(t=>e[t]=this.paramValue(t));return e}set params(e){this.encodedParamTuples=[];this._lonelyQMark=!1;Object.keys(e).forEach(t=>this.encodedParamTuples.push([t,encodeURIComponent(e[t])]));this._rebuildParamInfo()}paramValues(e){return(this._paramIndex[e]||[]).map(e=>decodeURIComponent(this.encodedParamTuples[e][1]))}paramValue(e){let t=this.paramValues(e);return t[t.length-1]}encodedParamValues(e){return(this._paramIndex[decodeURIComponent(e)]||[]).map(e=>this.encodedParamTuples[e][1])}encodedParamValue(e){let t=this.encodedParamValues(e);return t[t.length-1]}insertParamAt(e,t,n){this.insertEncodedParamAt(e,encodeURIComponent(t),encodeURIComponent(n))}insertEncodedParamAt(e,t,n){this.encodedParamTuples.splice(e,0,[t,n]);this._rebuildParamInfo()}pushParam(e,t){this.insertParamAt(this.encodedParamTuples.length,e,t)}pushEncodedParam(e,t){this.insertEncodedParamAt(this.encodedParamTuples.length,e,t)}upsertParam(e,t){let n=this._paramIndex[e]||[];n.length>0?n.forEach(n=>this.updateParamAt(n,e,t)):this.pushParam(e,t)}upsertParams(e){Object.keys(e).forEach(t=>this.upsertParam(t,e[t]))}updateParamAt(e,t,n){this.updateEncodedParamAt(e,encodeURIComponent(t),encodeURIComponent(n))}updateEncodedParamAt(e,t,n){this.encodedParamTuples.splice(e,1,[t,n]);this._rebuildParamInfo()}removeParam(e){let t=this._paramIndex[e]||[];if(t.length>0){t.reverse().forEach(e=>this.encodedParamTuples.splice(e,1));this._rebuildParamInfo()}}removeParamAt(e){this.encodedParamTuples.splice(e,1);this._rebuildParamInfo()}clearParams(){this.encodedParamTuples=[];this.validParams=!0;this._paramIndex={};this._lonelyQMark=!1}get valid(){return!(!this.protocol||!this._hostname||!this.pathname&&""!==this.pathname||!this.validParams)}get hostplus(){return(this.hostname||"")+this.pathname+this.search+this.hash}get pathplus(){return this.pathname+this.search+this.hash}clone(){return new f(this)}_cloneFrom(e){this.protocol=e.protocol;this._hostname=e._hostname;this._lb=e._lb;this._production=e._production;this._local=e._local;this.pathname=e.pathname;this.hash=e.hash;this.encodedParamTuples=e.encodedParamTuples.slice(0);this.validParams=e.validParams;this._paramIndex={};Object.keys(e._paramIndex).forEach(t=>{this._paramIndex[t]=e._paramIndex[t].slice(0)});this._lonelyQMark=e._lonelyQMark;return this}_getProduction(e,t){return p(e)?e:p(this._production)?this._production:"production"==i.a.get(t)}_getLocal(e,t){return p(e)?e:p(this._local)?this._local:!!t&&("local"==i.a.get(t)||f.localService(t))}static localService(e){try{if(window.localStorage){let t=e.toUpperCase()+"_LOCAL";return"true"==window.localStorage.getItem(t)}}catch(e){}return!1}}f.loaded=new f(window.location);t.a=f},"8Es2":function(e,t){var n=Object.prototype.toString;function r(e){return n.call(e)}e.exports=r},"8HpB":function(e,t,n){"use strict";n.r(t);var r=n("Sj+C"),i=n("mEYk"),a=n.n(i),s=n("H/Gg");const o=()=>n.e("conversations-internal-pub-sub-client-builder").then(n.bind(null,"ZH0a"));var c=n("IKdf"),u=n("E6wg"),l=n("jD0g"),d=n("Z8vq"),p=n("/Jc5"),f=n("fT+s"),h=n("bco+");const b=(e,t)=>e.filter(e=>!t.includes(e));var g=n("BnUr"),m=n("la86"),O=n("081M");n.d(t,"startPubSub",(function(){return v}));const v=({newThreadCreated:e}={})=>(t,n)=>{t(Object(c.a)());const i={skipSubscribeReauth:!1,authCallback:(e,t)=>{const r=Object(u.getSessionId)(n()),i=Object(O.getHubspotUtk)();Object(s.getToken)({sessionId:r,hubspotUtk:i}).then(e=>{try{const t=Object(h.getThreads)(n()).map(g.getChannelName).valueSeq().toJS(),i=JSON.parse(e.capability),s=Object.keys(i),o=b(t,s);o.length&&a.a.captureMessage("capability mismatch",{level:"error",extra:{channels:t,grantedChannels:s,difference:o,sessionId:r}})}catch(e){}t(null,e)},e=>t(e))}},v={onConnect({connectionWasSuspended:n,reconnected:r}){t(Object(l.networkOnline)());e&&t(Object(m.onThreadCreatedAndNetworkOnline)());(n||r)&&t(Object(p.fetchCurrentThreadHistory)());n&&t(Object(f.fetchVisitorThreads)())},onDisconnect(){t(Object(d.networkOffline)())},onFailure(){t(Object(d.networkOffline)())}};t(Object(r.initializePubSub)({clientOptions:i,lifecycleHooks:v,resolveBuilder:o}))}},"8Ma8":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));n.d(t,"c",(function(){return u}));var r=n("QgEn"),i=n("Ktcs"),a=n("0Zm1");const s={shouldTrapFocus:!1,setShouldTrapFocus:e=>{},launcherRef:null,setLauncherRef:()=>{},disableAutoFocus:!1,disableWidgetClose:!1,disableWidgetDialog:!1},o=Object(i.createContext)(s),c=({children:e,disableFocusTrap:t=!1,disableAutoFocus:n=!1,disableWidgetClose:c=!1,disableWidgetDialog:u=!1})=>{const[l,d]=Object(i.useState)(!1),[p,f]=Object(i.useState)(s.launcherRef);return Object(r.jsx)(o.Provider,{value:{launcherRef:p,setLauncherRef:f,shouldTrapFocus:l,setShouldTrapFocus:t?s.setShouldTrapFocus:d,disableAutoFocus:n,disableWidgetClose:c,disableWidgetDialog:u},children:Object(r.jsx)(a.a,{style:{height:"100%"},children:e})})};c.displayName="AccessibilityContextProvider";const u=()=>Object(i.useContext)(o)},"8Nq+":function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("9f1P"),c=n.n(o);const u="#f2547d",l=e=>u,d=({showBadge:e,positioning:t})=>e&&"on-circle"!==t&&Object(o.css)(["margin-right:14px;"]),p=c.a.div.withConfig({displayName:"VizExNotificationBadge__Wrapper",componentId:"sc-1v358g0-0"})(["position:relative;display:inline-flex;align-items:baseline;",";line-height:1;"],d),f=({positioning:e})=>"on-circle"===e?Object(o.css)(["left:75%;top:5%;"]):Object(o.css)(["right:-12px;top:-4px;"]),h=c.a.span.withConfig({displayName:"VizExNotificationBadge__CountBadge",componentId:"sc-1v358g0-1"})(["background-color:",";border:1px solid white;box-shadow:0 0 0 1px white;display:inline;pointer-events:none;text-align:center;font-size:11px;vertical-align:baseline;border-radius:500px;color:white;padding:1px 4px;position:absolute;",";"],({theme:e})=>l(e),f),b=e=>{const{badgeDescription:t,badgeLabel:n,children:a,showBadge:s,positioning:o}=e,c=Object(r.a)(e,["badgeDescription","badgeLabel","children","showBadge","positioning"]);return Object(i.jsxs)(p,Object.assign({},c,{showBadge:s,positioning:o,children:[a,s&&Object(i.jsx)(h,{"aria-label":t,positioning:o,children:n})]}))};b.displayName="VizExNotificationBadge";b.propTypes={badgeDescription:s.a.string,badgeLabel:s.a.node,children:s.a.node,positioning:s.a.oneOf(["default","on-circle"]),showBadge:s.a.bool};b.defaultProps={badgeDescription:"notifications",positioning:"default"};t.a=b},"8R/H":function(e,t,n){"use strict";var r=n("MD34"),i=n("VVfI"),a=n("yivD"),s=n("DFoL");function o(e="",t){const n=Object(a.a)("deprecated-function-");return(...r)=>{Object(s.b)({message:"Deprecation Warning: "+e,key:n});return t(...r)}}n.d(t,"a",(function(){return u}));const c=(e,t)=>t||Object(i.a)(e),u=o("`createDeprecatedAsyncAction` will be removed soon - Use `createAsyncAction` instead",({requestFn:e,actionName:t,actionTypes:n=null,toRecordFn:i,successMetaActionCreator:a=(()=>({})),failureMetaActionCreator:s=(()=>({}))})=>{if(!t&&!n||t&&n)throw new Error("Either an actionName or actionTypes are required to create an async action");if(!e||"function"!=typeof e)throw new Error(`Invalid requestFn "${e}"`);if(!i||"function"!=typeof i)throw new Error(`Invalid toRecordFn "${i}"`);const{STARTED:o,SUCCEEDED:u,FAILED:l}=c(t,n);return t=>n=>{const c="object"==typeof t&&!Array.isArray(t);if(t&&!c)throw new Error(`Invalid argument "${t}"`);n({type:o,payload:{requestArgs:t}});const d=e(t).then(e=>{const r={requestArgs:t,data:i(e)};return n({type:u,payload:r,meta:a(r)})},e=>{const r={requestArgs:t,error:e};return n({type:l,payload:r,meta:s(r)})});Object(r.a)(d);return d}})},"8X3F":function(e,t,n){var r=n("BEas"),i=n("9wc3"),a=n("8Es2"),s="[object Null]",o="[object Undefined]",c=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?o:s:c&&c in Object(e)?i(e):a(e)}e.exports=u},"8Xfw":function(e,t,n){"use strict";n.r(t);var r=n("QYOI"),i=n("6xui"),a=n("ubOH"),s=n("BvOu"),o=n("c1C1");const c="@type",u="MENTIONS",l="FILES";var d=n("zbS+"),p=n("6O34");const f=(e={})=>{const t=e||{},n=Object(a.a)(t.status),{attachments:f=[],senders:h=[]}=t,b=Object(i.a)(Object(r.List)(),(e,t)=>{const n=t[c];return n===u||n===l?e.push(Object(r.fromJS)(t)):e},f),g=t.id||Object(s.generateUuid)(),m=t.timestamp||Object(o.generateUniqueClientTimestamp)("buildCommentMessage-timestamp"),O=Object(p.a)(h);return Object(d.a)(Object(r.fromJS)(t)).merge({senders:O,timestamp:m,attachments:b,status:n,id:g})};var h=n("WebA"),b=n("C3IS"),g=n("12C0"),m=n("0IK8");const O=e=>Object(m.getTopLevelType)(e)===g.a;var v=n("NIjC"),j=n("0934"),y=n("LrxL"),E=n("tOKt"),T=n("V+nC"),w=n("JGJA");const I="MESSAGES_UPDATED",C=e=>Object(w.a)("@type",e)===I;var A=n("MJM1"),x=n("SGjM");const S="status",_="messageDeletedStatus",R=(e={})=>{const t=Object(r.fromJS)(Object(A.a)(["updates"],e));let n=Object(r.Map)();t&&t.size&&Object(x.a)((e,t)=>{e.keySeq().forEach(r=>{switch(r){case S:n=n.setIn([t,S],Object(a.a)(Object(A.a)([S],e)));break;case _:n=n.setIn([t,_],Object(A.a)([_],e))}})},t);return n};class D extends(Object(r.Record)({"@type":I,auditParams:Object(r.Map)(),updates:Object(r.Map)()},"MessagesUpdates")){constructor(e={}){super({updates:R(e),auditParams:Object(r.Map)(e.audit)})}}var M=n("+TdC"),N=n("7jiL"),P=n("NT8A"),k=n("LPbX"),L=n("9Mwj");class B extends(Object(r.Record)({"@type":k.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:L.a,clientType:null,newVid:null,newMessagesUtk:{empty:!0,present:!1},threadId:null},"ContactAssociationMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e)).filterNot(e=>void 0===e))}}var F=B,H=n("Cblj"),U=n("i6ES"),G=n("30KC");const q=e=>Object(m.getTopLevelType)(e)===G.a;var W=n("kdZJ");const V=e=>Object(m.getTopLevelType)(e)===W.a;var z=n("KZZz");const J=e=>Object(m.getTopLevelType)(e)===z.a;var K=n("usEm"),Y=n("ul3k"),Q=n("Euo8"),Z=n("xrOf");const X=e=>Object(m.getTopLevelType)(e)===Z.a;var $=n("GqTt"),ee=n("JxGV"),te=n("UJtG"),ne=n("Iqwl"),re=n("/fsP");const ie="AWAY_MODE_CHANGE";class ae extends(Object(r.Record)({"@type":ie,agentId:null,awayMode:null,id:"",timestamp:null,updatedByAgentId:null},"AgentAvailabilityMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),timestamp:e.timestamp||Object(o.generateUniqueClientTimestamp)("buildTypingMessage-timestamp")})).filterNot(e=>void 0===e))}}var se=ae;const oe=e=>Object(m.getTopLevelType)(e)===ie;var ce=n("MfaD"),ue=n("kTjR"),le=n("yuy6"),de=n("eF9A"),pe=n("TePN"),fe=n("K7Yy");const he=e=>Object(m.getTopLevelType)(e)===fe.a;var be=n("asw7"),ge=n("pHO9"),me=n("Y4h2"),Oe=n("Q7Xa");const ve=(e={})=>{const t=Object(p.a)(e.senders),n=Object(be.a)(e.recipients);return Object(ge.a)(Object(me.c)(n),Object(me.d)(t))(new Oe.a(Object(r.fromJS)(e)))};var je=n("Tt13");const ye=e=>Object(m.getTopLevelType)(e)===je.a;var Ee=n("xw4j");const Te=e=>Object(m.getTopLevelType)(e)===Ee.a;var we=n("wO6X"),Ie=n("Blk5");const Ce=e=>Object(m.getTopLevelType)(e)===Ie.a;var Ae=n("fwMr"),xe=n("IcZZ"),Se=n("fPyn"),_e=n("JoGU");const Re=(e={})=>{let t=Object.assign({},e);const n=Object(xe.a)(t.attachments),i=Object(be.a)(t.recipients),a=t.sender?Object(r.Map)(t.sender):Object(r.Map)(),s=Object(p.a)(t.senders),o=Object(Se.a)(t.status);return new _e.a(Object.assign({},t,{attachments:n,recipients:i,sender:a,senders:s,status:o}))};var De=n("t+8h");const Me=e=>Object(m.getTopLevelType)(e)===De.a;var Ne=n("kNma"),Pe=n("MWj0"),ke=n("pxL+");const Le=(e={})=>{const t=Object(Se.a)(Object(A.a)(Pe.u,e)),n=Object(xe.a)(e.attachments),i=Object(be.a)(e.recipients),a=Object(p.a)(e.senders),c=e.direction||"",u=Object(m.getId)(e)||Object(s.generateUuid)(),l=Object(m.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildWorkflowGeneratedUserMessage-timestamp");return Object(ge.a)(Object(ke.b)(u),Object(ke.e)(t),Object(ke.a)(n),Object(ke.f)(l),Object(me.c)(i),Object(me.d)(a),Object(me.b)(c))(Object(Ne.a)(Object(r.fromJS)(e)))};var Be=n("P0El");const Fe=e=>Object(m.getTopLevelType)(e)===Be.a;var He=n("TlnZ");n.d(t,"serialize",(function(){return Ue}));n.d(t,"deserialize",(function(){return Ge}));function Ue(e){return e.toJS()}function Ge({json:e}){return C(e)?new D(e):J(e)?f(e):Object(b.b)(e)?Object(h.buildCommonMessage)(e):Object(T.a)(e)?Object(E.buildInitialMessage)(e):Object(j.a)(e)?new y.a(e):Fe(e)?new He.a(e):O(e)?new v.a(e):Object(H.isTypingMessage)(e)?new M.a(e):Object(U.isContactAssociationMessage)(e)?new F(e):Object(Y.isEmailCaptureResponseMessage)(e)?new re.a(e):Object(K.isEmailCapturePromptMessage)(e)?new ne.a(e):Object(Q.isOfficeHoursMessage)(e)?new ee.a(e):Object(te.isTypicalResponseTimeMessage)(e)?new ce.a(e):X(e)?new ue.a(e):Object($.a)(e)?new le.a(e):V(e)?new N.a(e):q(e)?new P.a(e):oe(e)?new se(e):Object(de.isAssignmentUpdateMessage)(e)?new pe.a(e):he(e)?ve(e):ye(e)?Re(e):Te(e)?new we.a(e):Ce(e)?new Ae.a(e):Me(e)?Le(e):e}},"8Y7A":function(e,t){hns("I18n.translations.en",{number:{format:{precision:3,strip_insignificant_zeros:!0},percentage:{format:{delimiter:",",format:"%n%",precision:0}},currency:{format:{precision:2,strip_insignificant_zeros:!1}},human:{storage_units:{units:{byte:{one:" byte",other:" bytes"},kb:"kb",mb:"mb",gb:"gb",tb:"tb"}},array:{inclusive:{wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},exclusive:{wordsConnector:", ",twoWordsConnector:" or ",lastWordConnector:", or "}},abbreviated:{long:{1e3:{one:"0 thousand",other:"0 thousand"},1e4:{one:"00 thousand",other:"00 thousand"},1e5:{one:"000 thousand",other:"000 thousand"},1e6:{one:"0 million",other:"0 million"},1e7:{one:"00 million",other:"00 million"},1e8:{one:"000 million",other:"000 million"},1e9:{one:"0 billion",other:"0 billion"},1e10:{one:"00 billion",other:"00 billion"},1e11:{one:"000 billion",other:"000 billion"},1e12:{one:"0 trillion",other:"0 trillion"},1e13:{one:"00 trillion",other:"00 trillion"},1e14:{one:"000 trillion",other:"000 trillion"}},short:{1e3:{one:"0K",other:"0K"},1e4:{one:"00K",other:"00K"},1e5:{one:"000K",other:"000K"},1e6:{one:"0M",other:"0M"},1e7:{one:"00M",other:"00M"},1e8:{one:"000M",other:"000M"},1e9:{one:"0B",other:"0B"},1e10:{one:"00B",other:"00B"},1e11:{one:"000B",other:"000B"},1e12:{one:"0T",other:"0T"},1e13:{one:"00T",other:"00T"},1e14:{one:"000T",other:"000T"}}}}}})},"8f+m":function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("MYjy");function s(e){const t=Object(i.a)("deliveryIdentifier",e);return Boolean(t&&!(t instanceof a.a)&&"length"in t&&!r.Map.isMap(t))}function o(e){const t=Object(i.a)("deliveryIdentifier",e);return{deliveryIdentifier:Object(r.List)(t.map(a.a)),singleDeliveryIdentifier:Object(a.a)(Object(i.a)("singleDeliveryIdentifier",e))}}function c(e){const t=Object(i.a)("deliveryIdentifier",e);return{deliveryIdentifier:Object(r.List)([Object(a.a)(t)]),singleDeliveryIdentifier:Object(a.a)(Object(i.a)("deliveryIdentifier",e))}}function u(e){const t=Object(i.a)("actorId",e),n=Object(i.a)("recipientField",e),{deliveryIdentifier:r,singleDeliveryIdentifier:a}=s(e)?o(e):c(e);return{actorId:t,recipientField:n,deliveryIdentifier:r,singleDeliveryIdentifier:a}}const l=Object(r.Record)({actorId:null,singleDeliveryIdentifier:Object(a.a)(),deliveryIdentifier:Object(r.List)(),recipientField:null},"Recipient");t.a=function(e){const t=u(e);return l(t)}},"8ghC":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("GqTt"),i=n("M1Uo"),a=n("UxsU");const s=e=>Object(r.a)(e)&&Object(i.a)(e)===a.a.STARTED},"8i16":function(e,t,n){var r=n("mrEz"),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},"97n4":function(e,t,n){"use strict";var r=n("MJM1");const i=["displayOnScrollPercentage"],a=["displayOnTimeDelay"],s=["displayOnExitIntent"];n.d(t,"b",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"a",(function(){return u}));const o=Object(r.a)(i),c=Object(r.a)(a),u=Object(r.a)(s)},"9F2+":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("MJM1"),i=n("MWj0");const a=Object(r.a)(i.a)},"9HFe":function(e,t,n){"use strict";var r=n("Ut5p"),i=n("JGJA"),a=n("uB3n"),s=n("MZef"),o=n("QYOI"),c=n("qjq5"),u=n("DrqF"),l=n("dAms"),d=n("JoAZ"),p=n("neHy"),f=n("OPip"),h=n("Sbt9"),b=n("x1JE");const g=b.getEntry;var m=n("Oo4n");const O=Object(c.a)((e,t,n)=>{Object(d.a)(n);Object(p.a)(t);Object(u.a)(o.Iterable.isIterable(e),"Expected ids to be iterable not a `%s`",typeof e);const r=(e,r)=>{Object(f.a)(r,n);return e.set(Object(h.a)(r,n),t(r,g(r,n)))};return Object(m.a)(n.updateIn(l.a,t=>e.reduce(r,t)))});var v=n("Pda3"),j=n("eJ3n"),y=n("XkPn"),E=n("y+PV"),T=n("stzZ"),w=n("4cwC"),I=n("/u6M"),C=n("+tWo"),A=n("OIId");const x=Object(a.a)({notSetValue:Object(s.a)({data:null})}),S={[I.a.STARTED](e,t){const{requestArgs:{fileIds:n}}=t.payload,r=Object(b.getEntries)(e),i=n.filter(e=>{const t=r.get(""+e);return!Object(v.isSucceeded)(t)});return O(i,(e,t)=>Object(E.a)(t),e)},[I.a.SUCCEEDED](e,t){const{requestArgs:{fileIds:n},data:r}=t.payload;return O(n,(e,t)=>Object(T.a)(()=>Object(i.a)(e,r),t),e)},[A.b](e,t){const{fileId:n,uploadedFile:r}=t.payload,i=new y.a({fileMetadata:r,fileId:n});return Object(j.a)(n,e=>Object(T.a)(()=>i,e),e)},[C.a.SUCCEEDED](e,t){const{data:{files:n}}=t.payload,r=n.keySeq().toList();return O(r,(e,t)=>Object(T.a)(()=>Object(i.a)(e,n),t),e)},[I.a.FAILED](e,t){const{requestArgs:{fileIds:n}}=t.payload;return O(n,(e,t)=>Object(w.a)(t),e)}};t.a=Object(r.c)(S,x)},"9Mwj":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="NOT_DELETED",i="SOFT_DELETED"},"9Utk":function(e,t,n){var r=n("kmmH"),i=n("HTmY"),a=n("0Aa+"),s="Expected a function",o=Math.max,c=Math.min;function u(e,t,n){var u,l,d,p,f,h,b=0,g=!1,m=!1,O=!0;if("function"!=typeof e)throw new TypeError(s);t=a(t)||0;if(r(n)){g=!!n.leading;d=(m="maxWait"in n)?o(a(n.maxWait)||0,t):d;O="trailing"in n?!!n.trailing:O}function v(t){var n=u,r=l;u=l=void 0;b=t;return p=e.apply(r,n)}function j(e){b=e;f=setTimeout(T,t);return g?v(e):p}function y(e){var n=t-(e-h);return m?c(n,d-(e-b)):n}function E(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-b>=d}function T(){var e=i();if(E(e))return w(e);f=setTimeout(T,y(e))}function w(e){f=void 0;if(O&&u)return v(e);u=l=void 0;return p}function I(){void 0!==f&&clearTimeout(f);b=0;u=h=l=f=void 0}function C(){return void 0===f?p:w(i())}function A(){var e=i(),n=E(e);u=arguments;l=this;h=e;if(n){if(void 0===f)return j(h);if(m){f=setTimeout(T,t);return v(h)}}void 0===f&&(f=setTimeout(T,t));return p}A.cancel=I;A.flush=C;return A}e.exports=u},"9f1P":function(e,t,n){e.exports=n.dlbpr(1,77)},"9i6G":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return s}));var r=n("QYOI");const i="CHANNEL_CHANGE",a=Object(r.Record)({"@type":i,oldChannel:Object(r.Map)(),newChannel:Object(r.Map)(),id:null,timestamp:null},"ChannelChange");class s extends a{constructor(e){super(Object.assign({},e,{oldChannel:Object(r.Map)(e.oldChannel),newChannel:Object(r.Map)(e.newChannel),"@type":i}))}}},"9pgs":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("qjq5"),i=n("DdHT"),a=n("VToG"),s=n("46XF");const o=Object(r.a)((e,t)=>Object(i.a)(Object(s.a)(e),Object(s.b)(a.a),s.c)(t))},"9wc3":function(e,t,n){var r=n("BEas"),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;function c(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var i=s.call(e);r&&(t?e[o]=n:delete e[o]);return i}e.exports=c},"9zF3":function(e,t,n){"use strict";n.r(t);n.d(t,"calculateUnseenThreadsCount",(function(){return o}));var r=n("MBJP"),i=n("BnUr"),a=n("k09d"),s=n("CM4h");const o=Object(r.a)([a.a,s.a],(e,t)=>e?t+(Object(i.getUnseenCount)(e)?1:0):t)},"A+sO":function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("AYvj"),a=n("zZzs"),s=n("H/Vc"),o=n("tyiq");const c=Object(r.a)([s.getWidgetAvailabilityOptions],e=>!Object(a.getOfficeHoursStartTime)(e)&&!Object(o.a)(e));n.d(t,"getIsWidgetInAwayMode",(function(){return u}));const u=Object(r.a)([i.widgetIsInAwayMode,c],(e,t)=>Boolean(e||!t))},A1pw:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ut5p"),i=n("xZ3y");const a=Object(r.b)(i.UPDATE_MESSAGE_IN_CONVERSATION,({updated:e,channel:t,message:n,threadId:r})=>({updated:e,channel:t,message:n,threadId:r}))},"A5f/":function(e,t,n){"use strict";var r=n("QYOI"),i=n("nguO");const a=Object(r.Record)({[i.c]:i.b,threadId:null,channel:null,message:null,allowRetry:!0},"FailedToPublish");t.a=a},AFl3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("MBJP"),i=n("ncoD");const a=Object(r.a)([i.getAllAgentResponders],e=>e.toList())},AQmo:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("ZqFO"),a=n("647q");const s=Object(r.a)(a.getLatestWidgetData,i.b)},AYvj:function(e,t,n){"use strict";n.r(t);n.d(t,"widgetIsInAwayMode",(function(){return a}));var r=n("MBJP"),i=n("VkWa");const a=Object(r.a)([i.a],e=>Boolean(e))},AaWM:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.f.implement(Array,(e,t)=>t.hasOwnProperty(e));i.f.implementInherited(r.Iterable,(e,t)=>t.has(e));i.f.implement(Object,(e,t)=>t.hasOwnProperty(e));t.a=i.f},"As+A":function(e,t,n){"use strict";n.r(t);n.d(t,"publishAvailabilityMessage",(function(){return p}));var r=n("eH/d"),i=n("tyiq"),a=n("fZy4"),s=n("H/Vc"),o=n("c2PF"),c=n("J4oD"),u=n("BlNW"),l=n("BnUr");function d({channel:e,thread:t,state:n,dispatch:r}){const o=Object(s.getWidgetAvailabilityOptions)(n),d=!!Object(i.b)(o),p=Object(l.getThreadId)(t),f=Object(c.historyDataForThread)(n,{thread:t});d&&Object(u.canSendNewTypicalResponseTimeMessage)(f)&&r(Object(a.publishTypicalResponseTimeMessage)({channel:e,threadId:p}))}const p=({channel:e,threadId:t})=>(n,i)=>{const a=Object(o.getThreadByThreadId)(i(),{threadId:t}),s=Object(c.historyDataForThread)(i(),{thread:a});s&&Object(r.hasChatMessageFromAgent)(s)||d({channel:e,thread:a,state:i(),dispatch:n})}},Avso:function(e,t,n){"use strict";n.r(t);var r=n("DdHT"),i=n("JGJA"),a=n("dPcB"),s=n("CQiV");const o="avatar",c="firstName",u="lastName",l="bot",d="userId",p="online",f="email",h="agentState",b="agentType",g="meetingsLinkText",m="meetingsLinkUrl";var O=n("a3lm");n.d(t,"getAvatar",(function(){return j}));n.d(t,"getFirstName",(function(){return y}));n.d(t,"getLastName",(function(){return E}));n.d(t,"getEmail",(function(){return T}));n.d(t,"getFullName",(function(){return w}));n.d(t,"getFriendlyOrFormalName",(function(){return I}));n.d(t,"getIsBot",(function(){return C}));n.d(t,"getIsOnline",(function(){return A}));n.d(t,"getUserId",(function(){return x}));n.d(t,"getAgentState",(function(){return S}));n.d(t,"getAgentType",(function(){return _}));n.d(t,"getMeetingsLinkText",(function(){return R}));n.d(t,"getMeetingsLinkUrl",(function(){return D}));n.d(t,"getAgentRespondersList",(function(){return M}));const v=["de","ja"],j=Object(i.a)(o),y=Object(i.a)(c),E=Object(i.a)(u),T=Object(i.a)(f),w=e=>Object(a.a)({firstName:y(e),lastName:E(e)}),I=(e,t)=>{const n=t||Object(s.a)();return v.indexOf(n)>=0?w(e):y(e)},C=Object(i.a)(l),A=Object(i.a)(p),x=e=>Object(r.a)(Object(i.a)(d),e=>e&&""+e)(e),S=Object(i.a)(h),_=Object(i.a)(b),R=Object(i.a)(g),D=Object(i.a)(m),M=Object(i.a)(O.a)},BDBs:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("rCfO"),i=n("bSHG"),a=n("+KD7"),s=n("npjq");const o=/\S*cdn2\.hubspot(qa)?\.net\S*\/thumb\.[a-zA-Z]+$/,c=/\/thumb\.[a-zA-Z]+$/,u=/data:/,l=/app(-[a-z0-9]+)?.hubspot(qa)?.com\/login-api/,d=Object(r.default)(e=>o.test(e)),p=Object(r.default)(e=>u.test(e)),f=Object(r.default)(e=>l.test(e)),h=e=>`\n border: 1px solid ${a.a};\n justify-content: center;\n padding: 20px;\n display: flex;\n align-items: center;\n height: ${e?e+"px":"auto"};\n width: 100%;\n`,b=Object(r.default)(e=>`

${s.a.text("sanitizedEmail.imageError")}

\n `),g=({node:e,node_name:t})=>{if(e&&"img"===t&&e.attributes){const t=e.getAttribute("src");if(t&&p(t)&&t.length>2e3){const t=e.getAttribute("height"),n=i.c.createElement("div");n.innerHTML=b(t);return{node:n}}t&&d(t)&&e.setAttribute("src",t.replace(c,""));f(t)&&e.setAttribute("src","");const n=e.getAttribute("data-original-width");n&&e.setAttribute("width",n);const r=e.getAttribute("data-original-height");r&&e.setAttribute("height",r);return{node:e}}return null}},BDi3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({ignore:e=!1,message:t,silent:n=!1,titleText:r,displayEventId:i=!0,isVisibleToUser:a=!0,silenceErrorReporting:s=!1})=>({error:{ignore:e,message:t,silent:n,titleText:r,displayEventId:i,isVisibleToUser:a,silenceErrorReporting:s}})},BEas:function(e,t,n){var r=n("8i16").Symbol;e.exports=r},BG1d:function(e,t,n){"use strict";n.r(t);n.d(t,"isErrorAction",(function(){return a}));var r=n("nSiU");const i=/.+_(FAILED|FAILURE)/,a=e=>!(!i.test(e.type)||Object(r.ignoreError)(e))||!(!Object(r.getErrorMeta)(e)||Object(r.ignoreError)(e))},BGhm:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("DrqF");const i=e=>{const t=parseInt(e,10);Object(r.a)("number"==typeof t&&!isNaN(t),'Expected id to be parsable as a number not a %s. id was "%s".',typeof e,e)}},BMD5:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=(e,t={})=>Object(r.a)("thread",t)},BOwv:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=18e5},BWf7:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("MBJP"),i=n("OmJX");const a=Object(r.a)(i.a,(e={})=>!!e.popOpenWelcomeMessage)},BlNW:function(e,t,n){"use strict";n.r(t);var r=n("+2bk"),i=n("mE3N"),a=n("UJtG"),s=n("iPDb"),o=n("kWFB");const c=e=>{if(!Object(o.hasMessages)(e))return!1;const t=Object(s.a)(e).findLast(a.isTypicalResponseTimeMessage);return!(!t||!Object(i.a)(t))};var u=n("dML/");n.d(t,"canSendNewTypicalResponseTimeMessage",(function(){return l}));const l=e=>!Object(r.a)(e)&&(!c(e)||Object(u.a)(e))},Blk5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TICKET_CREATION_FAILURE"},BnUr:function(e,t,n){"use strict";n.r(t);n.d(t,"getLatestReadTimestamp",(function(){return o}));n.d(t,"getThreadId",(function(){return c}));n.d(t,"getAssignedAgentId",(function(){return u}));n.d(t,"getStatus",(function(){return l}));n.d(t,"getChannelDetails",(function(){return d}));n.d(t,"getResponder",(function(){return p}));n.d(t,"getUnseenCount",(function(){return f}));n.d(t,"getLatestMessageTimestamp",(function(){return h}));n.d(t,"getPreviewMessageId",(function(){return b}));n.d(t,"getChannelName",(function(){return g}));var r=n("MJM1"),i=n("aYGO"),a=n("DdHT"),s=n("q1tZ");const o=Object(r.a)(i.e),c=Object(r.a)(i.i),u=Object(r.a)(i.b),l=Object(r.a)(i.h),d=Object(r.a)(i.c),p=Object(r.a)(i.g),f=Object(r.a)(i.j),h=Object(r.a)(i.d),b=Object(r.a)(i.f),g=Object(a.a)(d,s.a)},BvOu:function(e,t,n){"use strict";n.r(t);n.d(t,"generateUuid",(function(){return a}));function r(){let e=(new Date).getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;e=Math.floor(e/16);return("x"===t?n:3&n|8).toString(16)})}function i(){const e=window.crypto||window.msCrypto,t=new Uint16Array(8);e.getRandomValues(t);const n=e=>{let t=e.toString(16);for(;t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}function a(){const e=window.crypto||window.msCrypto;return void 0!==e&&void 0!==e.getRandomValues&&void 0===window.Uint16Array?i():r()}},BxyF:function(e,t,n){"use strict";n.r(t);n.d(t,"getIndexedAsyncPubSubClients",(function(){return c}));n.d(t,"getClientKeyFromProps",(function(){return u}));n.d(t,"getAsyncPubSubClient",(function(){return l}));n.d(t,"getPubSubClient",(function(){return d}));n.d(t,"getPubSubVendor",(function(){return p}));var r=n("JGJA"),i=n("MBJP"),a=n("KXN9"),s=n("x1JE"),o=n("5vQK");const c=Object(r.a)("pubSubClient"),u=(e,{clientKey:t=o.a}={})=>t,l=Object(i.a)([u,c],s.getEntry),d=Object(i.a)([l],a.a),p=Object(i.a)([d],e=>e&&e.vendor)},C3IS:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"a",(function(){return u}));var r=n("JGJA"),i=(n("2Zef"),n("0GyJ")),a=(n("0IK8"),n("rf4d")),s=n("o/5C");const o=e=>Object(r.a)("@type",e)===i.a,c=e=>o(e)&&Object(s.d)(e)===a.a,u=e=>o(e)&&!c(e)},C5Zv:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));const r=6e4,i=["RHUMB_GLOBAL_ERROR","RHUMB_GLOBAL_ERROR_BOUNDARY"],a=new Error("Unexpected route visited. Please see https://product.hubteam.com/docs/frontend/docs/react-rhumb.html#unexpected-route-tracking for more info.")},CJvR:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var i=r();i.withExtraArgument=r;t.a=i},CM4h:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("MBJP"),i=n("BnUr"),a=n("lEkO"),s=n("NpZo");const o=Object(r.a)([a.a,s.getSelectedThreadId],(e,t)=>e?e.reduce((e,n)=>Object(i.getThreadId)(n)!==t?e+(n.unseenCount?1:0):e,0):0)},CQiV:function(e,t,n){"use strict";var r=n("8ASW");t.a=()=>{const e=r.a.locale.split("-")[0];return"en"===e||r.a.langEnabled||r.a.publicPage?e:"en"}},CR0J:function(e,t,n){"use strict";var r=n("VfuR");const i=n.n(r).a.object;t.a=i},Cblj:function(e,t,n){"use strict";n.r(t);n.d(t,"isTypingMessage",(function(){return a}));var r=n("0IK8"),i=n("tY0N");const a=e=>Object(r.getTopLevelType)(e)===i.a},"CdQ/":function(e,t,n){"use strict";n.r(t);n.d(t,"getMessagesUtk",(function(){return i}));var r=n("q8Gl");function i(){const e=Object(r.getWindowLocation)(),t=e.pathname,n=t.indexOf("/utk/"),i=t.slice(n).split("/").pop();return"null"!==i&&-1!==n?i:e.paramValue("messagesUtk")}},"CyI/":function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));n.d(t,"b",(function(){return T}));n.d(t,"c",(function(){return C}));var r=n("Ktcs"),i=n.n(r),a=n("Ex4o");class s{getStringForLocale(e,t){let n=this.strings[t];if(!n){n=o(t,this.strings,this.defaultLocale);this.strings[t]=n}let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings=Object.assign({},e);this.defaultLocale=t}}function o(e,t,n="en-US"){if(t[e])return t[e];let r=c(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}function c(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const u=new Map,l=new Map;class d{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,a=u.get(i);if(!a){a=new Intl.PluralRules(this.locale,{type:n});u.set(i,a)}r=t[a.select(e)]||t.other;return"function"==typeof r?r():r}number(e){let t=l.get(this.locale);if(!t){t=new Intl.NumberFormat(this.locale);l.set(this.locale,t)}return t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e;this.strings=t}}new Map;new Map;let p=!1;try{p="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let f=!1;try{f="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const h=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),b=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function g(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return h.has(t)}let t=e.split("-")[0];return b.has(t)}function m(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:g(e)?"rtl":"ltr"}}let O=m(),v=new Set;function j(){O=m();for(let e of v)e(O)}function y(){let e=Object(a.a)(),[t,n]=Object(r.useState)(O);Object(r.useEffect)(()=>{0===v.size&&window.addEventListener("languagechange",j);v.add(n);return()=>{v.delete(n);0===v.size&&window.removeEventListener("languagechange",j)}},[]);return e?{locale:"en-US",direction:"ltr"}:t}const E=i.a.createContext(null);function T(){let e=y();return Object(r.useContext)(E)||e}const w=new WeakMap;function I(e){let t=w.get(e);if(!t){t=new s(e);w.set(e,t)}return t}function C(e){let{locale:t}=T(),n=Object(r.useMemo)(()=>I(e),[e]);return Object(r.useMemo)(()=>new d(t,n),[t,n])}let A=new Map;function x(e){let{locale:t}=T(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]0}));n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(te,(function(e,n,r,i,a,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(ne.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if($.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace($,(function(e,n,r,i,a,s){if("*"===r)t.minimumFractionDigits=n.length;else if(i&&"#"===i[0])t.maximumFractionDigits=i.length;else if(a&&s){t.minimumFractionDigits=a.length;t.maximumFractionDigits=a.length+s.length}else{t.minimumFractionDigits=n.length;t.maximumFractionDigits=n.length}return""}));var a=i.options[0];"w"===a?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=N(N({},t),re(a)))}else if(ee.test(i.stem))t=N(N({},t),re(i.stem));else{var s=ie(i.stem);s&&(t=N(N({},t),s));var o=ae(i.stem);o&&(t=N(N({},t),o))}}return t}var ce,ue={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function le(e,t){for(var n="",r=0;r>1),c="a",u=de(t);"H"!=u&&"k"!=u||(o=0);for(;o-- >0;)n+=c;for(;s-- >0;)n=u+n}else n+="J"===i?"H":i}return n}function de(e){var t=e.hourCycle;void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]);if(t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;"root"!==r&&(n=e.maximize().region);return(ue[n||""]||ue[r||""]||ue["".concat(r,"-001")]||ue["001"])[0]}var pe=new RegExp("^".concat(J.source,"*")),fe=new RegExp("".concat(J.source,"*$"));function he(e,t){return{start:e,end:t}}var be=!!String.prototype.startsWith,ge=!!String.fromCodePoint,me=!!Object.fromEntries,Oe=!!String.prototype.codePointAt,ve=!!String.prototype.trimStart,je=!!String.prototype.trimEnd,ye=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ee=!0;try{Ee="a"===(null===(ce=_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ce?void 0:ce[0])}catch(e){Ee=!1}var Te,we=be?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Ie=ge?String.fromCodePoint:function(){for(var e=[],t=0;ta;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ce=me?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},xe=ve?function(e){return e.trimStart()}:function(e){return e.replace(pe,"")},Se=je?function(e){return e.trimEnd()}:function(e){return e.replace(fe,"")};function _e(e,t){return new RegExp(e,t)}if(Ee){var Re=_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Te=function(e,t){var n;Re.lastIndex=t;return null!==(n=Re.exec(e)[1])&&void 0!==n?n:""}}else Te=function(e,t){for(var n=[];;){var r=Ae(e,t);if(void 0===r||ke(r)||Le(r))break;n.push(r);t+=r>=65536?2:1}return Ie.apply(void 0,n)};var De=function(){function e(e,t){void 0===t&&(t={});this.message=e;this.position={offset:0,line:1,column:1};this.ignoreTag=!!t.ignoreTag;this.locale=t.locale;this.requiresOtherClause=!!t.requiresOtherClause;this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)};e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(R.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Me(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump();r.push({type:D.pound,location:he(s,this.clonePosition())})}}}return{val:r,err:null}};e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();this.bumpSpace();if(this.bumpIf("/>"))return{val:{type:D.literal,value:"<".concat(r,"/>"),location:he(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:D.tag,value:r,children:a,location:he(n,this.clonePosition())},err:null}:this.error(R.INVALID_TAG,he(s,this.clonePosition()))}return this.error(R.UNCLOSED_TAG,he(n,this.clonePosition()))}return this.error(R.INVALID_TAG,he(n,this.clonePosition()))};e.prototype.parseTagName=function(){var e=this.offset();this.bump();for(;!this.isEOF()&&Pe(this.char());)this.bump();return this.message.slice(e,this.offset())};e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=he(n,this.clonePosition());return{val:{type:D.literal,value:r,location:o},err:null}};e.prototype.tryParseLeftAngleBracket=function(){if(!this.isEOF()&&60===this.char()&&(this.ignoreTag||!Ne(this.peek()||0))){this.bump();return"<"}return null};e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:this.bump();this.bump();return"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];this.bump();for(;!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39);this.bump()}else t.push(n);this.bump()}return Ie.apply(void 0,t)};e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();if(60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0)return null;this.bump();return Ie(n)};e.prototype.parseArgument=function(e,t){var n=this.clonePosition();this.bump();this.bumpSpace();if(this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition()));if(125===this.char()){this.bump();return this.error(R.EMPTY_ARGUMENT,he(n,this.clonePosition()))}var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(R.MALFORMED_ARGUMENT,he(n,this.clonePosition()));this.bumpSpace();if(this.isEOF())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition()));switch(this.char()){case 125:this.bump();return{val:{type:D.argument,value:r,location:he(n,this.clonePosition())},err:null};case 44:this.bump();this.bumpSpace();return this.isEOF()?this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(R.MALFORMED_ARGUMENT,he(n,this.clonePosition()))}};e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Te(this.message,t),r=t+n.length;this.bumpTo(r);return{value:n,location:he(e,this.clonePosition())}};e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(R.EXPECT_ARGUMENT_TYPE,he(a,o));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(f=Se(m.val)).length)return this.error(R.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:he(u,this.clonePosition())}}if((O=this.tryParseArgumentClose(r)).err)return O;var l=he(r,this.clonePosition());if(c&&we(null==c?void 0:c.style,"::",0)){var d=xe(c.style.slice(2));if("number"===s){return(m=this.parseNumberSkeletonFromString(d,c.styleLocation)).err?m:{val:{type:D.number,value:n,location:l,style:m.val},err:null}}if(0===d.length)return this.error(R.EXPECT_DATE_TIME_SKELETON,l);var p=d;this.locale&&(p=le(d,this.locale));var f={type:M.dateTime,pattern:p,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Y(p):{}};return{val:{type:"date"===s?D.date:D.time,value:n,location:l,style:f},err:null}}return{val:{type:"number"===s?D.number:"date"===s?D.date:D.time,value:n,location:l,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();this.bumpSpace();if(!this.bumpIf(","))return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS,he(h,N({},h)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m;if((m=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace();b=this.parseIdentifierIfPossible();g=m.val}var O,v=this.tryParsePluralOrSelectOptions(e,s,t,b);if(v.err)return v;if((O=this.tryParseArgumentClose(r)).err)return O;var j=he(r,this.clonePosition());return"select"===s?{val:{type:D.select,value:n,options:Ce(v.val),location:j},err:null}:{val:{type:D.plural,value:n,options:Ce(v.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:j},err:null};default:return this.error(R.INVALID_ARGUMENT_TYPE,he(a,o))}};e.prototype.tryParseArgumentClose=function(e){if(this.isEOF()||125!==this.char())return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE,he(e,this.clonePosition()));this.bump();return{val:!0,err:null}};e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(n,this.clonePosition()));this.bump();break;case 123:e+=1;this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}};e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=Z(e)}catch(e){return this.error(R.INVALID_NUMBER_SKELETON,t)}return{val:{type:M.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?oe(n):{}},err:null}};e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,s=[],o=new Set,c=r.value,u=r.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR,R.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=he(l,this.clonePosition());c=this.message.slice(l.offset,this.offset())}if(o.has(c))return this.error("select"===t?R.DUPLICATE_SELECT_ARGUMENT_SELECTOR:R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(a=!0);this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var h=this.tryParseArgumentClose(p);if(h.err)return h;s.push([c,{value:f.val,location:he(p,this.clonePosition())}]);o.add(c);this.bumpSpace();c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?R.EXPECT_SELECT_ARGUMENT_SELECTOR:R.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(R.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:s,err:null}};e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;i=!0;a=10*a+(s-48);this.bump()}var o=he(r,this.clonePosition());return i?ye(a*=n)?{val:a,err:null}:this.error(t,o):this.error(e,o)};e.prototype.offset=function(){return this.position.offset};e.prototype.isEOF=function(){return this.offset()===this.message.length};e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}};e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Ae(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t};e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}};e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();if(10===e){this.position.line+=1;this.position.column=1;this.position.offset+=1}else{this.position.column+=1;this.position.offset+=e<65536?1:2}}};e.prototype.bumpIf=function(e){if(we(this.message,e,this.offset())){for(var t=0;t=0){this.bumpTo(n);return!0}this.bumpTo(this.message.length);return!1};e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));e=Math.min(e,this.message.length);for(;;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));this.bump();if(this.isEOF())break}};e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ke(this.char());)this.bump()};e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null};return e}();function Me(e){return e>=97&&e<=122||e>=65&&e<=90}function Ne(e){return Me(e)||47===e}function Pe(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ke(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Le(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Be(e){e.forEach((function(e){delete e.location;if(U(e)||G(e))for(var t in e.options){delete e.options[t].location;Be(e.options[t].value)}else B(e)&&V(e.style)||(F(e)||H(e))&&z(e.style)?delete e.style.location:W(e)&&Be(e.children)}))}function Fe(e,t){void 0===t&&(t={});t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new De(e,t).parse();if(n.err){var r=SyntaxError(R[n.err.kind]);r.location=n.err.location;r.originalMessage=n.err.message;throw r}(null==t?void 0:t.captureLocation)||Be(n.val);return n.val}function He(e,t){var n=t&&t.cache?t.cache:Ze,r=t&&t.serializer?t.serializer:Ke;return(t&&t.strategy?t.strategy:Ve)(e,{cache:n,serializer:r})}function Ue(e){return null==e||"number"==typeof e||"boolean"==typeof e}function Ge(e,t,n,r){var i=Ue(r)?r:n(r),a=t.get(i);if(void 0===a){a=e.call(this,r);t.set(i,a)}return a}function qe(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);if(void 0===a){a=e.apply(this,r);t.set(i,a)}return a}function We(e,t,n,r,i){return n.bind(t,e,r,i)}function Ve(e,t){return We(e,this,1===e.length?Ge:qe,t.cache.create(),t.serializer)}function ze(e,t){return We(e,this,qe,t.cache.create(),t.serializer)}function Je(e,t){return We(e,this,Ge,t.cache.create(),t.serializer)}var Ke=function(){return JSON.stringify(arguments)};function Ye(){this.cache=Object.create(null)}Ye.prototype.get=function(e){return this.cache[e]};Ye.prototype.set=function(e,t){this.cache[e]=t};var Qe,Ze={create:function(){return new Ye}},Xe={variadic:ze,monadic:Je};!function(e){e.MISSING_VALUE="MISSING_VALUE";e.INVALID_VALUE="INVALID_VALUE";e.MISSING_INTL_API="MISSING_INTL_API"}(Qe||(Qe={}));var $e,et=function(e){_(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.code=n;i.originalMessage=r;return i}t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};return t}(Error),tt=function(e){_(t,e);function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Qe.INVALID_VALUE,i)||this}return t}(et),nt=function(e){_(t,e);function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Qe.INVALID_VALUE,r)||this}return t}(et),rt=function(e){_(t,e);function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Qe.MISSING_VALUE,n)||this}return t}(et);!function(e){e[e.literal=0]="literal";e[e.object=1]="object"}($e||($e={}));function it(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];n&&n.type===$e.literal&&t.type===$e.literal?n.value+=t.value:e.push(t);return e}),[])}function at(e){return"function"==typeof e}function st(e,t,n,r,i,a,s){if(1===e.length&&k(e[0]))return[{type:$e.literal,value:e[0].value}];for(var o=[],c=0,u=e;c0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}};e.__parse=Fe;e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}();new WeakMap},"D/wX":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("BG1d"),i=n("tcix"),a=n("cnVX");const s=()=>e=>t=>{Object(i.captureActionBreadcrumb)(t);Object(r.isErrorAction)(t)&&Object(a.reportErrorAction)(t);return e(t)}},D2Y9:function(e,t,n){e.exports=n.dlbpr(1,22)},DB67:function(e,t,n){"use strict";n.r(t);n.d(t,"channelChangeReceived",(function(){return a}));var r=n("Ut5p"),i=n("t0Ql");const a=Object(r.b)(i.a,({channelChange:e,threadId:t})=>({channelChange:e,threadId:t}))},DFBY:function(e,t,n){"use strict";n.r(t);var r=n("MJM1");const i=["assignedAgent","agentId"],a=["assignedAgent","agentType"],s=["auditParams"],o=["assignedAgent"];var c=n("mFyM"),u=n("JGJA"),l=n("K+6d");const d=Object(u.a)(l.c),p=Object(u.a)(l.b),f=Object(u.a)(l.d),h=Object(u.a)(l.a),b=(Object(u.a)(l.b),Object(u.a)(l.d),Object(u.a)(l.e)),g=e=>{if(!e)return null;switch(d(e)){case c.a:return f(e);case c.b:return h(e);case c.g:return b(e);default:return null}};var m=n("aLTZ");const O=e=>{if(!e)return null;switch(d(e)){case c.a:return m.a;case c.b:return p(e)===m.a?m.a:m.b;default:return null}};n.d(t,"getAssignedAgentId",(function(){return v}));n.d(t,"getAssignedAgentType",(function(){return j}));n.d(t,"getAudit",(function(){return y}));n.d(t,"getAgentIdFromAudit",(function(){return E}));n.d(t,"getAgentTypeFromAudit",(function(){return T}));n.d(t,"getAssignedAgent",(function(){return w}));const v=Object(r.a)(i),j=Object(r.a)(a),y=Object(r.a)(s),E=e=>{const t=y(e);return g(t)},T=e=>{const t=y(e);return O(t)},w=Object(r.a)(o)},DFoL:function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n("LZPL"),i=n.n(r);const a={},s=e=>!(i.a.deployed()||null!=e&&a[e]),o=e=>{e&&(a[e]=!0)},c=({message:e="",key:t,url:n})=>{n&&(e+="\nFor details, see: "+n);if(s(t)){console.warn(e);o(t)}};t.a={warn:c}},DPiE:function(e,t,n){"use strict";n.r(t);n.d(t,"lastSeenSent",(function(){return d}));n.d(t,"lastSeenSuccess",(function(){return p}));n.d(t,"lastSeenFailure",(function(){return f}));n.d(t,"markLastMessageReadByVisitor",(function(){return h}));var r=n("Ut5p"),i=n("BnUr"),a=n("fogE"),s=n("xZ3y"),o=n("Mx3c"),c=n("prkp"),u=n("E6wg"),l=n("EjCB");const d=Object(r.b)(s.LAST_SEEN_SENT,({role:e,threadId:t,channel:n,latestMessageTimestamp:r})=>({role:e,threadId:t,channel:n,latestMessageTimestamp:r})),p=Object(r.b)(s.LAST_SEEN_SUCCESS,({role:e,threadId:t,channel:n,latestMessageTimestamp:r})=>({role:e,threadId:t,channel:n,latestMessageTimestamp:r})),f=Object(r.b)(s.LAST_SEEN_FAILURE,({error:e})=>({error:e}),a.a);function h({conversation:e}){return(t,n)=>{const r=Object(i.getThreadId)(e),a=Object(u.getSessionId)(n()),s=Object(i.getLatestReadTimestamp)(e),h=Object(i.getLatestMessageTimestamp)(e),b=Object(i.getPreviewMessageId)(e);if(h&&r&&a&&b&&h>s){const n=Object(i.getChannelName)(e),s={role:o.VISITOR,threadId:r,channel:n,latestMessageTimestamp:h};t(d(s));Object(c.markMessageReadByVisitor)({messageId:b,threadId:r,sessionId:a}).then(()=>{t(p(s));Object(l.postClearPageTitleNotification)()}).catch(e=>{t(f({error:e}))})}}}},Dau1:function(e,t,n){e.exports=n.dlbpr(1,21)},DdHT:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("scKg");function i(e,t){let n=t;for(let t=0;t{if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{const c=[n,r,i,a,s,o];let u=0;e=new Error("Invariant Violation: "+t.replace(/%s/g,()=>c[u++]))}e.framesToPop=1;throw e}};t.a=r},"Dw+v":function(e,t,n){"use strict";var r=n("JGJA"),i=n("Ut5p"),a=n("1YzF"),s=n("eg5p"),o=n("xZ3y"),c=n("Ux+X"),u=n("Lu5y"),l=n("XUHx"),d=n("Reyo"),p=n("jFtF"),f=n("JTxz"),h=n("I5zW");const b=Object(h.createMetricsFactory)("conversations-visitor-ui"),g=()=>{b.counter("page-view").increment()};n.d(t,"b",(function(){return m}));n.d(t,"a",(function(){return v}));const m=Object(i.b)(o.GET_WIDGET_DATA_SUCCEEDED,e=>e),O=Object(i.b)(o.RECEIVED_WIDGET_SHELL_DATA,e=>e);function v(e){return(t,n)=>{g();const i=Object(u.buildWidgetData)(e);if(Object(r.a)("sessionId",i)&&Object(r.a)("chatflowId",i)){t(Object(a.selectThread)(s.a));Object(p.messageCookieHandler)({currentState:n(),widgetData:i});Object(d.getIsIncludedInPageViewSample)()&&t(Object(c.trackInteraction)("pageview",{screen:"widget",subscreen:"thread view",action:"rendered widget",pageViewSamplePercent:f.a}));t(m(i));t(O(e));t(Object(l.bootstrapInitialWidgetUi)(i))}}}},E6wg:function(e,t,n){"use strict";n.r(t);n.d(t,"getSessionId",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("647q");const s=Object(r.a)(a.getLatestWidgetData,Object(i.a)("sessionId"))},E9A7:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("l04f"),a=n("BWf7"),s=n("wD2U"),o=n("OmJX");const c=Object(r.a)(o.a,(e={})=>!!e.popMessageOnSmallScreens);var u=n("X4GJ"),l=n("VkWa"),d=n("QgQx"),p=n("ktW+");n.d(t,"getShowInitialMessage",(function(){return f}));const f=Object(r.a)([a.a,c,u.a,l.a,i.getIsOpen,s.getIsMobile,d.getShouldHideWelcomeMessage,p.getPopOpenWidget],(e,t,n,r,i,a,s,o)=>{if(s)return!1;const c=a?Boolean(t):o||Boolean(e);return Boolean(c&&!!n&&!r&&!i)})},EFqt:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"c",(function(){return o}));var r=n("Ut5p"),i=n("xZ3y");const a=Object(r.b)(i.APP_IN_BACKGROUND),s=Object(r.b)(i.APP_IN_FOREGROUND);function o(e){return t=>{t(e?s():a())}}},EN6V:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){return e}},EQzX:function(e,t,n){"use strict";n.r(t);var r=n("GqTt"),i=n("M1Uo"),a=n("UxsU");const s=e=>{const t=Object(i.b)(e),n=Object(i.a)(e);return t===a.a.STARTED&&n===a.a.ENDED};n.d(t,"isCloseThreadMessage",(function(){return o}));const o=e=>Object(r.a)(e)&&s(e)},ES4X:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("xZ3y"),s=n("2Sm/"),o=n("+tWo");const c=Object(r.Map)({hasVisitorEmail:!1}),u=Object(i.c)({[s.a.SUCCEEDED](e,t){const{shouldAskForEmail:n}=t.payload;return e.set("hasVisitorEmail",!n)},[o.a.SUCCEEDED](e,t){const{data:{hasVisitorEmail:n}}=t.payload;return e.set("hasVisitorEmail",n)},[a.SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED]:e=>e.set("hasVisitorEmail",!0)},c);t.a=u},ET5w:function(e,t,n){"use strict";function r(...e){return t=>e.reduce((e,t)=>t(e),t)}var i=n("iKGd"),a=n("3Ezh"),s=n("57op");Object(s.k)("sadColor"),Object(s.k)("neutralColor"),Object(s.k)("happyColor");const o=Object(s.w)("sadColor"),c=Object(s.w)("neutralColor"),u=Object(s.w)("happyColor");var l=n("wFcP");n.d(t,"a",(function(){return d}));const d=(...e)=>{const t=r(Object(s.t)(i.h),Object(s.u)(i.j),Object(s.n)(i.a),Object(s.l)(i.k),Object(s.m)(i.l),Object(s.v)(i.o),Object(s.s)(i.g),Object(s.q)(i.d),Object(s.r)(i.e),Object(s.p)(i.c),o(i.i),c(i.f),u(i.b),Object(s.o)(a.a),...e)({});return Object.assign({components:l.a.components},t)}},EjCB:function(e,t,n){"use strict";n.r(t);n.d(t,"postClearPageTitleNotification",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=()=>{Object(i.a)(r.d)}},EuUD:function(e,t,n){"use strict";const r=(e,t)=>{e&&"string"==typeof e||console.error('Required "name" string property not provider for pattern. Provided: '+typeof e);t&&"function"==typeof t||console.error(`Required "validator" callback not provider for "${e} pattern". Provided: ${typeof t}`)},i=(e,t,n,r)=>{const i=typeof n;if(i!==r){console.error(`Invariant error in ${e} pattern. Pattern.${t}() method can only be passed a ${r}. Provided: ${i}`);return!0}return!1};t.a=({name:e="",inputType:t="string",validator:n=null,rules:a=null,matcher:s=null}={})=>{a&&(n=e=>Object.keys(a).every(t=>a[t].test(e)));r(e,n);const o={name:e,inputType:t,test:(r,a={})=>(!t||!i(e,"test",r,t))&&n(r,a)};s&&"function"==typeof s&&(o.match=n=>(!t||!i(e,"match",n,t))&&s(n));a&&(o.testRules=e=>Object.keys(a).map(t=>({rule:t,valid:a[t].test(e)})));return o}},Euo8:function(e,t,n){"use strict";n.r(t);n.d(t,"isOfficeHoursMessage",(function(){return a}));var r=n("0IK8"),i=n("V1/C");const a=e=>Object(r.getTopLevelType)(e)===i.a},Ex4o:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n.d(t,"b",(function(){return c}));var r=n("Ktcs"),i=n.n(r);const a={prefix:String(Math.round(1e10*Math.random())),current:0},s=i.a.createContext(a);let o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function c(e){let t=Object(r.useContext)(s);t!==a||o||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");return Object(r.useMemo)(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function u(){let e=Object(r.useContext)(s)!==a,[t,n]=Object(r.useState)(e);"undefined"!=typeof window&&e&&Object(r.useLayoutEffect)(()=>{n(!1)},[]);return t}},"F+zP":function(e,t,n){"use strict";n.d(t,"l",(function(){return a}));n.d(t,"x",(function(){return s}));n.d(t,"g",(function(){return o}));n.d(t,"h",(function(){return c}));n.d(t,"k",(function(){return u}));n.d(t,"u",(function(){return l}));n.d(t,"a",(function(){return d}));n.d(t,"c",(function(){return p}));n.d(t,"e",(function(){return f}));n.d(t,"j",(function(){return h}));n.d(t,"i",(function(){return b}));n.d(t,"m",(function(){return g}));n.d(t,"n",(function(){return m}));n.d(t,"o",(function(){return O}));n.d(t,"q",(function(){return v}));n.d(t,"p",(function(){return j}));n.d(t,"r",(function(){return y}));n.d(t,"z",(function(){return E}));n.d(t,"y",(function(){return T}));n.d(t,"A",(function(){return w}));n.d(t,"b",(function(){return I}));n.d(t,"w",(function(){return C}));n.d(t,"s",(function(){return A}));n.d(t,"d",(function(){return x}));n.d(t,"t",(function(){return S}));n.d(t,"v",(function(){return R}));n.d(t,"f",(function(){return D}));var r=n("20uS");const i=e=>{e();return 0},a=self,s=(e,t)=>"function"==typeof setTimeout?setTimeout(e,t):i(e),o=(e,t=(()=>{}))=>"function"==typeof e?e:t,c=Object.keys,u=e=>Boolean(e)&&"object"==typeof e&&"function"==typeof e.then||e instanceof Promise,l=e=>t=>c(e).reduce(t,{}),d=(e="",t="",n="")=>{const r=e.indexOf(t),i=e.indexOf(n);return e.substr(r+t.length,i-r-n.length)},p=(e,t)=>{let n,r=0;return(...i)=>{r&&clearTimeout(r);r=s(()=>{r=0;n=e.apply(null,i)},t);return n}},f=(e={},t={})=>{const n=l(t)((n,r)=>{void 0===e[r]&&void 0!==t[r]&&(n[r]=t[r]);return n});return Object.assign({},e,{},n)},h=e=>Array.hasOwnProperty("isArray")?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e),b=e=>{let t=typeof e;h(e)&&(t="array");return null===e?"null":t},g=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t;const n=16*Math.random()|0;t="x"===e?n:3&n|8;return t.toString(16)}),m=(e={},t)=>l(e)((n,r)=>{n[r]=t(r,e[r]);return n}),O=(e={},t=[])=>l(e||{})((n,r)=>{t.includes(r)||(n[r]=e[r]);return n}),v=(e={},t=[])=>Object.assign({},...t.map(t=>({[t]:e[t]}))),j=e=>{let t,n;return(...r)=>{if(!t){t=!0;n=e(...r)}return n}},y=(e,t)=>c(t).reduce((n,r)=>{const i=t[r];n[r]=i[e];return n},{}),E=(e="",t="")=>{0===(e=e.replace(/^\s+|\s+$/g,"")).indexOf(t)&&(e=e.substr(t.length));e.indexOf(t)===e.length-t.length&&(e=e.substr(0,e.indexOf(t)));return e},T=(e={})=>l(e)((t,n)=>{t[n]=e[n];return t}),w=(e="",t=256)=>{let n=e;if(n.length>t){n=n.substr(0,t);n+="[..]"}return n},I=()=>{const e=[];return{enqueue:t=>e.unshift(t),dequeue:()=>e.shift(),peek:()=>e[0]}},C=(e=[],t,n=a)=>{let r=n;e.forEach(e=>{r=r&&e in r?r[e]:void 0});return void 0===r?t:r},A=(e="")=>e.toString().replace(/(?:^|\.?)([A-Z]+)/g,(e,t)=>"_"+t.toLowerCase()).replace(/^_/,"").replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).replace(/-/g," ").replace(/_/g," ").replace(/\s{2}/g," "),x=e=>{if(e&&"object"==typeof e&&!Object.isFrozen(e)){Object.freeze(e);Object.getOwnPropertyNames(e).forEach(t=>x(e[t]))}return e},S=e=>t=>(n,r)=>{const i={fingerprint:["usage-tracker-js"],tags:e};return o(t)(n,Object.assign({},i,{},r))},_=(e,t="**********")=>e.reduce((e,n)=>Object.assign({},e,{[n]:t}),{}),R=(e={})=>{const t=Object.entries(v(e,r.c)).filter(([,e])=>Boolean(e)).map(([e])=>e),n=Object.entries(e).map(([e,t])=>[e,"function"==typeof t?"Function":t]).map(([e,t])=>[e,void 0===t?null:t]);return Object.assign({},Object.fromEntries(n),{},_(t))},D=e=>{new Promise(t=>t(e())).catch(e=>{throw new Error(e)})}},F3hY:function(e,t,n){"use strict";var r=n("iKGd");const i=()=>r.o,a=()=>r.m,s=()=>r.n;var o=n("9f1P"),c=n.n(o),u=n("7719"),l=n("VfuR"),d=n.n(l),p=n("L82M");const f=({size:e})=>{switch(e){case u.c:return Object(o.css)(["width:10px;height:10px;"]);case u.e:return Object(o.css)(["width:13px;height:13px;"]);case u.f:default:return Object(o.css)(["height:11px;width:11px;"])}},h=({status:e})=>{switch(e){case p.b:return Object(o.css)(["background:",";"],a());case p.a:default:return Object(o.css)(["background:",";"],s())}},b=c.a.div.withConfig({displayName:"VizExStatusIndicator",componentId:"sc-1bq9nyc-0"})(["position:relative;display:inline-flex;::after{content:'';position:absolute;right:0;bottom:1px;border-radius:50%;border:2px solid;border-color:",";"," ","}"],i,f,h);b.propTypes={size:d.a.oneOf([u.c,u.e,u.f]),status:d.a.oneOf([p.b,p.a])};t.a=b},F4Hj:function(e,t,n){"use strict";var r=n("QYOI");const i=-1;var a=n("kg2E"),s=n("Jpeq");t.a=Object(r.Record)({askForEmail:!0,askForEmailMessage:null,captureVisitorEmailAddress:!0,chatHeadingConfig:null,clientTriggers:new a.a,customConsentToProcessMessage:null,customConsentToCommunicateMessage:null,consentToCommunicateSubscriptionId:null,createdAt:null,creatorId:null,customEmailCaptureDelay:null,id:i,inboxId:null,initialMessage:null,lastEditedAt:null,lastEditorId:null,name:null,popMessageOnSmallScreens:!0,popOpenWelcomeMessage:!0,popOpenWidget:!1,portalId:null,gdprConsentToProcessEnabled:!1,gdprConsentToCommunicateEnabled:!1,cookieConsentPrompt:s.a,gdprExplicitConsentRequired:!0,knowledgeBaseEnabled:!1,searchableKnowledgeBaseIds:Object(r.List)()},"Message")},FFIQ:function(e,t,n){"use strict";n.r(t);n.d(t,"getHasMessagesCookieBeenSaved",(function(){return s}));var r=n("MBJP"),i=n("TA7Z"),a=n("4Brc");const s=Object(r.a)([a.a],e=>!Object(i.a)(e))},FSHJ:function(e,t,n){"use strict";n.r(t);n.d(t,"OPT_OUT_YES",(function(){return s}));n.d(t,"OPT_OUT_NO",(function(){return o}));n.d(t,"getGlobalCookieOptOut",(function(){return c}));var r=n("MBJP"),i=n("4Brc"),a=n("jTJg");const s="yes",o="no",c=Object(r.a)(i.a,e=>Object(a.getGlobalCookieOptOut)(e))},FU2H:function(e,t,n){var r=n("8X3F"),i=n("gwVP"),a="[object Symbol]";function s(e){return"symbol"==typeof e||i(e)&&r(e)==a}e.exports=s},Fjoq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return s}));var r=n("MJM1");const i=Object(r.a)(["accentColor"]),a=Object(r.a)(["textColor"]),s=Object(r.a)(["useDefaultColor"])},Fkmh:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=5500},FubB:function(e,t,n){e.exports=n.dlbpr(1,71)},G0k2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("a3lm"),i=n("Avso");const a=e=>Object(i.getAgentType)(e)===r.b},G2Xo:function(e,t,n){"use strict";var r=n("npjq");t.a=(e,t)=>{const n={};for(const e in t)"string"==typeof t[e]?n[e]=r.a.SafeString(t[e]):n[e]=t[e];return r.a.text(e,n)}},GHgd:function(e,t,n){"use strict";n.r(t);n.d(t,"timeOnPageTriggerEnabled",(function(){return o}));var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("UBEt");const o=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),o=Object(a.c)(n);return Object(s.a)(o)}},GPDt:function(e,t,n){"use strict";n.r(t);var r=n("ipOz"),i=n.n(r),a=n("wMOD"),s=n("CdQ/"),o=n("nDpY"),c=n.n(o),u=n("F+zP"),l=n("Gpbg"),d=n.n(l),p=n("yYAF"),f=n("LZPL"),h=n.n(f);const b=53,g="USAGE_TRACKER_JS",m="__hstc",O="__hmpl",v="USAGE_TRACKER_JS_RECORDER_ENABLED",j="USAGE_TRACKER_JS_RECORDED_EVENTS",y="USAGE_TRACKER_JS_RECORDED_EVENT_KEYS",E="HUBLYTICS_EVENTS_53",T=e=>{const t=e=>"object"==typeof e.Raven&&"function"==typeof e.Raven.captureException&&"function"==typeof e.Raven.captureMessage;if(void 0===e){let e=0,n=!1;return{hasRaven:t,addEventListener:()=>!1,dispatchWindowEvent:()=>!1,isDocumentVisible:()=>!1,isDocumentReady:()=>{if(n||e)return n;e=Object(u.x)(()=>{n=!0},6e3);return n},isLocalDeployment:!1,isQaDeployment:!1,isProdDeployment:!1,isDebugEnabled:!1,hasLocalStorage:!1,hasCookieAccess:!1,hasBeaconSupport:!1}}const n=()=>{try{return Boolean(e.localStorage)}catch(e){return!1}},r=()=>{const{navigator:t,document:n}=e;try{return"object"==typeof t&&t.cookieEnabled||"object"==typeof n&&Boolean(n.cookie)}catch(e){return!1}},i=()=>{const{navigator:t}=e;try{return"object"==typeof t&&"function"==typeof t.sendBeacon}catch(e){return!1}},a=()=>{const{document:t}=e;try{return"object"==typeof t&&"string"==typeof t.visibilityState&&"visible"===t.visibilityState}catch(e){return!1}};return{hasRaven:t,isDocumentReady:()=>{const{document:t}=e;try{return"object"==typeof t&&"string"==typeof t.readyState&&"complete"===t.readyState}catch(e){return!1}},addEventListener:(t,n)=>{const{document:r,addEventListener:i}=e;return"object"==typeof r&&"function"==typeof i&&i(t,n)},dispatchWindowEvent:(t,n)=>{const{document:r,CustomEvent:i}=e;if("object"==typeof r&&"function"==typeof i){const r=new i(t,{detail:n});return e.dispatchEvent(r)}return!1},isLocalDeployment:!h.a.deployed(),isQaDeployment:h.a.isQa(),isProdDeployment:h.a.isProd(),isDebugEnabled:Boolean(h.a.debug(g)),hasLocalStorage:n(),hasCookieAccess:r(),hasBeaconSupport:i(),isDocumentVisible:a}},{hasRaven:w,isDocumentReady:I,addEventListener:C,dispatchWindowEvent:A,hasLocalStorage:x,hasCookieAccess:S,hasBeaconSupport:_,isLocalDeployment:R,isQaDeployment:D,isProdDeployment:M,isDebugEnabled:N,isDocumentVisible:P}=T(void 0!==u.l?u.l:void 0);const k=18e5,L=[{name:"windows 10",pattern:/(Windows 10.0|Windows NT 10.0)/},{name:"windows 8",pattern:/(Windows 8|Windows8.1|Windows NT 6.2|Windows NT 6.3)/},{name:"windows 7",pattern:/(Windows 7|Windows NT 6.1)/},{name:"windows vista",pattern:/Windows NT 6.0/},{name:"windows xp",pattern:/(Windows NT 5.1|Windows XP)/},{name:"android",pattern:/Android/},{name:"linux",pattern:/(Linux|X11)/},{name:"ios",pattern:/(iPhone|iPad|iPod)/},{name:"mac",pattern:/Mac OS X|MacPPC|MacIntel|Mac_PowerPC|Macintosh/}],B=(e,t)=>({device_id:t||u.m(),last_event_id:0,last_sequence_number:0,last_timestamp_checked_against_session:e,session_id:e}),F=(e,t,n)=>{const r=e(O);if(r)try{return JSON.parse(r)}catch(e){}return B(t,n)},H=(e,t)=>{e(O,JSON.stringify(t))},U=(e,t,n)=>{const{device_id:r,last_event_id:i,last_sequence_number:a,last_timestamp_checked_against_session:s,session_id:o}=e,c={device_id:r,last_event_id:i,last_sequence_number:a,last_timestamp_checked_against_session:s,session_id:o};if(t-s>k){c.last_event_id=0;c.session_id=t}c.last_event_id=i+1;c.last_sequence_number=a+1;c.last_timestamp_checked_against_session=t;if(n&&n!==r){c.device_id=n;c.last_event_id=0;c.last_sequence_number=0;c.session_id=t}return c},G=(e,t,n,r)=>{const i=U(F(e,n,r),n,r);u.f(()=>H(t,i));return i},q=e=>{const t=L.find(({pattern:t})=>t.test(e));return t?t.name:"unknown"},W=({getCurrentHref:e,getNetworkType:t,getNetworkSpeed:n,getTempStorage:r,setTempStorage:i},a)=>{const s=Date.now(),o=e(),c=G(r,i,s,a),l=Object.assign({},c,{timestamp:s,currentPageUrl:"",networkType:"",networkSpeed:"",hasDeviceIdOverride:!1});l.currentPageUrl=u.A(o,256);l.networkType=t();l.networkSpeed=n();a&&"string"==typeof a&&(l.hasDeviceIdOverride=!0);return l},V=({clientName:e,getReferrer:t,getUserAgent:n,getScreenWidth:r,getScreenHeight:i,getWindowWidth:a,getWindowHeight:s,getDeployableName:o,getDeployableVersion:c})=>{const l={windowWidth:-1,windowHeight:-1,screenWidth:-1,screenHeight:-1,screenSize:"",lastPageUrl:"",howOsDetailed:"",singlePageAppSessionId:Date.now(),trackingClient:e||"custom",deployableName:"",deployableVersion:""};l.windowWidth=a();l.windowHeight=s();l.deployableName=o();l.deployableVersion=c();l.howOsDetailed=q(u.a(n(),"(",")"));l.screenWidth=r();l.screenHeight=i();isNaN(r())||(r()>1024?l.screenSize="large (> 1024)":r()>680?l.screenSize="medium (680 - 1024)":l.screenSize="small (< 680)");const d=t();l.lastPageUrl=u.A(d,256);return l},z=(e,t)=>{const n=Object.assign({},t,{},e),r=u.h(n).filter(e=>!n[e]);return u.o(n,r)},J=(e,t,n,r=!0)=>{const i=u.y(n),a=()=>u.h(i),s=(n,r,s)=>{a().forEach(a=>{const{types:o,oneOf:c,isOptional:l}=i[a],d=n[a],p=void 0!==d,f=u.i(d);if(!l&&!p)throw t(`Missing required ${e} "${a}". ${r} requires that a value be passed for ${e} "${a}". Received "undefined".`);if(p){if(u.j(o)&&!o.includes(f))throw t(`Invalid ${e}. ${r} requires that the "${a}" ${e} type be one of ["${o.join('", "')}"]. Received "${f}".`);if("function"!==f){if(u.j(c)&&!c.includes(String(d)))throw t(`Invalid ${e}. ${r} requires that the "${a}" ${e} be one of ["${c.join('", "')}"]. Received "${d}".`);u.g(s)({key:a,entry:d,isOptional:l})}}});return!0},o=(e,t)=>{u.h(e).forEach(n=>{const r=e[n];s(r,t)})},c=e=>{const t=u.r("default",i),n=u.e(e,t);return r?u.q(n,a()):n},l=e=>u.u(e)((t,n)=>{const r=e[n];t[n]=c(r);return t});return{getKeys:a,mutate:n=>{const a=n(u.n(i,e=>u.y(i[e])));return J(e,t,a,r)},normalize:c,normalizeEach:l,validate:s,validateEach:o,_peek:()=>u.d(i)}},K=(e,t,n)=>{const r=new Error(t);r.name=e;r.stack=`${e}: ${t}`;r.cause=n;return r},Y=e=>{if(e&&e.name&&e.stack&&"object"==typeof e.cause){const t=e.cause;return Boolean(t&&t.type&&t.dangerLevel)}return!1},Q=(e,t)=>Y(e)?"object"==typeof t&&"object"==typeof t.extra?Object.assign({},t,{extra:Object.assign({},t.extra,{},e.cause)}):Object.assign({},t,{extra:Object.assign({},e.cause)}):t,Z=e=>K("UsageTrackerGenericWarning",e,{type:"generic warning",dangerLevel:"This error does not break tracking or the execution thread."}),X=e=>K("UsageTrackerError",e,{type:"generic error",dangerLevel:"This error breaks the execution thread."}),$=e=>K("UsageTrackerConfigError",e,{type:"config error",dangerLevel:"This error breaks the execution thread."}),ee=e=>K("UsageTrackerEventError",e,{type:"event error",dangerLevel:"This error breaks tracking, but not the execution thread."}),te=J("client dependency",$,{clientName:{types:["string"],default:"custom"},getDebug:{types:["function"]},getEmail:{types:["function"]},getHubId:{types:["function"]},getHstc:{types:["function"]},getLang:{types:["function"]},getCurrentHref:{types:["function"],isOptional:!0,default:()=>u.w(["window","location","href"],"")},getReferrer:{types:["function"],isOptional:!0,default:()=>u.w(["document","referrer"],"")},getUserAgent:{types:["function"],isOptional:!0,default:()=>u.w(["navigator","userAgent"],"")},getNetworkType:{types:["function"],isOptional:!0,default:()=>u.w(["navigator","connection","effectiveType"],"")},getNetworkSpeed:{types:["function"],isOptional:!0,default:()=>u.w(["navigator","connection","downlink"],"")},getScreenWidth:{types:["function"],isOptional:!0,default:()=>u.w(["screen","width"],"")},getScreenHeight:{types:["function"],isOptional:!0,default:()=>u.w(["screen","height"],"")},getWindowWidth:{types:["function"],isOptional:!0,default:()=>u.w(["window","innerWidth"],"")},getWindowHeight:{types:["function"],isOptional:!0,default:()=>u.w(["window","innerHeight"],"")},getDeployableName:{types:["function"],isOptional:!0,default:()=>u.w(["window","hubspot","bender","currentProject"],"")},getDeployableVersion:{types:["function"],isOptional:!0,default:()=>u.w(["window","hubspot","bender","currentProjectVersion"],"")},logMessage:{types:["function"],isOptional:!0,default:(...e)=>u.w(["console","debug"],(...e)=>e)(...e)},logWarning:{types:["function"],isOptional:!0,default:(...e)=>u.w(["console","warn"],(...e)=>e)(...e)},logError:{types:["function"],default:(...e)=>u.w(["console","error"],(...e)=>e)(...e)},reportError:{types:["function"],isOptional:!0,default:()=>{}},reportWarning:{types:["function"],isOptional:!0,default:()=>{}},getTempStorage:{types:["function"]},setTempStorage:{types:["function"]},send:{types:["function"]}}),ne=J("config option",$,{trackerName:{types:["string"],isOptional:!0,default:"default"},allowUnauthed:{types:["boolean"],isOptional:!0,default:!1},bypassPool:{types:["boolean"],isOptional:!0,default:!1},debug:{types:["boolean","function"],isOptional:!0},events:{types:["object"]},isBeforeUnload:{types:["boolean"],isOptional:!0,default:!1},isExternalHost:{types:["boolean"],isOptional:!0,default:!1},lastKnownEventProperties:{types:["array"],isOptional:!0,default:[]},onError:{types:["function"],isOptional:!0},onWarning:{types:["function"],isOptional:!0},onScheduled:{types:["function"],isOptional:!0,default:()=>{}},preserveTrackerProperties:{types:["boolean"],isOptional:!0,default:!0},preserveTrackerEvents:{types:["boolean"],isOptional:!0,default:!1},properties:{types:["object"],isOptional:!0,default:{}}}),re=J("tracker properties",$,{email:{types:["string","function","object","null"]},hubId:{types:["number","function","object","null"]},hstc:{types:["string","function","object","null"]},lang:{types:["string","function","object","null"]},deviceId:{types:["string","function","object","null"],isOptional:!0}},!1),ie=J("event property",$,{name:{types:["string"]},namespace:{types:["string"],isOptional:!0,default:""},class:{types:["string"],oneOf:[...["activation","creation","error","exposure","funnel","interaction","none","signup","usage","view","warning"]]},version:{types:["string"],isOptional:!0,default:"v1"},properties:{types:["object"],isOptional:!0,default:{}},meta:{types:["object"],isOptional:!0}}),ae=["boolean","string","number","array"],se=J("event property",$,{type:{types:["string","array"],oneOf:[...ae]},isOptional:{types:["boolean"],isOptional:!0,default:!1},description:{types:["string"],isOptional:!0,default:""}}),oe=({getTempStorage:e,setTempStorage:t})=>{const n=Object(u.b)();return{peek:n.peek,push:r=>{n.enqueue(r);Object(u.f)(()=>{try{const n=e(E)||"[]",i=JSON.parse(n);t(E,JSON.stringify(i.concat(r)))}catch(e){t(E,JSON.stringify([r]))}})},flush:()=>{const e=[];do{const t=n.dequeue();t&&e.unshift(t)}while(n.peek());Object(u.f)(()=>t(E,"[]"));return e}}},ce=(e,t=2e3,n=3)=>{let r=0,i=0,a=e();const s=e=>e(),o=o=>{r||(r=setInterval(()=>{const t=i>=n;a=e()||t;if(a){clearInterval(r);s(o);r=0;i=0}else i+=1},t))},c=u.c(s,t);return{scheduleFlush:e=>a?c(e):o(e)}},ue=(e,t,n)=>{let r=`[usage-tracker-core "${e}"] ${t}`;n&&n.trim().length>0&&(r+=`\n----------------------------------------\n${n}\n----------------------------------------`);return r},le=e=>(t,n,r)=>{const{where_app:i,what_event:a}=r||{},s=`eventKey: ${t}\neventType: ${`[${u.s(i)}] `+u.s(a)}`,o=JSON.parse(JSON.stringify(r||{}));o.what_extra_json=JSON.parse(o.what_extra_json||"{}");e(ue("debug log",n,s),o)},de=(e,t)=>(n,r)=>{e(n);u.g(t)(n,r)},pe=(e,t)=>(n,r)=>{e(n);u.g(t)(n,r)},fe=(e,t,n)=>r=>(i,a)=>{e(a);const s=Z(`Property "${i}" failed to resolve asynchronously and will fallback to "null".`);t(s);u.g(n)(a,{extra:{propertyName:i},fingerprint:["usage-tracker-js","tracker:failedResolveProperty","event:"+r]})};var he=n("slCD"),be=n("20uS");const ge=(e,t,n)=>{const r=t||n;if(!r||"*"===r)throw ee(`Namespace not found for "${e}".`);return r},me=(e,t)=>{!e.who_email&&t.raw.email&&(e.who_email=t.raw.email);!e.who_identifier&&t.raw.userId&&(e.who_identifier=t.raw.userId);e.who_identifier_v2||(e.who_identifier_v2=t.user);e.who_team_identifier||(e.who_team_identifier=t.team);e.utk||(e.utk=t.utk);return e},Oe=(e,t)=>{const{namespace:n,lang:r,screen:i,subscreen:a,timestamp:s,device_id:o,session_id:c,last_sequence_number:l,last_event_id:d}=t,p=Object(he.a)(t,["namespace","lang","screen","subscreen","timestamp","device_id","session_id","last_sequence_number","last_event_id"]),f=p,h=u.o(f,[...be.c,...be.b]),g=["function","object","null","undefined"],m=u.u(h)((e,t)=>{let n=f[t];const r=u.i(n);if(g.includes(r))return e;if("string"===r&&""===n.trim())return e;u.j(n)&&(n=n.filter(e=>null!=e));e[t]=n;return e});m.locale=r;const O={hublytics_account_id:b,where_app:ge(p.eventKey,e.namespace,n),where_screen:i||"unknown",where_subscreen:a||"",when_timestamp:s,device_id:o,session_id:c,event_id:d,sequence_number:l,language:r,what_event:e.name,what_event_class:e.class.toUpperCase(),what_version:e.version,what_extra_json:JSON.stringify(m),library_name:"usage-tracker-js",library_version:1};"string"==typeof t.subscreen2&&(O.where_subscreen2=t.subscreen2);be.b.forEach(e=>{const n=t[e];"string"==typeof n&&(O[e]=n)});return O},ve=(e,t,n)=>{const r=Oe(e,t);return n?me(r,n):r},je=({deviceId:e,utk:t,email:n,hubId:r},{allowUnauthed:i,isExternalHost:a})=>{let s,o,c;r&&(c=r);n?o=`EMAIL:::${n}:::${b}`:t?s=a?`TEMP_ID:::${t}:::${b}`:`VISITOR:::${t}:::${b}`:e&&(s=`TEMP_ID:::${e}:::${b}`);if(!o&&!i)throw ee("Could not identify an authenticated user. Please specify an email address (email).");if(!c&&!i)throw ee("Could not identify a HubSpot Portal ID. Please specify a Portal ID (hubId).");if(!s&&!o&&i)throw ee("Could not identify the user. Please specify an email address (email) or an __hstc cookie (hstc) or a device id (deviceId).");return{user:o||s,team:c}},ye=e=>{let t;if(e){const n=e.split(".");n.length>1&&(t=n[1])}return t},Ee=({email:e,userId:t,hubId:n,hstc:r,deviceId:i},{allowUnauthed:a,isExternalHost:s})=>{const o=ye(r),{user:c,team:u}=je({deviceId:i,utk:o,email:e,hubId:n},{allowUnauthed:a,isExternalHost:s});return{user:c,team:u,utk:o,raw:{email:e,userId:t,hubId:n,hstc:r,deviceId:i}}},Te=e=>u.n(e,t=>{const n=e[t];n.properties=u.n(n.properties,(e,t)=>"string"==typeof t||u.j(t)?{type:t,isOptional:!1}:t);n.properties=se.normalizeEach(n.properties);return n}),we=e=>{const t=Object.freeze(e),n=e=>{const n=t[e];if(!n||"object"!=typeof n)throw ee(`Invalid event key. The event definition for "${e}" is undefined. Check your events.yaml dictionary.`);return n},r=(e,t={})=>{const r=n(e).properties||{},i=t||{},a=[...ae,"null"],s=u.n(r,e=>{const{type:t,isOptional:n}=r[e];if(n)return{types:a,isOptional:!0};if("string"==typeof t){if(ae.includes(t))return{types:[t],isOptional:!1};if(t.includes("oneOf")){return{oneOf:u.a(t,"[","]").split(",").map(e=>u.z(u.z(e,'"'),"'")),isOptional:!1}}}return{oneOf:t,isOptional:n}}),o=u.n(i,()=>({types:a,isOptional:!0})),c=u.e(s,o);return J("event property",ee,c,!1)};return{getDefinition:n,createPropertySchema:r,getAll:()=>t}},Ie=(e,t)=>{const n=ie.normalizeEach(e);ie.validateEach(n,t);return Te(n)},Ce=e=>{const t=u.t({"tracker.client":e.clientName,"tracker.name":e.trackerName}),n=le(e.logMessage),r=de(e.logError,t(e.onError)),i=we(e.events),a=re.mutate(e=>({email:Object.assign({},e.email,{types:["string","null"]}),hubId:Object.assign({},e.hubId,{types:["number","null"]}),hstc:Object.assign({},e.hstc,{types:["string","null"]}),lang:Object.assign({},e.lang,{types:["string","null"]}),deviceId:Object.assign({},e.deviceId,{types:["string"]})})),s=u.g(e.debug,()=>e.debug)(),o=(e,t)=>{try{i.createPropertySchema(e,t).mutate(e=>Object.assign({},e,{},a._peek())).validate(t,`Event "${e}"`);return!0}catch(n){r(n,{extra:{eventKey:e,eventProperties:u.v(t)},fingerprint:["usage-tracker-js","tracker:validateProperties","event:"+e]});return!1}},c=e=>{try{return i.getDefinition(e)}catch(t){r(t,{extra:{eventKey:e},fingerprint:["usage-tracker-js","tracker:getDefinition","event:"+e]});return null}},l=(t,n)=>{const i={email:n.email,userId:n.userId,hubId:n.hubId,hstc:n.hstc};n.deviceId&&(i.deviceId=n.deviceId);const a={allowUnauthed:e.allowUnauthed,isExternalHost:e.isExternalHost};try{return Ee(i,a)}catch(e){r(e,{extra:Object.assign({eventRawIdentifiers:u.v(i),eventProperties:u.v(n)},a),fingerprint:["usage-tracker-js","tracker:getIdentifiers","event:"+t]});return null}},d=(e,t,n,i)=>{try{return ve(t,n,i)}catch(t){r(t,{extra:{eventKey:e,eventProperties:u.v(n),eventIdentifiers:u.v(i?i.raw:void 0)},fingerprint:["usage-tracker-js","tracker:createEvent","event:"+e]});return null}},p=(t,n,i)=>{try{e.scheduleEvent(t,n,u.q(e,["bypassPool","isBeforeUnload","isExternalHost"]));u.f(()=>u.g(e.onScheduled)(t));return!0}catch(e){r(e,{extra:{eventKey:t,eventIdentifiers:u.v(i.raw)},fingerprint:["usage-tracker-js","tracker:dispatchEvent","event:"+t]});return!1}};return(e,t,r)=>{const i=c(e);if(!i)return!1;const a=r(i);if(!o(e,a))return!1;const f=u.e(a,t),h=l(e,f),b=Object.assign({},u.o(f,["hasDeviceIdOverride","deviceId"]),{eventKey:e}),g=d(e,i,b,h||void 0);if(h&&g){s&&n(e,"Event is being dispatched to be sent.",g);return p(e,g,h)}s&&n(e,"Event was not dispatched.",g||void 0);return!1}},Ae=(e={},t,n)=>{const r={},i=u.h(e),a=i.length,s=i.reduce((t,n)=>{const i=e[n];if(i&&"function"==typeof i){t.push({key:n,func:i});return t}if(i&&u.k(i)){t.push({key:n,promise:i});return t}r[n]=i;return t},[]),o=()=>{Object.keys(r).length===a&&t(r)};if(s.length){const e=(e,t)=>{r[e]=t;o()},t=(e,t)=>{r[e]=null;u.g(n)(e,t);o()};return s.forEach(({key:n,promise:r,func:i})=>{const a=i?new Promise(e=>e(i())):r;a&&a.then(t=>e(n,t)).catch(e=>t(n,e))})}return t(r)},xe=e=>{let t=Object.assign({},e.properties);const n=u.t({"tracker.client":e.clientName,"tracker.name":e.trackerName}),r=fe(e.logError,e.logWarning,n(e.onError)),i=u.g(e.debug,()=>e.debug)(),a=pe(e.logWarning),s=n=>{const r=e.lastKnownEventProperties;r&&r.length&&r.forEach(e=>{const r=n[e],i=u.i(r);ae.includes(i)&&(t[e]=r)})};return{resolveProperties:(e,n,i)=>{Ae(t,e=>{t=u.e(e,t);s(n);i(u.y(t))},r(e))},createPropertiesFilter:(t,n)=>r=>{const s=u.h(r.properties),o=e=>be.a.includes(e)||s.includes(e),c=Object.entries(n).filter(([e,t])=>!o(e)&&null!=t);if(c.length){a(Z(`Event "${t}" is possibly being tracked with unexpected properties. See go/unexpectedproperties`));i&&e.logMessage(ue("debug log",`Event "${t}" has unexpected Properties.`,"unexpectedProperties: "+c.map(e=>`"${e}"`).join(", ")))}return n},getCache:()=>u.y(t),addToCache:(e,n)=>{t[e]=n}}},Se=(e,t)=>{if(!t||"object"!=typeof t)throw $(`Invalid argument. The "createTracker" function requires to be passed a config argument of type "object". Received type "${typeof t}".`);const n=ne.mutate(t=>Object.assign({},t,{debug:Object.assign({},t.debug,{default:e.getDebug}),onError:Object.assign({},t.onError,{default:e.reportError}),onWarning:Object.assign({},t.onWarning,{default:e.reportWarning})})),r=re.mutate(t=>Object.assign({},t,{email:Object.assign({},t.email,{default:e.getEmail}),hubId:Object.assign({},t.hubId,{default:e.getHubId}),hstc:Object.assign({},t.hstc,{default:e.getHstc}),lang:Object.assign({},t.lang,{default:e.getLang})})),i=n.normalize(t);n.validate(i,'"createTracker"');const a=r.normalize(i.properties||{});r.validate(a,'"createTracker"');const s=Ie(i.events,'"createTracker"');return Object.assign({events:s,properties:a},u.o(i,["events","properties"]),{},e)},_e=(e,t={})=>{const n=Se(e,t),r=Ce(n),i=xe(n),a=u.g(t.debug,()=>t.debug)();return{clone:(t={})=>{if(!t||"object"!=typeof t)throw X(`Invalid argument. The "clone" method requires to be passed a valid tracker config of type "object". Received type "${typeof t}".`);const r=u.o(u.e(t,n),u.h(e)),a=u.q(i.getCache(),re.getKeys()),s=u.o(i.getCache(),u.h(a));r.properties=u.e(t.properties||{},a);r.preserveTrackerProperties&&(r.properties=u.e(r.properties,s));r.preserveTrackerEvents&&(r.events=u.e(r.events||{},n.events));return _e(e,r)},getConfig:()=>{if(a)return Object.assign({},u.o(n,["properties"]),{properties:i.getCache()});throw X("Invalid call. This method should only be used when 'debug: true'. Please do not use this in production.")},setProperties:(e={})=>{if(!e||"object"!=typeof e)throw X(`Invalid argument. The "setProperties" method requires to be passed a properties argument of type "object". Received type "${typeof e}".`);u.h(e).forEach(t=>{i.addToCache(t,e[t])})},track:(e,t={})=>{if(!e||"string"!=typeof e)throw X(`Invalid argument. The "track" method requires to be passed an eventKey of type "string". Received type "${typeof e}".`);if(!t||"object"!=typeof t)throw X(`Invalid argument. The "track" method requires the 2nd arg to be passed eventProperties of type "object". Received type "${typeof t}".`);t.deviceId&&i.addToCache("deviceId",t.deviceId);i.resolveProperties(e,t,a=>{const s=a.deviceId,o=n.getMetaProperties({deviceIdOverride:s?s.toString():null});r(e,o,i.createPropertiesFilter(e,u.e(t,a)))})}}},Re=(e={})=>{const t=te.normalize(e);te.validate(t,'"createClient"');const{clientName:n,getDebug:r,getEmail:i,getHubId:a,getHstc:s,getLang:o,getCurrentHref:c,getReferrer:l,getUserAgent:d,getNetworkType:p,getNetworkSpeed:f,getScreenWidth:h,getScreenHeight:b,getWindowWidth:g,getWindowHeight:m,getDeployableName:O,getDeployableVersion:T,getTempStorage:w,logMessage:x,logWarning:S,logError:_,reportError:R,reportWarning:D,send:M,setTempStorage:N}=t,k=oe({getTempStorage:w,setTempStorage:N}),{scheduleFlush:L}=ce(I),B=(e,t)=>{const{isBeforeUnload:n,isExternalHost:r}=t;let i="clientSendTimestamp="+Date.now();r&&(i+="&dil=true");M({events:e,query:i,isBeforeUnload:!!n})},F=e=>{const t=k.flush();t&&t.length&&B(t,e)},H=(e,t)=>{e.forEach(e=>k.push(e));Object(u.f)(()=>L(()=>F(t)))},U={clientName:n,getCurrentHref:c,getReferrer:l,getUserAgent:d,getNetworkType:p,getNetworkSpeed:f,getScreenWidth:h,getScreenHeight:b,getWindowWidth:g,getWindowHeight:m,getDeployableName:O,getDeployableVersion:T,getTempStorage:w,setTempStorage:N},G=Object(u.p)(V),q=e=>{const t=G(U),n=W(U,e.deviceIdOverride);return z(t,n)},J=(e,t)=>{try{const t=w(y)||"[]",n=JSON.parse(t).reverse().slice(0,49).reverse();N(y,JSON.stringify(n.concat(e)))}catch(e){N(y,"[]")}try{const e=w(j)||"[]",n=JSON.parse(e).reverse().slice(0,49).reverse();N(j,JSON.stringify(n.concat(t)))}catch(e){N(j,"[]")}},K=e=>{try{const t=w(E)||"[]",n=JSON.parse(t);Object(u.j)(n)&&n.length>0&&B(n,{isExternalHost:e.isExternalHost,isBeforeUnload:!0})}catch(e){}finally{N(E,"[]")}},Y=(e="",t,n)=>{(n.bypassPool||n.isBeforeUnload?B:H)([t],n);Object(u.f)(()=>A("usageTrackerEvent",{eventKey:e,eventPayload:t}));Object(u.f)(()=>{"true"===w(v)&&J(e,t)})};return{createTracker:e=>{C("beforeunload",()=>F({isExternalHost:e.isExternalHost,isBeforeUnload:!0}));C("visibilitychange",()=>{P()||F({isExternalHost:e.isExternalHost,isBeforeUnload:!0})});Object(u.f)(()=>K(e));return _e({clientName:n,getMetaProperties:q,getDebug:r,getEmail:i,getHubId:a,getHstc:s,getLang:o,logError:_,logMessage:x,logWarning:S,reportError:R,reportWarning:D,scheduleEvent:Y},e)}}},De=(e,t)=>{const n=("; "+t).split(";");if(n.length)for(let t=0;tS?De(e,u.l.document.cookie):null;function Ne(){return Me(m)||null}var Pe={getItem:(e="")=>{if(x)try{return u.l.localStorage.getItem(e)||""}catch(e){}return null},setItem:(e="",t="")=>{if(x)try{u.l.localStorage.setItem(e,t||"")}catch(e){}return t},removeItem:(e="")=>{if(x)try{u.l.localStorage.removeItem(e)}catch(e){}}};var ke={getHstc:Ne,sendBeacon:(e,t,n=(()=>{}))=>{let r=!1;if(_)try{const n=new Blob([JSON.stringify(t)],{type:"text/plain"});r=u.l.navigator.sendBeacon(e,n)}catch(e){}r||"function"!=typeof n||n();return r},reportError:(e,t={})=>"object"==typeof u.l&&w(u.l)&&u.l.Raven.captureException(e,Q(e,Object.assign({},t,{level:"error"}))),reportWarning:(e,t={})=>"object"==typeof u.l&&w(u.l)&&u.l.Raven.captureException(e,Q(e,Object.assign({},t,{level:"warning"}))),getDebug:()=>N,getLang:(e="en-US")=>{if(void 0!==u.l&&"object"==typeof u.l.navigator){const e=u.l.navigator.languages?u.l.navigator.languages[0]:u.l.navigator.language;if(e)return e.toLocaleLowerCase()}return e},getTempStorage:Pe.getItem,setTempStorage:Pe.setItem,logError:(...e)=>{(R||D||N)&&console.error(...e)},logWarning:(...e)=>{(R||D||N)&&console.warn(...e)}};const Le=Object(u.p)((e=2e3)=>new Promise(t=>{let n=0,r=0;const i=()=>{const e=ke.getHstc();if(e){clearTimeout(r);clearInterval(n);t(e)}};n=setInterval(i,100);r=setTimeout(()=>{clearInterval(n);t(null)},e);i()})),Be=Object(p.getFullUrl)("app-api"),Fe="/usage-logging/v1/log/hublytics-multi/no-auth",He=e=>ke.reportError(e,{fingerprint:["usage-tracker-js","network"]});var Ue=Re({clientName:"public",getDebug:ke.getDebug,getLang:ke.getLang,getTempStorage:ke.getTempStorage,setTempStorage:ke.setTempStorage,logWarning:ke.logWarning,logError:ke.logError,reportWarning:ke.reportWarning,reportError:ke.reportError,getHstc:Le,getEmail:()=>null,getHubId:()=>null,send:({events:e,query:t})=>{const n=`${Be}${Fe}?${t}`,r=()=>{d.a.post(n,{data:e}).catch(He)};ke.sendBeacon(n,e,r)}});const Ge={allowUnauthed:!0,isExternalHost:!0,events:void 0},qe=e=>{const t=Object(u.e)(e||Ge,Ge);return Ue.createTracker(t)};var We=n("+2tz"),Ve=n.n(We);const ze=()=>qe({events:Ve.a,isExternalHost:!1,properties:{namespace:"conversations-visitor-ui",hubId:c.a.get(),isIncludedInPageViewSample:!1}});var Je=n("JTxz");function Ke({messagesUtk:e}){return{namespace:"conversations-visitor-ui",hubId:c.a.get(),hstc:"."+e,email:null,lang:null,isIncludedInPageViewSample:Math.random()qe({events:Ve.a,properties:Ke({messagesUtk:e,portalId:t})});function Qe({messagesUtk:e,inApp53:t=!1}){return t?ze({messagesUtk:e}):Ye({messagesUtk:e})}n.d(t,"getUsageTracker",(function(){return Xe}));const Ze=()=>Qe({messagesUtk:Object(s.getMessagesUtk)(),inApp53:Object(a.a)()}),Xe=i()(Ze)},GPZA:function(e,t,n){"use strict";const r={STARTED:"STARTED",ENDED:"ENDED"};t.a=r},GQQt:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchAgentResponderIfNecessary",(function(){return f}));var r=n("aLTZ"),i=n("Mx3c"),a=n("kP7l"),s=n("6sJ9"),o=n("fl6v"),c=n("KXN9"),u=n("E6wg"),l=n("Avso"),d=n("eEyY");const p=e=>e===i.BOT?r.a:r.b,f=({senderId:e,senderType:t})=>(n,r)=>{const i=Object(o.getResponders)(r()),f=Object(s.getResponderByIdAndType)({responders:i,senderId:e,senderType:t}),h=Object(c.a)(f),b=Object(l.getUserId)(h),g=Object(d.getCurrentThreadId)(r());if(!e||b||!g)return;const m=p(t);n(Object(a.fetchAgentResponder)({senderId:e,agentType:m,sessionId:Object(u.getSessionId)(r()),threadId:Object(d.getCurrentThreadId)(r())}))}},GRT8:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));n.d(t,"b",(function(){return w}));var r=n("QYOI"),i=n("GcWH"),a=n("KO+H"),s=n("l0Ga"),o=n("V1/C"),c=n("xrOf"),u=n("KZZz"),l=n("P0El"),d=n("12C0"),p=n("nguO"),f=n("7Qhs"),h=n("0GyJ"),b=n("30KC"),g=n("6OYF"),m=n("xfs0"),O=n("XF21"),v=n("Tt13"),j=n("xw4j"),y=n("Blk5"),E=n("t+8h");const T=Object(r.List)([a.a,s.a,o.a,g.a]),w=Object(r.List)([i.a,u.a,h.a,p.a,E.a,p.b,v.a]).concat(T);Object(r.List)([d.a,c.a,f.a,l.a,b.a,m.a,O.a,j.a,y.a]).concat(w)},GXXt:function(e,t,n){"use strict";var r=n("3Yas"),i=n("QYOI");const a=()=>{};r.e.implement(null,a);r.e.implement(void 0,a);r.e.implementInherited(i.Iterable,(e,t)=>t.get(e));t.a=r.e},Gc2C:function(e,t,n){"use strict";const r=(e,t,n,r,i,a,s,o)=>{if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{const c=[n,r,i,a,s,o];let u=0;e=new Error("Invariant Violation: "+t.replace(/%s/g,()=>c[u++]))}e.framesToPop=1;throw e}};t.a=r},GcWH:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="INITIAL_MESSAGE"},GdKg:function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("9f1P"),s=n.n(a),o=n("VfuR"),c=n.n(o),u=n("7719"),l=n("V/xu"),d=n("VKqs"),p=n.n(d);const f=({size:e})=>{const t=l.a[e];return Object(a.css)(["height:","px;width:","px;"],t,t)},h=s.a.div.withConfig({displayName:"VizExAvatar__VizExAvatarWrapper",componentId:"pfxw5j-0"})(["display:inline-flex;align-items:center;justify-content:center;box-sizing:content-box;font-size:initial;overflow:hidden;position:relative;border-radius:50%;",";"],f),b=s.a.div.withConfig({displayName:"VizExAvatar__VizExAvatarContent",componentId:"pfxw5j-1"})(["background-image:url(",");background-position:center center;background-size:cover;height:100%;width:100%;"],({src:e})=>`"${e}"`),g=s.a.img.withConfig({displayName:"VizExAvatar__VizExAvatarImg",componentId:"pfxw5j-2"})(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"]),m=e=>{let{size:t=u.e,src:n=p.a,contentStyle:a,alt:s=""}=e,o=Object(r.a)(e,["size","src","contentStyle","alt"]);return Object(i.jsxs)(h,Object.assign({},o,{size:t,children:[Object(i.jsx)(b,{src:n,style:a}),Object(i.jsx)(g,{src:n,alt:s})]}))};m.displayName="VizExAvatar";m.propTypes={alt:c.a.string.isRequired,contentStyle:c.a.object,size:c.a.oneOf([u.a,u.c,u.f,u.e,u.d,u.b]),src:c.a.string};t.a=m},"GgP/":function(e,t,n){e.exports=n.dlbpr(1,9)},Gi7k:function(e,t,n){(function(t){var n,r;r=function(){return function e(t,r,i){function a(o,c){if(!r[o]){if(!t[o]){if(!c&&"function"==typeof n&&n)return n(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[o]={exports:{}};t[o][0].call(l.exports,(function(e){var n=t[o][1][e];return a(n||e)}),l,l.exports,e,t,r,i)}return r[o].exports}for(var s="function"==typeof n&&n,o=0;othis._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift();return this},addPlugin:function(e){var t=[].slice.call(arguments,1);this._plugins.push([e,t]);this._isRavenInstalled&&this._drainPlugins();return this},setUserContext:function(e){this._globalContext.user=e;return this},setExtraContext:function(e){this._mergeContext("extra",e);return this},setTagsContext:function(e){this._mergeContext("tags",e);return this},clearContext:function(){this._globalContext={};return this},getContext:function(){return JSON.parse(i(this._globalContext))},setEnvironment:function(e){this._globalOptions.environment=e;return this},setRelease:function(e){this._globalOptions.release=e;return this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;this._globalOptions.dataCallback=N(t,e);return this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;this._globalOptions.breadcrumbCallback=N(t,e);return this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;this._globalOptions.shouldSendCallback=N(t,e);return this},setTransport:function(e){this._globalOptions.transport=e;return this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){if(!this._hasJSON)return!1;if(!this._globalServer){if(!this.ravenNotConfiguredError){this.ravenNotConfiguredError=!0;this._logDebug("error","Error: Raven has not been configured.")}return!1}return!0},afterLoad:function(){var e=R.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(D){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new a("Missing eventId");var n=e.dsn||this._dsn;if(!n)throw new a("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(t);i+="&dsn="+r(n);var s=e.user||this._globalContext.user;if(s){s.name&&(i+="&name="+r(s.name));s.email&&(i+="&email="+r(s.email))}var o=this._getGlobalServer(this._parseDSN(n)),c=D.createElement("script");c.async=!0;c.src=o+"/api/embed/error-page/"+i;(D.head||D.body).appendChild(c)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1;setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){t=t||{};e="raven"+e.substr(0,1).toUpperCase()+e.substr(1);D.createEvent?(n=D.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=D.createEventObject()).eventType=e;for(r in t)O(t,r)&&(n[r]=t[r]);if(D.createEvent)D.dispatchEvent(n);else try{D.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){t._keypressTimeout=null;if(t._lastCapturedEvent!==n){t._lastCapturedEvent=n;var r;try{r=E(n.target)}catch(e){r=""}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this,t=1e3;return function(n){var r;try{r=n.target}catch(e){return}var i=r&&r.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||r.isContentEditable)){var a=e._keypressTimeout;a||e._breadcrumbEventHandler("input")(n);clearTimeout(a);e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),t)}}},_captureUrlChange:function(e,t){var n=I(this._location.href),r=I(t),i=I(e);this._lastHref=t;n.protocol===r.protocol&&n.host===r.host&&(t=r.relative);n.protocol===i.protocol&&n.host===i.host&&(e=i.relative);this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var i=new Array(arguments.length),a=0;a2?arguments[2]:void 0;n&&e._captureUrlChange(e._lastHref,n+"");return t.apply(this,arguments)}};C(history,"pushState",c,n);C(history,"replaceState",c,n)}if(t.console&&"console"in R&&console.log){var u=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};h(["debug","info","warn","error","log"],(function(e,t){A(console,t,u)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_drainPlugins:function(){var e=this;h(this._plugins,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=S.exec(e),n={},r=7;try{for(;r--;)n[x[r]]=t[r]||""}catch(t){throw new a("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");e.protocol&&(t=e.protocol+":"+t);return t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t});this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length){h(e.stack,(function(t,i){var a=n._normalizeFrame(i,e.url);a&&r.push(a)}));if(t&&t.trimHeadFrames)for(var i=0;i0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)});f(e.tags)&&delete e.tags;this._globalContext.user&&(e.user=this._globalContext.user);t.environment&&(e.environment=t.environment);t.release&&(e.release=t.release);t.serverName&&(e.server_name=t.serverName);d(t.dataCallback)&&(e=t.dataCallback(e)||e);e&&!f(e)&&(d(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random() ",c=o.length;e&&a++1&&s+i.length*c+t.length>=r);){i.push(t);s+=t.length;e=e.parentNode}return i.reverse().join(o)}function E(e){var t,n,r,i,a,s=[];if(!e||!e.tagName)return"";s.push(e.tagName.toLowerCase());e.id&&s.push("#"+e.id);if((t=e.className)&&c(t)){n=t.split(/\s+/);for(a=0;a=0;--t)n[t]===e&&n.splice(t,1)}function b(){v();n=[]}function g(e,t){var r=null;if(!t||i.collectWindowErrors){for(var a in n)if(n.hasOwnProperty(a))try{n[a].apply(null,[e].concat(s.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function m(t,n,a,s,l){if(p){i.computeStackTrace.augmentStackTraceWithInitialElement(p,n,a,t);j()}else if(l&&r.isError(l))g(i.computeStackTrace(l),!0);else{var d={url:n,line:a,column:s},f=void 0,h=t;if("[object String]"==={}.toString.call(t)){var b;if(b=t.match(c)){f=b[1];h=b[2]}}d.func=o;g({name:f,message:h,url:u(),stack:[d]},!0)}return!!e&&e.apply(this,arguments)}function O(){if(!t){e=a.onerror;a.onerror=m;t=!0}}function v(){if(t){a.onerror=e;t=!1;e=void 0}}function j(){var e=p,t=l;l=null;p=null;d=null;g.apply(null,[e,!1].concat(t))}function y(e,t){var n=s.call(arguments,1);if(p){if(d===e)return;j()}var r=i.computeStackTrace(e);p=r;d=e;l=n;setTimeout((function(){d===e&&j()}),r.incomplete?2e3:0);if(!1!==t)throw e}y.subscribe=f;y.unsubscribe=h;y.uninstall=b;return y}();i.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|bpm||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|bpm|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|bpm|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,d=e.stack.split("\n"),p=[],f=(/^(.*) is undefined$/.exec(e.message),0),h=d.length;f eval")>-1&&(t=c.exec(n[3]))){n[3]=t[1];n[4]=t[2];n[5]=null}else 0!==f||n[5]||void 0===e.columnNumber||(p[0].column=e.columnNumber+1);r={url:n[3],func:n[1]||o,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=o);p.push(r)}return p.length?{name:e.name,message:e.message,url:u(),stack:p}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){e.incomplete=!1;i.func||(i.func=o);if(e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func){e.stack[0].line=i.line;return!1}}e.stack.unshift(i);e.partial=!0;return!0}e.incomplete=!0;return!1}function n(e,a){for(var s,c,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,d=[],p={},f=!1,h=n.caller;h&&!f;h=h.caller)if(h!==r&&h!==i.report){c={url:null,func:o,line:null,column:null};h.name?c.func=h.name:(s=l.exec(h.toString()))&&(c.func=s[1]);if(void 0===c.func)try{c.func=s.input.substring(0,s.input.indexOf("{"))}catch(e){}p[""+h]?f=!0:p[""+h]=!0;d.push(c)}a&&d.splice(0,a);var b={name:e.name,message:e.message,url:u(),stack:d};t(b,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description);return b}function r(t,r){var a=null;r=null==r?0:+r;try{if(a=e(t))return a}catch(e){if(i.debug)throw e}try{if(a=n(t,r+1))return a}catch(e){if(i.debug)throw e}return{name:t.name,message:t.message,url:u()}}r.augmentStackTraceWithInitialElement=t;r.computeStackTraceFromStackProp=e;return r}();n.exports=i}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{5:5}],7:[function(e,t,n){(t.exports=i).getSerialize=s;function r(e,t){for(var n=0;n0){var c=r(n,this);~c?n.splice(c+1):n.push(this);~c?i.splice(c,1/0,s):i.push(s);~r(n,o)&&(o=t.call(this,s,o))}else n.push(o);return null==e?o instanceof Error?a(o):o:e.call(this,s,o)}}},{}]},{},[4])(4)},e.exports=r()}).call(this,n("uym0"))},Gpbg:function(e,t,n){e.exports=n.dlbpr(1,86)},GqTt:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("xfs0");const a=e=>Object(r.getTopLevelType)(e)===i.a},"H/Gg":function(e,t,n){"use strict";n.r(t);n.d(t,"getToken",(function(){return i}));var r=n("VYoM");const i=({sessionId:e,hubspotUtk:t})=>r.a.get("livechat-public/v1/pubsub/token/visitor",{query:{sessionId:e,hubspotUtk:t}})},"H/Vc":function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("647q"),a=n("JGJA");const s=Object(a.a)("availabilityOptions");n.d(t,"getWidgetAvailabilityOptions",(function(){return o}));const o=Object(r.a)([i.getLatestWidgetData],s)},H0uH:function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));n.d(t,"a",(function(){return f}));var r=n("Ut5p"),i=n("v+ge"),a=n("5xOy"),s=n("esZR"),o=n("Ryja"),c=n("NpZo"),u=n("eg5p"),l=n("tRjK"),d=n("XUHx");const p=Object(r.b)(i.a,e=>e);function f(e){return(t,n)=>{t(p(e));if(Object(c.getSelectedThreadId)(n())===u.a&&!Object(o.isCreatingThread)(n())){t(Object(a.resetStubbedThread)());t(Object(s.stageInitialMessage)())}t(Object(l.removeAllClientTriggers)());t(Object(d.bootstrapInitialWidgetUi)(e))}}},H5md:function(e,t,n){"use strict";n.r(t);n.d(t,"closeThreadMessageReceived",(function(){return s}));var r=n("BnUr"),i=n("cRNH"),a=n("H9dH");const s=({message:e,channel:t,thread:n})=>s=>{const o=Object(r.getThreadId)(n);Object(i.postConversationClosedEvent)({thread:n});s(Object(a.defaultMessageReceived)(e,t,o))}},H9dH:function(e,t,n){"use strict";n.r(t);n.d(t,"defaultMessageReceived",(function(){return u}));var r=n("0IK8"),i=n("Mx3c"),a=n("/OK6"),s=n("6sJ9"),o=n("fl6v"),c=n("RqRq");function u(e,t,n,u){return(l,d)=>{const p=Object(o.getResponders)(d());let f;const h=Object(a.isFromVisitor)(e);if(!h){const t=Object(r.getSenderId)(e),n=Object(a.isFromBot)(e)?i.BOT:i.AGENT;f=Object(s.getResponderByIdAndType)({responders:p,senderType:n,senderId:t})}l(Object(c.receivedIncomingMessage)({message:e,channel:t,responder:f,shouldNotify:!(h||u&&u.playback),threadId:n}))}}},HCGK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="AVAILABLE",i="AWAY"},HTmY:function(e,t,n){var r=n("8i16"),i=function(){return r.Date.now()};e.exports=i},HY4P:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("I5zW");const i=Object(r.createMetricsFactory)("I18n",{library:"I18n"})},HiOC:function(e,t,n){"use strict";n.r(t);var r=n("MJM1"),i=n("8R/H"),a=n("0BtU"),s=n("nDpY"),o=n.n(s),c=n("VYoM");const u=({sessionId:e,threadId:t,offsetTimestamp:n,offsetOrdinal:r})=>c.a.get("livechat-public/v1/conversationhistory/visitor/"+t,{query:{sessionId:e,offsetTimestamp:n,offsetOrdinal:r,portalId:o.a.get(),sortDirection:"DESCENDING",expectedResponseType:"WRAPPER_V2"}});var l=n("+tWo"),d=n("rLZs"),p=n("GQQt");n.d(t,"asyncFetchThreadHistory",(function(){return f}));n.d(t,"fetchThreadHistory",(function(){return h}));const f=Object(i.a)({requestFn:u,actionTypes:l.a,toRecordFn:a.a});function h({offsetOrdinal:e,offsetTimestamp:t,threadId:n,sessionId:i}){return a=>{a(f({offsetOrdinal:e,offsetTimestamp:t,threadId:n,sessionId:i})).then(({payload:e})=>{const t=Object(r.a)(["data","threadHistory"],e);Object(d.a)(t).forEach(e=>{const t=Object(r.a)(["senderId"],e),n=Object(r.a)(["senderType"],e);a(Object(p.fetchAgentResponderIfNecessary)({senderId:t,senderType:n}))})})}}},Hjp8:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("QYOI"),i=n("qjq5"),a=n("JGJA"),s=n("0G/n"),o=n("8f+m");const c=Object(i.a)((e,t)=>t.map(t=>{const n=Object(a.a)("address",t);return Object(o.a)({actorId:null,recipientField:e,deliveryIdentifier:{type:s.b,value:n}})}).toList()),u=(c("TO"),c("CC"),c("BCC"),({type:e,value:t,vid:n})=>Object(r.List)([Object(o.a)({actorId:n?"V-"+n:null,deliveryIdentifier:{type:e||s.a,value:""+(t||n)},recipientField:null})]))},Hnb1:function(e,t,n){"use strict";var r=n("QYOI");const i=new r.Record({enabled:!1},"ExitIntentTrigger");t.a=i},Hnia:function(e,t,n){"use strict";n.r(t);n.d(t,"threadHistoryInvariant",(function(){return a}));var r=n("Gc2C"),i=n("+LtA");const a=e=>Object(r.a)(e instanceof i.a,"Expected threadHistory to be a `ThreadHistory` not a `%s`",typeof e)},HtM0:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var r=n("bSHG"),i=n("rCfO"),a=n("hbcS"),s=n("cSJ2"),o=n("BDBs"),c=n("6IxM"),u=n("J9Vo"),l=n("KtYw"),d=n("bVTf"),p=n("T1V9"),f=n("Jrno"),h=n("Vi1n"),b=n("n+iS");Object(i.default)(e=>!![...u.b,u.a,...f.b,f.a].find(t=>e.includes(t))),b.a,Object(i.default)((e,t=400)=>{const n=[c.a,l.a,u.c],i=Object(s.a)(e,r.a.TEXTONLY,n);return i&&i.length>t?i.substring(0,t):i});const g=Object(i.default)(({text:e,shouldRemoveGmailLineBreakBeforeReply:t=!1,shouldRemoveEmailSignature:n=!0,htmlConfig:i=r.a.HTML,shouldOpenLinksInNewTab:a=!1,allowedDomainsForIframe:b=[]})=>{const g=[...t?[d.a]:[],...n?[f.c]:[],...a?[p.a]:[]],m=[c.a,l.a,u.c,o.a,e=>Object(h.a)(Object.assign({},e,{allowedDomainsForIframe:b})),...g];return Object(s.a)(e,i,m)}),m=Object(i.default)(({text:e,shouldRemoveGmailLineBreakBeforeReply:t=!1,shouldRemoveEmailSignature:n=!1,htmlConfig:i=r.a.HTML,shouldOpenLinksInNewTab:a=!1,allowedDomainsForIframe:u=[]})=>{const b=[...t?[d.a]:[],...n?[f.c]:[],...a?[p.a]:[]],g=[c.a,l.a,o.a,e=>Object(h.a)(Object.assign({},e,{allowedDomainsForIframe:u})),...b];return Object(s.a)(e,i,g)}),O=e=>e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),v=e=>e.replace(/ \s+{const{allowedDomainsForIframe:n,isPlainText:i,shouldAutolinkTwitter:s,shouldIncludeReplies:o,shouldOpenLinksInNewTab:c,shouldPreserveNewlines:u,shouldPreventAutoLinker:l,shouldRemoveEmailSignature:d,shouldRemoveGmailLineBreakBeforeReply:p}=t;if(!e)return"";const f=n?Object(r.b)():r.a.HTML,h=i?O(e):v(e);let b=o?m({text:h,shouldRemoveGmailLineBreakBeforeReply:p,shouldRemoveEmailSignature:d,shouldOpenLinksInNewTab:c,htmlConfig:f,allowedDomainsForIframe:n}):g({text:h,shouldRemoveEmailSignature:d,shouldRemoveGmailLineBreakBeforeReply:p,shouldOpenLinksInNewTab:c,htmlConfig:f,allowedDomainsForIframe:n});b=null===b||i||u?b:b.replace("\n","");const j=s?a.a.getTwitter():a.a.get();return l?b:j.link(b)};e&&e.exports&&(e.exports.default=Object.assign({},e.exports))}).call(this,n("861u")(e))},I5zW:function(e,t,n){e.exports=n.dlbpr(1,31)},I6ms:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));const r="UPDATE_GLOBAL_COOKIE_OPT_OUT",i="UPDATE_IS_FIRST_VISITOR_SESSION",a="UPDATE_SHOW_EXIT_INTENT_COOKIE_BANNER",s="UPDATE_VISITOR_IDENTIFICATION_ENABLED"},"IDM/":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.d,r.a)},IKdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("Ut5p"),i=n("xZ3y"),a=n("0GGv"),s=n("1qF3");function o(){return(e,t)=>{if(!Object(a.a)(t())){if(window.newrelic&&window.newrelic.addPageAction&&window.newrelic.setCustomAttribute){window.newrelic.addPageAction("userInteractedWithWidget");window.newrelic.setCustomAttribute("interactedWithWidget",!0)}Object(s.a)()}e(Object(r.b)(i.TRACK_USER_INTERACTION)())}}},ISr8:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("KrP/"),s=n("xZ3y"),o=n("v+ge"),c=n("2Sm/"),u=n("3z2x"),l=n("ZqFO");const d=Object(r.Map)({consentToProcessStatus:u.b,consentToProcessError:!1});t.a=Object(i.c)({[s.GET_WIDGET_DATA_SUCCEEDED](e,t){const n=t.payload;return e.set("consentToProcessStatus",Object(l.e)(n))},[o.a](e,t){const n=t.payload;return e.set("consentToProcessStatus",Object(l.e)(n))},[Object(i.a)(c.a.SUCCEEDED,a.g,a.e)]:e=>e.set("consentToProcessStatus",u.b),[a.f]:e=>e.set("consentToProcessError",!0),[a.h]:e=>e.set("consentToProcessError",!1)},d)},IcZZ:function(e,t,n){"use strict";var r=n("QYOI"),i=n("6xui"),a=n("Zui/"),s=n("Otz9"),o=n("p3n+"),c=n("6d8N"),u=n("NMIh");var l=Object(r.Record)({"@type":a.a,callId:0,callDurationMs:0,fromNumber:"",fromNumberExt:"",toNumber:"",toNumberExt:"",calleeCrmObjectId:0,calleeCrmObjectTypeId:""},"CallMetadata");var d=Object(r.Record)({"@type":a.f,address:"",latitude:0,longitude:0,name:"",url:""},"LocationMetadata");var p=Object(r.Record)({"@type":a.b,contactProfile:{}},"ContactMetadata");var f=Object(r.Record)({"@type":a.h,descriptors:Object(r.Map)()},"MessagePositionDescriptor");var h=Object(r.Record)({"@type":a.j},"UnsupportedContent");class b extends(Object(r.Record)({"@type":a.g,text:"",fileId:null},"MessageHeaderAttachment")){constructor(e={}){super(Object(r.fromJS)(e))}}var g=b;n.d(t,"a",(function(){return m}));const m=(e,t)=>Object(i.a)(Object(r.List)(),(e,n)=>{switch(!t||t[n["@type"]]?n["@type"]:null){case a.c:return e.push(Object(s.a)(Object(r.fromJS)(n)));case a.d:return e.push(Object(o.a)(Object(r.fromJS)(n)));case a.i:return e.push(new c.a(n));case a.e:return e.push(Object(u.a)(Object(r.fromJS)(n)));case a.a:return e.push(new l(n));case a.f:return e.push(new d(n));case a.b:return e.push(new p(n));case a.h:return e.push(f(Object(r.fromJS)(n)));case a.j:return e.push(new h(n));case a.g:return e.push(new g(n));default:return e}},e||Object(r.List)())},ImcI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VToG"),i=n("nt9Q");const a=Object(i.a)(r.c)},InFa:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="circle",i="default"},Iqwl:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("KO+H"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",channelInstanceId:null,genericChannelId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"EmailCapturePromptMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("EmailCapturePromptMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},"J+Fu":function(e,t,n){"use strict";n.r(t);n.d(t,"getAvailabilityOfficeHoursWillReturnMessage",(function(){return c}));var r=n("MBJP"),i=n("zZzs"),a=n("15+n"),s=n("H/Vc"),o=n("u8Gm");const c=Object(r.a)([s.getWidgetAvailabilityOptions,o.b],(e,t)=>{const n=Object(i.getOfficeHoursStartTime)(e);return n?Object(a.formatOfficeHoursWillReturnTimestamp)(n,t):""})},J4oD:function(e,t,n){"use strict";n.r(t);n.d(t,"historyDataForThread",(function(){return f}));var r=n("MBJP"),i=n("QYOI"),a=n("KXN9"),s=n("iRE0"),o=n("021p"),c=n("1UfY"),u=n("BMD5"),l=n("2gT5"),d=n("XZzj"),p=n("Ryja");const f=Object(r.a)([c.a,u.a,p.getStagedThreadHistory,d.a],(e,t,n,r)=>{if(!Object(l.isPersistedThread)(t))return n;const c=Object(a.a)(e);if(!c)return null;const u=(Object(o.d)(c)||Object(i.OrderedMap)()).concat(r);return Object(s.a)(u,c)})},J9Vo:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"c",(function(){return u}));var r=n("bSHG");const i="gmail_quote",a=["gmail_extra",i,"hs_reply","x_hs_reply_wrap"],s="divRplyFwdMsg",o=e=>e.querySelector("div[dir]"),c=(e,t)=>t===s||e&&e.contains&&a.some(t=>e.contains(t)),u=({node:e})=>{const{classList:t,id:n,attributes:a=[]}=e;if(c(t,n)){if(t.contains(i)&&!o(e))return null;const n=r.c.createElement("span");Object.values(a).forEach(e=>{e.nodeValue&&n.setAttribute(e.nodeName,e.nodeValue)});n.innerHTML="";n.setAttribute("data-email-reply","");return{node:n}}return null}},JGJA:function(e,t,n){"use strict";var r=n("qjq5"),i=n("GXXt");t.a=Object(r.a)(i.a)},JPbb:function(e,t,n){"use strict";var r=n("Ut5p"),i=n("xZ3y"),a=n("PsC7");const s=Object(a.a)({isPubNubClientConnected:!0});t.a=Object(r.c)({[i.APP_IN_FOREGROUND]:e=>e.set("isInForeground",!0),[i.APP_IN_BACKGROUND]:e=>e.set("isInForeground",!1),[i.NETWORK_ONLINE]:e=>e.set("isPubNubClientConnected",!0),[i.NETWORK_OFFLINE]:e=>e.set("isPubNubClientConnected",!1)},s)},JTxz:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=.1},JW3w:function(e,t,n){"use strict";n.r(t);n.d(t,"isActiveOnThread",(function(){return a}));var r=n("NpZo"),i=n("nhsE");function a(e,t){return t===Object(r.getSelectedThreadId)(e)&&Object(i.a)(e)}},Jcmd:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("VkWa"),a=n("X4GJ"),s=n("xk3e"),o=n("Avso"),c=n("A+sO");const u=Object(r.a)([c.getIsWidgetInAwayMode,s.getAssignedResponderInWidget],(e,t)=>Boolean(e&&t&&Object(o.getIsBot)(t)));var l=n("J+Fu");n.d(t,"getFirstMessageText",(function(){return d}));const d=Object(r.a)([i.a,a.a,u,l.getAvailabilityOfficeHoursWillReturnMessage],(e,t,n,r)=>n?e||r:e||t)},JerM:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("Ktcs");const i=e=>{const t=Object(r.lazy)(e);let n,i;const a=Object(r.forwardRef)((e,n)=>Object(r.createElement)(i||t,Object.assign(n?{ref:n}:{},e)));a.preload=()=>{n||(n=e().then(e=>{i=e.default}));return n};return a}},JoAZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("DrqF"),i=n("uB3n");const a=e=>Object(r.a)(e instanceof i.a,"Expected indexedData to be a `IndexedAsyncData` not a `%s`",typeof e)},JoGU:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("ubOH"),s=n("Tt13");const o=Object(r.Record)({"@type":s.a,attachments:Object(r.List)(),feedbackTransactionId:null,id:null,messageDeletedStatus:i.a,recipients:Object(r.List)(),richText:"",sender:Object(r.Map)(),senders:Object(r.List)(),status:Object(a.a)(),text:"",threadId:null,timestamp:null,submissionId:null,direction:"",channelInstanceId:null,genericChannelId:null},"FeedbackSubmissionMessage");t.a=o},Jpeq:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));const r="NEVER",i="ON_WIDGET_LOAD",a="ON_EXIT_INTENT"},Jr27:function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("3MJX"),c=n("/mXs"),u=n("P7jJ"),l=n("9f1P"),d=n.n(l),p=n("CR0J"),f=n("NfCo"),h=n("InFa"),b=n("7719"),g=n("Tbmo"),m=n("57op"),O=n("PUb4");const v=e=>Object(O.a)("closeButton",e)||Object(m.i)(e),j=(Object(m.w)("closeButton"),{[b.c]:b.a,[b.f]:b.c,[b.e]:b.f}),y=({size:e})=>{switch(e){case b.c:case b.f:return Object(l.css)(["margin-top:8px;margin-right:8px;"]);case b.e:default:return Object(l.css)(["margin-top:12px;margin-right:12px;"])}},E=d()(c.a).withConfig({displayName:"VizExCloseButton__ButtonContainer",componentId:"y1gl6i-0"})(["right:0;position:absolute;top:0;",""],y),T=e=>{const{onClick:t,theme:n,size:a}=e,s=Object(r.a)(e,["onClick","theme","size"]);return Object(i.jsx)(l.ThemeConsumer,{children:e=>Object(i.jsx)(E,Object.assign({},s,{onClick:t,theme:Object(g.a)(v(n||e),n||e),use:f.TRANSPARENT_ON_BACKGROUND,shape:h.a,size:a,children:Object(i.jsx)(u.a,{icon:Object(i.jsx)(o.a,{}),size:j[a||b.e]})}))})};T.displayName="VizExCloseButton";T.propTypes={onClick:s.a.func,size:s.a.oneOf([b.c,b.f,b.e]),theme:p.a};t.a=T},Jrno:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return u}));var r=n("bSHG");const i="gmail_signature",a=["hs_signature"],s=e=>e&&e.contains&&a.some(t=>e.contains(t)),o=e=>Boolean(e&&e.innerHTML&&e.innerHTML.length),c=e=>e.classList&&e.classList.contains&&e.classList.contains(i)&&(o(e.nextElementSibling)||o(e.previousElementSibling)),u=({node:e})=>{const{classList:t}=e;if(c(e)||s(t)){const e=r.c.createElement("span");e.innerHTML="";return{node:e}}return null}},Jtfe:function(e,t,n){"use strict";var r=n("QgEn"),i=n("VfuR"),a=n.n(i),s=n("AQmo"),o=n("Fjoq"),c=n("19qb"),u=n("ET5w"),l=n("57op"),d=n("iKGd"),p=n("Tbmo"),f=n("+KD7"),h=n("9f1P");const b=Object(h.css)(["font-weight:700;font-size:32px;line-height:44px;margin-top:0;margin-bottom:16px;"]),g=Object(h.css)(["font-weight:400;font-size:24px;line-height:30px;margin-top:0;margin-bottom:16px;"]),m=Object(h.css)(["font-weight:700;font-size:22px;line-height:30px;margin-top:0;margin-bottom:16px;"]),O=Object(h.css)(["font-weight:700;font-size:18px;line-height:26px;margin-top:0;margin-bottom:16px;"]),v=Object(h.css)(["font-weight:400;font-size:16px;line-height:26px;margin-top:0;margin-bottom:16px;"]),j=Object(h.css)(["font-weight:400;font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px;"]),y=Object(h.css)(["h1{",";}h2{",";}h3{",";}h4{",";}h5{",";}h6{",";}"],b,g,m,O,v,j);var E=n("x+ne"),T=n("seb2");const w=Object(h.css)(["body{","}"," ",""],T.a,y,E.a);var I=n("wjRl");let C,A=e=>e;var x=Object(h.createGlobalStyle)(C||(C=A` *, ::after, ::before { box-sizing: border-box; } ${0} &:focus-visible { ${0} outline-offset: -2px; } `),w,I.a),S=n("CR0J");const _=({theme:e,children:t})=>Object(r.jsxs)(h.ThemeProvider,{theme:e,children:[t,Object(r.jsx)(x,{})]});_.displayName="VizExThemeProvider";_.propTypes={children:a.a.node,theme:S.a};var R=_;const D=({children:e})=>{const t=Object(c.useSelector)(s.a),n=Object(o.a)(t),i=[];if(Object(o.c)(t)){i.push(Object(l.t)(f.b));i.push(Object(p.a)(d.c))}else n&&i.push(Object(l.t)(n));return Object(r.jsx)(R,{theme:Object(u.a)(...i),children:e})};D.displayName="ThemeProvider";D.propTypes={children:a.a.node};t.a=D},JxGV:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("V1/C"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu");class l extends(Object(r.Record)({"@type":s.a,id:null,text:"",officeHoursStartTime:null,timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:"",senders:Object(r.List)(),recipients:Object(r.List)(),genericChannelId:null,channelInstanceId:null},"OfficeHoursMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("OfficeHoursMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=l},JxxT:function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"e",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"h",(function(){return c}));n.d(t,"b",(function(){return u}));n.d(t,"j",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"i",(function(){return p}));const r=68,i=80,a=84,s=64,o=530,c=247,u=396,l=24,d=92,p=44},"K+6d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"b",(function(){return o}));const r="agentId",i="@type",a="botId",s="vid",o="agentType"},K7Yy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FEEDBACK_SURVEY"},KDEO:function(e,t,n){"use strict";n.r(t);n.d(t,"typingMessageReceived",(function(){return u}));var r=n("0IK8"),i=n("/OK6"),a=n("Fkmh"),s=n("+lXL"),o=n("qg6t"),c=n("2+C7");const u=(e,t)=>n=>{if(Object(i.isFromVisitor)(e))return;const u=Object(r.getSenderId)(e);n(Object(c.clearExistingTypingTimeout)(e,t));const l=setTimeout(()=>{n(Object(o.dismissTypingIndicator)(e,t))},a.a);n(Object(s.addTypingTimeoutIdForAgentInThread)(t,u,l))}},"KO+H":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="EMAIL_CAPTURE_PROMPT"},KXCN:function(e,t,n){"use strict";var r=n("QYOI");t.a=Object(r.Record)({globalCookieOptOut:null,isFirstVisitorSession:!0},"VisitorIdentity")},KXN9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return s}));var r=n("JGJA");const i=e=>Object(r.a)("data",e),a=e=>Object(r.a)("error",e),s=e=>Object(r.a)("status",e)},KZZz:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_COMMENT"},"Kjd/":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("2Zef"),i=n("0IK8");const a=/^AGENT-([0-9]+)(?:$|:.+)/,s="API-republish",o=({message:e,clientId:t})=>{if(Object(i.getSenderTypeForCMF)(e)===r.AGENT_SENDER&&t!==s){const n=a.exec(t);if(!n||isNaN(parseInt(n[1],10))||parseInt(n[1],10)!==Object(i.getSenderId)(e))throw new Error("malformed message")}}},KnhK:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="UPDATE_FEEDBACK_SURVEY_ENABLED"},"KrP/":function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"g",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"c",(function(){return c}));n.d(t,"b",(function(){return u}));n.d(t,"h",(function(){return l}));const r="CONSENT_TO_PROCESS",i="CONSENT_TO_PROCESS_SUCCEEDED",a="CONSENT_TO_PROCESS_FAILED",s="CONSENT_TO_PROCESS_CLOSED",o="CONSENT_TO_COMMUNICATE",c="CONSENT_TO_COMMUNICATE_SUCCEEDED",u="CONSENT_TO_COMMUNICATE_FAILED",l="DISMISS_CONSENT_TO_COMMUNICATE_ERROR"},KtYw:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bSHG");const i=({node:e,node_name:t})=>{if("div"===t&&e&&e.classList&&e.classList.contains("gmail_default")){const t=r.c.createElement("span");Object.values(e.attributes).forEach(e=>{try{e.nodeValue&&t.setAttribute(e.nodeName,e.nodeValue)}catch(e){}});t.innerHTML=e.innerHTML.trim();return{node:t}}return null}},Ktcs:function(e,t,n){e.exports=n.dlbpr(1,69)},L0zh:function(e,t,n){"use strict";n.r(t);n.d(t,"toggleInitialMessageBubble",(function(){return a}));var r=n("Ut5p"),i=n("o3Zl");const a=Object(r.b)(i.a,(e,t=!1)=>({visible:e,closedByUser:t}))},L82M:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="online",i="offline"},L8e7:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("JGJA"),i=n("Zui/"),a=n("9F2+");const s=e=>{const t=Object(a.a)(e);if(t)return t.find(e=>Boolean(e&&Object(r.a)("@type",e)===i.c))}},LB97:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("threadHistories")},LJpC:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("qjq5"),i=n("Avso");const a=Object(r.a)((e,t)=>Object(i.getAgentState)(t)===e)},LN55:function(e,t,n){e.exports=n.dlbpr(1,20)},LPbX:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CONTACT_ASSOCIATION"},LZPL:function(e,t,n){e.exports=n.dlbpr(0,9)},Lp6C:function(e,t,n){"use strict";n.r(t);n.d(t,"shouldCaptureVisitorEmailAddress",(function(){return s}));var r=n("MBJP"),i=n("VvTX"),a=n("OmJX");const s=Object(r.a)(a.a,i.getCaptureVisitorEmailAddress)},LrxL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("7Qhs");const a="TICKET",s=["@type"],o=["pipelineId"],c=["pipelineName"],u=["pipelineStageId"],l=["pipelineStage"];var d=Object(r.Record)({connectedObjectSourceId:null,name:null,objectTypeId:null},"CrmCreationSource");class p extends(Object(r.Record)({[s]:null,pipelineId:null,pipelineName:null,pipelineStageId:null,pipelineStage:null,crmCreationSource:null},"TicketUpdateMetadata")){constructor(e={}){super(Object.assign({},e,{crmCreationSource:e.crmCreationSource?d(e.crmCreationSource):null}))}}var f=p;var h=Object(r.Record)({[s]:null,toObjectType:null,toObjectId:null,toObjectName:null,updateType:null,auditParams:null},"TicketAssociationUpdateMetadata");const b="ASSOCIATION_UPDATED";var g=n("MJM1");const m=Object(g.a)(s),O=(Object(g.a)(o),Object(g.a)(c),Object(g.a)(u),Object(g.a)(l),(e,t)=>{switch(e){case a:return m(t)===b?new h(t):new f(t);default:return null}});n.d(t,"a",(function(){return v}));class v extends(Object(r.Record)({"@type":i.a,id:null,objectType:null,objectId:null,objectName:null,source:null,sourceId:null,crmObjectUpdate:null,timestamp:null},"CrmObjectLifecycleUpdate")){constructor(e={}){super(Object.assign({},e,{crmObjectUpdate:O(e.objectType,e.crmObjectUpdate)}))}}},Lu5y:function(e,t,n){"use strict";n.r(t);n.d(t,"buildWidgetData",(function(){return g}));var r=n("DdHT"),i=n("qjq5"),a=n("QYOI"),s=n("mEYk"),o=n.n(s),c=n("xe9j"),u=n("wQJz"),l=n("+lAi"),d=n("bG8F"),p=n("Vfyk"),f=n("5tDa"),h=n("G0k2");const b=Object(i.a)((e,t)=>Object(a.Map)(t).merge(e)),g=(e={})=>{const t=e.sendFrom||[],n=e.sendFrom||[],i=e.sendFrom&&Object(h.a)(e.sendFrom[0])?Object(u.a)(n[0]):null,s=i||n[0];let g;try{g=Object(r.a)(b({availabilityOptions:new p.a(e.availabilityOptions),botResponder:i,coloring:Object(d.a)(e.accentColor),gates:Object(a.Map)(e.gates),inOfficeHours:e.inOfficeHours,message:Object(f.a)(e.message),messagesPageUri:e.messagesPageUri,nextStartTime:e.nextOfficeHoursStartTime,responder:Object(u.a)(s),responders:Object(a.List)(t).map(u.a),sendFrom:Object(a.List)(n).map(u.a),typicalResponseTime:Object(l.a)(e.typicalResponseTime),widgetLocation:e.widgetLocation}),c.a)(e)}catch(t){o.a.captureException(t,{extra:{data:e}})}return g}},M1Uo:function(e,t,n){"use strict";var r=n("MJM1");const i=["currentStatus"],a=["previousStatus"],s=["auditParams"];n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));const o=Object(r.a)(i),c=Object(r.a)(a);Object(r.a)(s)},M5PA:function(e,t,n){"use strict";var r=n("MZef"),i=n("4cwC"),a=n("y+PV"),s=n("stzZ"),o=n("uB3n"),c=n("eJ3n"),u=n("ZqFO"),l=n("wQJz"),d=n("BnUr"),p=n("Ut5p"),f=n("xZ3y"),h=n("fjpq"),b=n("bXuJ"),g=n("eSJp");const m=Object(o.a)({name:"responders",idInvariant:g.a,idTransform:e=>e,notSetValue:Object(r.a)({data:Object(l.a)()})});t.a=Object(p.c)({[f.GET_WIDGET_DATA_SUCCEEDED](e,t){const{payload:n}=t;return Object(u.g)(n).reduce((e,t)=>{const n=Object(b.c)(t);return Object(c.a)(n,Object(s.a)(()=>t),e)},e)},[f.GET_VISITOR_THREADS_SUCCESS](e,t){const{threads:n}=t.payload,r=[];n.forEach(e=>{const t=Object(d.getResponder)(e);t&&r.push(t)});return r.reduce((e,t)=>{const n=Object(b.c)(t);return Object(c.a)(n,Object(s.a)(()=>t),e)},e)},[h.a.STARTED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,a.a,e)},[h.a.FAILED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,i.a,e)},[h.a.SUCCEEDED](e,{payload:t}){const n=Object(b.b)(t.requestArgs);return Object(c.a)(n,Object(s.a)(()=>t.data),e)}},m)},M9tH:function(e,t,n){"use strict";var r=n("9Utk"),i=n.n(r),a=n("+KeY"),s=n("C3IS"),o=n("xZ3y"),c=n("Mx3c"),u=n("0IK8");const l=2e3,d=()=>{const e=i()(()=>{Object(a.notifyBySound)(!1)},l,{leading:!0,trailing:!1,maxWait:l});function t(e){const t=Object(u.getSenderType)(e);return t===c.AGENT||t===c.BOT}return n=>r=>{switch(r.type){case o.RECEIVED_INCOMING_MESSAGE:{const{message:n,shouldNotify:i}=r.payload;i&&t(n)&&Object(s.b)(n)&&!Object(s.c)(n)&&e();break}case o.OPEN_CONVERSATION_FOR_NEW_CHANNEL:{const{shouldNotifyBySound:t}=r.payload;t&&e();break}}return n(r)}};t.a=d},MBJP:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return o}));function r(e,t){return e===t}function i(e,t=r){let n=null,i=null;return(...r)=>{null!==n&&n.length===r.length&&r.every((e,r)=>t(e,n[r]))||(i=e(...r));n=r;return i}}function a(e){const t=Array.isArray(e[0])?e[0]:e;if(!t.every(e=>"function"==typeof e)){const e=t.map(e=>typeof e).join(", ");throw new Error(`Selector creators expect all input-selectors to be functions, instead received the following types: [${e}]`)}return t}function s(e,...t){return(...n)=>{let r=0;const i=n.pop(),s=a(n),o=e((...e)=>{r++;return i(...e)},...t),c=(e,t,...n)=>{const r=s.map(r=>r(e,t,...n));return o(...r)};c.resultFunc=i;c.recomputations=()=>r;c.resetRecomputations=()=>r=0;return c}}const o=s(i)},MD34:function(e,t,n){"use strict";function r(e,t,n){(e=arguments.length>1?e.then(t,n):e).then(null,e=>{setTimeout(()=>{throw e},0)})}t.a=r},MEud:function(e,t,n){"use strict";n.r(t);n.d(t,"clearUnseenCountForChannel",(function(){return l}));var r=n("Ut5p"),i=n("c2PF"),a=n("9zF3"),s=n("xZ3y"),o=n("vBag"),c=n("BnUr");const u=Object(r.b)(s.CLEAR_UNSEEN_COUNT_FOR_CHANNEL,({channel:e,threadId:t})=>({channel:e,threadId:t})),l=({channel:e,threadId:t})=>(n,r)=>{const s=Object(i.getThreadByThreadId)(r(),{threadId:t});if(Object(c.getUnseenCount)(s)>0){n(u({channel:e,threadId:t}));const i=Object(a.calculateUnseenThreadsCount)(r());Object(o.postUnreadConversationCountChangedEvent)({unreadCount:i})}}},MJM1:function(e,t,n){"use strict";var r=n("TaVT"),i=n("qjq5");t.a=Object(i.a)(r.a)},MM1n:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.d.implement(Array,(e,t)=>t.filter(e));i.d.implementInherited(r.Iterable,(e,t)=>t.filter(e));i.d.implement(Object,(e,t)=>{const n={},r=Object.keys(t),i=r.length;for(let a=0;at.reduce((n,r,i)=>e(r,i,t)?n.set(i,r):n,Object(r.Map)()));t.a=i.d},MWj0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"h",(function(){return u}));n.d(t,"i",(function(){return l}));n.d(t,"j",(function(){return d}));n.d(t,"v",(function(){return p}));n.d(t,"g",(function(){return f}));n.d(t,"k",(function(){return h}));n.d(t,"l",(function(){return b}));n.d(t,"m",(function(){return g}));n.d(t,"n",(function(){return m}));n.d(t,"o",(function(){return O}));n.d(t,"p",(function(){return v}));n.d(t,"r",(function(){return j}));n.d(t,"s",(function(){return y}));n.d(t,"t",(function(){return E}));n.d(t,"u",(function(){return T}));n.d(t,"w",(function(){return w}));n.d(t,"x",(function(){return I}));n.d(t,"y",(function(){return C}));n.d(t,"q",(function(){return A}));const r=["attachments"],i=["auditParams"],a=["clientType"],s=["contentType"],o=["directReplyToMessageId"],c=["status","sendFailure","errorMessage"],u=["id"],l=["inReplyToId"],d=["status","sendFailure","localizedErrorKey"],p=["strippedAttachmentCount"],f=["hasInlineImagesStripped"],h=["messageDeletedStatus"],b=["id"],g=["status","sendFailure"],m=["status","messageStatus"],O=["status","timestamp"],v=["recipients"],j=["richText"],y=["sender"],E=["sender","@type"],T=["status"],w=["text"],I=["timestamp"],C=["@type"],A=["recipientField"]},MYjy:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({type:"",value:""},"DeliveryIdentifier");t.a=i},MZef:function(e,t,n){"use strict";var r=n("QYOI"),i=n("VToG");const a=Object(r.Record)({data:null,error:null,status:i.e,updatedAt:null},"AsyncData");t.a=a},MeE7:function(e,t,n){"use strict";n.r(t);n.d(t,"getId",(function(){return i}));n.d(t,"getType",(function(){return a}));var r=n("MJM1");const i=Object(r.a)(["senderId"]),a=Object(r.a)(["senderType"])},MfaD:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("fPyn"),s=n("6OYF"),o=n("9Mwj"),c=n("c1C1"),u=n("BvOu"),l=n("OxGf");class d extends(Object(r.Record)({"@type":s.a,id:null,text:"",timestamp:null,sender:Object(r.Map)(),status:Object(i.a)(),messageDeletedStatus:o.a,direction:l.b,genericChannelId:null,channelInstanceId:null,senders:Object(r.List)(),recipients:Object(r.List)()},"TypicalResponseTimeMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(u.generateUuid)(),status:Object(a.a)(e.status),timestamp:e.timestamp||Object(c.generateUniqueClientTimestamp)("TypicalResponseTimeMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=d},Mjj8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=204},Mjoc:function(e,t,n){"use strict";n.r(t);var r=n("bahz"),i=n("1pGl"),a=n("Wtyj");t.default=e=>{const t=Object(r.a)(Object.assign({},e,{__localesCacheKey:a.a}));if(!e||e&&!e.manuallySetLocale){let e=i.a;navigator&&navigator.languages&&navigator.languages[0]?e=navigator.languages[0]:navigator&&navigator.language&&(e=navigator.language);t.setLocale({locale:e,langEnabled:!0})}return t}},MqAI:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q8Gl");const i=()=>Object(r.getWindowLocation)().paramValue("uuid")},Mx3c:function(e,t,n){"use strict";n.r(t);n.d(t,"AGENT",(function(){return r}));n.d(t,"VISITOR",(function(){return i}));n.d(t,"BOT",(function(){return a}));n.d(t,"SYSTEM",(function(){return s}));n.d(t,"INTEGRATOR",(function(){return o}));n.d(t,"EMAIL",(function(){return c}));const r="AGENT",i="VISITOR",a="BOT",s="SYSTEM",o="INTEGRATOR",c="EMAIL"},N4ZN:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("4SpI"),i=n("q4JX"),a=n("NpZo"),s=n("ng2a"),o=n("c2PF"),c=n("Ux+X"),u=n("BnUr");function l(e){return(t,n)=>{const l=Object(a.getSelectedThreadId)(n()),d=Object(o.getThreadByThreadId)(n(),{threadId:l}),p=Object(u.getChannelName)(d),f=Object(i.a)(e);t(Object(s.removeMessageInConversation)({message:f,threadId:l}));t(Object(r.publishMessage)({channel:p,message:f,threadId:l}));t(Object(c.trackInteraction)("republish-message"))}}},N76F:function(e,t,n){"use strict";n.r(t);n.d(t,"onContactAssociated",(function(){return a}));var r=n("sZZm"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.a,payload:{message:"Contact has been associated"}})}},N7dr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));const r=["data"],i=["error"],a=["status"],s=["updatedAt"]},NIjC:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("12C0");class s extends(Object(r.Record)({"@type":a.a,id:null,timestamp:null,contexts:Object(r.Map)(),hiddenFromVisitor:!1,messageDeletedStatus:i.a},"ContextUpdateMessage")){constructor(e={}){super(Object.assign({},e,{contexts:e.contexts&&e.contexts?Object(r.fromJS)(e.contexts):Object(r.Map)()}))}}t.a=s},NLpb:function(e,t,n){"use strict";t.a={mode:"lazy",source:"conversations-visitor-ui/lang",context:{af:function(){return n.e("conversations-visitor-ui-lang-af").then(n.t.bind(null,"ja2d",7))},"ar-eg":function(){return n.e("conversations-visitor-ui-lang-ar-eg").then(n.t.bind(null,"0FjJ",7))},bg:function(){return n.e("conversations-visitor-ui-lang-bg").then(n.t.bind(null,"ULwD",7))},bn:function(){return n.e("conversations-visitor-ui-lang-bn").then(n.t.bind(null,"oAZF",7))},"ca-es":function(){return n.e("conversations-visitor-ui-lang-ca-es").then(n.t.bind(null,"Zlj5",7))},cs:function(){return n.e("conversations-visitor-ui-lang-cs").then(n.t.bind(null,"S9mp",7))},da:function(){return n.e("conversations-visitor-ui-lang-da").then(n.t.bind(null,"ALM5",7))},de:function(){return n.e("conversations-visitor-ui-lang-de").then(n.t.bind(null,"qL+/",7))},el:function(){return n.e("conversations-visitor-ui-lang-el").then(n.t.bind(null,"gvmH",7))},"en-gb":function(){return n.e("conversations-visitor-ui-lang-en-gb").then(n.t.bind(null,"Vq2e",7))},en:function(){return Promise.resolve().then(n.t.bind(null,"WfQ3",7))},"es-mx":function(){return n.e("conversations-visitor-ui-lang-es-mx").then(n.t.bind(null,"HQ7D",7))},es:function(){return n.e("conversations-visitor-ui-lang-es").then(n.t.bind(null,"EMDt",7))},et:function(){return n.e("conversations-visitor-ui-lang-et").then(n.t.bind(null,"xmUr",7))},fi:function(){return n.e("conversations-visitor-ui-lang-fi").then(n.t.bind(null,"GFjm",7))},"fr-ca":function(){return n.e("conversations-visitor-ui-lang-fr-ca").then(n.t.bind(null,"VMlt",7))},fr:function(){return n.e("conversations-visitor-ui-lang-fr").then(n.t.bind(null,"RnOc",7))},"he-il":function(){return n.e("conversations-visitor-ui-lang-he-il").then(n.t.bind(null,"4SWN",7))},hi:function(){return n.e("conversations-visitor-ui-lang-hi").then(n.t.bind(null,"vPCh",7))},hr:function(){return n.e("conversations-visitor-ui-lang-hr").then(n.t.bind(null,"Oe0R",7))},hu:function(){return n.e("conversations-visitor-ui-lang-hu").then(n.t.bind(null,"RKDc",7))},id:function(){return n.e("conversations-visitor-ui-lang-id").then(n.t.bind(null,"rka3",7))},it:function(){return n.e("conversations-visitor-ui-lang-it").then(n.t.bind(null,"GT90",7))},ja:function(){return n.e("conversations-visitor-ui-lang-ja").then(n.t.bind(null,"du1K",7))},ko:function(){return n.e("conversations-visitor-ui-lang-ko").then(n.t.bind(null,"+WZy",7))},lt:function(){return n.e("conversations-visitor-ui-lang-lt").then(n.t.bind(null,"mjGH",7))},ms:function(){return n.e("conversations-visitor-ui-lang-ms").then(n.t.bind(null,"Z/v2",7))},nl:function(){return n.e("conversations-visitor-ui-lang-nl").then(n.t.bind(null,"xTi2",7))},no:function(){return n.e("conversations-visitor-ui-lang-no").then(n.t.bind(null,"cL6H",7))},pl:function(){return n.e("conversations-visitor-ui-lang-pl").then(n.t.bind(null,"Tl9P",7))},"pt-br":function(){return n.e("conversations-visitor-ui-lang-pt-br").then(n.t.bind(null,"sW5I",7))},"pt-pt":function(){return n.e("conversations-visitor-ui-lang-pt-pt").then(n.t.bind(null,"wITS",7))},ro:function(){return n.e("conversations-visitor-ui-lang-ro").then(n.t.bind(null,"dwuj",7))},ru:function(){return n.e("conversations-visitor-ui-lang-ru").then(n.t.bind(null,"TBi1",7))},sk:function(){return n.e("conversations-visitor-ui-lang-sk").then(n.t.bind(null,"s+t/",7))},sl:function(){return n.e("conversations-visitor-ui-lang-sl").then(n.t.bind(null,"0Pog",7))},sv:function(){return n.e("conversations-visitor-ui-lang-sv").then(n.t.bind(null,"tpx7",7))},th:function(){return n.e("conversations-visitor-ui-lang-th").then(n.t.bind(null,"nwyW",7))},tl:function(){return n.e("conversations-visitor-ui-lang-tl").then(n.t.bind(null,"vQtA",7))},tr:function(){return n.e("conversations-visitor-ui-lang-tr").then(n.t.bind(null,"B2HQ",7))},uk:function(){return n.e("conversations-visitor-ui-lang-uk").then(n.t.bind(null,"n/g2",7))},vi:function(){return n.e("conversations-visitor-ui-lang-vi").then(n.t.bind(null,"O+3h",7))},"zh-cn":function(){return n.e("conversations-visitor-ui-lang-zh-cn").then(n.t.bind(null,"WdG7",7))},"zh-hk":function(){return n.e("conversations-visitor-ui-lang-zh-hk").then(n.t.bind(null,"AbtJ",7))},"zh-tw":function(){return n.e("conversations-visitor-ui-lang-zh-tw").then(n.t.bind(null,"RpRH",7))}}}},NMIh:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.e,fileIdsByStatus:Object(r.Map)(),hasInlineImagesStripped:!1},"InlineImageStatusAttachments");t.a=a},NQPJ:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchVisitorThreads",(function(){return a}));var r=n("VYoM");const i="livechat-public/v1";function a({sessionId:e}){return r.a.get(i+"/thread/visitor/recent",{query:{sessionId:e}}).then(e=>Array.isArray(e)?e.map(e=>{e.responder?e.assignedAgentId=e.responder.userId:e.assignedAgentId=null;e.channelDetails=e.channel;delete e.channel;e.unseenCount=e.hasUnreadMessages?1:0;return e}):[])}},NRxt:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA");var a=Object(r.Record)({bouncedEmailAddress:null},"ErrorMessageTokens");const s=Object(r.Record)({localizedErrorKey:null,errorMessage:null,errorMessageTokens:null,retryable:!1},"SendFailure");t.a=function(e){if(!e)return s();const t=Object(i.a)("localizedErrorKey",e)||null,n=Object(i.a)("errorMessage",e)||null,r=Object(i.a)("errorMessageTokens",e)||null,o=r&&a(r),c=Object(i.a)("retryable",e)||!1;return s({localizedErrorKey:t,errorMessage:n,errorMessageTokens:o,retryable:c})}},NT8A:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("30KC");class s extends(Object(r.Record)({"@type":a.a,id:null,timestamp:null,hiddenFromVisitor:!1,messageDeletedStatus:i.a,originInboxId:null,auditParams:Object(r.Map)(),destinationInboxId:null},"InboxUpdateMessage")){constructor(e={}){super(Object.assign({},e,{auditParams:Object(r.Map)(e.auditParams)}))}}t.a=s},NfCo:function(e,t,n){"use strict";n.r(t);n.d(t,"PRIMARY",(function(){return r}));n.d(t,"TRANSPARENT_ON_BACKGROUND",(function(){return i}));n.d(t,"TRANSPARENT_ON_PRIMARY",(function(){return a}));const r="primary",i="transparent-on-background",a="transparent-on-primary"},Nh7c:function(e,t){e.exports="//static.hsappstatic.net/conversations-visitor-ui/static-1.9449/audio/notification.mp3"},NpZo:function(e,t,n){"use strict";n.r(t);n.d(t,"getSelectedThreadId",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("selectedThreadId")},NqZZ:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsUserTrackingAllowed",(function(){return u}));var r=n("MBJP"),i=n("647q"),a=n("FSHJ"),s=n("m2RC"),o=n("yy6y"),c=n("3gKe");const u=Object(r.a)([i.getLatestWidgetData,a.getGlobalCookieOptOut,c.getUserHasGivenConsentToProcess],(e,t,n)=>{const r=Object(s.getIsPortal53Prod)(),i=Object(o.getShouldListenToGdprBannerConsent)(e);return t!==a.OPT_OUT_YES&&(t===a.OPT_OUT_NO||(!r||!i)&&n)})},OBCX:function(e,t,n){"use strict";n.r(t);n.d(t,"addTimeOnPageTriggerAction",(function(){return a}));var r=n("Ut5p"),i=n("VB2T");const a=Object(r.b)(i.a,e=>({timeoutId:e}))},OBPj:function(e,t,n){"use strict";n.r(t);n.d(t,"getShowPreviousConversations",(function(){return s}));var r=n("MBJP"),i=n("ZqFO"),a=n("647q");const s=Object(r.a)([a.getLatestWidgetData],e=>Object(i.i)(e))},OHie:function(e,t,n){"use strict";n.r(t);var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.m.implement(Array,(e,t)=>Object(i.Seq)(t).sortBy(e).toArray());a.m.implementInherited(i.Iterable,(e,t)=>t.sortBy(e));a.m.implement(Object,(e,t)=>Object(i.Seq)(t).sortBy(e).toObject());var s=a.m,o=Object(r.a)(s),c=n("xCrP"),u=n("/He/"),l=n("0IK8");n.d(t,"sortMessages",(function(){return d}));const d=e=>Object(c.a)(u.h,o(l.getTimestamp),e)},OIId:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"f",(function(){return u}));const r="ATTACHMENT_UPLOAD_PROGRESS",i="ATTACHMENT_UPLOAD_START",a="ATTACHMENT_UPLOAD_COMPLETE",s="REMOVE_ATTACHMENT",o="CLEAR_ATTACHMENTS",c="ATTACHMENT_ERROR",u="DISMISS_ATTACHMENTS_ERROR"},OPip:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("JoAZ"),a=n("x1JE");const s=Object(r.a)((e,t)=>{Object(i.a)(t);const n=Object(a.getIdInvariant)(t),r=Object(a.getName)(t);try{n(e)}catch(t){t.indexedAsyncDataName=r;t.indexedAsyncDataValue=JSON.stringify(e);throw t}})},ORv0:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("apiEnableWidgetCookieBanner")},OmJX:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("647q");const s=Object(r.a)(a.getLatestWidgetData,Object(i.a)("message"))},Oo4n:function(e,t,n){"use strict";var r=n("qjq5"),i=n("JoAZ"),a=n("QYOI"),s=n("dAms"),o=n("OPip"),c=n("Sbt9");const u=Object(r.a)((e=Object(a.Set)(),t)=>{Object(i.a)(t);if(0===e.size)return t;const n=(e,n)=>{Object(o.a)(n,t);return e.delete(Object(c.a)(n,t))},r=t=>e.reduce(n,t);return t.updateIn(s.a,r)});var l=n("x1JE");n.d(t,"a",(function(){return d}));const d=Object(r.a)(e=>{Object(i.a)(e);const t=Object(l.getEvict)(e);try{return u(t(Object(l.getEntries)(e)),e)}catch(e){e.indexedAsyncDataName=name;throw e}})},Or3K:function(e,t,n){"use strict";n.r(t);var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("MJM1");const o=["enabled"],c=Object(s.a)(o);n.d(t,"exitIntentTriggerEnabled",(function(){return u}));const u=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),s=Object(a.a)(n);return c(s)}},Otz9:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.c,to:Object(r.List)(),cc:Object(r.List)(),bcc:Object(r.List)(),clipStatus:"",from:Object(r.Map)({name:"",email:""}),subject:"",connectedAccountAddress:"",hasReplies:!1,previousRepliesHtml:null,previousRepliesPlainText:null,originalSender:Object(r.Map)({name:"",email:""}),memberOfForwardedSubthread:!1,forward:!1,templateId:null,emailAuthenticationStatus:null},"EmailMetadata");t.a=a},OwpT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}function i(e,t,n){var r;if(e.length>t){if(null==n){n="…";r=3}else r=n.length;e=e.substring(0,t-r)+n}return e}function a(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0;n--)!0===t(e[n])&&e.splice(n,1)}function o(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,r=[],i=0;n=t.exec(e);){r.push(e.substring(i,n.index));r.push(n[0]);i=n.index+n[0].length}r.push(e.substring(i));return r}function c(e){throw new Error("Unhandled case for value: '"+e+"'")}var u=function(){function e(e){void 0===e&&(e={});this.tagName="";this.attrs={};this.innerHTML="";this.whitespaceRegex=/\s+/;this.tagName=e.tagName||"";this.attrs=e.attrs||{};this.innerHTML=e.innerHtml||e.innerHTML||""}e.prototype.setTagName=function(e){this.tagName=e;return this};e.prototype.getTagName=function(){return this.tagName||""};e.prototype.setAttr=function(e,t){this.getAttrs()[e]=t;return this};e.prototype.getAttr=function(e){return this.getAttrs()[e]};e.prototype.setAttrs=function(e){Object.assign(this.getAttrs(),e);return this};e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})};e.prototype.setClass=function(e){return this.setAttr("class",e)};e.prototype.addClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],s=e.split(r);t=s.shift();)-1===a(i,t)&&i.push(t);this.getAttrs().class=i.join(" ");return this};e.prototype.removeClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],s=e.split(r);i.length&&(t=s.shift());){var o=a(i,t);-1!==o&&i.splice(o,1)}this.getAttrs().class=i.join(" ");return this};e.prototype.getClass=function(){return this.getAttrs().class||""};e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")};e.prototype.setInnerHTML=function(e){this.innerHTML=e;return this};e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)};e.prototype.getInnerHTML=function(){return this.innerHTML||""};e.prototype.getInnerHtml=function(){return this.getInnerHTML()};e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),""].join("")};e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")};return e}();function l(e,t,n){var r,i;if(null==n){n="…";i=3;r=8}else{i=n.length;r=n.length}var a=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);if(r){t.scheme=r[1];n=n.substr(r[0].length)}if(r=n.match(/^(.*?)(?=(\?|#|\/|$))/i)){t.host=r[1];n=n.substr(r[0].length)}if(r=n.match(/^\/(.*?)(?=(\?|#|$))/i)){t.path=r[1];n=n.substr(r[0].length)}if(r=n.match(/^\?(.*?)(?=(#|$))/i)){t.query=r[1];n=n.substr(r[0].length)}(r=n.match(/^#(.*?)$/i))&&(t.fragment=r[1]);return t},s=function(e){var t="";e.scheme&&e.host&&(t+=e.scheme+"://");e.host&&(t+=e.host);e.path&&(t+="/"+e.path);e.query&&(t+="?"+e.query);e.fragment&&(t+="#"+e.fragment);return t},o=function(e,t){var r=t/2,i=Math.ceil(r),a=-1*Math.floor(r),s="";a<0&&(s=e.substr(a));return e.substr(0,i)+n+s};if(e.length<=t)return e;var c=t-i,u=a(e);if(u.query){var l=u.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);if(l){u.query=u.query.substr(0,l[1].length);e=s(u)}}if(e.length<=t)return e;if(u.host){u.host=u.host.replace(/^www\./,"");e=s(u)}if(e.length<=t)return e;var d="";u.host&&(d+=u.host);if(d.length>=c)return u.host.length==t?(u.host.substr(0,t-i)+n).substr(0,c+r):o(d,c).substr(0,c+r);var p="";u.path&&(p+="/"+u.path);u.query&&(p+="?"+u.query);if(p){if((d+p).length>=c){return(d+p).length==t?(d+p).substr(0,t):(d+o(p,c-d.length)).substr(0,c+r)}d+=p}if(u.fragment){var f="#"+u.fragment;if((d+f).length>=c){return(d+f).length==t?(d+f).substr(0,t):(d+o(f,c-d.length)).substr(0,c+r)}d+=f}if(u.scheme&&u.host){var h=u.scheme+"://";if((d+h).length0&&(b=d.substr(-1*Math.floor(c/2)));return(d.substr(0,Math.ceil(c/2))+n+b).substr(0,c+r)}function d(e,t,n){if(e.length<=t)return e;var r,i;if(null==n){n="…";r=8;i=3}else{r=n.length;i=n.length}var a=t-i,s="";a>0&&(s=e.substr(-1*Math.floor(a/2)));return(e.substr(0,Math.ceil(a/2))+n+s).substr(0,a+r)}function p(e,t,n){return i(e,t,n)}var f=function(){function e(e){void 0===e&&(e={});this.newWindow=!1;this.truncate={};this.className="";this.newWindow=e.newWindow||!1;this.truncate=e.truncate||{};this.className=e.className||""}e.prototype.build=function(e){return new u({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})};e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);n&&(t.class=n);if(this.newWindow){t.target="_blank";t.rel="noopener noreferrer"}this.truncate&&this.truncate.length&&this.truncate.length-1};e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n};e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))};e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&!this.hasWordCharAfterProtocolRegex.test(e)};e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//;e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/;e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+S+"]");e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/;return e}(),q=function(e){g(t,e);function t(t){var n,r,i,a=e.call(this,t)||this;a.stripPrefix={scheme:!0,www:!0};a.stripTrailingSlash=!0;a.decodePercentEncoding=!0;a.matcherRegex=(n=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,r=/(?:www\.)/,i=new RegExp("[/?#](?:["+M+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;✓]*["+M+"\\-+&@#/%=~_()|'$*\\[\\]✓])?"),new RegExp(["(?:","(",n.source,L(2),")","|","(","(//)?",r.source,L(6),")","|","(","(//)?",L(10)+"\\.",U.source,"(?![-"+D+"])",")",")","(?::[0-9]+)?","(?:"+i.source+")?"].join(""),"gi"));a.wordCharRegExp=new RegExp("["+M+"]");a.stripPrefix=t.stripPrefix;a.stripTrailingSlash=t.stripTrailingSlash;a.decodePercentEncoding=t.decodePercentEncoding;return a}t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,r=this.stripPrefix,i=this.stripTrailingSlash,a=this.decodePercentEncoding,s=this.tagBuilder,o=[];null!==(t=n.exec(e));){var c=t[0],u=t[1],l=t[4],d=t[5],p=t[9],f=t.index,h=d||p,b=e.charAt(f-1);if(G.isValid(c,u)&&!(f>0&&"@"===b||f>0&&h&&this.wordCharRegExp.test(b))){/\?$/.test(c)&&(c=c.substr(0,c.length-1));if(this.matchHasUnbalancedClosingParen(c))c=c.substr(0,c.length-1);else{var g=this.matchHasInvalidCharAfterTld(c,u);g>-1&&(c=c.substr(0,g))}var m=u?"scheme":l?"www":"tld",O=!!u;o.push(new E({tagBuilder:s,matchedText:c,offset:f,urlMatchType:m,url:c,protocolUrlMatch:O,protocolRelativeMatch:!!h,stripPrefix:r,stripTrailingSlash:i,decodePercentEncoding:a}))}}return o};t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else{if("]"!==n)return!1;t="["}for(var r=0,i=0,a=e.length-1;i"===e){f=new K(m({},f,{name:z()}));W()}else w.test(e)||I.test(e)||":"===e||G()}function v(e){">"===e?G():w.test(e)?d=3:G()}function j(e){C.test(e)||("/"===e?d=12:">"===e?W():"<"===e?q():"="===e||A.test(e)||x.test(e)?G():d=5)}function y(e){C.test(e)?d=6:"/"===e?d=12:"="===e?d=7:">"===e?W():"<"===e?q():A.test(e)&&G()}function E(e){C.test(e)||("/"===e?d=12:"="===e?d=7:">"===e?W():"<"===e?q():A.test(e)?G():d=5)}function T(e){C.test(e)||('"'===e?d=8:"'"===e?d=9:/[>=`]/.test(e)?G():"<"===e?q():d=10)}function S(e){'"'===e&&(d=11)}function _(e){"'"===e&&(d=11)}function R(e){C.test(e)?d=4:">"===e?W():"<"===e&&q()}function D(e){if(C.test(e))d=4;else if("/"===e)d=12;else if(">"===e)W();else if("<"===e)q();else{d=4;J()}}function M(e){if(">"===e){f=new K(m({},f,{isClosing:!0}));W()}else d=4}function N(t){if("--"===e.substr(u,2)){u+=2;f=new K(m({},f,{type:"comment"}));d=14}else if("DOCTYPE"===e.substr(u,7).toUpperCase()){u+=7;f=new K(m({},f,{type:"doctype"}));d=20}else G()}function P(e){"-"===e?d=15:">"===e?G():d=16}function k(e){"-"===e?d=18:">"===e?G():d=16}function L(e){"-"===e&&(d=17)}function B(e){d="-"===e?18:16}function F(e){">"===e?W():"!"===e?d=19:"-"===e||(d=16)}function H(e){"-"===e?d=17:">"===e?W():d=16}function U(e){">"===e?W():"<"===e&&q()}function G(){d=0;f=o}function q(){d=1;f=new K({idx:u})}function W(){var t=e.slice(p,f.idx);t&&i(t,p);if("comment"===f.type)a(f.idx);else if("doctype"===f.type)s(f.idx);else{f.isOpening&&n(f.name,f.idx);f.isClosing&&r(f.name,f.idx)}G();p=u+1}function V(){var t=e.slice(p,u);i(t,p);p=u+1}function z(){var t=f.idx+(f.isClosing?2:1);return e.slice(t,u).toLowerCase()}function J(){u--}}var K=function(){function e(e){void 0===e&&(e={});this.idx=void 0!==e.idx?e.idx:-1;this.type=e.type||"tag";this.name=e.name||"";this.isOpening=!!e.isOpening;this.isClosing=!!e.isClosing}return e}(),Y=function(){function e(t){void 0===t&&(t={});this.version=e.version;this.urls={};this.email=!0;this.phone=!0;this.hashtag=!1;this.mention=!1;this.newWindow=!0;this.stripPrefix={scheme:!0,www:!0};this.stripTrailingSlash=!0;this.decodePercentEncoding=!0;this.truncate={length:0,location:"end"};this.className="";this.replaceFn=null;this.context=void 0;this.matchers=null;this.tagBuilder=null;this.urls=this.normalizeUrlsCfg(t.urls);this.email="boolean"==typeof t.email?t.email:this.email;this.phone="boolean"==typeof t.phone?t.phone:this.phone;this.hashtag=t.hashtag||this.hashtag;this.mention=t.mention||this.mention;this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow;this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix);this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash;this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding;var n=this.mention;if(!1!==n&&"twitter"!==n&&"instagram"!==n&&"soundcloud"!==n)throw new Error("invalid `mention` cfg - see docs");var r=this.hashtag;if(!1!==r&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate);this.className=t.className||this.className;this.replaceFn=t.replaceFn||this.replaceFn;this.context=t.context||this}e.link=function(t,n){return new e(n).link(t)};e.parse=function(t,n){return new e(n).parse(t)};e.prototype.normalizeUrlsCfg=function(e){null==e&&(e=!0);return"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}};e.prototype.normalizeStripPrefixCfg=function(e){null==e&&(e=!0);return"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}};e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:r(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})};e.prototype.parse=function(e){var t=this,n=["a","style","script"],r=0,i=[];J(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(0===r){var a=o(e,/( | |<|<|>|>|"|"|')/gi),s=n;a.forEach((function(e,n){if(n%2==0){var r=t.parseText(e,s);i.push.apply(i,r)}s+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}});i=this.compactMatches(i);return i=this.removeUnwantedMatches(i)};e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;ti?t:t+1;e.splice(s,1);continue}e[t+1].getOffset()new Promise((n,i)=>{try{const i=Object(r.a)();window.parent.postMessage(JSON.stringify({type:e,data:t,uuid:i}),"*");n({type:e,data:t})}catch(e){i(e)}})},P7jJ:function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("9f1P"),c=n.n(o),u=n("7719");const l={[u.a]:8,[u.c]:12,[u.f]:16,[u.e]:20,[u.d]:24};var d=n("CR0J"),p=n("YXBx");function f(e){return Object.keys(l).includes(e)}const h=e=>Object(o.css)(["font-size:",";height:",";width:",";"],e&&f(e)?l[e]+"px":e,e&&f(e)?l[e]+"px":e,e&&f(e)?l[e]+"px":e),b=c.a.div.withConfig({displayName:"VizExIcon__IconWrapper",componentId:"t8tsaw-0"})(["display:inline-flex;vertical-align:middle;fill:",";",""],({theme:e})=>Object(p.a)(e)||"currentColor",({size:e})=>e&&h(e)),g=e=>{const{icon:t,size:n}=e,a=Object(r.a)(e,["icon","size"]);return Object(i.jsx)(b,Object.assign({},a,{size:n,children:t}))};g.displayName="VizExIcon";g.propTypes={icon:s.a.node.isRequired,size:s.a.oneOfType([s.a.oneOf(Object.keys(l)),s.a.string]),theme:d.a};t.a=g},PBVa:function(e,t,n){"use strict";n.r(t);n.d(t,"shouldOverrideTrigger",(function(){return r}));const r=e=>void 0!==e&&!e},PJYd:function(e,t,n){e.exports=n.dlbpr(1,82)},PJuP:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("JGJA"),i=n("QYOI"),a=n("Zui/"),s=n("9F2+");const o=e=>{const t=Object(s.a)(e);if(t){return t.find(e=>Object(r.a)("@type",e)===a.d)}return Object(i.List)()}},PUb4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("pdKL");const i=Object(r.a)((e,t)=>t[e])},PVk8:function(e,t,n){"use strict";n.d(t,"c",(function(){return s}));n.d(t,"b",(function(){return o}));n.d(t,"a",(function(){return c}));var r=n("slCD"),i=n("npjq"),a=n("G2Xo");const s=({useGap:e,message:t,options:n},r=!1)=>{let s=r?Object(a.a)(t,n):i.a.text(t,n);!0===e&&(s=` ${s} `);return s},o=e=>{const t={"data-locale-at-render":e.options&&e.options.locale||i.a.locale,"data-key":e.message};for(const n of Object.keys(e))["message","options","useGap"].indexOf(n)<0&&(t[n]=e[n]);return t},c=e=>{const{className:t,class:n}=e,i=Object(r.a)(e,["className","class"]);return t&&!n?Object.assign({class:t},i):e}},PY2H:function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("9f1P"),c=n.n(o),u=n("CR0J"),l=n("Z/Dw"),d=n("W6dd"),p=n("3+Hx"),f=n("Ktcs"),h=n("Zulv"),b=n("wjRl"),g=n("rdz/");const m=({use:e,theme:{colors:t}})=>e===d.c?t.text:e===d.b?t.errorText:t.linkText||t.primary,O={baseStyle:Object(o.css)(["cursor:pointer;text-decoration:none;transition:all 0.15s ease-out;font-weight:400;color:",";"," ",""],m,({use:e})=>e===d.c&&"text-decoration: underline;",({use:e})=>e===d.b&&"font-weight: bold;"),_hovered:Object(o.css)(["color:",";text-decoration:underline;"],({use:e,theme:t})=>Object(g.a)(m({use:e,theme:t}),-30)),_focused:b.a,_pressed:Object(o.css)(["color:",";"],({use:e,theme:t})=>Object(g.a)(m({use:e,theme:t}),30))};var v=n("W/H/");const j=c.a.a.withConfig({displayName:"VizExLink__StyledATag",componentId:"tgtihp-0"})(["",""],({theme:e})=>Object(v.a)({component:"Link",defaultStyles:O,theme:e})),y=e=>{const{as:t,onClick:n,onPress:a}=e,s=Object(r.a)(e,["as","onClick","onPress"]),o=Object(f.useRef)(null),{linkProps:c}=Object(p.a)({elementType:t,onPress:a||n},o);return Object(i.jsx)(j,Object.assign({as:t,ref:o},Object(h.i)(c,s)))};y.displayName="VizExLink";y.propTypes=Object.assign({as:s.a.oneOf(["a","span"]),children:s.a.node,external:s.a.bool,href:s.a.string,onClick:s.a.func,onPress:s.a.func,theme:u.a,use:s.a.oneOf([d.c,d.a,d.b])},l.a);y.defaultProps={use:d.a,tabIndex:0};t.a=y},PaBm:function(e,t,n){"use strict";n.r(t);var r=n("KXN9"),i=n("tXbc");const a=e=>Object(r.c)(e)===i.a;n.d(t,"isClientReady",(function(){return s}));const s=a},Pda3:function(e,t,n){"use strict";n.r(t);var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.c.implement(Array,(e,t)=>t.every(e));a.c.implementInherited(i.Iterable,(e,t)=>t.every(e));a.c.implement(Object,(e,t)=>{const n=Object.keys(t),r=n.length;for(let i=0;iObject(l.c)(t)===e),p=e=>(...t)=>o(d(e),t),f=e=>(...t)=>Object(c.a)(d(e),t),h=d(u.e),b=d(u.b),g=d(u.c),m=d(u.d),O=d(u.a),v=e=>g(e)||h(e),j=p(u.e),y=p(u.b),E=p(u.c),T=p(u.d),w=p(u.a),I=f(u.e),C=f(u.b),A=f(u.c),x=f(u.d),S=f(u.a),_=(...e)=>A(...e)||I(...e)},Pkdb:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("MBJP"),i=n("V0XL"),a=n("nzmY"),s=n("X4GJ"),o=n("6pgb"),c=n("rf4d"),u=n("eg5p"),l=n("WebA");const d=Object(r.a)([i.getMessagesPageUri,s.a],(e,t)=>{const n=Object(l.buildCommonMessage)({text:t}),r=Object(a.a)({originalGenericChannelId:c.d,threadId:u.a,currentUrl:e});return Object(o.a)(n,r)})},Pmcc:function(e,t,n){"use strict";var r=n("QgEn"),i=n("VfuR"),a=n.n(i),s=n("Ktcs"),o=n("VADA"),c=n("mZmn"),u=n("mKxs"),l=n("GdKg"),d=n("npjq");class p extends s.Component{render(){const{chatHeadingConfig:e,mobile:t,size:n}=this.props,i=Object(o.a)(e),a=d.a.text("conversations-visitor-experience-components.default.agent"),s=d.a.text("conversations-visitor-experience-components.default.avatar",{identifier:e.get("customChatName")||a});return e?Object(r.jsx)("div",{className:"justify-center align-center",style:Object(c.a)({mobile:t}),children:Object(r.jsx)(l.a,{src:i,className:"chat-head-avatar",size:n,alt:s})}):null}}p.propTypes={chatHeadingConfig:a.a.oneOfType([Object(u.a)("CompanyChatHeadingConfig"),Object(u.a)("OwnerChatHeadingConfig")]),mobile:a.a.bool,size:a.a.string.isRequired};p.displayName="CustomChatHeading";t.a=p},PsC7:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({chatConfig:null,client:null,connectionInProgress:!1,forceClientOffline:!1,isAdmin:!0,isInForeground:!0,isPubNubClientConnected:!1,serverTimeOffsetInMs:0,timestamps:Object(r.OrderedMap)(),uuid:null},"ClientData");t.a=i},PwgP:function(e,t,n){"use strict";var r=n("QgEn"),i=n("Ktcs"),a=n("VfuR"),s=n.n(a),o=n("r1tY"),c=n("t6nY"),u=n.n(c),l=n("6Jpi"),d=n("19qb"),p=n("9zF3"),f=n("AQmo"),h=n("l04f"),b=n("MBJP");const g=Object(b.a)([h.getIsOpen,p.calculateUnseenThreadsCount],(e,t)=>Boolean(!e&&!!t));var m=n("66eB"),O=n("npjq"),v=n("9f1P"),j=n.n(v),y=n("bG8F"),E=n("mKxs"),T=n("8Nq+");const w=({height:e,width:t,color:n})=>{const a=Object(i.useId)();return Object(r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:t,height:e,viewBox:"0 0 39 37",className:"conversations-visitor-open-icon",children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{id:"conversations-visitor-open-icon-path-1"+a,d:"M31.4824242 24.6256121L31.4824242 0.501369697 0.476266667 0.501369697 0.476266667 24.6256121z"})}),Object(r.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:Object(r.jsx)("g",{transform:"translate(-1432 -977) translate(1415.723 959.455)",children:Object(r.jsxs)("g",{transform:"translate(17 17)",children:[Object(r.jsx)("g",{transform:"translate(6.333 .075)",children:Object(r.jsx)("path",{fill:n,d:"M30.594 4.773c-.314-1.943-1.486-3.113-3.374-3.38C27.174 1.382 22.576.5 15.36.5c-7.214 0-11.812.882-11.843.889-1.477.21-2.507.967-3.042 2.192a83.103 83.103 0 019.312-.503c6.994 0 11.647.804 12.33.93 3.079.462 5.22 2.598 5.738 5.728.224 1.02.932 4.606.932 8.887 0 2.292-.206 4.395-.428 6.002 1.22-.516 1.988-1.55 2.23-3.044.008-.037.893-3.814.893-8.415 0-4.6-.885-8.377-.89-8.394"})}),Object(r.jsx)("g",{fill:n,transform:"translate(0 5.832)",children:Object(r.jsx)("path",{d:"M31.354 4.473c-.314-1.944-1.487-3.114-3.374-3.382-.046-.01-4.644-.89-11.859-.89-7.214 0-11.813.88-11.843.888-1.903.27-3.075 1.44-3.384 3.363C.884 4.489 0 8.266 0 12.867c0 4.6.884 8.377.889 8.393.314 1.944 1.486 3.114 3.374 3.382.037.007 3.02.578 7.933.801l2.928 5.072a1.151 1.151 0 001.994 0l2.929-5.071c4.913-.224 7.893-.794 7.918-.8 1.902-.27 3.075-1.44 3.384-3.363.01-.037.893-3.814.893-8.414 0-4.601-.884-8.378-.888-8.394"})})]})})})]})};w.propTypes={color:s.a.string.isRequired,height:s.a.oneOfType([s.a.number,s.a.string]).isRequired,width:s.a.oneOfType([s.a.number,s.a.string]).isRequired};w.displayName="OpenIcon";var I=w,C=n("+KD7");const A=60,x=60;var S=n("8Ma8");var _=Object(v.css)(["box-shadow:0 1px 4px rgba(0,0,0,0.1),0 2px 12px rgba(0,0,0,0.2);&:hover{cursor:pointer;}&:focus-visible{outline-offset:2px;}@media (prefers-reduced-motion:no-preference){transition:box-shadow 100ms ease-in-out;transition:transform 100ms ease-in-out;&:hover{box-shadow:0 2px 6px rgba(0,0,0,0.1),0 4px 16px rgba(0,0,0,0.2);transform:scale(1.1);}&:focus-visible{box-shadow:0 2px 6px rgba(0,0,0,0.1),0 4px 16px rgba(0,0,0,0.2);transform:scale(1.1);}&:active{box-shadow:0 1px 4px rgba(0,0,0,0.1),0 2px 8px rgba(0,0,0,0.1);transform:scale(0.9);}}@media (prefers-reduced-motion){&::after{content:'';position:absolute;top:0;left:0;border-radius:inherit;width:100%;height:100%;display:block;background-color:",";opacity:0;}&:hover{&::after{opacity:0.08;}}&:focus-visible{&::after{opacity:0.12;}}&:active{&::after{opacity:0.12;}}}"],({isDark:e})=>e?"#000":"#fff"),R=n("04om");const D=j.a.div.withConfig({displayName:"TwistFadeTransition__TransitionComponent",componentId:"sc-123o7i-0"})(["transition:transform 0.16s linear 0s,opacity 0.06s linear;opacity:0;"," ",""],({direction:e})=>"left"===e?"transform: rotate(25deg) scale(0);":"transform: rotate(-25deg) scale(0);",({direction:e,transitionState:t})=>"entering"===t||"entered"===t?"opacity: 1; transform: rotate(0deg) scale(1);":"left"!==e||"exiting"!==t&&"exited"!==t?"right"!==e||"exiting"!==t&&"exited"!==t?"":"opacity: 0; transform: rotate(25deg) scale(0.5);":"opacity: 0; transform: rotate(-25deg) scale(0.5);"),M=({in:e=!0,children:t,direction:n="right"})=>R.b?Object(r.jsx)(R.b,{in:e,timeout:200,appear:!0,children:e=>Object(r.jsx)(D,{direction:n,transitionState:e,children:t})}):e?t:null;M.propTypes={children:s.a.node.isRequired,direction:s.a.oneOf(["left","right"]),in:s.a.bool.isRequired};M.displayName="TwistFadeTransition";var N=M;const P=({color:e,height:t,width:n})=>Object(r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:t,viewBox:"0 0 19 18",className:"conversations-visitor-close-icon",children:Object(r.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:Object(r.jsx)("g",{fill:e,transform:"translate(-927 -991) translate(900.277 962)",children:Object(r.jsx)("g",{transform:"translate(27 29)",children:Object(r.jsx)("path",{d:"M10.627 9.013l6.872 6.873.708.707-1.415 1.414-.707-.707-6.872-6.872L2.34 17.3l-.707.707L.22 16.593l.707-.707L7.8 9.013.946 2.161l-.707-.708L1.653.04l.707.707L9.213 7.6 16.066.746l.707-.707 1.414 1.414-.707.708-6.853 6.852z"})})})})});P.propTypes={color:s.a.string.isRequired,height:s.a.oneOfType([s.a.number,s.a.string]).isRequired,width:s.a.oneOfType([s.a.number,s.a.string]).isRequired};P.displayName="CloseIcon";var k=P;const L=j.a.button.withConfig({displayName:"IconLauncher__BaseLauncher",componentId:"arcxwi-0"})(["border:none;position:relative;",""],_),B=j()(L).withConfig({displayName:"IconLauncher__ShapedLauncher",componentId:"arcxwi-1"})(["border-radius:50%;height:","px;width:","px;"],x,A),F=j.a.div.withConfig({displayName:"IconLauncher__LauncherIcon",componentId:"arcxwi-2"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;"]),H=({ariaLabel:e,badgeNumber:t,className:n,onClick:i,showBadge:a,style:s,useDefaultColor:o,open:c})=>{const u=o?C.q:C.r,l=Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)(N,{in:c,direction:"left",children:Object(r.jsx)(F,{children:Object(r.jsx)(k,{color:u,width:20,height:20})})}),Object(r.jsx)(N,{in:!c,direction:"right",children:Object(r.jsx)(F,{children:Object(r.jsx)(I,{color:u,width:32,height:30})})})]}),{setLauncherRef:d}=Object(S.c)();return Object(r.jsx)(T.a,{badgeLabel:t,showBadge:a,positioning:"on-circle",children:Object(r.jsx)(B,{"aria-label":e,"aria-haspopup":"dialog",isDark:o,style:s,className:n,onClick:i,ref:d,children:l})})};H.displayName="IconLauncher";H.defaultProps={open:!1,onClick:()=>{},showBadge:!1};H.propTypes={ariaLabel:s.a.string.isRequired,badgeNumber:s.a.number,className:s.a.string,onClick:s.a.func,open:s.a.bool.isRequired,showBadge:s.a.bool.isRequired,style:s.a.object,useDefaultColor:s.a.bool.isRequired};var U=H;const G=j.a.div.withConfig({displayName:"Launcher__IconLauncherWrapper",componentId:"sc-1durno5-0"})(["display:flex;align-items:center;.launcher-left-align &{flex-direction:row-reverse;}"]),q=({badgeNumber:e,coloring:{accentColor:t,useDefaultColor:n},className:a,onClose:s,onOpen:o,open:c,showBadge:l})=>{const d=Object(i.useCallback)(()=>{c?s():o()},[c,s,o]),p={className:u()("reagan--widget-loaded",a),badgeNumber:e,showBadge:l,ariaLabel:c?O.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.close"):O.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.open"),onClick:d};return Object(r.jsx)(G,{children:Object(r.jsx)(U,Object.assign({style:Object(y.b)(t),useDefaultColor:n,open:c},p))})};q.defaultProps={onOpen:m.a,onClose:m.a,open:!1};q.propTypes={badgeNumber:s.a.number,className:s.a.string,coloring:Object(E.a)("ColoringRecord").isRequired,onClose:s.a.func.isRequired,onOpen:s.a.func.isRequired,open:s.a.bool.isRequired,showBadge:s.a.bool};q.displayName="Launcher";var W=q;const V=()=>({badgeNumber:Object(d.useSelector)(p.calculateUnseenThreadsCount),coloring:Object(d.useSelector)(f.a),open:Object(d.useSelector)(h.getIsOpen),showBadge:Object(d.useSelector)(g)}),z=e=>{const t=V();return Object(r.jsx)(W,Object.assign({},e,{},t))};z.displayName="LauncherContainer";var J=z,K=n("WUj5"),Y=n("zGIQ"),Q=n("X4GJ"),Z=n("wD2U"),X=n("84LK"),$=n("QYOI"),ee=n("P7jJ"),te=n("eCQl"),ne=n("V/xu"),re=n("fKJZ"),ie=n("3MJX"),ae=n("HtM0"),se=n("+hQr");const oe=({children:e,onPress:t})=>{const n=Object(i.useRef)(),{buttonProps:a}=Object(se.a)({onPress:t,elementType:"div"},n);return Object(r.jsx)("div",Object.assign({},a,{className:"initial-message-bubble","aria-label":O.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.open"),"aria-describedby":"welcome-message","aria-haspopup":"dialog",children:e}))};oe.displayName="InitialMessageTextButton";oe.propTypes={children:s.a.node};var ce=oe,ue=n("sL2E"),le=n("Avso"),de=n("0Me1"),pe=n("mZmn");function fe(e,t){switch(!0){case 3===e&&0===t:return"chat-head-left chat-head-shrink";case 3===e&&1===t:return"chat-head-center";case 3===e&&2===t:return"chat-head-right chat-head-shrink";case 2===e&&0===t:return"chat-head-left";case 2===e&&1===t:return"chat-head-right";default:return""}}function he({showStatusIndicator:e,size:t,responders:n,mobile:i}){const a=n.size,s=n.map((n,i)=>{const s=Object(le.getAvatar)(n),o=Object(le.getFriendlyOrFormalName)(n),c=Object(de.a)(n),u=Object(le.getIsBot)(n),l=Object(le.getUserId)(n),d=fe(a,i);return Object(r.jsx)(ue.a,{className:d,size:t,avatar:s,avatarName:o,online:c,responder:n,isBot:u,showStatus:e,isVisitorWidget:!0},"chat-head."+l)});return Object(r.jsx)("div",{className:"justify-center",style:Object(pe.a)({mobile:i}),children:s})}he.propTypes={mobile:s.a.bool,responders:s.a.instanceOf($.List).isRequired,showStatusIndicator:s.a.bool.isRequired,size:s.a.string.isRequired};he.defaultProps={showStatusIndicator:!1};he.displayName="InitialMessageChatHeadGroup";var be=he,ge=n("Pmcc");class me extends i.PureComponent{render(){const{chatHeadingConfig:e,chatHeadingResponders:t,mobile:n,showStatusIndicator:i}=this.props,a=n?"sm":"md",s=t.size?be:ge.a;return Object(r.jsx)(s,{size:a,mobile:n,responders:t,chatHeadingConfig:e,showStatusIndicator:i})}}me.propTypes={chatHeadingConfig:re.a.isRequired,chatHeadingResponders:s.a.instanceOf($.List).isRequired,mobile:s.a.bool.isRequired,showStatusIndicator:s.a.bool.isRequired};me.defaultProps={mobile:!1,showStatusIndicator:!1};me.displayName="InitialMessageAvatars";var Oe=me,ve=n("/mXs"),je=n("wFcP");function ye(e,t){const n=e=>e&&"object"==typeof e;return[e,t].reduce((e,t)=>{Object.keys(t).forEach(r=>{const i=e[r],a=t[r];Array.isArray(i)&&Array.isArray(a)?e[r]=i.concat(...a):n(i)&&n(a)?e[r]=ye(i,a):e[r]=a});return e},{})}const Ee=(e={})=>e.colors||e.font||e.components?ye(je.a,e):je.a,Te={[l.a]:Object(v.css)(["padding-right:20px;.initial-message-close-button{right:inherit !important;left:8px;}"]),[l.b]:Object(v.css)(["padding-left:20px;"])},we=j.a.div.withConfig({displayName:"InitialMessageBubble__StyleWrapper",componentId:"ycharb-0"})(["position:relative;width:260px;&.mobile{width:inherit;}",";"],({widgetLocation:e})=>Te[e]||Te[l.b]),Ie=j()(ve.a).withConfig({displayName:"InitialMessageBubble__CloseButton",componentId:"ycharb-1"})(["position:absolute;top:0;width:36px;height:36px;right:",";color:",";z-index:2;&:focus-visible{outline-offset:-2px;}"],({widgetLocation:e})=>e===l.a?"20px":"0px",C.g);class Ce extends i.Component{constructor(...e){super(...e);this.onClose=()=>{try{this.props.onClose()}catch(e){Object(te.reportError)({error:"InitialMessageBubble Mysterious Error",fingerprint:["ComponentError"],tags:{componentDidCatch:!0}})}};this.renderAvatar=()=>{const{avatarHeightAboveBubble:e,chatHeadingConfig:t,chatHeadingResponders:n,mobile:i,onClick:a}=this.props,s=i?ne.a.sm:ne.a.md,o=-(e||s/2);return Object(r.jsx)("div",{"data-test-id":"initial-message-avatar-wrapper",className:"initial-message-avatar justify-center",onClick:a,style:{top:o},children:Object(r.jsx)(Oe,{chatHeadingConfig:t,chatHeadingResponders:n,mobile:i})})};this.renderCloseButton=()=>{const{widgetLocation:e}=this.props;return Object(r.jsx)(Ie,{"aria-label":O.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.dismiss"),size:"md",use:"transparent-on-background",shape:"circle",theme:Ee({colors:{primary:C.q}}),"data-test-id":"initial-message-close-button",onClick:this.onClose,widgetLocation:e,children:Object(r.jsx)(ee.a,{size:"13px",icon:Object(r.jsx)(ie.a,{})})})}}componentDidMount(){this.props.onUpdateSize()}componentDidUpdate(e){e.initialMessage!==this.props.initialMessage&&this.props.onUpdateSize()}render(){const{initialMessage:e,onClick:t,mobile:n,setInitialMessageRef:i,widgetLocation:a}=this.props;return Object(r.jsxs)(we,{className:n?"mobile":"","aria-label":O.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.welcomeMessage"),role:"status",ref:i,widgetLocation:a,children:[Object(r.jsxs)(ce,{onPress:t,children:[this.renderAvatar(),Object(r.jsx)("p",{id:"welcome-message",role:"status","data-test-id":"initial-message-text",className:"initial-message-text m-top-1 m-bottom-0",onClick:t,dangerouslySetInnerHTML:{__html:Object(ae.a)(e)}})]}),this.renderCloseButton()]})}}Ce.displayName="InitialMessageBubble";Ce.propTypes={avatarHeightAboveBubble:s.a.number,chatHeadingConfig:re.a.isRequired,chatHeadingResponders:s.a.instanceOf($.List).isRequired,initialMessage:s.a.string.isRequired,mobile:s.a.bool.isRequired,onClick:s.a.func.isRequired,onClose:s.a.func.isRequired,onUpdateSize:s.a.func.isRequired,setInitialMessageRef:s.a.func,widgetLocation:l.c};Ce.defaultProps={mobile:!1,onUpdateSize:()=>{},setInitialMessageRef:()=>{}};const Ae=e=>({chatHeadingConfig:Object(K.a)(e),chatHeadingResponders:Object(Y.a)(e),initialMessage:Object(Q.a)(e),mobile:Object(Z.getIsMobile)(e)}),xe={onClose:X.a};var Se=Object(d.connect)(Ae,xe)(Ce),_e=n("mEYk"),Re=n.n(_e),De=n("sl/w"),Me=n("LZPL"),Ne=n.n(Me);const Pe=e=>(...t)=>{try{return(0,localStorage[e])(...t)}catch(e){return}},ke={setItem:Pe("setItem"),getItem:Pe("getItem"),removeItem:Pe("removeItem")},Le="4",Be=()=>{Ne.a.setDebug("conversations",!0);ke.setItem("ABLY_LOG_LEVEL",Le)},Fe=()=>{Ne.a.setDebug("conversations",!1);ke.removeItem("ABLY_LOG_LEVEL")},He=()=>{const e=ke.getItem("ABLY_LOG_LEVEL")===Le;return Boolean(Ne.a.debug("conversations")&&e)},Ue=()=>{He()?Fe():Be()},Ge=68,qe=j.a.div.withConfig({displayName:"DebugOverlay__Backdrop",componentId:"d13vfu-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.75);z-index:1000;"]),We=j.a.div.withConfig({displayName:"DebugOverlay__Overlay",componentId:"d13vfu-1"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),Ve=j.a.div.withConfig({displayName:"DebugOverlay__OverlayContent",componentId:"d13vfu-2"})(["background-color:white;position:relative;padding:20px;border:solid 1px;box-shadow:grey 0px 0px 10px;width:360px;"]),ze=j.a.button.withConfig({displayName:"DebugOverlay__DebugButton",componentId:"d13vfu-3"})(["margin-right:4px;"]),Je=j.a.button.withConfig({displayName:"DebugOverlay__CloseButton",componentId:"d13vfu-4"})(["position:absolute;border:white;top:0;right:0;"]);class Ke extends i.Component{constructor(e){super(e);this.state={showDebug:!1,lastEventId:null,verboseLoggingEnabled:He()};this.toggleVerboseLogging=this.toggleVerboseLogging.bind(this);this.sendDebugData=this.sendDebugData.bind(this);this.closeDebug=this.closeDebug.bind(this);this.handleKeyUp=this.handleKeyUp.bind(this)}componentDidMount(){document.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){document.removeEventListener("keyup",this.handleKeyUp)}handleKeyUp(e){const{altKey:t,ctrlKey:n,shiftKey:r,keyCode:i}=e;if(t&&n&&r&&i===Ge){this.setState({showDebug:!0});this.props.onEnterDebug&&this.props.onEnterDebug()}}closeDebug(){this.setState({showDebug:!1})}toggleVerboseLogging(){this.setState(e=>({verboseLoggingEnabled:!e.verboseLoggingEnabled}));Ue()}sendDebugData(){Re.a.captureMessage("Debug Data "+Date.now(),{level:"info"});this.setState({lastEventId:Re.a.lastEventId()})}render(){return this.state.showDebug?Object(r.jsx)(qe,{children:Object(r.jsx)(We,{children:Object(r.jsxs)(Ve,{children:[Object(r.jsx)("h3",{children:"Debug Menu"}),this.props.renderNetworkStatistics?this.props.renderNetworkStatistics():null,Object(r.jsx)(ze,{onClick:this.toggleVerboseLogging,children:this.state.verboseLoggingEnabled?Object(r.jsx)(De.a,{message:"conversations-error-reporting.debugOverlay.disableLogs"}):Object(r.jsx)(De.a,{message:"conversations-error-reporting.debugOverlay.enableLogs"})}),Object(r.jsx)(ze,{onClick:this.sendDebugData,children:Object(r.jsx)(De.a,{message:"conversations-error-reporting.debugOverlay.sendData"})}),Object(r.jsx)("br",{}),this.state.lastEventId?Object(r.jsx)("span",{style:{color:"green"},children:Object(r.jsx)(De.a,{message:"conversations-error-reporting.debugOverlay.lastEventMessage",options:{lastEventId:this.state.lastEventId}})}):null,Object(r.jsx)(Je,{onClick:this.closeDebug,children:"x"})]})})}):null}}Ke.displayName="DebugOverlay";var Ye=Ke,Qe=n("7719"),Ze=n("4fRi"),Xe=n("j+Bh"),$e=n("38AR");const et={wrapper:"span"};function tt(e,t,...n){return i.createElement(e&&e[t]||et[t]||et.wrapper,...n)}function nt(e){console.warn(`I18n: FormattedJSXMessage called with missing or non-JSX message key ${e.message}. See go/i18n-react for more info.`);return Object(r.jsx)(De.a,{message:e.message,options:e.options})}const rt=e=>null!=e,it=e=>{let t=O.a.lookup(e.message,{locale:O.a.langEnabled?O.a.locale:"en"});if(!rt(t))return nt(e);const n=e.options&&e.options.count,r=rt(n);if("object"==typeof t&&r){const e=O.a.pluralization.get()(n);for(;e.length;){const n=e.shift();if(rt(t[n])){t=t[n];break}}}const i=Object.assign({},e.options);if(r&&"number"==typeof n)i.count=O.a.formatNumber(n);else if("string"==typeof t)return nt(e);return t(tt,e.elements,i)};it.propTypes={message:s.a.string.isRequired,elements:s.a.object.isRequired,options:s.a.object,jsxMessageValidator:(e,t,n)=>{e.message.endsWith("_jsx")||console.warn(`I18n: ${n} called with invalid message prop not ending in _jsx for ${e.message}`)}};var at=it,st=n("PY2H"),ot=n("Jr27"),ct=n("oUkX");const ut=j.a.div.withConfig({displayName:"WidgetErrorRetryPanel__WidgetBodyDiv",componentId:"juzt4x-0"})(["display:flex;flex-direction:column;padding:40px;"]);class lt extends i.Component{render(){const{inline:e,widgetLocation:t,mobile:n,isOpen:i,onClose:a}=this.props;return i?Object(r.jsx)(ct.a,{children:Object(r.jsx)($e.b,{inline:e,isOpen:!0,mobile:n,widgetLocation:t,browserWindowHeight:0,role:"alert",children:Object(r.jsxs)(ut,{children:[Object(r.jsx)("h4",{children:Object(r.jsx)(De.a,{message:"conversations-visitor-ui.widgetErrorRetryPanel.title"})}),!e&&Object(r.jsx)(ot.a,{onClick:a,"aria-label":O.a.text("conversations-visitor-ui.visitorExperienceAriaLabels.closeChatWindow")}),Object(r.jsx)(at,{message:"conversations-visitor-ui.widgetErrorRetryPanel.body_jsx",elements:{Link:st.a},options:{LinkProps:{use:"on-bright",onClick:this.props.retry}}})]})})}):null}}lt.displayName="WidgetErrorRetryPanel";lt.propTypes={inline:s.a.bool.isRequired,isOpen:s.a.bool,mobile:s.a.bool.isRequired,onClose:s.a.func.isRequired,retry:s.a.func.isRequired,widgetLocation:l.c};var dt=lt;class pt extends i.Component{static getDerivedStateFromError(e){return{error:e}}constructor(e){super(e);this.handleRetry=()=>{this.setState({error:!1})};this.explicitlySetError=e=>{this.setState({error:e})};this.state={error:null}}render(){return this.state.error?this.props.renderError(this.handleRetry):this.props.children}}pt.displayName="AsyncComponentErrorBoundary";pt.propTypes={children:s.a.node,renderError:s.a.func.isRequired};var ft=pt,ht=n("53K1"),bt=n("cu7Z");const gt=e=>({currentView:Object(ht.a)(e)});var mt=Object(d.connect)(gt)(bt.b),Ot=n("0Zm1"),vt=n("cFiw"),jt=n("tUSi");const yt=j.a.main.withConfig({displayName:"DialogWindow__Main",componentId:"sc-11ext15-0"})(["&:focus{outline:none;}"]),Et=e=>{const{isOpen:t,onClose:n,children:a}=e,s=Object(i.useRef)(),{dialogProps:o}=Object(vt.a)({id:"live-chat-widget","aria-labelledby":jt.b,"aria-describedby":jt.a},s),{setShouldTrapFocus:c,disableWidgetClose:u,launcherRef:l}=Object(S.c)(),{overlayProps:d}=Object(Ot.b)({isOpen:t,isKeyboardDismissDisabled:u,onClose:()=>{n&&n();l&&l.focus()},shouldCloseOnBlur:!0,shouldCloseOnInteractOutside:e=>{!!e&&"BUTTON"===e.tagName||c(!1);return!1}},s);return Object(r.jsx)(yt,Object.assign({ref:s},d,{},o,{onClick:()=>c(!0),children:a}))};Et.displayName="DialogWindow";var Tt=Et;const wt=e=>{const{inline:t,isOpen:n,shouldRenderDialog:a,mobile:s,widgetLocation:o,onClose:c,onOpenAnimationStarted:u,onCloseAnimationFinished:l,onOpenAnimationFinished:d,onCloseAnimationStarted:p}=e,{disableWidgetDialog:f}=Object(S.c)(),h=f||!a,b=h?i.Fragment:Tt,g=h?{}:{isOpen:n,onClose:c};return Object(r.jsx)(b,Object.assign({},g,{children:Object(r.jsx)(ft,{renderError:e=>Object(r.jsx)(dt,{inline:t,isOpen:n,mobile:s,widgetLocation:o,onClose:c,retry:e}),children:Object(r.jsx)(mt,{inline:t,isOpen:n,mobile:s,onOpenAnimationStarted:u,onCloseAnimationFinished:l,onOpenAnimationFinished:d,onCloseAnimationStarted:p,widgetLocation:o,closeWidget:c})})}))};wt.displayName="WidgetWindow";var It=wt,Ct=n("JxxT"),At=n("okxY");n.d(t,"a",(function(){return xt}));class xt extends i.Component{constructor(e){super(e);this.onOpenAnimationStarted=()=>{this.setState({animationsFinished:!1,shouldRenderDialog:!0});this.props.onIframeResize(this.getIframeDimensions())};this.onOpenAnimationFinished=()=>{this.setState({animationsFinished:!0})};this.onCloseAnimationStarted=()=>{this.setState({animationsFinished:!1})};this.onCloseAnimationFinished=()=>{this.setState({animationsFinished:!0,shouldRenderDialog:!1});this.props.onIframeResize(this.getIframeDimensions());this.context.setShouldTrapFocus(!1)};this.getIframeDimensions=this.getIframeDimensions.bind(this);this.getAvatarHeightAboveBubble=this.getAvatarHeightAboveBubble.bind(this);this.setInitialMessageRef=this.setInitialMessageRef.bind(this);this.openWidget=this.openWidget.bind(this);this.closeWidget=this.closeWidget.bind(this);this.getLauncherBoundingRect=this.getLauncherBoundingRect.bind(this);this.getInitialMessageBoundingRect=this.getInitialMessageBoundingRect.bind(this);this.getWidgetBoundingRect=this.getWidgetBoundingRect.bind(this);this.state={animationsFinished:!0,shouldRenderDialog:this.props.isOpen}}componentDidMount(){this.props.onIframeResize(this.getIframeDimensions(this.props.isOpen))}getLauncherBoundingRect(){const{isOpen:e,inline:t,mobile:n}=this.props;return e&&n||t?{width:0,height:0}:{width:Ct.f,height:Ct.e}}getInitialMessageBoundingRect(){return this.initialMessageRef?this.initialMessageRef.getBoundingClientRect():{width:0,height:0}}getWidgetBoundingRect(){const{isOpen:e}=this.props;return e?{width:Ct.b+Ct.j,height:Object(Ze.a)(this.props.browserWindowHeight,!1)}:{width:0,height:0}}getAvatarHeightAboveBubble(){return(this.props.mobile?ne.a[Qe.f]:ne.a[Qe.e])/2}getIframeDimensions(e){const t=16,{mobile:n,isOpen:r}=this.props,i=e||r;if(i&&n)return{height:this.props.browserWindowHeight,width:this.props.browserWindowWidth};if(i)return{height:Ct.a+Ct.e+Ct.g,width:Ct.b+Ct.j};const a=this.getInitialMessageBoundingRect(),s=this.getLauncherBoundingRect(),o=a.height?this.getAvatarHeightAboveBubble():0;return{width:(a.width||s.width)+t,height:s.height+a.height+t+o}}setInitialMessageRef(e){this.initialMessageRef=Object(o.findDOMNode)(e);this.state.animationsFinished&&this.props.onIframeResize(this.getIframeDimensions())}openWidget(){this.setState({animationsFinished:!1});this.props.trackUserInteraction();this.props.onIframeResize(this.getIframeDimensions(!0));setTimeout(()=>{this.props.toggleOpen({isOpened:!0,isUser:!0});this.context.setShouldTrapFocus(!0)},50)}closeWidget(){this.setState({animationsFinished:!1});this.props.trackUserInteraction();this.props.toggleOpen({isOpened:!1,isUser:!0})}render(){const{isOpen:e,inline:t,mobile:n,onLauncherHover:i,showInitialMessageBubble:a,widgetLocation:s}=this.props,o=e&&n||t,c={[l.a]:"p-right-6 launcher-left-align",[l.b]:"p-left-6 launcher-right-align"},d=u()("p-top-5 display-flex",c[s]);return Object(r.jsx)(S.a.Consumer,{children:({shouldTrapFocus:c})=>Object(r.jsxs)(At.a,{contain:c,autoFocus:!1,children:[Object(r.jsx)(It,{inline:t,isOpen:e,shouldRenderDialog:this.state.shouldRenderDialog,mobile:n,widgetLocation:s,onOpenAnimationStarted:this.onOpenAnimationStarted,onCloseAnimationFinished:this.onCloseAnimationFinished,onOpenAnimationFinished:this.onOpenAnimationFinished,onCloseAnimationStarted:this.onCloseAnimationStarted,onClose:this.closeWidget}),Object(r.jsx)("span",{children:a&&this.state.animationsFinished&&Object(r.jsx)(Se,{avatarHeightAboveBubble:this.getAvatarHeightAboveBubble(),onIframeResize:()=>{this.props.onIframeResize(this.getIframeDimensions())},setInitialMessageRef:this.setInitialMessageRef,onClick:this.openWidget,widgetLocation:s})}),Object(r.jsx)("span",{children:!o&&Object(r.jsx)("span",{"data-test-id":"chat-widget-launcher",className:d,onMouseOver:i,children:Object(r.jsx)(J,{onClose:this.closeWidget,onOpen:this.openWidget})})}),Object(r.jsx)(Ye,{onEnterDebug:this.openWidget})]})})}}xt.displayName="ApplicationLayout";xt.propTypes={browserWindowHeight:s.a.number.isRequired,browserWindowWidth:s.a.number,inline:s.a.bool.isRequired,isOpen:s.a.bool.isRequired,mobile:s.a.bool.isRequired,onIframeResize:s.a.func.isRequired,onLauncherHover:s.a.func.isRequired,showInitialMessageBubble:s.a.bool.isRequired,toggleOpen:s.a.func.isRequired,trackUserInteraction:s.a.func.isRequired,widgetLocation:l.c};xt.contextType=S.a;t.b=Object(Xe.a)(xt)},"PyK+":function(e,t){e.exports=function(){if(void 0===window.hubspot)throw new Error("Could not find hubspot global variable.");return window.hubspot}()},Pz4q:function(e,t,n){"use strict";var r=n("QYOI"),i=n("0GyJ"),a=n("8+iK"),s=n("9Mwj"),o=n("ubOH"),c=n("rA/t");class u extends(Object(r.Record)({"@type":i.a,attachments:Object(r.List)(),clientType:null,contentType:a.b,directReplyToMessageId:null,id:null,inReplyToId:null,messageDeletedStatus:s.a,richText:"",sender:Object(r.Map)(),status:Object(o.a)(),text:"",timestamp:null,channelInstanceId:null,genericChannelId:null,integrationId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:""},"CommonMessage")){constructor(e){super(e&&Object(c.a)(e))}}t.a=u},Q7Xa:function(e,t,n){"use strict";var r=n("QYOI"),i=n("ubOH"),a=n("K7Yy");const s=Object(r.Record)({"@type":a.a,attachments:Object(r.List)(),feedbackTransactionId:null,id:null,messageDeletedStatus:null,recipients:Object(r.List)(),richText:null,sender:Object(r.Map)(),senders:Object(r.List)(),status:Object(i.a)(),surveyId:null,text:null,timestamp:null},"FeedbackSurveyMessage");t.a=s},QDdj:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("widgetData",e)},QJvi:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){if(e>=0&&e<=9)return e;throw new Error(`expected \`arity\` from 0 to 9 but got \`${e}\``)}},QYOI:function(e,t,n){e.exports=n.dlbpr(1,62)},QYon:function(e,t,n){"use strict";var r=n("MBJP"),i=n("QYOI");const a=3,s=(e,t)=>{const n=t&&t.size>0,r=e&&e.size>0;return r||n?r?e.take(a):t.take(a):Object(i.List)()};var o=n("hTKa"),c=n("AFl3");n.d(t,"a",(function(){return u}));const u=Object(r.a)([o.a,c.a],s)},QgEn:function(e,t,n){e.exports=n.dlbpr(1,78)},QgQx:function(e,t,n){"use strict";n.r(t);n.d(t,"getShouldHideWelcomeMessage",(function(){return s}));var r=n("MBJP"),i=n("MJM1"),a=n("QnHA");const s=Object(r.a)([a.a],Object(i.a)(["hideWelcomeMessage"]))},QmIQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("VfuR"),i=n.n(r),a=n("Ktcs"),s=n("eCQl"),o=n("YibP");class c extends a.Component{constructor(...e){super(...e);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){const n=["Component caught",this.props.errorLoggingTitle,e.message].join(": "),r=Object(o.a)(n,{name:"ComponentError",componentStack:t.componentStack});Object(s.reportError)({error:r,fingerprint:["{{ default }}","ComponentError"],tags:{componentDidCatch:!0}})}reset(){this.setState({hasError:!1})}render(){const{children:e,renderError:t}=this.props,{hasError:n}=this.state;return n&&!t?null:n&&t?t({reset:this.reset}):e}}c.propTypes={children:i.a.node.isRequired,errorLoggingTitle:i.a.string.isRequired,renderError:i.a.func};c.displayName="ErrorBoundary"},QmIk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("1YzF"),i=n("v2h7"),a=n("WTKJ");function s({threadId:e}){return t=>{t(Object(r.selectThread)(e));t(Object(i.a)(a.c))}}},QnHA:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e.widgetUi},Qvwz:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SELECT_THREAD",i="CLEAR_SELECTED_THREAD"},R6gb:function(e,t,n){"use strict";n.r(t);n.d(t,"historyMessageInvariant",(function(){return v}));var r=n("Gc2C"),i=n("Pz4q"),a=n("NIjC"),s=n("rIrL"),o=n("A5f/"),c=n("+TdC"),u=n("Iqwl"),l=n("/fsP"),d=n("JxGV"),p=n("7jiL"),f=n("yuy6"),h=n("MfaD"),b=n("TePN"),g=n("Q7Xa"),m=n("au5J");const O=[b.a,i.a,a.a,o.a,s.a,c.a,u.a,l.a,d.a,p.a,f.a,h.a,g.a],v=e=>Object(r.a)(O.some(t=>e instanceof t),`Expected message to be one of ${O.map(e=>Object(m.a)(e)).join(", ")}, not a %s`,typeof e)},RIYo:function(e,t,n){"use strict";const r=["HubspotConversations-hsConversationsOnReady-used","HubspotConversations-hsConversationsSettings-used","HubspotConversations-api-method-used","HubspotConversations-api-event-listener-registered"];function i(e){let t,n=!1;return function(...r){if(!n){n=!0;t=e(...r)}return t}}n.d(t,"a",(function(){return O}));const a=(e,t)=>{window.newrelic&&window.newrelic.addPageAction&&window.newrelic.addPageAction(e,t)},s=i(a),o=i(a),c=i(a),u=i(a),l=i(a),d=i(a),p=i(a),f=i(a),h=i(a),b=i(a),g=i(a),m=i(a),O=(e,t)=>{if(e&&t&&r.includes(e))if("HubspotConversations-hsConversationsOnReady-used"===e)s(e,t);else if("HubspotConversations-hsConversationsSettings-used"===e)o(e,t);else if("HubspotConversations-api-method-used"===e)switch(t.method){case"load":c(e,t);break;case"refresh":u(e,t);break;case"open":l(e,t);break;case"close":d(e,t);break;case"remove":p(e,t);break;case"status":f(e,t);break;case"clear":h(e,t)}else if("HubspotConversations-api-event-listener-registered"===e)switch(t.event){case"conversationStarted":b(e,t);break;case"conversationClosed":g(e,t);break;case"unreadConversationCountChanged":m(e,t)}}},RXbF:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("MBJP"),i=n("lEkO"),a=n("53K1"),s=n("WTKJ"),o=n("OBPj"),c=n("/Ihs");const u=Object(r.a)([a.a],e=>e===s.b),l=Object(r.a)([a.a],e=>e===s.a),d=Object(r.a)([i.a,u,o.getShowPreviousConversations,l,c.getKnowledgeBaseEnabled],(e,t,n,r,i)=>{if(t||r)return!1;if(i)return!0;if(!n||!e)return!1;return e.size>0})},Rd7q:function(e,t,n){"use strict";var r=n("8ASW");t.a=()=>"en-us"===r.a.locale||r.a.langEnabled||r.a.publicPage?r.a.locale:"en-us"},Reyo:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsIncludedInPageViewSample",(function(){return a}));var r=n("MJM1"),i=n("GPDt");const a=()=>Object(r.a)(["config","properties","isIncludedInPageViewSample"],Object(i.getUsageTracker)())},RqRq:function(e,t,n){"use strict";n.r(t);n.d(t,"receivedIncomingMessageAction",(function(){return p}));n.d(t,"receivedIncomingMessage",(function(){return f}));var r=n("Ut5p"),i=n("nf9S"),a=n("0IK8"),s=n("Mx3c"),o=n("xZ3y"),c=n("z8AP"),u=n("GQQt"),l=n("JW3w"),d=n("l04f");const p=Object(r.b)(o.RECEIVED_INCOMING_MESSAGE,({message:e,channel:t,responder:n,shouldNotify:r,threadId:i})=>({message:e,channel:t,responder:n,shouldNotify:r,threadId:i}));function f({message:e,channel:t,responder:n,shouldNotify:r,threadId:o}){return(f,h)=>{f(p({message:e,channel:t,responder:n,shouldNotify:r,threadId:o}));const b=!Object(d.getIsOpen)(h()),g=!Object(l.isActiveOnThread)(h(),o),m=Object(a.getSenderType)(e),O=Object(a.getSenderId)(e);Object(i.isConversationalMessage)(e)&&(b||g)&&m!==s.VISITOR&&r&&f(Object(c.hasNewUnseenMessage)({channel:t,threadId:o}));m!==s.AGENT&&m!==s.BOT||f(Object(u.fetchAgentResponderIfNecessary)({senderId:O,senderType:m}))}}},Rrky:function(e,t,n){"use strict";n.r(t);var r=n("8R/H"),i=n("VYoM");const a="livechat-public/v1/attachment/resolve/thread",s=({sessionId:e,threadId:t,fileIds:n}={})=>i.a.get(`${a}/${t}`,{query:{fileId:n.toArray(),sessionId:e}});var o=n("/u6M"),c=n("gIaP");n.d(t,"resolveAttachments",(function(){return u}));const u=Object(r.a)({requestFn:s,actionTypes:o.a,toRecordFn:c.buildResolvedAttachmentsMapFromResponse})},RyNb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("MBJP"),i=n("ZqFO"),a=n("647q"),s=n("G0k2");const o=Object(r.a)([a.getLatestWidgetData],e=>Object(s.a)(Object(i.a)(e))?Object(i.a)(e):null)},Ryja:function(e,t,n){"use strict";n.r(t);n.d(t,"getAsyncStagedThread",(function(){return l}));n.d(t,"isCreatingThread",(function(){return d}));n.d(t,"getStagedThreadHistory",(function(){return p}));n.d(t,"getVisitorInitialThreadHistory",(function(){return f}));var r=n("JGJA"),i=n("MBJP"),a=n("KXN9"),s=n("Pda3"),o=n("021p"),c=n("8Xfw"),u=n("Cblj");const l=Object(r.a)("stagedThread"),d=Object(i.a)(l,s.isStarted),p=Object(i.a)(l,a.a),f=Object(i.a)(p,e=>Object(o.d)(e).toList().filterNot(u.isTypingMessage).map(c.serialize).toJS())},S6vA:function(e,t,n){"use strict";n.r(t);var r=n("TGcl");Object(r.a)(window)&&n("xTKo")},SGAL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="ADD_AVAILABILITY_MESSAGE_TIMEOUT"},SGjM:function(e,t,n){"use strict";var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.i.implement(Array,(e,t)=>t.map(e));a.i.implementInherited(i.Iterable,(e,t)=>t.map(e));a.i.implement(Object,(e,t)=>{const n={},r=Object.keys(t),i=r.length;for(let a=0;a{const e=window.location!==window.parent.location?document.referrer:document.origin;return new r.a(e).hostplus}},Sbt9:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("JoAZ"),a=n("x1JE");const s=Object(r.a)((e,t)=>{Object(i.a)(t);return Object(a.getIdTransform)(t)(e)})},"Sj+C":function(e,t,n){"use strict";n.r(t);var r=n("eCQl"),i=n("5vQK"),a=n("fogE"),s=n("cjt2");const o=(e,t=i.a)=>({type:s.a.SUCCEEDED,payload:{client:e,clientKey:t}}),c=(e=i.a)=>({type:s.a.STARTED,payload:{clientKey:e}}),u=(e,t=i.a)=>({type:s.a.FAILED,payload:{clientKey:t,error:e},meta:Object(a.a)()}),l=(e=i.a)=>({type:s.c,payload:{clientKey:e}}),d=(e=i.a)=>({type:s.d,payload:{clientKey:e}}),p=(e=i.a)=>({type:s.e,payload:{clientKey:e}}),f=(e=i.a)=>({type:s.b,payload:{clientKey:e}}),h=(e=i.a)=>({type:s.f,payload:{clientKey:e}});n.d(t,"initializePubSub",(function(){return m}));const b=()=>{},g={onConnect:b,onConnecting:b,onDisconnect:b,onFailure:b,onSuspended:b},m=({clientOptions:e,lifecycleHooks:t=g,resolveBuilder:n,clientKey:a=i.a})=>i=>{i(c(a));t=Object.assign({},g,{},t);return n().then(({buildConversationsPubSub:n})=>{const r=n({clientOptions:e,lifecycleHooks:Object.assign({},t,{onConnect(e){e.reconnected?i(d(a)):i(l(a));t.onConnect(e)},onConnecting({reconnecting:e}){e&&i(p(a));t.onConnecting({reconnecting:e})},onDisconnect(){i(f(a));t.onDisconnect()},onSuspended(){i(h(a));t.onSuspended()}})});i(o(r,a));r.connect()},e=>{i(u(e,a));Object(r.reportError)({error:e})})}},SjIE:function(e,t){e.exports="//static.hsappstatic.net/conversations-visitor-experience-components/static-1.10840/img/visitor-widget/bot-avatar.svg"},SlUU:function(e,t,n){"use strict";n.r(t);n.d(t,"fileAttachmentIdsInMessage",(function(){return u}));var r=n("QYOI"),i=n("JGJA"),a=n("Zui/"),s=n("iapW"),o=n("9F2+"),c=n("ZI4L");const u=e=>{const t=Object(o.a)(e)||Object(r.List)();let n=Object(r.List)();const u=t.find(e=>Object(i.a)("@type",e)===a.d);u&&(n=n.merge(Object(s.a)(u)));const l=t.find(e=>Object(i.a)("@type",e)===a.g);l&&Object(i.a)(c.a,l)&&(n=n.push(Object(i.a)(c.a,l)));return n}},SmHr:function(e,t,n){"use strict";var r=n("QYOI"),i=n("nguO");const a=Object(r.Record)({"@type":i.a,threadId:null,channel:null,message:null},"ActivelyPublishing");t.a=a},Smgi:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=["background-image","bottom","clear","float","left","opacity","position","right","top","visibility","white-space","z-index"],i=({node:e})=>{if(e&&e.style&&e.style.length>0&&e.style.removeProperty){"0px"===e.style.fontSize&&e.style.setProperty("font-size","14px");"0"===e.style.lineHeight&&e.style.setProperty("line-height","1");"transparent"===e.style.color&&e.style.removeProperty("color");r.forEach(t=>e.style.removeProperty(t));return{node:e}}return null}},Syy6:function(e,t,n){var r=n("9Utk"),i=n("kmmH"),a="Expected a function";function s(e,t,n){var s=!0,o=!0;if("function"!=typeof e)throw new TypeError(a);if(i(n)){s="leading"in n?!!n.leading:s;o="trailing"in n?!!n.trailing:o}return r(e,t,{leading:s,maxWait:t,trailing:o})}e.exports=s},T1V9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r="_blank",i=({node:e,node_name:t})=>{if("a"===t&&e&&e.attributes&&e.getAttribute("target")!==r){e.setAttribute("target",r);return{node:e}}return null}},T25L:function(e,t,n){"use strict";var r=n("3Yas"),i=n("QYOI");r.b.implement(Array,e=>e.length);r.b.implementInherited(i.Iterable,e=>e.count());r.b.implement(Object,e=>Object.keys(e).length);r.b.implement(String,e=>e.length);r.b.implement(Number,e=>e);t.a=r.b},TA7Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("isFirstVisitorSession")},TBI5:function(e,t,n){"use strict";var r=n("T25L"),i=n("AaWM"),a=n("GXXt"),s=n("QYOI"),o=n("3Yas");const c=()=>({});o.h.implement(Array,c);o.h.implement(Object,c);o.h.implementInherited(s.Collection,()=>Object(s.Map)());o.h.implementInherited(s.Seq,()=>s.Seq.Keyed());var u=o.h,l=n("gjm2"),d=n("0H74");n.d(t,"a",(function(){return f}));function p(e,t){return Object(l.a)([],(e,n)=>{if(!e.length){e.push([t,n]);return e}const[r,s]=e[e.length-1],o=Object(a.a)(s,r),c=void 0!==o||Object(i.a)(s,r)?o:u(r);e.push([c,n]);return e},e)}function f(e,t,n){if(0===Object(r.a)(e))return t;const i=p(e,n);let a=t;for(;i.length>0;){const[e,t]=i.pop();a=Object(d.a)(t,a,e)}return a}},TG7G:function(e,t,n){var r=n("0Aa+"),i=1/0,a=17976931348623157e292;function s(e){if(!e)return 0===e?e:0;if((e=r(e))===i||e===-i){return(e<0?-1:1)*a}return e==e?e:0}e.exports=s},TGcl:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>"function"==typeof e.requestAnimationFrame&&("function"==typeof e.WeakMap&&("function"==typeof e.URLSearchParams&&("function"==typeof e.Promise.all&&"function"==typeof e.Promise.resolve)))},TIiY:function(e,t,n){"use strict";n.r(t);n.d(t,"postStartTrackExitIntent",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=()=>{Object(i.a)(r.u)}},TWJS:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("MYjy");const s={actorId:null,deliveryIdentifier:null,senderField:null,name:null},o=Object(r.Record)(s,"Sender");t.a=function(e){if(!e)return o();const t=Object(i.a)("actorId",e)||s.actorId,n=Object(i.a)("deliveryIdentifier",e),r=n?Object(a.a)(n):s.deliveryIdentifier,c=Object(i.a)("senderField",e)||s.senderField,u=Object(i.a)("name",e)||s.name;return o({actorId:t,deliveryIdentifier:r,senderField:c,name:u})}},TXZ9:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({accentColor:null,textColor:null,useDefaultColor:!1},"ColoringRecord");t.a=i},TaVT:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GXXt");function i(e,t){let n=t;for(let t=0;tr?t:t?Object.assign({},c,{},t):c,[r]);return{visuallyHiddenProps:Object.assign({},s,{style:u})}}function l(e){let{children:t,elementType:n="div"}=e,a=Object(r.a)(e,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=u(e);return s.a.createElement(n,Object(i.i)(a,o),t)}},TePN:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("XF21"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),assignedAgent:{agentId:null,agentType:null},unassignedAgent:{agentId:null,agentType:null}},"AssignmentUpdateMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("AssignmentUpdateMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},Tldl:function(e,t,n){"use strict";n.r(t);n.d(t,"getTimeOnPageTriggerTimeoutId",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["timeOnPageTrigger","timeoutId"])},TlnZ:function(e,t,n){"use strict";var r=n("QYOI"),i=n("P0El");const a=Object(r.Record)({[i.b]:i.a,emailMessageId:null,emailSubject:null,id:null,messageDeletedStatus:null,objectId:null,objectType:null,timestamp:null,workflowId:null,recipientVid:null},"CrmObjectWorkflowEmailSent");t.a=a},Tt13:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FEEDBACK_SUBMISSION"},Tvz2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("sZZm"),i=n("mlLV");const a=()=>{Object(r.postExternalApiEvent)({eventType:i.i,payload:{message:"widget is closed"}})}},U7wy:function(e,t,n){"use strict";var r=n("Ut5p"),i=n("xZ3y"),a=n("v+ge"),s=n("MZef"),o=n("xe9j"),c=n("xyDt"),u=n("y+PV"),l=n("stzZ"),d=n("bYG+");const p=Object(d.a)("sessionId"),f=new s.a({data:new o.a});t.a=Object(r.c)({[i.GET_WIDGET_DATA]:u.a,[Object(r.a)(i.GET_WIDGET_DATA_SUCCEEDED,a.a)]:(e,t)=>Object(l.a)(()=>t.payload,e),[a.b]:(e,t)=>{const{sessionId:n}=t.payload;return Object(c.a)(p(n),e)}},f)},UBEt:function(e,t,n){"use strict";var r=n("MJM1");const i=["enabled"],a=["scrollPercentage"];n.d(t,"a",(function(){return s}));n.d(t,"b",(function(){return o}));const s=Object(r.a)(i),o=Object(r.a)(a)},UJtG:function(e,t,n){"use strict";n.r(t);n.d(t,"isTypicalResponseTimeMessage",(function(){return a}));var r=n("0IK8"),i=n("6OYF");const a=e=>Object(r.getTopLevelType)(e)===i.a},Ut5p:function(e,t,n){"use strict";function r(e){return"function"==typeof e}function i(e,t,n){return(...i)=>{const a={type:e};r(t)&&(a.payload=t(...i));r(n)&&(a.meta=n(...i));return a}}const a="||";function s(...e){return e.join(a)}function o(...e){return(t,n)=>e.reduce((e,t)=>t(e,n),t)}function c(e,t){const n=e.split(a);return(e,i)=>n.includes(i.type)&&r(t)?t(e,i):e}function u(e,t){const n=o(...Object.getOwnPropertyNames(e).map(t=>c(t,e[t])));return void 0!==t?(e=t,r)=>n(e,r):n}n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return u}));n.d(t,"a",(function(){return s}))},"Ux+X":function(e,t,n){"use strict";n.r(t);var r=n("JGJA"),i=n("MBJP"),a=n("BWf7"),s=n("jRRu"),o=n("SHx2"),c=n("AYvj");const u="online",l="offline;",d=Object(i.a)(c.widgetIsInAwayMode,e=>e?l:u);var p=n("647q");const f=e=>Object(r.a)("visitorIdentificationEnabled",e),h=e=>Object(r.a)("feedbackSurveyEnabled",e),b=e=>Object(r.a)("knowledgeBaseEnabled",e);var g=n("OmJX");const m=Object(i.a)([g.a],e=>b(e)),O=Object(i.a)([d,s.getIsBot,a.a,p.getLatestWidgetData,m,f,h],(e,t,n,i,a,s,c)=>({state:e,botEnabled:t,promptEnabled:n,path:Object(o.getUrlForMessage)(),chatflowId:Object(r.a)("chatflowId",i),knowledgeBaseEnabled:a,visitorIdentificationEnabled:s,feedbackSurveyEnabled:c}));var v=n("xM+F");const j=Object(i.a)(p.getLatestWidgetData,e=>Object(v.getIsPrivateLoad)(e));var y=n("GPDt"),E=n("NqZZ");n.d(t,"trackInteraction",(function(){return T}));function T(e,t={}){return(n,r)=>{const i=Object(y.getUsageTracker)(),a=j(r());Object(E.getIsUserTrackingAllowed)(r())&&i.track(e,Object.assign({},t,{},O(r()),{privateLoad:a}))}}},UxsU:function(e,t,n){"use strict";const r={STARTED:"STARTED",ENDED:"ENDED",SOFT_DELETED:"SOFT_DELETED",INITIALIZING:"INITIALIZING"};t.a=r},"V+nC":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("GcWH");const a=e=>Object(r.getTopLevelType)(e)===i.a},"V/xu":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7719");const i={[r.a]:16,[r.c]:24,[r.f]:32,[r.e]:48,[r.d]:72,[r.b]:108}},V0XL:function(e,t,n){"use strict";n.r(t);n.d(t,"getMessagesPageUri",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("647q");const s=Object(r.a)(a.getLatestWidgetData,Object(i.a)("messagesPageUri"))},"V1/C":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="OFFICE_HOURS"},V9Mx:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("g4ag"),s=n("qjq5"),o=n("MM1n");function c(e,t){const n=r.Seq.Set(e);return Object(o.a)((e,t)=>!n.contains(t),t)}var u=Object(s.a)(c),l=n("xCrP"),d=n("/UYW"),p=n("lEMs");const f=Object(r.Map)(),h={[d.a]:(e,t)=>{const{threadId:n,senderId:r,timeoutId:i}=t.payload;return Object(a.a)([""+n,""+r],i,e)},[d.b]:(e,t)=>{const{threadId:n,senderId:r}=t.payload;return Object(p.getTypingTimeoutIdForAgentInThread)({threadId:""+n,senderId:""+r,typingStates:e})?Object(l.a)([""+n],u([""+r]),e):e}};t.a=Object(i.c)(h,f)},VADA:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("3HLt"),a=n("kevw");const s=e=>Object(r.a)(i.a,e)||Object(a.a)(Object(a.c)(e))},VB2T:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="ADD_TIME_ON_PAGE_TRIGGER",i="REMOVE_TIME_ON_PAGE_TRIGGER"},VBzW:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"d",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"a",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));const r=["hasFileAttachment"],i=["previewText"],a=["previewMessageId"],s=["failed"],o=["responder"],c=["visitor"]},VKqs:function(e,t){e.exports="//static.hsappstatic.net/visitor-ui-component-library/static-1.1527/img/default-avatar.png"},VSQ5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="UPDATE_VIEW"},VTHq:function(e,t,n){"use strict";n.r(t);n.d(t,"getAPIEnableWidgetCookieBannerOnExitIntent",(function(){return o}));var r=n("MBJP"),i=n("QnHA"),a=n("ORv0"),s=n("Jpeq");const o=Object(r.a)([i.a],e=>Object(a.a)(e)===s.b)},VToG:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));const r="FAILED",i="OUT_OF_SYNC",a="STARTED",s="SUCCEEDED",o="UNINITIALIZED"},VVfI:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("VToG"),i=n("DrqF"),a=n("mc4r");const s=e=>{Object(i.a)(Object(a.a)(e),"createAsyncActionTypes requires a valid base actionName");return{[r.a]:e+"_FAILED",[r.b]:e+"_OUT_OF_SYNC",[r.c]:e+"_STARTED",[r.d]:e+"_SUCCEEDED",[r.e]:e+"_UNINITIALIZED"}}},VYoM:function(e,t,n){"use strict";var r=n("0JoJ"),i=n("gBd5");const a={post:(e,t)=>Object(i.a)(r.a.post,e,t),put:(e,t)=>Object(i.a)(r.a.put,e,t),get:(e,t)=>Object(i.a)(r.a.get,e,t),getWithResponse:(e,t)=>Object(i.a)(r.a.getWithResponse,e,t),delete:(e,t)=>Object(i.a)(r.a.delete,e,t)};t.a=a},VfuR:function(e,t,n){e.exports=n.dlbpr(1,63)},Vfyk:function(e,t,n){"use strict";var r=n("QYOI"),i=n("+lAi");class a extends(Object(r.Record)({awayMessage:null,typicalResponseTime:null,officeHoursStartTime:null})){constructor(e={}){super(Object.assign({},e,{typicalResponseTime:e.typicalResponseTime?Object(i.a)(e.typicalResponseTime):null}))}}t.a=a},Vi1n:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=({regexes:e=[],string:t=""})=>e.some(e=>t.match(e)),i=({node:e,node_name:t,allowedDomainsForIframe:n})=>{if("iframe"===t&&e&&e.attributes&&e.getAttribute("src")&&!r({regexes:n,string:e.getAttribute("src")||""})){e.removeAttribute("src");return{node:e}}return null}},VkWa:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("tyiq"),a=n("H/Vc");const s=Object(r.a)([a.getWidgetAvailabilityOptions],e=>Object(i.a)(e)||"")},VvTX:function(e,t,n){"use strict";n.r(t);var r=n("MJM1");const i=["id"],a=["type"],s=["captureVisitorEmailAddress"],o=["customEmailCaptureDelay"],c=["inboxId"],u=["routingRules"],l=["sendFromRoutingRules"],d=["gdprExplicitConsentRequired"],p=["gdprConsentToProcessEnabled"],f=["cookieConsentPrompt"],h=["gdprConsentToCommunicateEnabled"],b=["customConsentToProcessMessage"],g=["customConsentToCommunicateMessage"],m=["consentToCommunicateSubscriptionId"],O=["popOpenWelcomeMessage"],v=["popOpenWidget"],j=["popMessageOnSmallScreens"],y=["language"],E=["clientTriggers"];n.d(t,"getCaptureVisitorEmailAddress",(function(){return T}));n.d(t,"getChatHeadingConfig",(function(){return w}));n.d(t,"getClientTriggers",(function(){return I}));n.d(t,"getConsentToCommunicateSubscriptionId",(function(){return C}));n.d(t,"getCustomConsentToCommunicateMessage",(function(){return A}));n.d(t,"getCustomConsentToProcessMessage",(function(){return x}));n.d(t,"getCustomEmailCaptureDelay",(function(){return S}));n.d(t,"getGdprConsentToCommunicateEnabled",(function(){return _}));n.d(t,"getGdprConsentToProcessEnabled",(function(){return R}));n.d(t,"getGdprExplicitConsentRequired",(function(){return D}));n.d(t,"getGdprCookieConsentPrompt",(function(){return M}));n.d(t,"getId",(function(){return N}));n.d(t,"getInboxId",(function(){return P}));n.d(t,"getLanguage",(function(){return k}));n.d(t,"getPopMessageOnSmallScreens",(function(){return L}));n.d(t,"getPopOpenWelcomeMessage",(function(){return B}));n.d(t,"getPopOpenWidget",(function(){return F}));n.d(t,"getRoutingRules",(function(){return H}));n.d(t,"getSendFromRoutingRules",(function(){return U}));n.d(t,"getType",(function(){return G}));const T=Object(r.a)(s),w=Object(r.a)(["chatHeadingConfig"]),I=Object(r.a)(E),C=Object(r.a)(m),A=e=>Object(r.a)(g,e)||"",x=e=>Object(r.a)(b,e)||"",S=Object(r.a)(o),_=Object(r.a)(h),R=Object(r.a)(p),D=Object(r.a)(d),M=Object(r.a)(f),N=Object(r.a)(i),P=Object(r.a)(c),k=Object(r.a)(y),L=Object(r.a)(j),B=Object(r.a)(O),F=Object(r.a)(v),H=Object(r.a)(u),U=Object(r.a)(l),G=Object(r.a)(a)},"W/H/":function(e,t,n){"use strict";var r=n("9f1P");const i=(e,t)=>Object(r.css)(["","{","}"],e,t);function a({baseStyle:e,_disabled:t,_focused:n,_hovered:a,_pressed:s}){return Object(r.css)([""," "," "," "," "," "," "," "," ",""],e,({disabled:e})=>e?t:"",({focused:e})=>e?n:"",({hovered:e})=>e?a:"",({pressed:e})=>e?s:"",t&&i("&:disabled",t),n&&i("&:focus-visible",n),a&&i(t?"&:hover:enabled":"&:hover",a),s&&i(t?"&:active:enabled":"&:active",s))}function s({component:e,defaultStyles:t,theme:n}){const r=n&&n.components&&n.components[e]||{};return a(Object.assign({},t,{},r))}t.a=s},"W/fk":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return h}));var r=n("LZPL"),i=n.n(r),a=n("PyK+"),s=n.n(a),o=n("mEYk"),c=n.n(o),u=n("7pHJ"),l=n("C5Zv");const d={OBSIDIAN:"#33475b",OZ:"#00bda5",OZ_LIGHT:"#e5f8f6",OZ_DARK:"#00a38d",CANDY_APPLE_DARK:"#d94c53",SLINKY:"#516f90",KOALA:"#eaf0f6",MARIGOLD:"#f5c26b",MARIGOLD_LIGHT:"#fef8f0",CANDY_APPLE_LIGHT:"#fdedee",CANDY_APPLE:"#f2545b",THUNDERDOME:"#6a78d1",THUNDERDOME_LIGHT:"#f0f1fa"};function p(e={}){let t="";e.staticAppInfo&&e.staticAppInfo.staticAppName?t=e.staticAppInfo.staticAppName:s.a&&s.a.bender&&s.a.bender.currentProject&&(t=s.a.bender.currentProject);return t}function f(e={}){let t="";e.staticAppInfo&&e.staticAppInfo.staticAppVersion?t=e.staticAppInfo.staticAppVersion:s.a&&s.a.bender&&s.a.bender.currentProjectVersion&&(t=s.a.bender.currentProjectVersion);return t}class h{constructor(e={}){this.options=e;this.debug="true"===i.a.debug("react-rhumb");this.libName="react-rhumb";this.staticAppName=p(e);this.staticAppVersion=f(e)}performanceMark(e){"function"==typeof performance.mark&&performance.mark(e)}performanceEntries(){return"function"==typeof performance.getEntries&&performance.getEntries()||[]}toDuration(e,t,n){const r=Math.max(...n.filter(t=>Object.prototype.hasOwnProperty.call(e,t)).map(t=>e[t].timestamp));return Math.max(0,r-t)}setCustomAttribute(e,t){window.newrelic&&window.newrelic.setCustomAttribute(e,t)}addPageAction(e,t){window.newrelic&&window.newrelic.addPageAction(e,t)}captureError(e,t){let n={},r={};if(t){n=t.data;r=t.tags}window.newrelic&&window.newrelic.noticeError(e,Object.assign({},n,{},r));c.a.captureException(e,{extra:n,tags:r});u.a.counter("captured").increment()}report(e){throw new Error("Reporters must define a custom report() function")}labelCss(e,t){return`background-color:${e};color:${d.OBSIDIAN};padding: 0 .5rem;border-left: 4px solid ${t};`}colorCss(e){return`color:${e};`}logGroupWithBadge(e,t,n,r){let i=this.libName;try{window.self!==window.top&&(i+=` (child frame: ${this.staticAppName})`)}catch(e){i+=` (child frame: ${this.staticAppName})`}console.groupCollapsed(`%c${i}%c ${e}`,this.labelCss(t,n),"");r();console.groupEnd()}captureUnexpectedRoute(e){window.newrelic&&window.newrelic.noticeError(l.c,{pathname:e});c.a.captureException(l.c,{level:"warning",tags:{pathname:e}})}}},W26t:function(e,t,n){"use strict";var r=n("K+6d"),i=n("mFyM"),a=n("QYOI");var s=Object(a.Record)({[r.c]:i.a,botId:null},"BotHandoffAudit");var o=Object(a.Record)({[r.c]:i.b,agentId:null,agentType:null},"ManualAudit");var c=Object(a.Record)({[r.c]:i.c},"MultipleAudit");var u=Object(a.Record)({[r.c]:i.d},"SystemMigrationAudit");var l=Object(a.Record)({[r.c]:i.e},"SystemTestAudit");var d=Object(a.Record)({[r.c]:i.g,vid:null},"VisitorAudit");var p=Object(a.Record)({[r.c]:i.f},"UnknownAudit");n.d(t,"a",(function(){return f}));const f=(e={})=>{const{[r.c]:t}=e;switch(t){case i.a:return s(e);case i.b:return o(e);case i.c:return c(e);case i.d:return u(e);case i.e:return l(e);case i.g:return d(e);case i.f:default:return p(e)}}},W6dd:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));const r="on-bright",i="default",a="error"},WTKJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"a",(function(){return a}));const r="thread-list",i="thread-view",a="knowledge-base"},WUj5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("OmJX"),a=n("VvTX");const s=Object(r.a)(i.a,a.getChatHeadingConfig)},WYdz:function(e,t,n){"use strict";var r=n("MZef"),i=n("4cwC"),a=n("y+PV"),s=n("stzZ"),o=n("xyDt"),c=n("uB3n"),u=n("eJ3n"),l=n("0IK8"),d=n("qjq5"),p=n("DdHT"),f=n("Hnia"),h=n("xCrP"),b=n("/He/");const g=Object(d.a)((e,t)=>Object(h.a)(b.h,Object(p.a)(t=>e.merge(t)),t));var m=n("OHie"),O=n("021p");const v=Object(d.a)((e,t)=>Object(h.a)(b.a,Object(p.a)(t=>e.mergeDeep(t)),t)),j=Object(d.a)((e,t)=>Object(h.a)(b.b,t=>e.mergeDeep(t),t)),y=Object(d.a)((e,t)=>Object(h.a)(b.d,t=>e&&e.length?[...new Set(t.concat(e).map(e=>JSON.stringify(e)))].map(e=>JSON.parse(e)):t,t)),E=Object(d.a)((e,t)=>{Object(f.threadHistoryInvariant)(e);Object(f.threadHistoryInvariant)(t);return Object(p.a)(g(Object(O.d)(t)),m.sortMessages,v(Object(O.a)(t)),j(Object(O.b)(t)),y(Object(O.c)(t)))(e)});var T=n("Y/B+"),w=n("zbS+"),I=n("Pz4q"),C=n("NIjC"),A=n("LrxL"),x=n("rIrL"),S=n("+TdC"),_=n("NT8A"),R=n("Iqwl"),D=n("/fsP"),M=n("JxGV"),N=n("MfaD"),P=n("kTjR"),k=n("yuy6"),L=n("TePN"),B=n("JoGU"),F=n("sA91"),H=n("wO6X"),U=n("fwMr"),G=n("TlnZ"),q=n("Q7Xa"),W=n("kNma"),V=n("Gc2C");const z=[I.a,C.a,A.a,w.a,x.a,S.a,_.a,R.a,D.a,M.a,N.a,P.a,k.a,L.a,B.a,H.a,U.a,W.a,G.a,q.a],J=e=>Object(V.a)(z.some(t=>e instanceof t),`Message given is '${Object(F.a)(e)}', but expected one of ${z.map(F.a)}`),K=Object(d.a)((e,t)=>t.deleteIn(b.h.concat(e))),Y=Object(d.a)((e,t,n)=>{Object(T.messageKeyInvariant)(e);J(t);Object(f.threadHistoryInvariant)(n);return K(e,n)});var Q=n("EN6V");function Z(e,t,n,r){return e(r)?t(r):n(r)}const X=Object(d.a)(Z).operation;function $(e,t,n){return X(e,t,Q.a,n)}var ee=Object(d.a)($),te=n("V+nC"),ne=n("eeeG");const re=Object(d.a)((e,t,n)=>{Object(T.messageKeyInvariant)(e);J(t);Object(f.threadHistoryInvariant)(n);return Object(p.a)(Object(ne.setMessage)(e,t),ee(()=>!Object(te.a)(t),m.sortMessages))(n)});var ie=n("+LtA"),ae=n("Ut5p"),se=n("xZ3y"),oe=n("qQrL"),ce=n("2Sm/"),ue=n("+tWo"),le=n("+HSX");const de=Object(c.a)({notSetValue:Object(r.a)({data:new ie.a})});t.a=Object(ae.c)({[ce.a.SUCCEEDED](e,t){const{threadId:n,threadHistory:r}=t.payload;return Object(u.a)(n,Object(s.a)(()=>r),e)},[ue.a.STARTED](e,t){const{requestArgs:n}=t.payload;return Object(u.a)(n.threadId,a.a,e)},[ue.a.SUCCEEDED](e,t){const{requestArgs:n,data:{threadHistory:r}}=t.payload;return Object(u.a)(n.threadId,Object(s.a)(E(r)),e)},[ue.a.FAILED](e,t){const{requestArgs:n}=t.payload;return Object(u.a)(n.threadId,i.a,e)},[se.RECEIVED_INCOMING_MESSAGE](e,t){const{message:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(Object(le.addMessageToThreadHistory)(i,n)),e)},[oe.b.SUCCEEDED](e,t){const{publishedMessage:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(Object(le.addMessageToThreadHistory)(i,n)),e)},[ue.b](e,t){const{message:n,threadId:r}=t.payload,i=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(Y(i,n)),e)},[se.UPDATE_MESSAGE_IN_CONVERSATION](e,t){const{message:n,threadId:r,updated:i}=t.payload,a=Object(l.getId)(n);return Object(u.a)(r,Object(o.a)(re(a,i)),e)}},de)},WebA:function(e,t,n){"use strict";n.r(t);n.d(t,"buildCommonMessage",(function(){return O}));var r=n("QYOI"),i=n("pHO9"),a=n("MJM1"),s=n("BvOu"),o=n("c1C1"),c=n("MWj0"),u=n("Pz4q"),l=n("IcZZ"),d=n("fPyn"),p=n("0IK8"),f=n("o/5C"),h=n("pxL+"),b=n("Y4h2"),g=n("asw7"),m=n("6O34");const O=(e={})=>{const t=Object(d.a)(Object(a.a)(c.u,e)),n=Object(l.a)(e.attachments),O=Object(g.a)(e.recipients),v=Object(m.a)(e.senders),j=e.direction||"",y=Object(p.getId)(e)||Object(s.generateUuid)(),E=Object(f.d)(e)||null,T=Object(p.getTimestamp)(e)||Object(o.generateUniqueClientTimestamp)("buildCommonMessage-timestamp");return Object(i.a)(Object(h.b)(y),Object(h.e)(t),Object(h.a)(n),Object(h.f)(T),Object(b.c)(O),Object(b.d)(v),Object(b.b)(j),Object(b.a)(E))(new u.a(Object(r.fromJS)(e)))}},WfQ3:function(e,t){hns("I18n",{translations:{en:{sanitizedEmail:{imageError:"This image is too large to display.",expandEmailButtonText:"Expand",collapseEmailButtonText:"Collapse",hideEmailRepliesButtonText:"Hide trimmed content",showEmailRepliesButtonText:"View trimmed content"}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{availability:{awayMessage:{defaultMessageText:"We're away right now, but we'll get back to you as soon as we can."},outsideOfficeHoursMessage:{defaultMessageText:"We're away right now, but we'll get back to you as soon as we can."}}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{typicalResponseTime:{standardResponses:{FEW_MINUTES:"We typically reply in a few minutes",FEW_HOURS:"We typically reply in a few hours",WITHIN_DAY:"We typically reply in a day"},customResponses:{MINUTES:{one:"We typically reply in {{ count }} minute",other:"We typically reply in {{ count }} minutes"},HOURS:{one:"We typically reply in {{ count }} hour",other:"We typically reply in {{ count }} hours"},DAYS:{one:"We typically reply in {{ count }} day",other:"We typically reply in {{ count }} days"}}}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",visitorText:"Can you go into a bit more detail about your pricing structure?",name:"New chatflow ({{timeStamp}})",qualifiedLead:{initialMessage:"Hi there! I'm happy to help you today."},initialMessage:"Got any questions? I'm happy to help.",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",awayMessage:"I'm away at the moment, but let me know if you have any questions and I'll reply to you soon."}}}}});hns("I18n",{translations:{en:{"conversations-internal-schema":{"we-wont-use-this-key-in-the-product-but-this-file-wont-update-with-new-languages-without-a-key":"okay"}}}});hns("I18n",{translations:{en:{"conversations-message-history":{responder:{automatic:"Automated",bot:"Bot",unknownResponder:"Unknown user",unknownSender:"Unknown sender",unknownVisitor:"Unknown visitor",unknownVisitorAvatar:"Unknown Visitor"}}}}});hns("I18n",{translations:{en:{"conversations-message-history":{status:{closed:"This thread was closed on {{ dateString }}",restore:"Restore this message",publishing:{UNPUBLISHED:"Sending... ",PUBLISH_FAILED:"Not delivered. Click to retry."}}}}}});hns("I18n",{translations:{en:{"conversations-message-history":{noContent:"This message has no content",default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",visitorText:"Can you go into a bit more detail about your pricing structure?"}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{stagedAttachment:{uploadProgress:"{{uploadedBytes}} of {{totalBytes}}"},fileSizeLimit:"{{size}} max upload"}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{"code-splitting":{error:{title:"There was a network connection issue.",message:"Please check your connection and try again.",button:"Try again"}}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{emailCapture:{failedToPublish:"Sorry, we couldn't verify your email address."}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{visitorWidget:{header:{threadListTitle:"Your Chats"},threadListCard:{YourChats:"Your Chats",oneDayAgo:"One Day ago"}}}}}});hns("I18n",{translations:{en:{helpWidgetComponents:{knowledgeBaseSearch:{header:"Find answers quickly",seeMoreResults:"See more results",searchLabel:"Search knowledge base articles",searchPlaceholder:"Search articles",noResultsForTerm:'No results for "{{ searchTerm }}".
Try another search term.',didntFindResults:"Didn't find what you were looking for?",goToKnowledgeBase:"Go to knowledge base",announceSearchResults:"{{resultsCount}} results available for {{searchTerm}}",announceEmptySearchResults:"No results available for {{searchTerm}}. Try another search term. Didn't find what you are looking for? Navigate to the Go to knowledge base link to search answers."}}}}});hns("I18n",{translations:{en:{"conversations-visitor-experience-components":{"install-code-step":{description:"

Copy the code below and paste it into every page you’d like chat to appear on. When you’re adding the code, make sure it’s placed just before the end of the <body> tag. You can also add it to your site footer.

If you’re a Marketing customer using the HubSpot CMS, you don't need to do anything. Your tracking code is automatically installed on all HubSpot-hosted pages.

",howToLink:"How do I add the code?",copyButton:"Copy",installCodeEmailForm:{title:"Need someone else to install the code?",description:"Email the code snippet to your web developer or admin.",placeholder:"Enter email address",error:"Please enter a valid email address.",send:"Send"}},officeHours:{defaultMessageText:"We'll return tomorrow at 9:00 AM",sameDay:"We'll return today at {{time}}",nextDay:"We'll return tomorrow at {{time}}",nextWeek:"We'll return {{dayOfWeek}} at {{time}}"},alerts:{pubNubStatus:{visiblyOffline:{title:"Sorry. There was an issue connecting to the network. ",description:"Please wait a few seconds and try again."},PNNetworkUpCategory:{title:"The network connection issue is resolved.",description:"Success! You're connected to messages again."},PNRsubscribeLimitReached:{title:"Sorry. We can't connect you to messages right now.",description:"Please refresh your page."}}},errorAlert:{titleText:"Something went wrong.",message_jsx:function(e,t,n){return e(t,"wrapper",null,"Please try again. If it keeps happening, ",e(t,"Link",{onClick:n.onClick},"let us know"),".")},eventId:"Event Id: {{ eventId }}"},unknownVisitor:"Unknown visitor",notifications:{unknownVisitor:"Unknown visitor",title:{withIdentity:"{{ identifier }} | HubSpot Messages"},newMessage:"New live chat from {{ identifier }}",newEmail:"New email from {{ identifier }}",assignment:"{{ identifier }} assigned a conversation to you.",pushText:"A visitor has sent you a new message."},buttons:{agree:"I agree",disagree:"Decline for now"},visitorExperienceAriaLabels:{dismiss:"Dismiss",drag:"Drag",open:"Open live chat",close:"Close live chat",attachment:"attach a file",send:"send message",showThreadList:"View thread list, {{ unreadThreadCount }} unread threads",createNewThread:"Create new thread",badgeDescription:"New notifications",welcomeMessage:"Welcome message",liveChat:"Live Chat"},chatTextArea:{validationMessage:"Message is too long.",placeholder:"Write a message"},newThreadPrompt:{heading:"Your chat has been ended.",newHeading:"Your chat has ended.",paragraph:"if you want to continue the conversation",button:"start a new chat",newButton:"To start a new chat, click here."},botAwayMessage:{heading:"Our team isn't online at the moment.",paragraph:"We'll be back during our business hours and look forward to chatting with you then."},default:{repText:"Hi there! Let me know if you have any questions about the product or pricing.",initialMessage:"Got any questions? I'm happy to help.",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",knowledgeBaseHeaderText:"Help",agent:"Agent",avatar:"Avatar of {{ identifier }}",avatarAvailable:"Avatar of {{ identifier }}; agent is available for chat",avatarAway:"Avatar of {{ identifier }}; agent is away"},dateStringWithOn:"on {{ dateString }}"}}}});hns("I18n",{translations:{en:{"conversations-visitor-message-history":{"email-capture":{thanks:"Thank you for your email. We'll be in touch as soon as possible.",invalid:"You entered an invalid email.",failed:"Sorry, we couldn't verify your email address.",placeholderText:"Enter email address",consentToCommunicate:"I agree to receive other communications from {{ accountName }}",submitEmailAddress:"Submit email address"},"initial-message":{header:"Welcome message",headerTooltip:"A welcome message is a prompt used to invite your website visitors to start a conversation."},status:{publishing:{UNPUBLISHED:"Sending... ",PUBLISH_FAILED:"Not delivered. Click to retry."}},quickReply:{selectionPlaceholder:"Select one",selectionComplete:"Done"},agentSays:"Agent says:",subjectSays:"{{ subject }} says:",iSay:"I say:",subjectIsTyping:"{{ subject }} is typing",systemMessage:"System message:",agent:"Agent",bot:"Bot",system:"System",avatar:"Avatar of {{ identifier }}"}}}});hns("I18n",{translations:{en:{"conversations-error-reporting":{errorAlert:{message_jsx:function(e,t,n){return e(t,"wrapper",null,"Please try again. If it keeps happening, ",e(t,"Link",{onClick:n.onClick},"let us know"),".")},eventId:"Event Id: {{ eventId }}",errorCode:"Error Code: {{ errorCode }}"},debugOverlay:{title:"Debug Menu",enableLogs:"Enable Logs",disableLogs:"Disable Logs",sendData:"Send Debug Data to HubSpot",lastEventMessage:"Debug data sent. Event Id: {{ lastEventId }}"},fatalError:{refreshThePage:"Something's wrong.
Refresh the page or log in again.",contactSupport:"If this keeps happening, please contact support"}}}}});hns("I18n",{translations:{en:{cvVisitorUIAttachments:{errors:{fileSizeExceeded:"File exceeds the {{maxSize}} max upload.",uploadError:"Unable to upload attachment.",invalidFileType:"Invalid file type selected."},tryAgain:"Try again",threadPreview:"An attachment has been sent"}}}});hns("I18n",{translations:{en:{conversationsVisitorUIAvailability:{sameDay:"We'll return today at {{time}}",nextDay:"We'll return tomorrow at {{time}}",nextWeek:"We'll return {{dayOfWeek}} at {{time}}"}}}});hns("I18n",{translations:{en:{conversationsVisitorUIPageTitleNotifications:{newMessage:"New Message"}}}});hns("I18n",{translations:{en:{"conversations-visitor-ui":{htmlTitle:"Chat Widget",timeSince:{secondsAgo:"a few seconds ago"},default:{agent:"Agent",meetingsLinkText:"Schedule some time with me"},emailCapture:{outsideOfficeHoursMessage:"Leave your email and we’ll be in touch as soon as possible.",defaultAwayEmailCaptureMessage:"What email address should we use to follow up?"},threadList:{header:"Your chats",seeAllButton:"See all",seeLessButton:"See less",chatEndedMessage:"Your chat has ended."},network:{offline:{title:"Sorry. It looks like there was an issue with your internet connection. Please check your connection and try again."},pubSubFailure:{title:"Sorry. There seems to be a connection issue. Please try again later.",retry:"Refresh"},newThreadFailure:{title:"Sorry. There was a problem loading this message. Please check your connection and try again."}},asyncError:{body:"We're having technical difficulties",noRetry:"Please check your connection and try again.",retry:"Retry"},widgetErrorRetryPanel:{title:"There was a problem loading the chat.",body_jsx:function(e,t,n){return e(t,"wrapper",null,"Please refresh the page or ",e(t,"Link",n.LinkProps,"retry."))}},knowledgeBaseContainer:{headerText:"Help",yourChats:"Your Chats"},chatTextArea:{validationMessage:"Message is too long.",placeholder:"Write a message",forceQuickReplyPlaceholder:"Choose an option"},newThreadPrompt:{heading:"Your chat has been ended.",newHeading:"Your chat has ended.",paragraph:"if you want to continue the conversation",button:"start a new chat",newButton:"To start a new chat, click here."},visitorExperienceAriaLabels:{attachment:"attach a file",chatWidget:"Chat Widget",messageHistory:"Message History",send:"send message",knowledgeBase:"Knowledge Base",closeChatWindow:"Close chat window"},stagedAttachment:{uploadProgress:"{{uploadedBytes}} of {{totalBytes}}"},fileSizeLimit:"{{size}} max upload",askForEmailMessage:"Don’t have time to wait for a response? Leave your email and we’ll be in touch as soon as possible.",gdpr:{consentToCookies:{promptHeader:"Your chat will be lost if you leave",pageLoadCookieConsent:"This chat widget uses a cookie to interact with website visitors and to provide your chat history. To find out more about this cookie, see our Privacy Policy.",exitIntentCookieConsent:"Your chat will be lost if you leave this page without consenting to accept cookies. This chat widget stores cookies on your browser to collect information about how you interact with our website and allows us to remember you."}}}}}})},Wtdz:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("JGJA"),i=n("MBJP");const a=Object(r.a)("emailCapture"),s=Object(i.a)(a,Object(r.a)("hasVisitorEmail"))},Wtyj:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="i18n-cached-standard-locales",i="i18n-cached-public-locales"},X4GJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("OmJX");const s=Object(r.a)(a.a,Object(i.a)("initialMessage"))},X5NR:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ktcs");const i=Object(r.createContext)(void 0),a=i.Consumer;i.Provider},X9Pk:function(e,t,n){"use strict";n.r(t);n.d(t,"getAPIEnableWidgetCookieBanner",(function(){return o}));var r=n("MBJP"),i=n("QnHA"),a=n("ORv0"),s=n("Jpeq");const o=Object(r.a)([i.a],e=>Object(a.a)(e)===s.c||"true"===Object(a.a)(e))},XF21:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="ASSIGNMENT_UPDATE"},XUHx:function(e,t,n){"use strict";n.r(t);var r=n("ZqFO"),i=n("VvTX"),a=n("g9p1"),s=n("L0zh"),o=n("E9A7"),c=n("wD2U"),u=n("jxkM"),l=n("j+9m"),d=n("tTno"),p=n("n6ol"),f=n("P5YW");const h=()=>{Object(f.a)(p.v)};var b=n("GHgd"),g=n("3ZFB"),m=n("Or3K"),O=n("2BFa"),v=n("TIiY");n.d(t,"bootstrapInitialWidgetUi",(function(){return j}));const j=e=>(t,n)=>{const p=Object(a.getWidgetStartOpen)(n()),f=Object(r.f)(e),j=Object(c.getIsMobile)(n()),y=Object(i.getPopOpenWidget)(f)&&!j,E=Object(o.getShowInitialMessage)(n()),T=E||y,w=Boolean(p),I=!1===p,C=Object(O.gdprCookieConsentOnExitIntentEnabled)(n(),e);Object(d.scrollTriggerEnabled)(e)&&h();Object(b.timeOnPageTriggerEnabled)(e)&&t(Object(g.a)(e));(Object(m.exitIntentTriggerEnabled)(e)||C)&&Object(v.postStartTrackExitIntent)();if(w){t(Object(u.toggleOpen)({isOpened:!0}));t(Object(s.toggleInitialMessageBubble)(E))}else if(I){t(Object(u.toggleOpen)({isOpened:!1}));t(Object(s.toggleInitialMessageBubble)(E))}else if(!T||!Object(l.hasClientTriggers)(e)){t(E?Object(s.toggleInitialMessageBubble)(!0):Object(s.toggleInitialMessageBubble)(!1));t(y?Object(u.toggleOpen)({isOpened:!0}):Object(u.toggleOpen)({isOpened:!1}))}}},XZzj:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("KXN9"),i=n("x1JE"),a=n("BnUr"),s=n("MBJP"),o=n("BMD5"),c=n("goEE"),u=n("a/jS");const l=Object(s.a)([u.a,o.a],(e,t)=>{const n=Object(a.getThreadId)(t),s=Object(i.getEntries)(e).map(r.a);return Object(c.getSortedMessagesByThreadId)(s,n)})},XkPn:function(e,t,n){"use strict";var r=n("QYOI");const i="OTHER";class a extends(Object(r.Record)({expiresAt:0,url:"",name:"",extension:"",type:i,fileSize:0,width:null,height:null},"FileMetadataRecord")){constructor(e={}){super(Object.assign({},e,{fileSize:e.fileSize||e.size||0}))}}var s=a;class o extends(Object(r.Record)({fileId:0,fileMetadata:null,fileUsageType:null,thumbnailMetadata:null},"ResolvedAttachmentRecord")){constructor(e={}){super(Object.assign({},e,{fileMetadata:e.fileMetadata?new s(e.fileMetadata):null,thumbnailMetadata:e.thumbnailMetadata?new s(e.thumbnailMetadata):null}))}}t.a=o},Xvzl:function(e,t,n){"use strict";var r=n("qjq5"),i=n("MM1n");t.a=Object(r.a)(i.a)},"Y/B+":function(e,t,n){"use strict";n.r(t);n.d(t,"messageKeyInvariant",(function(){return i}));var r=n("Gc2C");const i=e=>Object(r.a)("string"==typeof e,"Expected messageKey to be a `String` not a `%s`",typeof e)},"Y0S+":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({node:e,config:t})=>{if(!e||!e.href||"A"!==e.tagName)return null;const n=e.href.match("(tel|mms|sms|mailto):[0-9]+");"_self"!==e.getAttribute("target")||n||e.setAttribute("target","_top");const r=n?"_self":e.getAttribute("target");r&&e.setAttribute("target",r);return{node:e,config:t}}},Y4h2:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"d",(function(){return p}));var r=n("qjq5"),i=n("JGJA"),a=n("bYG+"),s=n("MJM1"),o=n("MWj0"),c=n("o/5C");Object(a.a)("id"),Object(a.a)("text"),Object(a.a)("timestamp"),Object(a.a)("status"),Object(a.a)("richText"),Object(a.a)("channelInstanceId");const u=Object(a.a)("genericChannelId"),l=(Object(a.a)("integrationId"),Object(a.a)("direction")),d=Object(a.a)("recipients"),p=Object(a.a)("senders"),f=Object(a.a)("attachments");Object(r.a)((e,t,n)=>{const r=Object(c.f)(n).filter(t=>Object(s.a)(o.q,t)!==e).filter(e=>null!==Object(s.a)(o.q,e)).concat(t).toList();return d(r,n)}),Object(r.a)((e,t)=>{const n=Object(i.a)("@type",e),r=Object(c.a)(t).filter(e=>Object(i.a)("@type",e)!==n).toList();return f(r.push(e),t)})},YGK9:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("MBJP"),i=n("Xvzl"),a=n("p9k8"),s=n("lEkO");const o=Object(r.a)([s.a],Object(i.a)(a.a))},YPLr:function(e,t,n){"use strict";n.r(t);n.d(t,"agentTypeToSenderType",(function(){return c}));n.d(t,"agentTypeToCMFSenderType",(function(){return u}));var r=n("aLTZ"),i=n("Mx3c"),a=n("2Zef");const s={[r.b]:i.AGENT,[r.a]:i.BOT},o={[r.b]:a.AGENT_SENDER,[r.a]:a.BOT_SENDER},c=e=>s[e],u=e=>o[e]},YQ4m:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n("QgEn"),i=n("VfuR"),a=n.n(i),s=n("QYOI"),o=n("fKJZ"),c=n("mKxs"),u=n("6Jpi"),l=n("hixb"),d=n("38AR"),p=n("JxxT"),f=n("9f1P"),h=n.n(f),b=n("6pce"),g=n("0fuM");const m=h.a.div.withConfig({displayName:"VisitorWidget__WidgetBodyDiv",componentId:"sc-1lmzuwg-0"})(["display:flex;flex-direction:column;height:calc(100% - ","px);"],p.d),O=e=>{const{browserWindowHeight:t,chatHeadingConfig:n,chatHeadingResponders:i,children:a,coloring:s,closeWidget:o,customHeaderText:c,inline:u,isPreview:p,isThreadAssigned:f,createNewThread:h,mobile:b,officeHoursMessage:g,showAvailabilityMessage:O,navigateToThreadList:v,showBackButton:j,size:y,style:E,typicalResponseTimeMessage:T,unseenThreadsCountExcludingCurrentThread:w,view:I,widgetLocation:C,backButtonDisabled:A}=e;return Object(r.jsxs)(d.b,{browserWindowHeight:t,inline:u,size:y,style:E,mobile:b,widgetLocation:C,children:[Object(r.jsx)(l.a,{chatHeadingConfig:n,coloring:s,createNewThread:h,chatHeadingResponders:i,customHeaderText:c,inline:u,isThreadAssigned:f,mobile:b,officeHoursMessage:g,onClose:o,preview:p,showAvailabilityMessage:O,navigateToThreadList:v,showBackButton:j,typicalResponseTimeMessage:T,unseenThreadsCountExcludingCurrentThread:w,view:I,backButtonDisabled:A}),Object(r.jsx)(m,{children:a})]})};O.propTypes={backButtonDisabled:a.a.bool,browserWindowHeight:a.a.number.isRequired,chatHeadingConfig:o.a.isRequired,chatHeadingResponders:a.a.instanceOf(s.List),children:a.a.node.isRequired,closeWidget:a.a.func.isRequired,coloring:Object(c.a)("ColoringRecord").isRequired,createNewThread:a.a.func,customHeaderText:a.a.string,inline:a.a.bool.isRequired,isPreview:a.a.bool.isRequired,isThreadAssigned:a.a.bool.isRequired,mobile:a.a.bool.isRequired,navigateToThreadList:a.a.func,officeHoursMessage:a.a.string,showAvailabilityMessage:a.a.bool,showBackButton:a.a.bool.isRequired,size:a.a.string,style:a.a.object,typicalResponseTimeMessage:a.a.string,unseenThreadsCountExcludingCurrentThread:a.a.number,view:b.a,widgetLocation:u.c};O.defaultProps={customHeaderText:null,inline:!1,isPreview:!1,isThreadAssigned:!1,mobile:!1,onUpdateOpened:()=>{},widgetLocation:u.b,view:g.c};O.displayName="VisitorWidget";t.b=O},YQHs:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="FEW_MINUTES",i="WITHIN_DAY"},YSBR:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=["javascript:","vbscript:","data:"],i=({node:e})=>{if(!e||!e.href||"A"!==e.nodeName||!r.includes(e.protocol))return null;const t=document.createElement("span");t.innerText=e.innerText;return{node:t}}},YXBx:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));var r=n("57op"),i=n("PUb4");const a=Object(i.a)("icon"),s=Object(r.w)("icon")},YibP:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,...t)=>Object.assign(new Error,...t,{message:e})},"Z/Dw":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VfuR"),i=n.n(r);const a={disabled:i.a.bool,focused:i.a.bool,hovered:i.a.bool,pressed:i.a.bool}},Z8vq:function(e,t,n){"use strict";n.r(t);n.d(t,"networkOffline",(function(){return a}));var r=n("Ut5p"),i=n("xZ3y");const a=Object(r.b)(i.NETWORK_OFFLINE)},ZEd5:function(e,t,n){"use strict";n.r(t);n.d(t,"handleOpenChange",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=(e,t)=>Object(i.a)(r.l,{isOpen:e,isUser:t})},ZI4L:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="text",i="fileId"},ZSXR:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("x1JE"),i=n("MBJP"),a=n("LB97"),s=n("eEyY");const o=Object(i.a)([a.a,s.getCurrentThreadId],(e,t)=>"number"!=typeof t?null:Object(r.getEntry)(t,e)||null)},ZVbf:function(e,t,n){e.exports=n.dlbpr(1,5)},Zmc6:function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return i}));n.d(t,"getAvailabilityMessageTimeouts",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("availabilityMessageTimeouts")},ZqFO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"f",(function(){return l}));n.d(t,"g",(function(){return d}));n.d(t,"h",(function(){return p}));n.d(t,"i",(function(){return f}));n.d(t,"j",(function(){return h}));var r=n("MJM1"),i=n("JGJA");const a=Object(r.a)(["sendFrom","0"]),s=(Object(r.a)(["message","chatHeadingConfig"]),Object(i.a)("coloring")),o=Object(r.a)(["message","customConsentToCommunicateMessage"]),c=Object(r.a)(["message","customConsentToProcessMessage"]),u=Object(r.a)(["gdprConsentOptions","consentToProcessStatus"]),l=Object(i.a)("message"),d=Object(r.a)(["sendFrom"]),p=Object(i.a)("sessionId"),f=Object(i.a)("showPreviousConversations"),h=Object(i.a)("typicalResponseTime")},"Zui/":function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"i",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"h",(function(){return c}));n.d(t,"f",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"j",(function(){return d}));n.d(t,"g",(function(){return p}));const r="FILES",i="EMAIL_METADATA",a="QUICK_REPLIES",s="INLINE_IMAGES",o="CALL_METADATA",c="MESSAGE_POSITION_DESCRIPTOR",u="LOCATION",l="CONTACT",d="UNSUPPORTED_CONTENT",p="MESSAGE_HEADER"},Zulv:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n.d(t,"b",(function(){return O}));n.d(t,"c",(function(){return v}));n.d(t,"d",(function(){return R}));n.d(t,"e",(function(){return G}));n.d(t,"f",(function(){return U}));n.d(t,"g",(function(){return B}));n.d(t,"h",(function(){return q}));n.d(t,"i",(function(){return h}));n.d(t,"j",(function(){return A}));n.d(t,"k",(function(){return J}));n.d(t,"l",(function(){return P}));n.d(t,"m",(function(){return V}));n.d(t,"n",(function(){return x}));n.d(t,"o",(function(){return l}));n.d(t,"p",(function(){return S}));n.d(t,"q",(function(){return c}));n.d(t,"r",(function(){return p}));n.d(t,"s",(function(){return _}));var r=n("Ktcs"),i=n.n(r),a=n("Ex4o");function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{};let u=new Map;function l(e){let[t,n]=Object(r.useState)(e),i=Object(r.useRef)(null),s=Object(a.b)(t),o=Object(r.useCallback)(e=>{i.current=e},[]);u.set(s,o);c(()=>{let e=s;return()=>{u.delete(e)}},[s]);Object(r.useEffect)(()=>{let e=i.current;if(e){i.current=null;n(e)}});return s}function d(e,t){if(e===t)return e;let n=u.get(e);if(n){n(t);return t}let r=u.get(t);if(r){r(e);return e}return t}function p(e=[]){let t=l(),[n,i]=z(t),a=Object(r.useCallback)(()=>{i((function*(){yield t;yield document.getElementById(t)?t:null}))},[t,i]);c(a,[t,a,...e]);return n}function f(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function h(...e){let t=Object.assign({},e[0]);for(let n=1;n=65&&e.charCodeAt(2)<=90?t[e]=f(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=d(n,i):t[e]=void 0!==i?i:n:t[e]=o(n,i)}}return t}const b=new Set(["id"]),g=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),m=/^(data-.*)$/;function O(e,t={}){let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(b.has(t)||n&&g.has(t)||(null==r?void 0:r.has(t))||m.test(t))&&(i[t]=e[t]);return i}function v(e){if(y())e.focus({preventScroll:!0});else{let t=E(e);e.focus();T(t)}}let j=null;function y(){if(null==j){j=!1;try{document.createElement("div").focus({get preventScroll(){j=!0;return!0}})}catch(e){}}return j}function E(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;){(t.offsetHeight{let n=w.get(e.target);if(!n){n=new Set;w.set(e.target,n);e.target.addEventListener("transitioncancel",t)}n.add(e.propertyName)},t=e=>{let n=w.get(e.target);if(n){n.delete(e.propertyName);if(0===n.size){e.target.removeEventListener("transitioncancel",t);w.delete(e.target)}if(0===w.size){for(let e of I)e();I.clear()}}};document.body.addEventListener("transitionrun",e);document.body.addEventListener("transitionend",t)}"undefined"!=typeof document&&("loading"!==document.readyState?C():document.addEventListener("DOMContentLoaded",C));function A(e){requestAnimationFrame(()=>{0===w.size?e():I.add(e)})}function x(){let e=Object(r.useRef)(new Map),t=Object(r.useCallback)((t,n,r,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r);r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i});t.addEventListener(n,r,i)},[]),n=Object(r.useCallback)((t,n,r,i)=>{var a;let s=(null===(a=e.current.get(r))||void 0===a?void 0:a.fn)||r;t.removeEventListener(n,s,i);e.current.delete(r)},[]),i=Object(r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);Object(r.useEffect)(()=>i,[i]);return{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function S(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;n=l(n);if(i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));r||i||!t||(r=t);return{id:n,"aria-label":r,"aria-labelledby":i}}function _(e,t){c(()=>{if(e&&e.ref&&t){e.ref.current=t.current;return()=>{e.ref.current=null}}},[e,t])}function R(e){for(;e&&!D(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function D(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof window&&window.visualViewport;let M=0;const N=new Map;function P(e){let[t,n]=Object(r.useState)(null);c(()=>{if(!e)return;let t=N.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+M++;n(r);let i=document.createElement("div");i.id=r;i.style.display="none";i.textContent=e;document.body.appendChild(i);t={refCount:0,element:i};N.set(e,t)}t.refCount++;return()=>{if(0==--t.refCount){t.element.remove();N.delete(e)}}},[e]);return{"aria-describedby":e?t:void 0}}function k(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function L(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function B(){return L(/^Mac/i)}function F(){return L(/^iPhone/i)}function H(){return L(/^iPad/i)||B()&&navigator.maxTouchPoints>1}function U(){return F()||H()}function G(){return B()||U()}function q(){return k(/AppleWebKit/i)&&!W()}function W(){return k(/Chrome/i)}function V(e,t,n,i){let a=Object(r.useRef)(n);a.current=n;let s=null==n;Object(r.useEffect)(()=>{if(s)return;let n=e.current,r=e=>a.current.call(this,e);n.addEventListener(t,r,i);return()=>{n.removeEventListener(t,r,i)}},[e,t,i,s])}function z(e){let[t,n]=Object(r.useState)(e),i=Object(r.useRef)(t),a=Object(r.useRef)(null);i.current=t;let s=Object(r.useRef)(null);s.current=()=>{let e=a.current.next();e.done?a.current=null:t===e.value?s.current():n(e.value)};c(()=>{a.current&&s.current()});let o=Object(r.useCallback)(e=>{a.current=e(i.current);s.current()},[a,s]);return[t,o]}function J(e,t){let n=K(e,t,"left"),r=K(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,c=s+e.offsetWidth,u=o+e.offsetHeight;n<=s?s=n:n+i>c&&(s+=n+i-c);r<=o?o=r:r+a>u&&(o+=r+a-u);e.scrollLeft=s;e.scrollTop=o}function K(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent;){i+=t[r];if(t.offsetParent===e)break;if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}},"a/jS":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("unpublishedMessages")},a3lm:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="BOT",i="AGENT"},aLTZ:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="HUMAN",i="BOT"},aPre:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("MZef"),i=n("9pgs"),a=n("y+PV"),s=n("IDM/"),o=n("xyDt"),c=n("0IK8"),u=n("+LtA"),l=n("Ut5p"),d=n("ffqu"),p=n("+HSX"),f=n("2Sm/");const h=Object(r.a)({data:new u.a}),b=Object(l.c)({[d.b](e,t){const{message:n}=t.payload;return Object(o.a)(e=>Object(p.addMessageToThreadHistory)(Object(c.getId)(n),n,e),e)},[d.a]:()=>h,[f.a.STARTED]:a.a,[f.a.SUCCEEDED]:s.a,[f.a.FAILED]:(e,t)=>Object(i.a)(t.payload,e)},h)},aXPX:function(e,t,n){"use strict";n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"a",(function(){return s}));var r=n("7719");const i={[r.c]:18,[r.f]:28,[r.e]:40},a={[r.c]:"4px 8px",[r.f]:"8px 16px",[r.e]:"11px 24px"},s={[r.c]:"10px",[r.f]:"12px",[r.e]:"14px"}},aYGO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"g",(function(){return u}));n.d(t,"h",(function(){return l}));n.d(t,"i",(function(){return d}));n.d(t,"j",(function(){return p}));const r=["assignedAgentId"],i=["assignedAgentId"],a=["channelDetails"],s=["latestMessageTimestamp"],o=["latestReadTimestamp"],c=["previewMessageId"],u=["responder"],l=["status"],d=["threadId"],p=["unseenCount"]},akwH:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=()=>{Object(i.a)(r.w)}},am7t:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsCookieStorageAllowed",(function(){return p}));var r=n("2BFa"),i=n("xM+F"),a=n("FSHJ"),s=n("VTHq"),o=n("X9Pk"),c=n("647q"),u=n("FFIQ"),l=n("m2RC"),d=n("yy6y");const p=(e,t)=>{const n=t||Object(c.getLatestWidgetData)(e),p=Object(i.getIsPrivateLoad)(e),f=Object(a.getGlobalCookieOptOut)(e),h=Object(s.getAPIEnableWidgetCookieBannerOnExitIntent)(e),b=Object(o.getAPIEnableWidgetCookieBanner)(e),g=Object(r.gdprCookieConsentOnExitIntentEnabled)(e,n),m=Object(r.gdprCookieConsentOnWidgetLoadEnabled)(n),O=Object(u.getHasMessagesCookieBeenSaved)(e),v=Object(l.getIsPortal53Prod)(),j=Object(d.getShouldListenToGdprBannerConsent)(n);return f!==a.OPT_OUT_YES&&(f===a.OPT_OUT_NO||(!!O||(!v||!j)&&!(g||b||m||h||p)))}},amlY:function(e,t,n){"use strict";n.r(t);n.d(t,"assignmentV2MessageReceived",(function(){return u}));var r=n("DFBY"),i=n("xW98"),a=n("kP7l"),s=n("ncoD"),o=n("E6wg"),c=n("H9dH");function u(e,t,n){return(u,l)=>{const d=Object(r.getAssignedAgentId)(e),p=Object(s.getAllAgentResponders)(l()),f=Object(i.findResponderByIdFromList)({responders:p,responderId:d});d&&!f&&n&&u(Object(a.fetchAgentResponder)({senderId:d,agentType:Object(r.getAssignedAgentType)(e),sessionId:Object(o.getSessionId)(l()),threadId:n}));u(Object(c.defaultMessageReceived)(e,t,n))}}},asw7:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("QYOI"),i=n("8f+m");const a=(e=[])=>e.reduce((e,t)=>e.push(Object(i.a)(t)),Object(r.List)())},au5J:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QYOI");const i=(e={})=>{if(!(e.prototype instanceof r.Record))return"Object";if(e.prototype._name)return e.prototype._name;new e;return e.prototype._name||"Record"}},bG8F:function(e,t,n){"use strict";var r=n("mEYk"),i=n.n(r),a=n("EuUD");var s=new RegExp("^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})|^#([A-Fa-f0-9]{1})([A-Fa-f0-9]{1})([A-Fa-f0-9]{1})$");const o=Object(a.a)({name:"HexCode",validator:e=>s.test(e)});o.toRGB=e=>{const t=s.exec(e);let n=null;if(t&&7===t.length){void 0!==t[1]&&(n={r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)});void 0!==t[4]&&(n={r:parseInt(t[4]+t[4],16),g:parseInt(t[5]+t[5],16),b:parseInt(t[6]+t[6],16)})}return n};var c=o;const u="#ffffff",l="#33475b",d=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,p=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function f(e){let t;try{const n=e.replace(d,(e,t,n,r)=>t+t+n+n+r+r),r=p.exec(n);if(!r)throw new Error("Invalid hex code");t={r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}}catch(n){n instanceof Error&&i.a.captureException(n,{extra:{hex:e}});t={r:0,g:0,b:0}}return t}function h(e){const{r:t,g:n,b:r}=f(e),i=t/255,a=n/255,s=r/255;return.2126*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}function b(e,t){const n=h(e);return(h(t)+.05)/(n+.05)>2}let g,m;function O(e){if(e!==m){m=e;g=b(e,u)}return g}function v(e){return c.test(e)&&O(e)?u:l}function j(e){return!c.test(e)||!O(e)}var y=n("+KD7"),E=n("TXZ9");n.d(t,"b",(function(){return x}));n.d(t,"a",(function(){return S}));const T=y.q,w=y.s,I=y.p,C=y.m,A=y.u,x=(y.u,e=>{switch(e){case T:return{backgroundImage:"linear-gradient(90deg, #33475B 0%, #516F90 101.34%)"};case w:return{backgroundImage:"linear-gradient(90deg, #7FDED2 0%, #7FD1DE 100%)"};case I:return{backgroundImage:"linear-gradient(90deg, #C84676 0%, #965EB8 100%)"};case C:return{backgroundImage:"linear-gradient(92.06deg, #F5C26B 23.41%, #FF9980 100%)"};case A:return{backgroundImage:"linear-gradient(92.06deg, #5E6AB8 42.78%, #2B7ABF 100%)"};default:return{backgroundColor:e}}});function S(e){return null==e?new E.a:new E.a({accentColor:e,textColor:v(e),useDefaultColor:j(e)})}},bSHG:function(e,t,n){"use strict";n.d(t,"c",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"b",(function(){return u}));var r=n("kkqp"),i=n.n(r),a=n("bYG+"),s=n("rCfO");const o=document.implementation.createHTMLDocument("sanitize"),c={HTML:{elements:["a","b","blockquote","br","bdi","caption","cite","code","col","colgroup","dd","dl","dt","em","figure","h1","h2","h3","h4","h5","h6","i","img","li","ol","p","pre","q","small","strike","strong","sub","sup","table","tbody","td","tfoot","th","thead","tr","u","ul","font","div","span","s"],dom:o,attributes:{__ALL__:["style","align","valign","color","width","height"],a:["href","title","target"],blockquote:["cite"],col:["span"],colgroup:["span"],div:["dir"],font:["size","face"],iframe:["style","src","scrolling","frameborder","allowtransparency","allowfullscreen"],img:["alt","data-original-height","data-original-width","src","title"],ol:["start","type"],q:["cite"],span:["data-at-mention","data-owner-id","data-mention-id","data-mention-name","contenteditable","data-email-reply","data-timestamp","data-value"],table:["summary","bgcolor","cellpadding","cellspacing"],td:["abbr","axis","bgcolor","colspan","rowspan"],th:["abbr","axis","bgcolor","colspan","rowspan","scope"],tr:["bgcolor"],ul:["type"]},add_attributes:{a:{rel:"nofollow noopener noreferrer"}},protocols:{a:{href:["ftp","http","https","mailto","tel","mms","sms",i.a.RELATIVE]},blockquote:{cite:["http","https",i.a.RELATIVE]},img:{src:["data","http","https",i.a.RELATIVE]},q:{cite:["http","https",i.a.RELATIVE]}},remove_contents:["script","style","title"]},TEXTONLY:{dom:o,elements:[],remove_contents:["style","script"]}},u=Object(s.default)(()=>{const e=c.HTML,t=[...e.elements];t.push("iframe");return Object(a.a)("elements",t,e)})},bVTf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("J9Vo"),i=n("bSHG");const a=(e,t)=>t===r.a||e&&e.contains&&r.b.some(t=>e.contains(t)),s=({node:e})=>{if(!e||!e.tagName||"br"!==e.tagName.toLowerCase())return null;if(!e.nextElementSibling||!e.nextElementSibling.tagName)return null;const{classList:t,id:n}=e.nextElementSibling;if(!a(t,n))return null;const r=i.c.createElement("span");r.innerHTML="";return{node:r}}},bWKF:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n.d(t,"b",(function(){return c}));var r=n("Mx3c"),i=n("2Zef");const a={[i.AGENT_SENDER]:r.AGENT,[i.VISITOR_SENDER]:r.VISITOR,[i.BOT_SENDER]:r.BOT,[i.SYSTEM_SENDER]:r.SYSTEM,[i.INTEGRATOR_SENDER]:r.INTEGRATOR,[i.VID_SENDER]:r.VISITOR},s={[r.AGENT]:i.AGENT_SENDER,[r.VISITOR]:i.VISITOR_SENDER,[r.BOT]:i.BOT_SENDER,[r.SYSTEM]:i.SYSTEM_SENDER,[r.INTEGRATOR]:i.INTEGRATOR_SENDER};function o(e){return a[e]}function c(e){return s[e]}},bXuJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n.d(t,"c",(function(){return u}));n.d(t,"b",(function(){return l}));var r=n("YPLr"),i=n("Mx3c"),a=n("Avso"),s=n("QYOI"),o=n("Gc2C");const c=({senderId:e,senderType:t})=>{Object(o.a)(e&&t,"Responder keys must be set with valid ID and type. Received %s, %s",e,t);return Object(s.Map)({senderId:String(e),senderType:t})},u=e=>{const t=Object(a.getUserId)(e),n=Object(a.getAgentType)(e),s=n?Object(r.agentTypeToSenderType)(n):Object(a.getIsBot)(e)?i.BOT:i.AGENT;return c({senderId:t,senderType:s})},l=e=>{const{senderId:t,agentType:n}=e,i=Object(r.agentTypeToSenderType)(n);return c({senderId:t,senderType:i})}},"bYG+":function(e,t,n){"use strict";var r=n("0H74"),i=n("qjq5");t.a=Object(i.a)(r.a)},bahz:function(e,t,n){"use strict";var r=n("slCD"),i=n("8ASW"),a=n("1pGl");function s(e,t){let n=Object(a.c)(e);const r=n.split("-")[0];t.indexOf(n)<0&&t.indexOf(r)>=0?n=r:t.indexOf(n)<0&&(n=null);return n}var o=function(e,t){const n=[{source:t,target:e}];for(;n.length>0;){const{source:e,target:t}=n.shift();for(const r in e)e.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof t[r]?e[r]!==t[r]&&n.push({source:e[r],target:t[r]}):t[r]=e[r])}};function c(e){e.fallbacks=!0;e.fired={};e.currencySymbols||(e.currencySymbols={});e.baseLocales||(e.baseLocales={});e.publicLocales||(e.publicLocales={});e.loaded=!0;const t={};e.Info=new Promise((e,n)=>{t.resolve=e;t.reject=n});e.Info.resolve=t.resolve;e.Info.reject=t.reject}var u=n("npjq");const l={defaultLocale:"en",locale:"en",defaultSeparator:".",placeholder:/(?:\{\{)\s?(\S*?)\s?(?:\}\})/gm,fallbacks:!1,translations:{},missingBehaviour:"message",missingTranslationPrefix:""};let d,p={},f=[],h=Math.random()<=.05;function b(e,t,n){let r=!1;function i(e){r||(p[e]=p[e]?p[e]+1:1);r=!0}try{if(localStorage.getItem("TRACK_I18N_MISSING_TRANSLATIONS")){i(e);const t=window.hubspot.bender.currentProject,n=window.hubspot.bender.currentProjectVersion;localStorage.setItem("I18N_KEYS_USED:"+t+":"+n,JSON.stringify(p));const r=localStorage.getItem("I18N_APPS_TRACKED");let a={},s=!0;if(r){a=JSON.parse(r);a[t]&&a[t].indexOf(n)<0?a[t].push(n):s=!1}else a[t]=[t];s&&localStorage.setItem("I18N_APPS_TRACKED",JSON.stringify(a))}if(t&&localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS")){let t=localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS");t=t?t.concat(",",e):e;localStorage.setItem("I18N_FALLBACK_TRANSLATIONS",t)}}catch(e){return}if(h){clearTimeout(d);i(e);t&&-1===f.indexOf(e)&&f.push(e);d=setTimeout(()=>{window.newrelic&&window.newrelic.addPageAction("i18nKeysUsed",{keysUsed:JSON.stringify(p),i18nKeyCount:Object.keys(p).length,fallbackKeys:JSON.stringify(f),englishFallbackCount:f.length,requestedLocaleValue:n});h=!1;p={}},6e4)}}const g={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},m="(?:&|<|>|\"|'|`)",O=RegExp(m),v=RegExp(m,"g"),j=e=>g[e],y=function(e){return O.test(e)?e.replace(v,j):e},E=function(e){return null!=e},T=function(e){return e===Object(e)},w=function(...e){const t={};for(;e.length;){let n=e.shift();if("object"==typeof n)for(const e in n)n.hasOwnProperty(e)&&(E(t[e])||(t[e]=n[e]))}return t},I=function(e,t){t=w(t);e.constructor===Array&&(e=e.join(l.defaultSeparator));t.scope&&(e=[t.scope,e].join(l.defaultSeparator));return e},C=function(){return u.a.locale||l.defaultLocale},A=function(e,t){t=w(t);const n=u.a.locales.get(t.locale).slice(),r=n[0];let i,a,s,o;e=I(e,t);for(;n.length;){i=n.shift();a=e.split(l.defaultSeparator);s=u.a.translations[i];if(!s)continue;for(;a.length;){s=s[a.shift()];if(null==s)break}const t=function(e){return e.split("-")[0]};o=t(r);if(null!=s){const n=t(i),r=o!==n,a=n===l.defaultLocale;b(e,u.a.langEnabled&&r&&a,o);return s}}b(e,!1,o);if(E(t.defaultValue))return t.defaultValue};var x=n("DFoL");const S={precision:3,separator:".",delimiter:",",strip_insignificant_zeros:!0},_={unit:"$",precision:2,format:"%u%n",sign_first:!0,delimiter:",",separator:"."},R={unit:"%",precision:3,format:"%n%u",separator:".",delimiter:""},D={type:"short",precision:0};var M=Array.prototype.join;function N(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));const t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function P(e,t,n){var r,i,a=e<0;if(0===(e=Math.abs(e))){r=M.call(Array(n+1),"0");i=1}else{i=N(Math.abs(e))+1;const t=Math.round(Math.exp(Math.abs(i-n)*Math.LN10));r=String(Math.round(i-n<0?e*t:e/t))}if(i>n){r+=M.call(Array(i-n+1),"0");return a?"-"+r:r}if(i===n)return a?"-"+r:r;i>0?r=r.slice(0,i)+"."+r.slice(i):i<=0&&(r="0."+M.call(Array(1-i),"0")+r);if(r.indexOf(".")>=0&&n>t){let e=n-t;for(;e>0&&"0"===r.charAt(r.length-1);){r=r.slice(0,-1);e--}"."===r.charAt(r.length-1)&&(r=r.slice(0,-1))}return a?"-"+r:r}function k(e,t,n,r){let i,a,s=Number.prototype.toFixed.call(e,r),o=s.split(".")[0].length,c=r-n;const u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;if(u){s=s.slice(0,i).replace(".","");s+=M.call(Array(u-(s.length-1)+1),"0")+"."+M.call(Array(r+1),"0");o=s.length}for(;c>0&&"0"===s.slice(-1);){s=s.slice(0,-1);c--}"."===s.slice(-1)&&(s=s.slice(0,-1));o!!u.a.currencySymbols[e],B=function(e,t){const n=e<0,r=(t=w(t,A("number.format"),S)).formatNegativeValuesWithParenthesis&&n,i=Math.abs(e).toFixed(t.precision).toString().split("."),a=[];let s,o=t.format||"%n";const c=n?"−":"";e=i[0];let u=i[1];for(;e.length>0;){a.unshift(e.substr(Math.max(0,e.length-3),3));e=e.substr(0,e.length-3)}s=a.join(t.delimiter);t.strip_insignificant_zeros&&u&&(u=u.replace(/0+$/,""));t.precision>0&&u&&(s+=t.separator+u);o=t.sign_first?"%s"+o:o.replace("%n","%s%n");if(r){o=o.replace("%s","");o="%parStart"+o+"%parEnd"}s=o.replace("%u",t.unit).replace("%n",s).replace("%s",c).replace("%parStart","(").replace("%parEnd",")");return s},F=function(e,t){const n=(t||{}).locale;t=w(t,A("number.currency.format",{locale:n}),A("number.format",{locale:n}),_);return B(e,t)},H=function(e,t){t=w(t,A("number.percentage.format"),A("number.format"),R);return B(e,t)},U=function(e,t){null==t&&(t={});return H(e,t)},G=/\d|\+|-|e/i,q=function(e,t){t=w(t,A("number.format",{locale:(t||{}).locale}),S);if("number"==typeof e)return e;if("string"!=typeof e)return NaN;e=e.replace(/\s/g,"").replace("−","-");let n="";for(let r of Array.from(e))if(r.match(G))n+=r;else{if(r!==t.separator){if(r===t.delimiter)continue;return NaN}n+="."}return parseFloat(n)},W=15,V=Math.pow(10,W),z=1e3,J=function(e,t){let n;null==t&&(t={});t=w(t,A("number.format",{locale:t.locale}),{separator:".",delimiter:","});let{separator:r,delimiter:i,numDigitsToTruncateTo:a,maxThreshold:s,minThreshold:o,minIntegerDigits:c,maxSignificantDigits:u,minSignificantDigits:l,maxFractionDigits:d,minFractionDigits:p,stripInsignificantZeros:f}=t;const h=e<0;null==o&&(o=Number.NEGATIVE_INFINITY);null==s&&(s=Number.POSITIVE_INFINITY);null!=p||null!=l||null!=d||null!=u?null==f&&(f=!1):null==f&&(f=!0);null==c&&(c=Math.max(null!=a?a:0,1));if(null!=l||null!=u){null==u&&(u=W);null==l&&(l=1)}null==p&&(p=0);null==d&&(d=Math.max(p,0));let b=Math.abs(e);if(null!=a&&o<=b&&b0;){v.unshift(m.substr(Math.max(0,m.length-3),3));m=m.substr(0,m.length-3)}let j=v.join(i);f&&O&&(O=O.replace(/0+$/,""));O&&(j+=r+O);h&&(j="−"+j);return j},K=function(e){e=Math.abs(e);return"1"+[...Array(Math.floor(e).toString().length-1).keys()].map(()=>"0").join("")},Y=function(e){const t=e.match(/^([^0]*)(0+)(.*)$/);if(t){const[e,n,r,i]=t;return{prefix:n,digitString:r,numDigits:r.length,suffix:i}}throw new Error("Invalid abbreviation pattern: "+e)},Q=function(e,t){null==t&&(t={});let{type:n,locale:r,separator:i,delimiter:a,stripInsignificantZeros:s,minIntegerDigits:o,maxSignificantDigits:c,minSignificantDigits:l,maxFractionDigits:d,minFractionDigits:p}=t;null==n&&(n="short");const f=K(e);let h=A(`number.human.abbreviated.${n}.${f}`,t);if(null!=h&&"object"==typeof h){const t=h[Object.keys(h)[0]],n=Y(t),i=J(e,{numDigitsToTruncateTo:n.numDigits,minThreshold:z,maxThreshold:V}),a=u.a.pluralization.get(r)(Math.abs(i));for(;a.length;){const e=a.shift();if(null!=h[e]){h=h[e];break}}}if(["0",0].includes(h)||null==h)return J(e,{locale:r,numDigitsToTruncateTo:30,minThreshold:z,maxThreshold:V,minIntegerDigits:null!=o?o:1,minSignificantDigits:l,maxSignificantDigits:c,minFractionDigits:p,maxFractionDigits:d,separator:i,delimiter:a,stripInsignificantZeros:s});{const t=Y(h),n=J(e,{locale:r,numDigitsToTruncateTo:t.numDigits,minThreshold:z,maxThreshold:V,minIntegerDigits:o,minSignificantDigits:l,maxSignificantDigits:c,minFractionDigits:p,maxFractionDigits:d,separator:i,delimiter:a,stripInsignificantZeros:s});return`${t.prefix}${n}${t.suffix}`}},Z=function(e,t){null==t&&(t={});if(t.abbreviate){"string"==typeof(t=w(t,D)).abbreviate&&(t.type=t.abbreviate);return Q(e,t)}return B(e,t)},X=function(e,t){null==t&&(t={});L("USD")||console.error("It looks like currency data is not available. Are you using the new I18n loader and forgot to import currencies? See go/new-i18n");if(t.currencyCode){const n=u.a.currencySymbols[t.currencyCode];if(n){null==t.unit&&(t.unit=n.symbol);n.format&&(t.format=n.format);let r=n.decimal_digits;if(n.alternative_decimal_digits&&e%1!=0){e.toString().split(".")[1].length>r&&(r=n.alternative_decimal_digits)}null==t.precision&&(t.precision=r)}}if(!t.unit&&!t.useCurrencyCode){if(t.currencyCode){x.a.warn({message:`I18n: Invalid currencyCode: ${t.currencyCode} supplied to call to formatCurrency().`,key:"I18n.formatCurrency-invalid-"+t.currencyCode,url:"https://git.hubteam.com/HubSpot/faast-ui/issues/248"});return`${t.currencyCode} ${e}`}x.a.warn({message:"I18n: Missing currencyCode in call to formatCurrency().",key:"I18n.formatCurrency-missing",url:"https://git.hubteam.com/HubSpot/I18n/issues/59"})}if(t.abbreviate){"string"==typeof(t=w(t,D)).abbreviate&&(t.type=t.abbreviate);return F(e>=0?2:-2,t).replace("2",Q(Math.abs(e),t))}return F(e,t)},$=function(e,t){if("number"==typeof t){if(isNaN(t))return null;if("count"===e)return Number(t);if("portalid"===e.toLowerCase()){console.warn('The use of params named "portalId" in externalized strings is deprecated. You should wrap it, like so "I18n.t(key, { portalId: I18n.SafeString(portalId) })", to prevent it from being automatically formatted. See HubSpot/I18n#109');return String(t)}return Z(t)}return t instanceof u.a.SafeString?t.toString():null!=t?y(String(t)):t};var ee=n("HY4P");const te=!0,ne=!0,re=[],ie=function(e){return"[missing "+e+" value]"},ae=function(...e){return ie(e)},se=function(e,t,n,r,i){null==i&&(i={});const a=e.apply(u.a,r),s=i.message||a;if(re.indexOf(s)<0){re.push(s);const e=new Error("I18n: "+s),r={i18nErrorType:t,currentLocale:u.a.langEnabled?u.a.locale:"en-us",translationKey:i.translationKey,placeholderName:i.placeholderName};window.newrelic&&window.newrelic.noticeError(e,r);n&&window.Raven&&window.Raven.captureException(e,{extra:r});try{localStorage.getItem("TRACK_I18N_MISSING_TRANSLATIONS")&&localStorage.setItem("I18N_MISSING_TRANSLATIONS",re)}catch(e){}}"function"==typeof u.a.trigger&&u.a.trigger(t,a);return a},oe=function(e,t){if("guess"===u.a.missingBehaviour){const t=e.split(".").slice(-1)[0];return(l.missingTranslationPrefix.length>0?l.missingTranslationPrefix:"")+t.replace("_"," ").replace(/([a-z])([A-Z])/g,(e,t,n)=>t+" "+n.toLowerCase())}const n=I(e,t);return"[missing “"+[C(),n].join(l.defaultSeparator)+"” translation]"},ce=function(e){const t='Missing translation: "'+e+'"';ee.a.counter("translate-request-key-missing-translation").increment();console.warn("I18n: "+t);return y(se(oe,"missingTranslation",ne,[e],{translationKey:e,message:t}))},ue=ie,le=function(e,t,n){const r=`Missing placeholder: ${e} in "${n.__scope}"`,i={message:r,translationKey:n.__scope,placeholderName:e};ee.a.counter("translate-request-key-missing-placeholder").increment();console.warn("I18n: "+r);return se(ue,"missingPlaceholder",te,[e,t,n],i)},de=function(e,t){t=w(t);const n=e.match(l.placeholder);let r,i,a,s;if(!n)return e;for(;n.length;){r=n.shift();a=r.replace(l.placeholder,"$1");i=E(t[a])?t[a].toString().replace(/\$/gm,"_#$#_"):a in t?ae(r,e,t):le(r,e,t);s=new RegExp(r.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));e=e.replace(s,i)}return e.replace(/_#\$#_/g,"$")},pe=function(e,t,n){n=w(n);let r,i,a,s,o;r=T(t)?t:A(t,n);if(!r)return ce(t,n);i=u.a.pluralization.get(n.locale);a=i(e);for(;a.length;){s=a.shift();if(E(r[s])){o=r[s];break}}if("string"==typeof o){"number"==typeof n.count&&(n.count=Z(e));return de(o,n)}},fe=function e(t,n){n=w(n);let r=A(t,n);T(r)&&!E(n.count)&&(r=A(t,w({locale:l.defaultLocale},n)));if(null==r)return ce(t,n);T(r)||"number"!=typeof n.count||(n.count=Z(n.count));if("string"==typeof r)r=de(r,n);else if(T(r)&&E(n.count)){r=pe(n.count,r,n);if(void 0===r&&n.locale!==l.defaultLocale)return e(t,w({locale:l.defaultLocale},n))}return r},he=function(...e){const t=e[e.length-1],n="string"!=typeof t,r=n&&t?e[e.length-1]:{},i=n?e.slice(0,e.length-1).join("."):e.join("."),a={};for(let e in r)if(r.hasOwnProperty(e)){const t=r[e];null!=t&&(a[e]=$(e,t))}a.locale||"en"===u.a.locale.split("-")[0]||u.a.langEnabled||u.a.publicPage||(a.locale="en");a.__scope=i;if(u.a.fired&&!u.a.fired.ready){const e=new Error(`I18n.text called before ready with key '${i}' - See go/i18n-help for more info`);setTimeout(()=>{ee.a.counter("translate-request-fired-too-early").increment();throw e},0)}return fe(i,a)},be={inclusive:{wordsConnector:"|, ",twoWordsConnector:"| and ",lastWordConnector:"|, and "},exclusive:{wordsConnector:"|, ",twoWordsConnector:"| or ",lastWordConnector:"|, or "}},ge=function(e,t){const n=t.length-1;return t.reduce((t,r,i)=>{t.push(r);i!==n&&t.push(e);return t},[])},me=function(e,t){let n;null==t&&(t={});let{wordsConnector:r,twoWordsConnector:i,lastWordConnector:a,limit:s,excessKey:o,exclusive:c}=t;if(null!=s&&s<=2)throw new Error("The formatList limit must be 3 or larger");if(null!=s&&null==o)throw new Error("When using a limit in formatList, you must pass excessKey (that is a external, plurlized string reference)");if(null!=Array.isArray){if(!Array.isArray(e))throw new Error("The first argument to I18n.formatList must be an array")}else if(!(e instanceof Array))throw new Error("The first argument to I18n.formatList must be an array");const u="number.human.array";let l="inclusive";!0===c&&(l="exclusive");r=t.wordsConnector||he(`${u}.${l}.wordsConnector`,{locale:t.locale})||be[l].wordsConnector;i=t.twoWordsConnector||he(`${u}.${l}.twoWordsConnector`,{locale:t.locale})||be[l].twoWordsConnector;a=t.lastWordConnector||he(`${u}.${l}.lastWordConnector`,{locale:t.locale})||be[l].lastWordConnector;const{length:d}=e;if(0===d)return[];if(1===d)return[e[0]];if(2===d)return[e[0],i,e[1]];if(null==s||s>=d){n=ge(r,e.slice(0,-1));n.push(a);n.push(e[e.length-1]);return n}{const i=he(o,{count:e.length-s,locale:t.locale});n=ge(r,e.slice(0,s));n.push(a);n.push(i);return n}},Oe=function(e,t){null==t&&(t={});return me(e,t).join("")},ve=[null,"kb","mb","gb","tb"],je=function(e,t){for(var n,r,i=1024,a=e,s=0;a>=i&&s<4;){a/=i;s+=1}if(0===s){n=he("number.human.storage_units.units.byte",{count:a});r=0}else{n=he("number.human.storage_units.units."+ve[s]);r=a-Math.floor(a)==0?0:1}t=w(t,{unit:n,precision:r,format:"%n%u",delimiter:""});return B(a,t)},ye=function(e,t){null==t&&(t={});let n="";!0!==t.useGap&&!1!==t.noGap||(n=" ");return`${n}${he(e,t)}${n}`};function Ee(e){(function(){void 0===e.placeholder&&null!==e.placeholder&&(e.placeholder=l.placeholder);void 0===e.fallbacks&&null!==e.fallbacks&&(e.fallbacks=l.fallbacks);void 0===e.translations&&null!==e.translations&&(e.translations=l.translations)})();e.locales={};e.locales.default=function(t){const n=[],r=[];let i;t&&n.push(t);!t&&e.locale&&n.push(e.locale);"noNO"===t||!t&&"noNO"===e.locale?n.push("no-no"):("no-no"===t||!t&&"no-no"===e.locale)&&n.push("noNO");e.fallbacks&&l.defaultLocale&&n.push(l.defaultLocale);n.forEach(t=>{i=t.split("-")[0];~r.indexOf(t)||r.push(t);~r.indexOf(t.toLowerCase())||r.push(t.toLowerCase());e.fallbacks&&i&&i!==t&&!~r.indexOf(i)&&r.push(i)});n.length||n.push("en");return r};e.locales.get=function(t){let n=this[t]||this[e.locale]||this.default;"function"==typeof n&&(n=n(t));n instanceof Array==!1&&(n=[n]);return n};e.pluralization={};e.pluralization.get=function(t){return this[t]||this[e.locale]||this.default};e.pluralization.default=function(e){switch(e){case 0:return["zero","other"];case 1:return["one","other"];default:return["other"]}};e.currentLocale=function(){return e.locale||l.defaultLocale};const t=function(t){const n=0===t?1:t;return e.pluralization.default(n)},n=function(e){if(1===e)return["one","other"];const t=e%10,n=e%100;return t>=2&&t<=4&&!(n>=12&&n<=14)?["few","other"]:1!==e&&t>=0&&t<=1||t>=5&&t<=9||n>=12&&n<=14?["many","other"]:["other"]};e.pluralization.fr=t;e.pluralization.pl=n}function Te(e){if(!(this instanceof Te))return new Te(e);this.string=e}Te.prototype.toString=Te.prototype.toHTML=function(){return""+this.string};const we=function(...e){if(!document)return;let t=this.I18N_DEBUG_LOG||window.I18N_DEBUG;try{t="true"===localStorage.I18N_DEBUG_LOG||"true"===localStorage.I18N_DEBUG}catch(e){}if(t){e.unshift("I18n:");window.parent!==window&&e.unshift("(IFRAME)");console.log(...e)}};function Ie(e){Ee(e);c(e);e.lookup=A;e.prepareOptions=w;e.missingTranslation=ce;e.missingPlaceholder=le;e.formatParam=$;e.debugLog=we;e.text=he;e.formatListArray=me;e.formatList=Oe;e.parseNumber=q;e.formatNumber=Z;e.formatPercentage=U;e.formatCurrency=X;e.abbreviateNumber=Q;e.advancedFormatNumber=J;e.formatSize=je;e.html=ye;e.SafeString=Te}Ie(i.a);function Ce({context:e,source:t,mode:n}){if(!e)throw new Error("invalid provider source");const r=Object.keys(e);function a(e){e&&e.translations&&e.translations.forEach(e=>o(i.a.translations,e));return e}function c(n){if(r.indexOf(n)<0)throw new Error(`locale ${n} does not exist for ${t}`);return e[n]()}function u(e){if("sync"!==n)throw new Error(t+" is not sync");return a(c(e))}function l(e){if("lazy"!==n)throw new Error(t+" is not lazy");return c(e).then(a).catch(e=>setTimeout(()=>{throw e},0))}function d(e,t={}){const i=[],a=t.localeMapper||s,o={};e.forEach(e=>{const t=a(e,r),s=t?o[t]:void 0;if(!s&&t&&"lazy"===n){i.push(l(t));o[t]=!0}else if(!s&&t){i.push(Promise.resolve(u(t)));o[t]=!0}});return Promise.all(i).catch(e=>setTimeout(()=>{throw e},0))}return{mode:n,load:d,locales:r,loadSync:u,loadLazy:l}}function Ae(){let e=e=>{throw new Error("`setLocale()` called early")};return{langRegistry:{},localePromise:new Promise(t=>e=t),setLocale:e,register(e,t={}){if(this.langRegistry[e.source])return Promise.resolve();this.langRegistry[e.source]=e;const n=Ce(e);return this.localePromise.then(e=>n.load(t.getLocales?t.getLocales(e):e,t)).catch(e=>setTimeout(()=>{throw e},0))}}}function xe(e,t){try{localStorage.setItem(e,t)}catch(e){}}var Se=n("Wtyj");t.a=e=>{const t=Ae(),{setLocale:n,register:o}=t,c=Object(r.a)(t,["setLocale","register"]),u=[];return Object.assign({register(n,r={}){const i=r.localeMapper||s,a=o.call(t,n,Object.assign({},r,{localeMapper(...e){const t=i(...e);t&&!u.includes(t)&&u.push(t);return t}}));a.then(()=>{e&&e.__localesCacheKey===Se.a||xe(e&&e.__localesCacheKey||Se.b,JSON.stringify(u))});return a},setLocale({locale:t,langEnabled:r,timezone:s}){Object(a.g)();Object(a.h)(s);i.a.locale=i.a.manualLocale||Object(a.c)(t);i.a.lang=i.a.locale.split("-")[0];i.a.langEnabled=!!i.a.manualLocale||r;const o=i.a.langEnabled?[i.a.locale]:[];i.a.langEnabled||i.a.locale!==a.a||o.push("en-us");!(e&&e.excludeFallback)&&o.push(a.a);i.a.fired.ready=!0;i.a.Info.resolve({locale:i.a.locale,langEnabled:i.a.langEnabled,timezone:i.a.timezone});if(i.a.moment){let e=a.e[i.a.locale]||a.e[i.a.locale.split("-")[0]];i.a.moment.locales().indexOf(e)<0&&(e=a.a);e!==i.a.moment.locale()&&i.a.moment.locale(e)}Object(a.f)();return n(o)}},c)}},"bco+":function(e,t,n){"use strict";n.r(t);n.d(t,"getThreads",(function(){return s}));var r=n("MBJP"),i=n("KXN9"),a=n("dHfq");const s=Object(r.a)([a.a],e=>Object(i.a)(e))},bhLI:function(e,t,n){"use strict";var r=n("QgEn"),i=(n("VfuR"),n("Ktcs")),a=Object(i.createContext)({id:0,dispatch:()=>{},reportAction:()=>{}}),s=n("FubB");const o=e=>s.unstable_runWithPriority(s.unstable_LowPriority,()=>{e()});var c=window.performance||{};const u=Date.now();var l=c.now?()=>c.now():()=>Date.now()-u;var d=(e,t=!0)=>{const n=Object(i.useContext)(a),r=n&&n.id,s=n&&n.dispatch,c=t&&void 0!==n;0;Object(i.useEffect)(()=>{if(c){const t={name:e,id:r},n=l();o(()=>{s({type:"MARKER_MOUNTED",payload:{marker:t,timestamp:n}})});return()=>{o(()=>{s({type:"MARKER_UNMOUNTED",payload:{marker:t}})})}}},[e,r,s,c])};const p=({name:e})=>{d(e);return null};0;0;var f=({children:e,name:t})=>Object(r.jsxs)(r.Fragment,{children:[e,Object(r.jsx)(p,{name:t})]}),h=n("Gc2C"),b=n("02LW");function g(e){const t=Object(i.useRef)();Object(i.useEffect)(()=>{t.current=e});return t.current}function m(e){var t={};return function(n){t.hasOwnProperty(n)||(t[n]=e.call(null,n));return t[n]}}var O=m,v=n("C5Zv");const j=e=>e.replace(/(^\/+|\/+$)/g,"").split("/").filter(Boolean),y=/^:(.+)/;var E=e=>{const t={};e.forEach(e=>{t[e]=j(e)});return(e,n)=>{const r=j(n),i=t[e];Object(h.a)(i,"unexpected route "+e);if("*"===i[i.length-1]?r.lengthdocument.visibilityState,R=()=>"hidden"===document.visibilityState,D=e=>{document.addEventListener("visibilitychange",()=>{e(document.visibilityState)})},M=e=>{document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&e()})},N=()=>!!window.navigator.webdriver,P={FID:"first-input",LongTask:"longtask",UserInteraction:"event"},k=3e4,L={Navigation:"rhumb",Performance:"performance"},B=e=>e?"static"===e?"dev":e.replace("static-",""):"unknown",F=Object(b.default)((e,t,n)=>`${Object(C.getFullUrl)("app-api")}/cartographer/v1/${e}?hs_static_app=${t}&hs_static_app_version=${B(n)}`);class H extends S.b{constructor(e){super(e);this.performanceActions=[];this.navigationActions=[];window.addEventListener("visibilitychange",()=>{if("hidden"===document.visibilityState){N()&&console.log("flushing all cartographer actions");this.flushAllQueues()}},!1)}sendActions(e,t){try{return navigator.sendBeacon(F(t,this.staticAppName,this.staticAppVersion),JSON.stringify({userAgent:navigator.userAgent,portalId:x.a.get(),datapoints:e}))}catch(e){return null}}logActions(e){this.debug&&this.logGroupWithBadge("Cartographer beacon",S.a.KOALA,S.a.SLINKY,()=>{e.forEach(console.log)})}flushNavigationQueue(){if(this.navigationActions.length)try{if(this.sendActions(this.navigationActions,L.Navigation)){this.logActions(this.navigationActions);this.navigationActions=[]}}catch(e){}}flushPerformanceQueue(){if(this.performanceActions.length)try{if(this.sendActions(this.performanceActions,L.Performance)){this.logActions(this.performanceActions);this.performanceActions=[]}}catch(e){}}flushAllQueues(){this.flushNavigationQueue();this.flushPerformanceQueue()}pushNavigationAction(e,t,n,r,i,a,s){R()||this.navigationActions.push({from:t,to:e,status:n,wasHidden:r,isHidden:i,duration:a,isReload:s})}pushPerformanceAction(e,t,n){R()||this.performanceActions.push({route:e,type:t,data:n})}}var U=n("7pHJ");const G=()=>{try{const e=c.getEntriesByType("navigation");return e&&e[0]&&e[0].type}catch(e){return null}},q=()=>"reload"===G(),W=/https:\/\/(static|local).hsappstatic.net\//,V=10;class z extends H{constructor(e){super(e);this.abandonedTimes=[];this.lastAbandonedTimestamp=null;this.finished=!1;this.wasHidden="hidden"===_();this.setCustomAttribute("currentVisibility",_());this.setCustomAttribute("visibility",_());D(e=>{this.setCustomAttribute("currentVisibility",e);if("hidden"===e&&!this.wasHidden){this.wasHidden=!0;this.setCustomAttribute("visibility","hidden")}})}getHubHttpData(e){if("function"==typeof I.a.getAllHttpRequestStats&&"function"==typeof c.now){const t=t=>({state:n,started:r,finished:i})=>re:n===t&&i<=e),n=10,r=e=>e.slice(0,n).map(e=>e.url).join(","),i=I.a.getAllHttpRequestStats(),a=i.filter(t("succeeded")),s=i.filter(t("failed")),o=i.filter(t("aborted")),c=i.filter(t("pending")),u=i.filter(t("timedOut")),l=s.filter(e=>404!==e.status&&!e.willBeRetried),d=s.filter(e=>404===e.status);return{numSucceededRequests:a.length,numAbortedRequests:o.length,numPendingRequests:c.length,numNotFound:d.length,numTimedoutRequests:u.length,numFailedRequestsMinus404AndRetries:l.length,numRetriedFailures:s.filter(e=>!!e.willBeRetried).length,failedRequestUrls:r(l),timedOutRequestUrls:r(u),pendingRequestUrls:r(c),notFoundUrls:r(d)}}return null}getCacheStatusData(){const e={};this.performanceEntries().forEach(t=>{if(t.name.endsWith(".js")){const n=t.name.replace(W,"");e[n]={cached:t.duration<=V,duration:t.duration}}});return e}getNumFailedImages(){return Array.from(document.getElementsByTagName("img")).reduce((e,t)=>t.src&&0===t.naturalHeight&&0===t.naturalWidth?e+1:e,0)}finish(e,t){const{finishedTimestamp:n}=e,r=this.getHubHttpData(n),i=this.abandonedTimes.reduce((e,t)=>e+t/this.abandonedTimes.length,0),a=this.getCacheStatusData(),s={};Object.keys(t).forEach(e=>{t[e]&&(s["marker_timing_"+e]=t[e].timestamp)});this.setCustomAttribute("numReaganChecksStarted",this.abandonedTimes.length+1);this.setCustomAttribute("numPreviousReaganChecksAborted",this.abandonedTimes.length);this.setCustomAttribute("avgDurationBeforePreviousReaganAborts",i);this.setCustomAttribute("numPreviousReaganChecksFailed",0);this.setCustomAttribute("numPreviousReaganChecksSuccessful",0);this.addPageAction("reaganFinished",Object.assign({},e,{},r,{numFailedImages:this.getNumFailedImages(),cacheData:JSON.stringify(a),allVisibleMarkers:JSON.stringify(Object.keys(t))},s));this.sendActions([{to:{pathname:e.pathname,route:e.route,scenario:e.scenario},status:e.status,wasHidden:this.wasHidden,isHidden:"hidden"===_(),duration:e.timeToAllSuccess||e.finishedTimestamp,failureType:e.failureType,isReload:q()}],L.Navigation)}report(e){if("COMPONENT_RENDERED"===e.type||!this||this.finished)return;const{entry:{timestamp:t,checks:n,expiredTimestamp:r,pathname:i},routeSpec:a}=e.payload;switch(e.type){case"ROUTE_SUCCEEDED":case"ROUTE_FAILED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_UNEXPECTED":this.finished=!0}switch(e.type){case"ROUTE_STARTED":this.lastAbandonedTimestamp&&this.abandonedTimes.push(t-this.lastAbandonedTimestamp);break;case"ROUTE_ABANDONED":this.lastAbandonedTimestamp=t;break;case"ROUTE_SUCCEEDED":{const{success:r,route:s}=a,{extra:{scenario:o}}=e.payload;0;const c=Math.max(...r[o].map(e=>n[e].timestamp)),u=Math.max(0,c-t),l=t+u;this.wasHidden||U.c.timer("succeeded",{scenario:o}).update(l);this.finish(Object.assign({status:"success",timeToAllSuccess:l/1e3,scenario:o,finishedTimestamp:c,route:s,pathname:i},this.options.timingOffset?{adjustedTimeToAllSuccess:(t+u+this.options.timingOffset)/1e3,timingOffset:this.options.timingOffset}:{}),n);this.performanceMark("mark_all_success");break}case"ROUTE_FAILED":{const{route:e,error:t}=a,r=t.filter(e=>n[e]);0;const[s]=r,o=n[s].timestamp;this.wasHidden||U.c.counter("failed",{selector:s}).increment();this.finish({status:"failure",failureType:"errorSelector",selector:s,finishedTimestamp:o,route:e,pathname:i},n);this.performanceMark("mark_all_failure");break}case"ROUTE_TIMEOUT_EXPIRED":{const{route:e}=a;this.wasHidden||U.c.counter("timeouts").increment();this.finish({status:"failure",failureType:"watchdogExpired",finishedTimestamp:r,route:e},n);this.performanceMark("mark_all_failure_watchdog_expired");break}}}}class J extends H{constructor(e){super(e);this.resolved={};this.stopped=!1;this.flushQueueTimeout=void 0;this.currentActionStartTimestamp=null;this.previousNavigationAction=null;this.wasHidden="hidden"===_();D(e=>{"hidden"!==e||this.wasHidden||(this.wasHidden=!0)})}pushInAppNavigationAction(e,t,n,r,i){this.previousNavigationAction&&this.pushNavigationAction(e,this.previousNavigationAction,t,n,r,i);this.previousNavigationAction=e}report(e){if("COMPONENT_RENDERED"!==e.type&&!this.resolved[e.payload.entry.id]&&!this.stopped){switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":{const{entry:t,routeSpec:n}=e.payload,{pathname:r,checks:i,expiredTimestamp:a}=t,{route:s,error:o}=n;this.wasHidden||("ROUTE_FAILED"===e.type?U.c.counter("transition-failed").increment():U.c.counter("transition-timeouts").increment());this.pushInAppNavigationAction({pathname:r,route:s,scenario:"ROUTE_FAILED"===e.type&&o?o.join(","):e.type},"failure",this.wasHidden,"hidden"===_(),"ROUTE_FAILED"===e.type?this.toDuration(i,this.currentActionStartTimestamp,o):a-this.currentActionStartTimestamp);break}case"ROUTE_SUCCEEDED":{const{entry:t,routeSpec:n,extra:r}=e.payload,{pathname:i,checks:a}=t,{route:s}=n,{scenario:o}=r,c=n.success[o]||"",u=this.toDuration(a,this.currentActionStartTimestamp,c);this.wasHidden||U.c.timer("transition-succeeded",{scenario:o}).update(u);this.pushInAppNavigationAction({pathname:i,route:s,scenario:o||c.join(",")},"success",this.wasHidden,"hidden"===_(),u);break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_STARTED":{const{entry:t}=e.payload,{timestamp:n}=t;this.currentActionStartTimestamp=this.currentActionStartTimestamp||n;break}case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.currentActionStartTimestamp=null;this.resolved[e.payload.entry.id]=!0;clearTimeout(this.flushQueueTimeout);this.flushQueueTimeout=setTimeout(()=>{this.flushNavigationQueue()},k)}}}}class K extends S.b{constructor(){super();this.resolved={};this.notifiedRoutes=new Set}report(e){if("COMPONENT_RENDERED"===e.type||this.resolved[e.payload.entry.id]&&"CHECKS_CHANGED"!==e.type)return;const{entry:{pathname:t}}=e.payload;if("ROUTE_UNEXPECTED"===e.type){if(!this.notifiedRoutes.has(t)){this.addPageAction("react-rhumb-event",{eventName:"UnexpectedRouteVisited",pathname:t});this.captureUnexpectedRoute(t);this.notifiedRoutes.add(t);U.c.counter("unexpected-route").increment()}this.resolved[e.payload.entry.id]=!0}}}const[Y,Q]=v.b;class Z extends S.b{constructor(){super();this.stopped=!1}report(e){if(!this.stopped&&"GLOBAL_ERROR"===e.type){const{entry:t,extra:n}=e.payload,{error:r}=n,{pathname:i}=t;this.captureError(r,{data:{pathname:i},tags:{[Q]:"true"}});this.stopped=!0}}}var X=n("slCD");let $,ee,te,ne;const re={passive:!0,capture:!0},ie=new Date,ae=e=>{ne.push(e);ce()},se=()=>{ne=[];ee=-1;$=null;de(window.addEventListener)},oe=(e,t)=>{if(!$){$=t;ee=e;te=new Date;de(window.removeEventListener);ce()}},ce=()=>{if(ee>=0&&ee{t(e)});ne=[]}},ue=e=>{if(e.cancelable){const t=(e.timeStamp>1e12?new Date:l())-e.timeStamp;"pointerdown"===e.type?le(t,e):oe(t,e)}},le=(e,t)=>{const n=()=>{oe(e,t);i()},r=()=>{i()},i=()=>{window.removeEventListener("pointerup",n,re);window.removeEventListener("pointercancel",r,re)};window.addEventListener("pointerup",n,re);window.addEventListener("pointercancel",r,re)},de=e=>{["mousedown","keydown","touchstart","pointerdown"].forEach(t=>e(t,ue,re))},pe=(e,t)=>{try{if(!PerformanceObserver.supportedEntryTypes.includes(e))return;const n=new PerformanceObserver(e=>{for(const n of e.getEntries())t(n)});n.observe({type:e,buffered:!0});M(()=>{const e=n.takeRecords();n.disconnect();e.map(t)})}catch(e){}},fe=e=>{window.addEventListener("pageshow",t=>{t.persisted&&e(t)},!0)};class he extends H{constructor(e){super(e);this.resolved={};this.stopped=!1;this.firstHiddenTime="hidden"===document.visibilityState?0:1/0;this.interactionMap=new Map;window.addEventListener("visibilitychange",e=>{this.firstHiddenTime=Math.min(this.firstHiddenTime,e.timeStamp)},{once:!0});const t=()=>{clearTimeout(this.flushQueueTimeout);this.flushQueueTimeout=setTimeout(()=>{this.flushPerformanceQueue();this.interactionMap.clear()},k)},n=e=>{const n=e.toJSON(),{processingStart:r,startTime:i}=n,a=Object(X.a)(n,["processingStart","startTime"]);if(i{const{interactionId:n,target:r,name:i}=e;if(n>0){let a=this.interactionMap.get(n);if(!a){a={latency:0,entries:[],interactionNames:""};this.interactionMap.set(n,a)}a.entries.push(e);a.latency=Math.max(e.duration,a.latency);if(a.latency<150)return;const s=r&&r.hasAttribute("data-test-id")?r.getAttribute("data-test-id"):"",o=r?r.tagName:"";i&&i.length>0&&(a.interactionNames=a.interactionNames.concat(a.interactionNames.length>0?" ":"",i));this.evictPerformanceAction(n);this.pushPerformanceAction(this.lastRouteInfo,P.UserInteraction,{interactionId:n,interactionNames:a.interactionNames,latency:a.latency,elapsedMs:l(),testId:s,tagName:o});t()}},i=e=>{n(e)};fe(()=>{se();ae(i)});pe(P.LongTask,e=>{const n=e.toJSON(),r=Object(X.a)(n,["attribution"]);this.pushPerformanceAction(this.lastRouteInfo,P.LongTask,r);t()});pe(P.FID,e=>{n(e)});pe(P.UserInteraction,e=>{r(e)})}evictPerformanceAction(e){this.performanceActions=this.performanceActions.filter(t=>t.data.interactionId!==e)}__setFirstHiddenTime(e){this.firstHiddenTime=e}report(e){if("COMPONENT_RENDERED"!==e.type&&!this.resolved[e.payload.entry.id]&&!this.stopped){switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":{const{routeSpec:{route:t}}=e.payload;this.lastRouteInfo={route:t};break}case"ROUTE_FAILED":{const{entry:{pathname:t},routeSpec:n}=e.payload,{route:r}=n;this.lastRouteInfo={pathname:t,route:r};break}case"ROUTE_SUCCEEDED":{const{entry:{pathname:t},extra:{scenario:n},routeSpec:r}=e.payload,{route:i}=r;this.lastRouteInfo={pathname:t,route:i,scenario:n};break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.resolved[e.payload.entry.id]=!0}}}}class be extends S.b{report(e){if("ROUTE_STARTED"===e.type)try{const{route:t,globalNav:n}=e.payload.routeSpec;window.dispatchEvent(new CustomEvent("rhumb-route-started",{detail:{route:t,globalNav:n}}))}catch(e){}}}const ge=()=>{let e=1,t="* > *";for(;document.querySelector(t);){t+=" > *";e++}return e},me=24e4;class Oe extends H{constructor(e){super(e);this.resolved={};this.stopped=!1;this.candidate=!1;(Math.random()<.1||this.debug)&&(this.candidate=!0);if(!this.candidate||!performance.memory)return;const t=()=>{const e=Math.random()*me;this.timeout=setTimeout(()=>{if(!(this.stopped||l()>36e5)){this.timeout&&this.collectMemoryUsage();t()}},e)};t();this.flushingInterval=setInterval(()=>{this.stopped&&clearInterval(this.flushingInterval);this.flushPerformanceQueue()},2*me)}collectMemoryUsage(){const e=performance.memory.usedJSHeapSize;this.pushPerformanceAction(this.lastRouteInfo,"memory",{usedMemBytes:e,elapsedMs:l(),numOfDOMNodes:document.getElementsByTagName("*").length,depthOfDOMTree:ge()});U.b.histogram("used-bytes",{scenario:this.lastRouteInfo&&this.lastRouteInfo.scenario||"unknown"}).update(e)}report(e){if(this.candidate&&performance.memory&&"COMPONENT_RENDERED"!==e.type&&!this.resolved[e.payload.entry.id]&&!this.stopped){switch(e.type){case"ROUTE_TIMEOUT_EXPIRED":{const{routeSpec:{route:t}}=e.payload;this.lastRouteInfo={route:t};break}case"ROUTE_FAILED":{const{entry:{pathname:t},routeSpec:n}=e.payload,{route:r}=n;this.lastRouteInfo={pathname:t,route:r};break}case"ROUTE_SUCCEEDED":{const{entry:{pathname:t},extra:{scenario:n},routeSpec:r}=e.payload,{route:i}=r;this.lastRouteInfo={pathname:t,route:i,scenario:n};break}}switch(e.type){case"ROUTE_UNEXPECTED":this.stopped=!0;break;case"ROUTE_SUCCEEDED":case"ROUTE_TIMEOUT_EXPIRED":case"ROUTE_FAILED":this.resolved[e.payload.entry.id]=!0}}}}var ve=n("66eB");class je extends i.Component{constructor(...e){super(...e);this.state={}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){this.props.onError(e)}render(){return this.state.error?Object(r.jsx)(f,{name:"RHUMB_GLOBAL_ERROR_BOUNDARY"}):this.props.children}}var ye=je;class Ee extends S.b{report(e){switch(e.type){case"ROUTE_STARTED":q()&&U.c.counter("reloaded").increment()}}}function Te(e){const t=Object(i.useRef)();t.current||(t.current={value:e()});return t.current.value}const we=e=>e.startsWith("static-")?e.substr(7):"dev",Ie=e=>{0;return Object.keys(e).reduce((t,n)=>{const r=e[n],{success:i={default:[]},error:a=[],globalNav:s="default"}=r;t[n]={route:n,globalNav:s,success:i,error:[...a,...v.b]};return t},{})},Ce=e=>{const t=Object.keys(e),n=E(t);return O(r=>{const i=t.find(e=>n(e,r));return e[i]})},Ae=e=>{const t=({pathname:t,checks:n,expiredTimestamp:r})=>{const i=e(t);if(r)return{type:"TIMEOUT"};{const e=e=>n[e],t=Object.keys(i.success).filter(t=>i.success[t].length&&i.success[t].every(e));if(t.length)return{type:"SUCCESS",scenario:t[0]};if(i.error.some(e))return{type:"FAILURE"}}return{type:"PENDING"}};return Object(b.default)(t)},xe=(e,t)=>(n,r,i)=>{const{pathname:a}=r,s={entry:r,routeSpec:e(a)};i&&Object.assign(s,{extra:i});t({type:n,payload:s})},Se=(e,t)=>{const{entry:n,entry:{pathname:r,id:i,checks:a},entries:s}=e;switch(t.type){case"HISTORY_CHANGED":{const{pathname:a,timestamp:o}=t.payload;return a!==r?Object.assign({},e,{entry:{id:i+1,pathname:a,referrer:r,timestamp:o,checks:{},expiredTimestamp:null,dirty:!1},entries:[...s,n]}):e}case"MARKER_MOUNTED":{const{marker:{name:r,id:s},timestamp:o}=t.payload;0;return i===s?Object.assign({},e,{entry:Object.assign({},n,{dirty:!0,checks:Object.assign({},a,{[r]:{timestamp:o}})})}):e}case"MARKER_UNMOUNTED":{const{marker:{name:r,id:s}}=t.payload;if(i===s&&a[r]){const t=Object.assign({},a);delete t[r];return Object.assign({},e,{entry:Object.assign({},n,{checks:t})})}return e}case"TIMEDOUT":{const{timestamp:r}=t.payload;return Object.assign({},e,{entry:Object.assign({},n,{expiredTimestamp:r})})}default:return e}},_e=()=>{},Re=(e,t)=>{const n=Object(i.useRef)([]),r=Object(i.useRef)(ve.a),a=Object(i.useRef)(ve.a);Object(i.useEffect)(()=>{a.current=t});if(r.current===ve.a){const t=e.listen(({pathname:e})=>{const t=l();n.current.push({pathname:e,timestamp:t})});r.current=()=>{t();n.current.forEach(e=>a.current(e));n.current=[];r.current=()=>{}}}Object(i.useEffect)(()=>{r.current();return e.listen(a.current)},[e])},De=(e,t)=>{const{pathname:n}=e,r=Te(()=>t(n)),a=e=>{const t=e?e.route:"unknown-route";if(window.newrelic){window.newrelic.setCurrentRouteName(t);window.newrelic.setCustomAttribute("route",t)}};Object(i.useEffect)(()=>{if(window.newrelic){window.newrelic.setCustomAttribute("reactRhumbVersion",we(T.bender.depVersions["react-rhumb"]));window.newrelic.setCustomAttribute("reaganVersion","react-rhumb")}},[]);Object(i.useEffect)(()=>{a(r)},[r]);Re(e,({pathname:e})=>{a(t(e))})},Me=e=>{_e(e);const{history:t,history:{pathname:s},config:c,children:u,timingOffset:d,staticAppInfo:p,captureExceptions:f=!0}=e,h=Object(i.useMemo)(()=>Ie(c),[c]),b=Object(i.useMemo)(()=>({entry:{id:0,pathname:s,referrer:void 0,timestamp:0,checks:{},expiredTimestamp:null,dirty:!1},entries:[]}),[s]),[m,O]=Object(i.useReducer)(Se,b),j=Object(i.useMemo)(()=>Ce(h),[h]);De(t,j);Re(t,({timestamp:e,pathname:t})=>{o(()=>{O({type:"HISTORY_CHANGED",payload:{pathname:t,timestamp:e}})})});const y=Te(()=>{const e=n("1sEq"),t=[new(e.default?e.default:e)({timingOffset:d}),new z({timingOffset:d,staticAppInfo:p}),new J({staticAppInfo:p}),new K,new Z,new he({staticAppInfo:p}),new be,new Oe({staticAppInfo:p}),new Ee];return e=>t.forEach(t=>t.report(e))}),E=Object(i.useMemo)(()=>xe(j,y),[j,y]),T=(e,t)=>{E("GLOBAL_ERROR",m.entry,Object.assign({error:e},t))},w=Object(i.useMemo)(()=>Ae(j),[j]),I=Object(i.useRef)(void 0),C=g(m);Object(i.useEffect)(()=>{const e=()=>{const e=l();o(()=>{O({type:"TIMEDOUT",payload:{timestamp:e}})})},t=(e,t)=>{switch(e.type){case"SUCCESS":{const{scenario:n}=e;E("ROUTE_SUCCEEDED",t,{scenario:n});break}case"TIMEOUT":E("ROUTE_TIMEOUT_EXPIRED",t);break;case"FAILURE":E("ROUTE_FAILED",t);break;default:throw new Error("unexpected status type "+e.type)}};if(C&&m.entries!==C.entries){const{entry:e,entry:{checks:n},entries:r}=C,{entries:i}=m;clearTimeout(I.current);I.current=void 0;const[a,...s]=i.slice(r.length-i.length),{pathname:o,checks:c}=a;if(j(o)){c!==n&&E("CHECKS_CHANGED",a);const r=w(a);a!==e?"PENDING"!==r.type?t(r,a):E("ROUTE_ABANDONED",a):"PENDING"===r.type&&E("ROUTE_ABANDONED",a)}s.forEach(e=>{const{pathname:t}=e;if(j(t)){E("ROUTE_STARTED",e);E("ROUTE_ABANDONED",e)}else E("ROUTE_UNEXPECTED",e)})}if(!C||C.entries!==m.entries){const{entry:n,entry:{pathname:r,dirty:i}}=m;if(j(r)){E("ROUTE_STARTED",n);i&&E("CHECKS_CHANGED",n);const r=w(n);"PENDING"!==r.type?t(r,n):I.current=setTimeout(e,v.a)}else E("ROUTE_UNEXPECTED",n)}if(C&&C.entries===m.entries&&C.entry!==m.entry){const{entry:{checks:e}}=C,{entry:n,entry:{checks:r,pathname:i}}=m;if(j(i)){r!==e&&E("CHECKS_CHANGED",n);const i=w(n);if("PENDING"!==i.type){t(i,n);clearTimeout(I.current);I.current=void 0}}}},[C,m,j,w,E]);Object(i.useEffect)(()=>{U.c.timer("rhumb-provider-mounted").update(l());return()=>{clearTimeout(I.current);I.current=void 0}},[]);const{entry:{checks:A,id:x}}=m,S=Object(i.useMemo)(()=>Object.keys(A).filter(e=>A[e]),[A]),_=Object(i.useMemo)(()=>({id:x,dispatch:O,reportAction:y}),[x,y]),R=Object(i.useMemo)(()=>S.map(encodeURIComponent).join(","),[S]);return Object(r.jsxs)(a.Provider,{value:_,children:[f?Object(r.jsx)(ye,{onError:T,children:u||null}):u||null,Object(r.jsx)("div",{hidden:!0,"aria-hidden":"true","data-id-markers":R,children:S.map(e=>Object(r.jsx)("mark",{"data-id-marker":e},e))})]})};0;var Ne=Object(i.memo)(Me);n.d(t,"b",(function(){return Ne}));n.d(t,"a",(function(){return f}))},c1C1:function(e,t,n){"use strict";n.r(t);n.d(t,"generateUniqueClientTimestamp",(function(){return r}));const r=function e(t="default"){const n=Date.now(),{previousTimestamps:r}=e;if(r&&r[t]&&r[t]>=n){r[t]++;return r[t]}r[t]=n;return n};r.previousTimestamps={};r.reset=function(){this.previousTimestamps={}}},c2PF:function(e,t,n){"use strict";n.r(t);n.d(t,"getThreadByThreadId",(function(){return o}));var r=n("JGJA"),i=n("MBJP"),a=n("bco+");const s=(e,{threadId:t})=>t,o=Object(i.a)([a.getThreads,s],(e,t)=>Object(r.a)(t,e))},c44P:function(e,t,n){var r=n("34eX"),i="Expected a function";function a(e,t){var n;if("function"!=typeof t)throw new TypeError(i);e=r(e);return function(){--e>0&&(n=t.apply(this,arguments));e<=1&&(t=void 0);return n}}e.exports=a},cFiw:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Zulv"),i=n("okxY"),a=n("Ktcs");function s(e,t){let{role:n="dialog"}=e,s=Object(r.r)();s=e["aria-label"]?void 0:s;Object(a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){Object(i.b)(t.current);let e=setTimeout(()=>{if(document.activeElement===t.current){t.current.blur();Object(i.b)(t.current)}},500);return()=>{clearTimeout(e)}}},[t]);return{dialogProps:Object.assign({},Object(r.b)(e,{labelable:!0}),{role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||s}),titleProps:{id:s}}}},cKdz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("uOZ5"),i=n("kevw");const a=e=>Object(i.d)(e)===r.c||Object(i.d)(Object(i.c)(e))===r.c},cPs9:function(e,t,n){"use strict";var r=n("2Zef");const i="vid",a="utk",s="id";n.d(t,"a",(function(){return o}));const o=e=>{switch(e){case r.VID_SENDER:return i;case r.VISITOR_SENDER:return a;case r.BOT_SENDER:case r.AGENT_SENDER:case r.INTEGRATOR_SENDER:return s;case r.SYSTEM_SENDER:default:return null}}},cRNH:function(e,t,n){"use strict";n.r(t);n.d(t,"postConversationClosedEvent",(function(){return s}));var r=n("sZZm"),i=n("mlLV"),a=n("6WMu");const s=({thread:e})=>{Object(r.postExternalApiEvent)({eventType:i.b,payload:{conversation:Object(a.serializeThreadForExternalEvent)(e)}})}},cSJ2:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n("bSHG"),i=n("rCfO"),a=n("Smgi"),s=n("vDBy"),o=n("YSBR"),c=n("uVkz"),u=n("Y0S+");Object(i.default)(e=>/()/.test(e));const l=Object(i.default)((e,t,n=[])=>{const i=r.c.body;try{r.c.domain=window.location.hostname.indexOf("qa")>=0?"hubspotqa.com":"hubspot.com"}catch(e){}const l=r.c.createElement("div");if(e&&""!==e){i.innerHTML=e;const r=Object.assign({},t);r.transformers=[s.a,a.a,u.a,o.a,...n];try{const e=Object(c.a)(r).clean_node(i).cloneNode(!0);l.appendChild(e)}catch(e){console.error(e)}}return t===r.a.TEXTONLY?l.textContent||"":l.innerHTML});e&&e.exports&&(e.exports.default=Object.assign({},e.exports))}).call(this,n("861u")(e))},cXEp:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r="SET_THREADS_SUCCESS",i="UPDATE_THREAD_CURRENT_URL"},cjt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"h",(function(){return a}));n.d(t,"g",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"b",(function(){return l}));n.d(t,"f",(function(){return d}));var r=n("VVfI");const i=Object(r.a)("INITIALIZE_PUBSUB"),a=Object(r.a)("UPDATE_SUBSCRIPTIONS"),s=(Object(r.a)("RECONNECT"),Object(r.a)("RESUBSCRIBE")),o="PUBSUB_READY",c="PUBSUB_RECONNECTED",u="PUBSUB_RECONNECTING",l="PUBSUB_DISCONNECTED",d="PUBSUB_SUSPENDED"},cnVX:function(e,t,n){"use strict";n.r(t);var r=n("nSiU"),i=n("eCQl");const a=e=>!Object(r.getErrorTitle)(e)&&!Object(r.isSilent)(e);n.d(t,"reportErrorAction",(function(){return s}));const s=e=>{const t=Object(r.getError)(e)||new Error(e.type+" is being dispatched without an error");console.error(`Error report triggered by '${e.type} (Silent: ${!!Object(r.isSilent)(e)})`);const n=Object(r.isVisibleErrorAction)(e),s=n||!1!==n&&!Object(r.isSilent)(e);return Object(i.reportError)({error:t,tags:{actionType:e.type,isGenericErrorMessage:a(e),isVisibleToUser:s}})}},cu7Z:function(e,t,n){"use strict";var r=n("QgEn"),i=n("VfuR"),a=n.n(i),s=n("Ktcs"),o=n("0fuM"),c=n("6pce"),u=n("uax2"),l=n("9f1P");const d=e=>{const[t,n]=Object(s.useState)(!1);Object(s.useEffect)(()=>{const t=setTimeout(()=>n(!0),e);return()=>{clearTimeout(t)}},[e]);return t},p=n.n(l).a.div.withConfig({displayName:"WidgetPlaceholder__WidgetBodyDiv",componentId:"sc-1bp9j5s-0"})(["display:flex;flex-direction:column;height:100%;align-items:center;justify-content:center;"]),f=()=>{const e=d(200);return Object(r.jsx)(p,{"data-test-id":"chat-widget-wrapper",children:e&&Object(r.jsx)(u.a,{size:"sm"})})};f.displayName="WidgetPlaceholder";var h=f,b=n("19qb"),g=n("YQ4m"),m=n("npjq"),O=n("N4ZN"),v=n("WUj5"),j=n("20e/"),y=n("J+Fu"),E=n("uXUH"),T=n("uxYb"),w=n("xk3e"),I=n("zGIQ"),C=n("AQmo"),A=n("k09d"),x=n("wD2U"),S=n("CM4h"),_=n("RXbF"),R=n("sENq"),D=n("/Ihs"),M=n("Ux+X"),N=n("qAIk"),P=n("v2h7"),k=n("WTKJ"),L=n("IKdf");function B(){return e=>{e(Object(L.a)());e(Object(N.a)());e(Object(P.a)(k.b));e(Object(M.trackInteraction)("widget-interaction",{action:"view thread list"}))}}var F=n("/uLy");function H(){return(e,t)=>{Object(D.getKnowledgeBaseEnabled)(t())?e(Object(F.navigateToThreadListKnowledgebase)()):e(B())}}var U=n("Ryja");const G=e=>({chatHeadingConfig:Object(v.a)(e),chatHeadingResponders:Object(I.a)(e),coloring:Object(C.a)(e),customHeaderText:Object(D.getKnowledgeBaseEnabled)(e)?m.a.text("conversations-visitor-ui.knowledgeBaseContainer.headerText"):null,isThreadAssigned:Boolean(Object(w.getAssignedResponderInWidget)(e)),mobile:Object(x.getIsMobile)(e),officeHoursMessage:Object(y.getAvailabilityOfficeHoursWillReturnMessage)(e),showAvailabilityMessage:Object(j.a)(e,{thread:Object(A.a)(e)}),showBackButton:Object(_.a)(e),backButtonDisabled:Object(U.isCreatingThread)(e),typicalResponseTimeMessage:Object(E.a)(e),unseenThreadsCountExcludingCurrentThread:Object(S.a)(e),widgetLocation:Object(R.a)(e)}),q={fetchAgentResponderIfNecessary:()=>{},createNewThread:T.a,republishMessage:O.a,navigateToThreadList:H};var W=Object(b.connect)(G,q)(g.b),V=n("JerM"),z=n("slCD"),J=n("04om");const K=500,Y=e=>{let{in:t,children:n,direction:i}=e,a=Object(z.a)(e,["in","children","direction"]);return Object(r.jsx)(J.a,Object.assign({in:t,timeout:K,classNames:"fade-slide-transition-"+i,mountOnEnter:!0,unmountOnExit:!0,appear:!0},a,{children:n}))};Y.displayName="FadeSlideInTransition";Y.propTypes={children:a.a.node.isRequired,direction:a.a.oneOf(["bottom","top"]),in:a.a.bool.isRequired};Y.defaultProps={direction:"bottom"};var Q=Y,Z=n("j+Bh");n.d(t,"a",(function(){return X}));class X extends s.PureComponent{constructor(e){super(e);this.ThreadView=Object(V.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("threadview-utv"),n.e("CurrentView-ThreadView~messages-preview"),n.e("CurrentView-ThreadView")]).then(n.bind(null,"twxQ")));this.KnowledgeBaseContainer=Object(V.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-KnowledgeBaseContainer")]).then(n.bind(null,"X1ER")));this.ThreadListContainer=Object(V.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-ThreadListContainer")]).then(n.bind(null,"OxYs")))}renderView(){const{currentView:e}=this.props;if(!e)return null;switch(e){case o.c:return Object(r.jsx)(this.ThreadView,{});case o.a:return Object(r.jsx)(this.KnowledgeBaseContainer,{});case o.b:return Object(r.jsx)(this.ThreadListContainer,{});default:return Object(r.jsx)(h,{})}}renderContent(){const{closeWidget:e,browserWindowHeight:t,inline:n,currentView:i}=this.props;return Object(r.jsx)("div",{style:{height:"100%"},id:"current-view-component",children:Object(r.jsx)(W,{browserWindowHeight:t,closeWidget:e,inline:n,view:i,children:Object(r.jsx)(s.Suspense,{fallback:Object(r.jsx)(h,{}),children:this.renderView()})})},"widget")}render(){const{onOpenAnimationStarted:e,onCloseAnimationStarted:t,onOpenAnimationFinished:n,onCloseAnimationFinished:i,isOpen:a,mobile:s}=this.props;return Object(r.jsx)(Q,{disabled:s,duration:500,in:a,onEnter:e,onEntered:n,onExit:t,onExited:i,children:this.renderContent()})}}X.displayName="CurrentView";X.defaultProps={onAnimationsFinished:()=>{},onAnimationsStarted:()=>{}};X.propTypes={browserWindowHeight:a.a.number.isRequired,closeWidget:a.a.func.isRequired,currentView:c.a,inline:a.a.bool.isRequired,isOpen:a.a.bool,mobile:a.a.bool,onCloseAnimationFinished:a.a.func,onCloseAnimationStarted:a.a.func,onOpenAnimationFinished:a.a.func,onOpenAnimationStarted:a.a.func};t.b=Object(Z.a)(X)},"d+x8":function(e,t,n){"use strict";n.r(t);n.d(t,"buildThreadHistoryFromResponse",(function(){return i}));var r=n("+LtA");const i=e=>new r.a(e)},dAms:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"c",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));n.d(t,"f",(function(){return c}));const r=["entries"],i=["evict"],a=["idInvariant"],s=["idTransform"],o=["name"],c=["notSetValue"]},dEXw:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("MJM1");const i=({localId:e,threadId:t},n)=>Boolean(Object(r.a)([t,e],n))},dHfq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("threads",e)},dIRc:function(e,t,n){"use strict";var r=n("MZef"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.a);var o=n("ImcI"),c=n("uB3n"),u=n("qjq5"),l=n("dAms"),d=n("JoAZ"),p=n("Sbt9"),f=n("OPip");const h=Object(u.a)((e,t)=>{Object(d.a)(t);Object(f.a)(e,t);const n=Object(p.a)(e,t);return t.updateIn(l.a,e=>e.delete(n))});var b=n("eJ3n"),g=n("Y/B+"),m=n("0IK8"),O=n("SmHr"),v=n("A5f/"),j=n("Ut5p"),y=n("+tWo"),E=n("qQrL");const T=Object(c.a)({notSetValue:Object(r.a)({data:null}),idTransform:e=>e,idInvariant:g.messageKeyInvariant});t.a=Object(j.c)({[E.b.STARTED](e,t){const{messageKey:n,threadId:r,channel:i,message:a}=t.payload;return Object(b.a)(n,Object(o.a)(()=>Object(O.a)({threadId:r,channel:i,message:a})),e)},[E.b.SUCCEEDED](e,t){const{messageKey:n}=t.payload;return h(n,e)},[E.b.FAILED](e,t){const{messageKey:n,threadId:r,channel:i,message:a}=t.payload;return Object(b.a)(n,s(()=>Object(v.a)({threadId:r,channel:i,message:a})),e)},[y.b](e,t){const{message:n}=t.payload,r=Object(m.getId)(n);return h(r,e)}},T)},dIvY:function(e,t,n){"use strict";n.r(t);n.d(t,"handleStoreMessagesCookie",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=e=>Object(i.a)(r.y,e)},"dML/":function(e,t,n){"use strict";var r=n("DdHT"),i=n("0IK8"),a=n("iPDb");const s=e=>Object(a.a)(e).last();var o=n("BOwv");n.d(t,"a",(function(){return c}));const c=e=>{if(!e)return!1;const t=Object(r.a)(s,i.getTimestamp)(e);return Date.now()-t>=o.a}},dPcB:function(e,t,n){"use strict";var r=n("Rd7q"),i=n("0FzD"),a={ja:{[i.a.COMPANY]:e=>e+" 御中",[i.a.CUSTOMER]:e=>e+" 様"}};const s=new RegExp(/[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3040-\u309F]|[\u3005]|[\u3031-\u3032]|[\u3131-\uD79D]/),o=new RegExp(/[\u30A0-\u30FF]/);t.a=({name:e,firstName:t,lastName:n,email:i,titleType:c},u)=>{const l=t&&t.trim(),d=n&&n.trim(),p=e&&e.trim();let f;l||d?l&&!d?f=l:!l&&d&&(f=d):f=p||i||"";if(void 0===f){const e=s.test(d),t=s.test(l),n=o.test(d),r=o.test(l);f=e&&t||e&&r||n&&t||r&&n?`${d} ${l}`:`${l} ${d}`}if(c){const e=u&&u.locale||Object(r.a)(),t=a[e]&&a[e][c];t&&(f=t(f))}return f}},"e/Xz":function(e,t,n){"use strict";n.r(t);n.d(t,"removeTimeOnPageTriggerAction",(function(){return a}));var r=n("Ut5p"),i=n("VB2T");const a=Object(r.b)(i.b)},eCQl:function(e,t,n){"use strict";n.r(t);var r=n("mEYk"),i=n.n(r),a=n("MJM1");let s;!function(e){e.error="error";e.warning="warning";e.debug="debug";e.critical="critical";e.info="info"}(s||(s={}));const o=2e3,c=["number","description","line","column"],u=["graphQLErrors","networkError","error"],l=e=>{switch(typeof e){case"boolean":case"number":return e;case"string":{const t=e.length>o?"...":"";return`${e.substr(0,o)}${t}`}case"function":return"function() { /* Function removed */ }";case"object":return null===e?e:"/* Object, Error, or Array removed */";default:return}},d=e=>{if(!e)return null;const t=Object.keys(e).filter(e=>!c.includes(e));return t.length?t.reduce((t,n)=>{let r=e[n];u.includes(n)&&(r=JSON.stringify(r));const i=l(r);void 0!==i&&(t[n]=i);return t},{}):null};n.d(t,"reportError",(function(){return p}));const p=({error:e,fingerprint:t,tags:n={},componentData:r={},extra:o={},level:c=s.error,shouldIgnoreStatusZero:u=!0})=>{if((0===Object(a.a)(["networkError","status"],e)||0===Object(a.a)(["status"],e))&&u){console.error(`Error with: '${e.message}'`);return""}const l=Object.assign({componentDidCatch:"false"},n),p=d(e)||{},f=Object.assign({},l,{},p,{},o),h=window.newrelic;h&&"function"==typeof h.noticeError&&h.noticeError(e,f);i.a.captureException(e,{fingerprint:t,tags:l,extra:Object.assign({error:f,componentData:r},o),level:c});const b=i.a.lastEventId();console.error(`(Event Id: ${b})\nError reported with '${e.message}'`);f&&Object.keys(f).forEach(e=>{f[e]&&console.error(`Extra Data [${e}]: `,f[e])});return b}},eDjq:function(e,t,n){"use strict";n.r(t);n.d(t,"fetchSupplementalInitialMessagesSucceeded",(function(){return A}));n.d(t,"stageSupplementalInitialMessages",(function(){return S}));var r=n("k8Ub"),i=n("gGDi"),a=n("hSXG"),s=n("bWKF"),o=n("2Zef"),c=n("6d8N"),u=n("Mjj8"),l=n("tOKt"),d=n("c1C1"),p=n("Avso"),f=n("Ut5p"),h=n("A+sO"),b=n("+3Rj"),g=n("xZ3y"),m=n("xk3e"),O=n("E6wg"),v=n("tbpt"),j=n("081M"),y=n("0U0A"),E=n("wihT"),T=n("Hjp8"),w=n("CdQ/"),I=n("rf4d");const C=Object(f.b)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES),A=Object(f.b)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED),x=Object(f.b)(g.GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED,e=>({error:e}));function S(){return(e,t)=>{const n=t();if(Object(h.getIsWidgetInAwayMode)(n))return Promise.resolve();const f=Object(m.getAssignedResponderInWidget)(n),g=Object(p.getUserId)(f),S=Object(O.getSessionId)(n),_=Object(j.getHubspotUtk)();e(C());return Object(b.fetchSupplementalInitialMessages)({botId:g,sessionId:S,hubspotUtk:_}).then(n=>{const p=n.status!==u.a&&Array.isArray(n.data)?n.data:[];e(A());p.forEach(({message:n})=>{const u=[],p=Object(r.a)(n);p&&u.push(new c.a(p));const f=Object(l.buildInitialMessage)({id:n.id,clientType:n.clientType,sender:Object(a.a)({senderType:Object(s.b)(n.senderType)||o.BOT_SENDER,senderId:n.senderId}),status:Object.assign({},n.status),genericChannelId:I.d,attachments:u,text:Object(i.b)(n),richText:Object(i.a)(n),timestamp:Object(d.generateUniqueClientTimestamp)(),channelInstanceId:Object(y.getChannelInstanceId)(t()),senders:Object(E.a)(),recipients:Object(T.a)({value:Object(w.getMessagesUtk)()})});e(Object(v.stageMessageOnStubbedThread)(f))})}).catch(t=>{e(x(t))})}}},eEyY:function(e,t,n){"use strict";n.r(t);n.d(t,"getCurrentThreadId",(function(){return s}));var r=n("BnUr"),i=n("MBJP"),a=n("k09d");const s=Object(i.a)([a.a],r.getThreadId)},eF9A:function(e,t,n){"use strict";n.r(t);n.d(t,"isAssignmentUpdateMessage",(function(){return a}));var r=n("0IK8"),i=n("XF21");const a=e=>Object(r.getTopLevelType)(e)===i.a},"eH/d":function(e,t,n){"use strict";n.r(t);n.d(t,"hasChatMessageFromAgent",(function(){return s}));var r=n("C3IS"),i=n("/OK6"),a=n("iPDb");const s=e=>Object(a.a)(e).some(e=>Object(r.a)(e)&&Object(i.isFromAgent)(e))},eJ3n:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("qjq5"),i=n("dAms"),a=n("JoAZ"),s=n("neHy"),o=n("Oo4n"),c=n("OPip"),u=n("Sbt9"),l=n("x1JE");const d=Object(r.a)((e,t,n)=>{Object(a.a)(n);Object(s.a)(t);Object(c.a)(e,n);const r=Object(u.a)(e,n),d=e=>e.update(r,Object(l.getNotSetValue)(n),t);return Object(o.a)(n.updateIn(i.a,d))})},ePP0:function(e,t,n){"use strict";n.r(t);n.d(t,"hasOpenThread",(function(){return a}));var r=n("MBJP"),i=n("YGK9");const a=Object(r.a)([i.a],e=>e.size>0)},eSJp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("Gc2C"),i=n("BGhm"),a=n("MeE7");const s=e=>{const t=Object(a.getId)(e),n=Object(a.getType)(e);Object(r.a)(!!t,"Responder ID must be set in the key map");Object(i.a)(t);Object(r.a)(!!n,"Responder type must be set in the key map")}},eeeG:function(e,t,n){"use strict";n.r(t);n.d(t,"setMessage",(function(){return o}));var r=n("qjq5"),i=n("bYG+"),a=n("xCrP"),s=n("/He/");const o=Object(r.a)((e,t,n)=>Object(a.a)(s.h,Object(i.a)(e,t),n))},eg5p:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=0},esZR:function(e,t,n){"use strict";n.r(t);n.d(t,"stageInitialMessage",(function(){return v}));var r=n("2Zef"),i=n("v0wH"),a=n("hSXG"),s=n("tOKt"),o=n("c1C1"),c=n("Avso"),u=n("2kog"),l=n("jRRu"),d=n("tbpt"),p=n("Jcmd"),f=n("eDjq"),h=n("0U0A"),b=n("wihT"),g=n("Hjp8"),m=n("CdQ/"),O=n("rf4d");function v(){return(e,t)=>{const n=t(),v=Object(l.getIsBot)(n),j=Object(u.getInitialResponder)(n),y=Object(c.getUserId)(j),E=Object(o.generateUniqueClientTimestamp)(),T=Object(s.buildInitialMessage)({sender:Object(a.a)({senderType:v?r.BOT_SENDER:r.AGENT_SENDER,senderId:y}),status:{messageStatus:i.b,timestamp:E},genericChannelId:O.d,richText:Object(p.getFirstMessageText)(n),text:Object(p.getFirstMessageText)(n),timestamp:E,channelInstanceId:Object(h.getChannelInstanceId)(t()),senders:Object(b.a)(),recipients:Object(g.a)({value:Object(m.getMessagesUtk)()})});e(Object(d.stageMessageOnStubbedThread)(T));v&&e(Object(f.stageSupplementalInitialMessages)()).catch(e=>{setTimeout(()=>{throw e})})}}},fE9J:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));var r=n("Ktcs");const i={browserWindowHeight:1080,browserWindowWidth:1920},a=Object(r.createContext)(i)},fKJZ:function(e,t,n){"use strict";var r=n("VfuR"),i=n.n(r),a=n("mKxs");t.a=i.a.oneOfType([Object(a.a)("CompanyChatHeadingConfig"),Object(a.a)("OwnerChatHeadingConfig"),Object(a.a)("UsersAndTeamsChatHeadingConfig")])},fPyn:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("NRxt"),a=n("ubOH");const s=e=>{const t=Object(r.a)(["sendFailure"],e),n=t?Object(i.a)(t):null;return Object(a.a)(e).setIn(["sendFailure"],n)}},"fT+s":function(e,t,n){"use strict";n.r(t);var r=n("slCD"),i=n("Ut5p"),a=n("xZ3y"),s=n("wQJz"),o=n("QmIk"),c=n("qdbJ"),u=n("MBJP"),l=n("YGK9");const d=Object(u.a)([l.a],e=>e?e.first():void 0);var p=n("NQPJ"),f=n("nzmY"),h=n("E6wg"),b=n("mEYk"),g=n.n(b);n.d(t,"getVisitorThreadsSuccess",(function(){return O}));n.d(t,"getVisitorThreadsFailure",(function(){return v}));n.d(t,"fetchVisitorThreads",(function(){return j}));n.d(t,"navigateToMostRecentThread",(function(){return y}));const m=Object(i.b)(a.GET_VISITOR_THREADS_STARTED),O=Object(i.b)(a.GET_VISITOR_THREADS_SUCCESS,({threads:e})=>({threads:e.map(e=>{const{responder:t,threadId:n,threadPreview:i,channelDetails:a}=e,o=Object(r.a)(e,["responder","threadId","threadPreview","channelDetails"]),c=t?Object(s.a)(t):null;return Object(f.a)(Object.assign({responder:c,threadId:n,threadPreview:i,channelDetails:a},o))})})),v=Object(i.b)(a.GET_VISITOR_THREADS_FAILURE,e=>e);function j(){return(e,t)=>{e(m());const n=Object(h.getSessionId)(t()),r=Object(p.fetchVisitorThreads)({sessionId:n}).then(t=>{e(O({threads:t}))}).catch(t=>{e(v(t));g.a.captureException(t)});r.catch(e=>{setTimeout(()=>{throw e})});return r}}function y(){return(e,t)=>{const n=d(t());if(n){const{threadId:t,channel:r}=n;e(Object(o.a)({threadId:t,channel:r}))}else e(Object(c.loadStagedThread)())}}},fZy4:function(e,t,n){"use strict";n.r(t);n.d(t,"publishTypicalResponseTimeMessage",(function(){return b}));var r=n("Mx3c"),i=n("MfaD"),a=n("uXUH"),s=n("nS6h"),o=n("Ux+X"),c=n("BvOu"),u=n("v0wH"),l=n("rf4d"),d=n("wihT"),p=n("0U0A"),f=n("CdQ/"),h=n("Hjp8");const b=({channel:e,threadId:t})=>(n,b)=>{const g=r.SYSTEM,m=new i.a({id:Object(c.generateUuid)(),text:Object(a.a)(b()),sender:{"@type":g},status:{messageStatus:u.b},genericChannelId:l.d,channelInstanceId:Object(p.getChannelInstanceId)(b()),senders:Object(d.a)(),recipients:Object(h.a)({value:Object(f.getMessagesUtk)()})});n(Object(s.publishMessageToConversation)({channel:e,message:m,threadId:t}));n(Object(o.trackInteraction)("widget-interaction",{action:"view reply time"}))}},ffqu:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="STAGE_MESSAGE_ON_STUBBED_THREAD",i="RESET_STUBBED_THREAD"},fjpq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("VVfI");const i=Object(r.a)("FETCH_AGENT_RESPONDER")},fl6v:function(e,t,n){"use strict";n.r(t);n.d(t,"getResponders",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["responders"])},fogE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("BDi3");const i=({isVisibleToUser:e=!1,ignoreStatusCodes:t=[0],ignore:n=!1,error:i}={})=>{i&&t.some(e=>e===i.status)&&(n=!0);return Object(r.a)({silent:!0,isVisibleToUser:e,ignore:n})}},fwMr:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Blk5"),a=n("BvOu"),s=n("c1C1");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null},"TicketCreationFailureMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(a.generateUuid)(),timestamp:e.timestamp||Object(s.generateUniqueClientTimestamp)("ticketCreationFailure-timestamp")})).filterNot(e=>void 0===e))}}t.a=o},g4ag:function(e,t,n){"use strict";var r=n("TBI5"),i=n("qjq5");t.a=Object(i.a)(r.a)},g9p1:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("JGJA");const a=Object(i.a)("startOpen");var s=n("QnHA");n.d(t,"getWidgetStartOpen",(function(){return o}));const o=Object(r.a)([s.a],e=>a(e))},gBd5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("CdQ/"),i=n("py2G");const{bender:a}=n("gGhY");function s(e,t,n){n.query=Object.assign({[a.project]:a.depVersions[a.project],traceId:Object(r.getMessagesUtk)()},n.query);return new Promise((r,a)=>{e(t,Object.assign({},n)).then(Object(i.a)(r)).catch(a)})}},gGDi:function(e,t,n){"use strict";var r=n("MJM1");const i=["clientType"],a=["id"],s=["richText"],o=["sender"],c=["status"],u=["text"],l=["timestamp"];n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return p}));Object(r.a)(i),Object(r.a)(a);const d=Object(r.a)(s),p=(Object(r.a)(o),Object(r.a)(c),Object(r.a)(u));Object(r.a)(l)},gGhY:function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"conversations-visitor-ui":"static-1.17482",ably:"static-1.18","ably-hubspot-js":"static-1.435",atom:"static-1.748",autolinker:"static-3.11","browserslist-config-hubspot":"static-1.81","conversations-async-data":"static-2.2812","conversations-error-reporting":"static-1.4118","conversations-http":"static-1.373","conversations-infrastructure":"static-1.4179","conversations-internal-pub-sub":"static-1.10184","conversations-internal-schema":"static-1.8233","conversations-message-history":"static-1.5904","conversations-prop-types":"static-1.2830","conversations-skeleton-state":"static-1.2975","conversations-test-sdk":"static-1.6080","conversations-visibility-tools":"static-1.1390","conversations-visitor-experience-components":"static-1.10840","conversations-visitor-message-history":"static-1.9573",csstype:"static-1.8",cssUtils:"static-1.278","emoji-regex":"static-1.7","flux-actions":"static-1.187","hds-components":"static-1.511","hds-tokens":"static-1.156","head-dlb":"static-1.368",HeadJS:"static-2.366","help-widget-components":"static-1.6534",history:"static-3.10","hs-lodash":"static-4.9","hs-promise-utils":"static-1.209","hs-story-utils":"static-1.2012","hs-test-utils":"static-1.1953","hub-http-janus":"static-1.406","hub-http-rxjs":"static-1.378","hubspot-dlb":"static-1.504","hubspotter-http":"static-1.397",HubStyle:"static-2.5825",HubStyleTokens:"static-2.5515",I18n:"static-7.1025","i18n-data":"static-1.143",icons:"static-2.558",jasmine:"static-4.90","jasmine-immutable":"static-1.202","jasmine-runner":"static-1.506","moment-timezone":"static-5.17",msw:"static-1.39",PatternValidationJS:"static-1.393","permission-components":"static-1.600",quartz:"static-1.777","react-aria":"static-1.6","react-immutable-proptypes":"static-2.8","react-input-autosize":"static-2.17","react-rhumb":"static-1.9910","react-router-redux":"static-2.11","react-select-plus":"static-1.41","react-transition-group":"static-2.8","react-utils":"static-2.954","react-virtualized":"static-2.26","redux-mock-store":"static-1.8","redux-thunk":"static-2.11",reselect:"static-2.16",rxjs:"static-5.10",salesImages:"static-1.452",sanitize:"static-1.6","sanitize-text":"static-1.3479",sassPrefix:"static-1.83","signup-constants":"static-1.6541","signup-ui-lego-core":"static-1.8557","signup-ui-url-generator":"static-2.3176",StyleGuideUI:"static-3.364","testing-library":"static-1.76",transmute:"static-2.29","ui-addon-avatars":"static-2.4765","ui-fonts":"static-1.312","ui-images":"static-2.609",UIComponents:"static-3.2466",urlinator:"static-1.259","usage-tracker":"static-1.1699","usage-tracker-core":"static-1.1549","usage-tracker-public":"static-1.1510","viral-links-lib":"static-1.999","visitor-ui-component-library":"static-1.1527","visitor-ui-component-library-icons":"static-1.1336","webpack-env":"static-1.4",classnames:"static-2.10",enviro:"static-4.127","hub-http":"static-1.1109",immutable:"static-2.19","metrics-js":"static-1.3316",PortalIdParser:"static-2.120",raven:"static-3.26",react:"static-7.96","react-dom":"static-7.62","react-redux":"static-7.16",redux:"static-4.16","styled-components":"static-2.27","hs-promise-rejection-tracking":"static-1.142","raven-hubspot":"static-1.240","hoist-non-react-statics":"static-3.9","hubspot-url-utils":"static-1.169",moment:"static-3.11"},depPathPrefixes:{"conversations-visitor-ui":"/conversations-visitor-ui/static-1.17482",ably:"/ably/static-1.18","ably-hubspot-js":"/ably-hubspot-js/static-1.435",atom:"/atom/static-1.748",autolinker:"/autolinker/static-3.11","browserslist-config-hubspot":"/browserslist-config-hubspot/static-1.81","conversations-async-data":"/conversations-async-data/static-2.2812","conversations-error-reporting":"/conversations-error-reporting/static-1.4118","conversations-http":"/conversations-http/static-1.373","conversations-infrastructure":"/conversations-infrastructure/static-1.4179","conversations-internal-pub-sub":"/conversations-internal-pub-sub/static-1.10184","conversations-internal-schema":"/conversations-internal-schema/static-1.8233","conversations-message-history":"/conversations-message-history/static-1.5904","conversations-prop-types":"/conversations-prop-types/static-1.2830","conversations-skeleton-state":"/conversations-skeleton-state/static-1.2975","conversations-test-sdk":"/conversations-test-sdk/static-1.6080","conversations-visibility-tools":"/conversations-visibility-tools/static-1.1390","conversations-visitor-experience-components":"/conversations-visitor-experience-components/static-1.10840","conversations-visitor-message-history":"/conversations-visitor-message-history/static-1.9573",csstype:"/csstype/static-1.8",cssUtils:"/cssUtils/static-1.278","emoji-regex":"/emoji-regex/static-1.7","flux-actions":"/flux-actions/static-1.187","hds-components":"/hds-components/static-1.511","hds-tokens":"/hds-tokens/static-1.156","head-dlb":"/head-dlb/static-1.368",HeadJS:"/HeadJS/static-2.366","help-widget-components":"/help-widget-components/static-1.6534",history:"/history/static-3.10","hs-lodash":"/hs-lodash/static-4.9","hs-promise-utils":"/hs-promise-utils/static-1.209","hs-story-utils":"/hs-story-utils/static-1.2012","hs-test-utils":"/hs-test-utils/static-1.1953","hub-http-janus":"/hub-http-janus/static-1.406","hub-http-rxjs":"/hub-http-rxjs/static-1.378","hubspot-dlb":"/hubspot-dlb/static-1.504","hubspotter-http":"/hubspotter-http/static-1.397",HubStyle:"/HubStyle/static-2.5825",HubStyleTokens:"/HubStyleTokens/static-2.5515",I18n:"/I18n/static-7.1025","i18n-data":"/i18n-data/static-1.143",icons:"/icons/static-2.558",jasmine:"/jasmine/static-4.90","jasmine-immutable":"/jasmine-immutable/static-1.202","jasmine-runner":"/jasmine-runner/static-1.506","moment-timezone":"/moment-timezone/static-5.17",msw:"/msw/static-1.39",PatternValidationJS:"/PatternValidationJS/static-1.393","permission-components":"/permission-components/static-1.600",quartz:"/quartz/static-1.777","react-aria":"/react-aria/static-1.6","react-immutable-proptypes":"/react-immutable-proptypes/static-2.8","react-input-autosize":"/react-input-autosize/static-2.17","react-rhumb":"/react-rhumb/static-1.9910","react-router-redux":"/react-router-redux/static-2.11","react-select-plus":"/react-select-plus/static-1.41","react-transition-group":"/react-transition-group/static-2.8","react-utils":"/react-utils/static-2.954","react-virtualized":"/react-virtualized/static-2.26","redux-mock-store":"/redux-mock-store/static-1.8","redux-thunk":"/redux-thunk/static-2.11",reselect:"/reselect/static-2.16",rxjs:"/rxjs/static-5.10",salesImages:"/salesImages/static-1.452",sanitize:"/sanitize/static-1.6","sanitize-text":"/sanitize-text/static-1.3479",sassPrefix:"/sassPrefix/static-1.83","signup-constants":"/signup-constants/static-1.6541","signup-ui-lego-core":"/signup-ui-lego-core/static-1.8557","signup-ui-url-generator":"/signup-ui-url-generator/static-2.3176",StyleGuideUI:"/StyleGuideUI/static-3.364","testing-library":"/testing-library/static-1.76",transmute:"/transmute/static-2.29","ui-addon-avatars":"/ui-addon-avatars/static-2.4765","ui-fonts":"/ui-fonts/static-1.312","ui-images":"/ui-images/static-2.609",UIComponents:"/UIComponents/static-3.2466",urlinator:"/urlinator/static-1.259","usage-tracker":"/usage-tracker/static-1.1699","usage-tracker-core":"/usage-tracker-core/static-1.1549","usage-tracker-public":"/usage-tracker-public/static-1.1510","viral-links-lib":"/viral-links-lib/static-1.999","visitor-ui-component-library":"/visitor-ui-component-library/static-1.1527","visitor-ui-component-library-icons":"/visitor-ui-component-library-icons/static-1.1336","webpack-env":"/webpack-env/static-1.4",classnames:"/classnames/static-2.10",enviro:"/enviro/static-4.127","hub-http":"/hub-http/static-1.1109",immutable:"/immutable/static-2.19","metrics-js":"/metrics-js/static-1.3316",PortalIdParser:"/PortalIdParser/static-2.120",raven:"/raven/static-3.26",react:"/react/static-7.96","react-dom":"/react-dom/static-7.62","react-redux":"/react-redux/static-7.16",redux:"/redux/static-4.16","styled-components":"/styled-components/static-2.27","hs-promise-rejection-tracking":"/hs-promise-rejection-tracking/static-1.142","raven-hubspot":"/raven-hubspot/static-1.240","hoist-non-react-statics":"/hoist-non-react-statics/static-3.9","hubspot-url-utils":"/hubspot-url-utils/static-1.169",moment:"/moment/static-3.11"},project:"conversations-visitor-ui",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},gIOm:function(e,t,n){"use strict";var r=n("BnUr"),i=n("eg5p"),a=n("xZ3y"),s=n("DPiE"),o=n("l04f"),c=n("MEud"),u=n("JW3w"),l=n("6Y5w"),d=n("0IK8"),p=n("nf9S"),f=n("NpZo"),h=n("c2PF"),b=n("Qvwz");const g=({store:e,conversation:t,messageTimestamp:n})=>{e.dispatch(Object(s.markLastMessageReadByVisitor)({conversation:t,messageTimestamp:n}))},m=e=>t=>n=>{const s=e.getState(),m=Object(f.getSelectedThreadId)(s),O=Object(o.getIsOpen)(s);if(n.type===b.b){const{threadId:t}=n.payload,a=Object(h.getThreadByThreadId)(s,{threadId:t}),o=Object(r.getChannelName)(a);if(t&&a){const n=Object(f.getSelectedThreadId)(s);if(n!==i.a&&t!==i.a&&n!==t&&O){g({store:e,conversation:a});e.dispatch(Object(c.clearUnseenCountForChannel)({channel:o,threadId:t}))}}}if(n.type===a.RECEIVED_INCOMING_MESSAGE){const t=e.getState(),{channel:r,message:i,threadId:a}=n.payload;if(r&&Object(p.isConversationalMessage)(i)&&!Object(l.sentByVisitorClient)(i)&&Object(u.isActiveOnThread)(t,a)){const t=Object(h.getThreadByThreadId)(s,{threadId:a}),n=Object(d.getTimestamp)(i);g({store:e,conversation:t,messageTimestamp:n});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:a}))}}const v=Object(h.getThreadByThreadId)(s,{threadId:m});if(n.type===a.APP_IN_FOREGROUND&&O&&v){g({store:e,conversation:v});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:m}))}if(n.type===a.TOGGLE_OPEN){const{isOpened:t}=n.payload||{};if(t&&v){g({store:e,conversation:v});e.dispatch(Object(c.clearUnseenCountForChannel)({threadId:m}))}}return t(n)};t.a=m},gIaP:function(e,t,n){"use strict";n.r(t);n.d(t,"buildResolvedAttachmentsMapFromResponse",(function(){return s}));var r=n("6xui"),i=n("QYOI"),a=n("XkPn");const s=e=>Object(r.a)(Object(i.Map)(),(e,t={},n)=>{const r=parseInt(n,10),i=new a.a(Object.assign({},t,{fileId:r}));return e.set(r,i)},e)},gjm2:function(e,t,n){"use strict";var r=n("QYOI"),i=n("3Yas");i.j.implement(Array,(e,t,n)=>n.reduce(t,e));i.j.implement(Object,(e,t,n)=>{const r=Object.keys(n),i=r.length;let a=e;for(let e=0;en.reduce(t,e));t.a=i.j},goEE:function(e,t,n){"use strict";n.r(t);n.d(t,"getSortedMessagesByThreadId",(function(){return s}));var r=n("BnUr"),i=n("0IK8"),a=n("wL7V");const s=(e,t)=>e.filter(e=>Object(r.getThreadId)(e)===t).sort((e,t)=>{const n=Object(a.a)(e),r=Object(a.a)(t);return Object(i.getTimestamp)(n)-Object(i.getTimestamp)(r)})},gwVP:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},h027:function(e,t,n){"use strict";var r=n("qjq5");function i(e,t,n){return!(!e(n)||!t(n))}var a=Object(r.a)(i),s=n("V+nC"),o=n("/OK6"),c=n("mE3N"),u=n("kWFB"),l=n("iPDb");n.d(t,"a",(function(){return d}));const d=e=>{if(!e||!Object(u.hasMessages)(e))return!1;const t=Object(l.a)(e).findLast(a(e=>!Object(s.a)(e),o.isFromAgent));return!(!t||!Object(c.a)(t))}},hSXG:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("QYOI"),i=n("Gc2C"),a=n("2Zef"),s=n("cPs9");const o=Object.keys(a).map(e=>a[e]),c=({senderType:e,senderId:t})=>{Object(i.a)(o.includes(e),`Invalid sender type. Should be one of ${o.join(" | ")}. Received %s`,e);const n=Object(s.a)(e);return null===n?Object(r.Map)({"@type":e}):Object(r.Map)({"@type":e,[n]:t})}},hTKa:function(e,t,n){"use strict";var r=n("MBJP"),i=n("QYOI"),a=n("ZqFO");const s=3,o=e=>{const t=Object(a.g)(e);return t&&t.size>0?t.take(s):Object(i.List)()};var c=n("647q");n.d(t,"a",(function(){return u}));const u=Object(r.a)([c.getLatestWidgetData],o)},hbcS:function(e,t,n){"use strict";var r=n("OwpT"),i=n.n(r);const a=function(e){let t,n=!1;return function(...r){if(!n){t=e.apply(this,r);n=!0}return t}};t.a={get:a(()=>new i.a({stripPrefix:!1})),getTwitter:a(()=>new i.a({hashtag:"twitter",mention:"twitter",stripPrefix:!1}))}},hixb:function(e,t,n){"use strict";var r=n("QgEn"),i=n("QYOI"),a=n("VfuR"),s=n.n(a),o=n("Ktcs"),c=n("mKxs"),u=n("fKJZ"),l=n("X5NR"),d=n("npjq"),p=n("sl/w"),f=n("9f1P"),h=n.n(f),b=n("+KD7"),g=n("P7jJ"),m=n("54uz"),O=n("/mXs"),v=n("tUSi");const j=h.a.div.withConfig({displayName:"ThreadListHeader__HeaderWrapper",componentId:"ov5oo0-0"})(["align-items:center;display:flex;justify-content:space-between;width:100%;"]);class y extends o.PureComponent{render(){const{createNewThread:e,customHeaderText:t,showCreateThreadButton:n,textColor:i}=this.props;return Object(r.jsxs)(j,{children:[Object(r.jsx)("h4",{"aria-level":"1",style:{textAlign:"center",color:i},className:"m-bottom-0",id:v.b,"data-test-id":v.b,children:t||Object(r.jsx)(p.a,{message:"conversations-visitor-experience-components.visitorWidget.header.threadListTitle"})}),n?Object(r.jsx)(O.a,{onClick:e,"aria-label":d.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.createNewThread"),"data-test-id":"new-thread-button",use:"transparent-on-primary",className:"selenium-test-marker-new-thread-button",children:Object(r.jsx)(g.a,{icon:Object(r.jsx)(m.a,{})})}):null]})}}y.propTypes={createNewThread:s.a.func.isRequired,customHeaderText:s.a.node,showCreateThreadButton:s.a.bool.isRequired,textColor:s.a.string.isRequired};y.defaultProps={mobile:!1,textColor:b.r,customHeaderText:void 0};y.displayName="ThreadListHeader";var E=y,T=n("V/xu"),w=n("Avso"),I=n("0Me1"),C=n("t6nY"),A=n.n(C),x=n("LJpC"),S=n("HCGK");const _=Object(x.a)(S.b);var R=n("L82M"),D=n("F3hY"),M=n("GdKg");class N extends o.Component{renderAvatar(){const{avatar:e,size:t,responder:n,showStatus:i,style:a}=this.props,s={borderRadius:"50%"};let o="";if(i&&n){o=_(n)?R.a:R.b}const c=d.a.text("conversations-visitor-experience-components.default.agent"),u=d.a.text(o===R.b?"conversations-visitor-experience-components.default.avatarAvailable":o===R.a?"conversations-visitor-experience-components.default.avatarAway":"conversations-visitor-experience-components.default.avatar",{identifier:Object(w.getFriendlyOrFormalName)(n)||c}),l=Object(r.jsx)(M.a,{style:a,src:e,className:"chat-head-avatar",size:t,contentStyle:s,alt:u});return o?Object(r.jsx)(D.a,{status:o,size:t,children:l}):l}render(){const{onClick:e,className:t,disabled:n}=this.props,i=A()("chat-head",t,n&&"chat-head-disabled");return Object(r.jsx)("div",{className:i,onClick:e,children:this.renderAvatar()})}}N.propTypes={avatar:s.a.string,className:s.a.string,disabled:s.a.bool,onClick:s.a.func,responder:Object(c.a)("Responder"),showStatus:s.a.bool.isRequired,size:s.a.string.isRequired,style:s.a.object};N.defaultProps={avatar:null,away:!1,disabled:!1,online:!1,showStatus:!1,isVisitorWidget:!1,size:"md"};N.displayName="ChatHead";var P=N;const k=2,L=(e=b.r)=>({padding:k+"px",background:""+e,borderRadius:"50%",zIndex:0}),B=e=>{switch(e){case"sm":return-10;case"xs":return-15;default:return-10}},F=(e,t,n)=>Object.assign({},L(e),{zIndex:t,marginLeft:B(n)}),H=h.a.div.withConfig({displayName:"ChatHeadGroup__ChatHeadGroupWrapper",componentId:"sc-16mqjnm-0"})(["display:flex;flex:0 0 ","px;height:","px;justify-content:center;"],({size:e})=>e,({size:e})=>T.a[e]+2*k);function U(e,t,n){return e>=1?F(t,e,n):L(t)}function G({showStatusIndicator:e,responders:t,borderColor:n,size:i}){const a=t.map((t,a)=>{const s=Object(w.getAvatar)(t),o=Object(I.a)(t),c=Object(w.getIsBot)(t),u=Object(w.getUserId)(t),l=U(a,n,i),d="chat-head"+(a>=1?" chat-group-head-right":"");return Object(r.jsx)(P,{avatar:s,className:d,isBot:c,isVisitorWidget:!0,online:o,responder:t,showStatus:e,size:i,style:l},"chat-head."+u)});return Object(r.jsx)(H,{size:i,children:a})}G.propTypes={borderColor:s.a.string.isRequired,responders:s.a.instanceOf(i.List).isRequired,showStatusIndicator:s.a.bool.isRequired,size:s.a.string.isRequired};G.defaultProps={showStatusIndicator:!1,size:"sm"};G.displayName="ChatHeadGroup";var q=G,W=n("VADA");const V=2,z=h.a.div.withConfig({displayName:"CustomChatHeading__CustomUIAvatarWrapper",componentId:"sc-19cg5cx-0"})(["display:flex;flex:0 0 ","px;height:","px;justify-content:center;"],({size:e})=>e,({size:e})=>T.a[e]+2*V);class J extends o.Component{render(){const{borderColor:e,chatHeadingConfig:t,size:n}=this.props,i={padding:"2px",background:""+e,borderRadius:"50%"},a={borderRadius:"50%"},s=Object(W.a)(t),o=d.a.text("conversations-visitor-experience-components.default.agent"),c=d.a.text("conversations-visitor-experience-components.default.avatar",{identifier:t.get("customChatName")||o});return t?Object(r.jsx)(z,{children:Object(r.jsx)(M.a,{className:"chat-head-avatar",size:n,src:s,style:i,contentStyle:a,alt:c})}):null}}J.propTypes={borderColor:s.a.string.isRequired,chatHeadingConfig:s.a.oneOfType([Object(c.a)("CompanyChatHeadingConfig"),Object(c.a)("OwnerChatHeadingConfig"),Object(c.a)("UsersAndTeamsChatHeadingConfig")]),size:s.a.string.isRequired};J.defaultProps={size:"sm"};J.displayName="CustomChatHeading";var K=J;class Y extends o.PureComponent{render(){const{chatHeadingConfig:e,chatHeadingResponders:t,mobile:n,showStatusIndicator:i,borderColor:a,size:s}=this.props,o=t.size?q:K;return Object(r.jsx)(o,{chatHeadingConfig:e,mobile:n,responders:t,showStatusIndicator:i,borderColor:a,size:s})}}Y.propTypes={borderColor:s.a.string.isRequired,chatHeadingConfig:u.a.isRequired,chatHeadingResponders:s.a.instanceOf(i.List).isRequired,mobile:s.a.bool.isRequired,showStatusIndicator:s.a.bool.isRequired,size:s.a.string.isRequired};Y.defaultProps={mobile:!1,showStatusIndicator:!1,size:"sm"};Y.displayName="ChatHeadingAvatars";var Q=Y,Z=n("pHbL");const X=(e,t)=>e.map(e=>Object(w.getFriendlyOrFormalName)(e,t)||Object(w.getEmail)(e)).join(", "),$=(e,t,n)=>X(t,n)||Object(Z.a)(e);var ee=n("7719");const te=2,ne=h.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__Wrapper",componentId:"sc-1o3z31j-0"})(["display:inline-flex;align-items:center;flex:1 1 auto;height:","px;min-width:0;"],T.a[ee.f]+2*te),re=h.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__HeaderTextWrapper",componentId:"sc-1o3z31j-1"})(["display:flex;flex-direction:column;height:100%;width:100%;justify-content:center;min-width:0;"]),ie=h.a.h5.withConfig({displayName:"WidgetHeaderAvatarWrapper__HeaderName",componentId:"sc-1o3z31j-2"})(["line-height:20px;margin-bottom:0;font-size:",";"],e=>e.titleText&&e.titleText.length>20?"14px":null),ae=h.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__AvailabilityMessage",componentId:"sc-1o3z31j-3"})(["font-size:11px;line-height:initial;"]),se=h.a.div.withConfig({displayName:"WidgetHeaderAvatarWrapper__TruncateString",componentId:"sc-1o3z31j-4"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);class oe extends o.PureComponent{render(){const{availabilityMessage:e,chatHeadingConfig:t,chatHeadingResponders:n,locale:i,mobile:a,showAvailabilityMessage:s,showStatusIndicator:o,borderColor:c}=this.props,u=$(t,n,i)||d.a.text("conversations-visitor-experience-components.default.agent");return Object(r.jsxs)(ne,{children:[Object(r.jsx)("div",{"data-test-id":"chat-heading-avatar",children:Object(r.jsx)(Q,{chatHeadingConfig:t,chatHeadingResponders:n,mobile:a,showStatusIndicator:o,borderColor:c})}),Object(r.jsxs)(re,{className:"p-x-3",children:[Object(r.jsx)(ie,{titleText:u,"aria-level":"1",children:Object(r.jsx)(se,{children:Object(r.jsx)("span",{"data-test-id":"widget-header-name",className:"widget-header-name p-y-0",id:v.b,children:u})})}),s&&Object(r.jsx)(ae,{"data-test-type":"timestamp",id:v.a,children:e})]})]})}}oe.propTypes={availabilityMessage:s.a.string,borderColor:s.a.string.isRequired,chatHeadingConfig:u.a.isRequired,chatHeadingResponders:s.a.instanceOf(i.List).isRequired,locale:s.a.string,mobile:s.a.bool.isRequired,showAvailabilityMessage:s.a.bool.isRequired,showStatusIndicator:s.a.bool.isRequired};oe.defaultProps={mobile:!1,showStatusIndicator:!1};oe.displayName="WidgetHeaderAvatarWrapper";var ce=oe;class ue extends o.Component{render(){const{textColor:e}=this.props.coloring,{availabilityMessage:t,chatHeadingConfig:n,chatHeadingResponders:i,createNewThread:a,customHeaderText:s,mobile:c,showAvailabilityMessage:u,showCreateThreadButton:d,showStatusIndicator:p,showThreadListHeader:f}=this.props;return Object(r.jsx)(o.Fragment,{children:f?Object(r.jsx)(E,{createNewThread:a,customHeaderText:s,textColor:e,mobile:c,showCreateThreadButton:d}):Object(r.jsx)(l.a,{children:a=>Object(r.jsx)(ce,{availabilityMessage:t,borderColor:e,chatHeadingConfig:n,chatHeadingResponders:i,locale:a,mobile:c,showAvailabilityMessage:u,showStatusIndicator:p})})})}}ue.displayName="WidgetHeaderContent";ue.propTypes={availabilityMessage:s.a.string,chatHeadingConfig:u.a.isRequired,chatHeadingResponders:s.a.instanceOf(i.List).isRequired,coloring:Object(c.a)("ColoringRecord").isRequired,createNewThread:s.a.func.isRequired,customHeaderText:s.a.string,mobile:s.a.bool,showAvailabilityMessage:s.a.bool.isRequired,showCreateThreadButton:s.a.bool.isRequired,showStatusIndicator:s.a.bool.isRequired,showThreadListHeader:s.a.bool.isRequired};var le=ue,de=n("8Nq+");const pe=e=>Object(r.jsxs)("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{children:[Object(r.jsx)("defs",{children:Object(r.jsx)("path",{d:"M18.534.414c-.6-.57-1.55-.55-2.122.052l-10.005 10.5c-.019.02-.029.045-.043.068-.033.051-.063.103-.097.154-.055.083-.12.161-.158.251-.036.09-.044.187-.062.281-.018.094-.047.185-.047.28 0 .095.029.186.047.28.018.094.026.191.062.281.037.09.103.168.158.251.034.051.064.103.097.154.014.023.024.048.043.068l10.005 10.5c.295.31.69.466 1.087.466.372 0 .744-.138 1.035-.414.6-.571.624-1.521.052-2.12L9.566 12l9.02-9.466c.572-.599.548-1.549-.052-2.12",id:"left__a"})}),Object(r.jsx)("use",{xlinkHref:"#left__a",fillRule:"evenodd"})]}));pe.displayName="SVGLeft";var fe=pe;class he extends o.Component{render(){const{navigateToThreadList:e,unseenThreadsCountExcludingCurrentThread:t,disabled:n}=this.props,i=Boolean(t);return Object(r.jsx)(de.a,{className:"m-right-1",badgeLabel:t,showBadge:i,badgeDescription:d.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.badgeDescription"),children:Object(r.jsx)(O.a,{use:"transparent-on-primary",onClick:e,className:"selenium-test-marker-show-threads-button","data-test-id":"show-threads-button","aria-label":d.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.showThreadList",{unreadThreadCount:t}),disabled:n,children:Object(r.jsx)(g.a,{icon:Object(r.jsx)(fe,{}),size:"md"})})})}}he.propTypes={disabled:s.a.bool,navigateToThreadList:s.a.func.isRequired,unseenThreadsCountExcludingCurrentThread:s.a.number.isRequired};he.displayName="WidgetHeaderBackButton";var be=he,ge=n("JxxT"),me=n("bG8F");const Oe=h.a.div.withConfig({displayName:"WidgetHeaderStyleWrapper__FullHeightDiv",componentId:"sc-159hfo6-0"})(["align-items:center;color:",";display:flex;height:100%;padding:16px 16px;"],({textColor:e})=>e),ve=h.a.nav.withConfig({displayName:"WidgetHeaderStyleWrapper__BackgroundPanelContent",componentId:"sc-159hfo6-1"})(["height:","px;border-radius:",";"],ge.d,({mobile:e,inline:t})=>e||t?"0":"8px 8px 0 0");class je extends o.Component{render(){const{inline:e,mobile:t,coloring:{accentColor:n,textColor:i}}=this.props;return Object(r.jsx)(ve,{className:"widget-background-panel",style:Object(me.b)(n),role:"banner","aria-labelledby":v.b,"aria-describedby":v.a,mobile:t,inline:e,"data-test-id":"widget-background-panel",children:Object(r.jsx)(Oe,{textColor:i,"data-test-id":"widget-background-panel-div",children:this.props.children})})}}je.displayName="WidgetHeaderStyleWrapper";je.propTypes={children:s.a.node,coloring:Object(c.a)("ColoringRecord").isRequired,inline:s.a.bool.isRequired,mobile:s.a.bool};var ye=je,Ee=n("6pce"),Te=n("0fuM"),we=n("3MJX"),Ie=n("Fjoq"),Ce=n("57op"),Ae=n("iKGd"),xe=n("ET5w");const Se=h.a.div.withConfig({displayName:"WidgetHeader__Spacer",componentId:"zoyfgv-0"})(["flex-grow:1;"]);class _e extends o.Component{constructor(e){super(e);this.state={showAvailabilityMessage:!1}}getAvailabilityMessage(){return this.props.preview?this.props.previewResponseTimeText:this.props.typicalResponseTimeMessage||this.props.officeHoursMessage}getShowAvailabilityMessage(){const{showAvailabilityMessage:e,typicalResponseTimeMessage:t,officeHoursMessage:n,preview:r,previewResponseTimeText:i}=this.props;return!(!e||!t&&!n)||Boolean(r&&!!i)}render(){const{isThreadAssigned:e,chatHeadingConfig:t,chatHeadingResponders:n,customHeaderText:i,coloring:a,mobile:s,inline:o,onClose:c,showBackButton:u,view:l,backButtonDisabled:d}=this.props,p=Object(Ie.a)(a),h=Object(Ie.c)(a),b=[Object(Ce.t)(p)];h&&b.push(Object(Ce.v)(Ae.j));return Object(r.jsx)(f.ThemeProvider,{theme:Object(xe.a)(...b),children:Object(r.jsxs)(ye,{mobile:s,coloring:a,inline:o,children:[u&&Object(r.jsx)(be,{navigateToThreadList:this.props.navigateToThreadList,unseenThreadsCountExcludingCurrentThread:this.props.unseenThreadsCountExcludingCurrentThread,disabled:d}),Object(r.jsx)(le,{availabilityMessage:this.getAvailabilityMessage(),chatHeadingConfig:t,createNewThread:this.props.createNewThread,coloring:a,customHeaderText:i,showStatusIndicator:e,mobile:s,chatHeadingResponders:n,showAvailabilityMessage:this.getShowAvailabilityMessage(),showCreateThreadButton:l===Te.b,showThreadListHeader:l===Te.b||l===Te.a}),Object(r.jsx)(Se,{}),s&&!o&&Object(r.jsx)(O.a,{"data-test-id":"mobile-close-button",onClick:c,className:"m-left-2",use:"transparent-on-primary",children:Object(r.jsx)(g.a,{icon:Object(r.jsx)(we.a,{})})})]})})}}_e.propTypes={backButtonDisabled:s.a.bool,chatHeadingConfig:u.a.isRequired,chatHeadingResponders:s.a.instanceOf(i.List).isRequired,coloring:Object(c.a)("ColoringRecord").isRequired,createNewThread:s.a.func.isRequired,customHeaderText:s.a.string,inline:s.a.bool.isRequired,isThreadAssigned:s.a.bool,mobile:s.a.bool,navigateToThreadList:s.a.func,officeHoursMessage:s.a.string,onClose:s.a.func,preview:s.a.bool,previewResponseTimeText:s.a.string,showAvailabilityMessage:s.a.bool,showBackButton:s.a.bool,typicalResponseTimeMessage:s.a.string,unseenThreadsCountExcludingCurrentThread:s.a.number,view:Ee.a};_e.defaultProps={createNewThread:()=>{},inline:!1,isThreadAssigned:!1,onClose:()=>{},navigateToThreadList:()=>{},showBackButton:!1,showAvailabilityMessage:!1,unseenThreadsCountExcludingCurrentThread:0,view:Te.c};_e.displayName="WidgetHeader";t.a=_e},hj2G:function(e,t,n){"use strict";n.r(t);n.d(t,"gdprCookieConsentPrompt",(function(){return s}));var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX");const s=Object(r.a)(i.f,a.getGdprCookieConsentPrompt)},i6ES:function(e,t,n){"use strict";n.r(t);n.d(t,"isContactAssociationMessage",(function(){return a}));var r=n("0IK8"),i=n("LPbX");const a=e=>Object(r.getTopLevelType)(e)===i.a},i9zZ:function(e,t,n){"use strict";n.r(t);var r=n("JGJA"),i=n("Mjoc"),a=n("5ZU4"),s=n("7CK0"),o=e=>Promise.all([Object(a.a)(e),Object(s.a)(e)]),c=n("NLpb"),u=n("LZPL"),l=n.n(u);n.d(t,"initializeI18n",(function(){return f}));function d(){const e=window.navigator.languages?window.navigator.languages[0]:window.navigator.language;return e?e.toLowerCase():null}function p(){try{return!l.a.isProd()&&localStorage&&!localStorage.getItem("TRACK_I18N_FALLBACK_TRANSLATIONS")}catch(e){return!1}}const f=({data:e={}}={})=>{p()&&localStorage.setItem("TRACK_I18N_FALLBACK_TRANSLATIONS",!0);const t=Object(r.a)("language",e),n=t?{locale:t,langEnabled:!0}:{locale:d(),langEnabled:!0},a=Object(i.default)({manuallySetLocale:!0}),s=Promise.all([a.register(c.a),o(a)]);a.setLocale(n);return s}},iKGd:function(e,t,n){"use strict";n.d(t,"o",(function(){return r}));n.d(t,"m",(function(){return i}));n.d(t,"n",(function(){return a}));n.d(t,"h",(function(){return s}));n.d(t,"j",(function(){return o}));n.d(t,"a",(function(){return c}));n.d(t,"k",(function(){return u}));n.d(t,"l",(function(){return l}));n.d(t,"c",(function(){return d}));n.d(t,"g",(function(){return p}));n.d(t,"e",(function(){return f}));n.d(t,"d",(function(){return h}));n.d(t,"b",(function(){return b}));n.d(t,"f",(function(){return g}));n.d(t,"i",(function(){return m}));const r="#fff",i="#00bda5",a="#cbd6e2",s="#33475b",o="#33475b",c="#f2545b",u="#eaf0f6",l="#b0c1d4",d="#425b76",p="#7b98b6",f="#cbd6e2",h="#f5f8fa",b="#a2d28f",g="#fea58e",m="#ea90b1"},iPDb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=n("021p").d},iRE0:function(e,t,n){"use strict";n.d(t,"c",(function(){return a}));n.d(t,"b",(function(){return s}));n.d(t,"a",(function(){return o}));var r=n("g4ag"),i=n("/He/");Object(r.a)(i.e),Object(r.a)(i.f),Object(r.a)(i.g);const a=Object(r.a)(i.k),s=Object(r.a)(i.j),o=Object(r.a)(i.h);Object(r.a)(i.l),Object(r.a)(i.i),Object(r.a)(i.a),Object(r.a)(i.c)},iapW:function(e,t,n){"use strict";var r=n("MJM1");const i=["fileIds"],a=["fileUsageTypes"];n.d(t,"a",(function(){return s}));n.d(t,"b",(function(){return o}));const s=Object(r.a)(i),o=Object(r.a)(a)},iatO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ut5p"),i=n("I6ms");const a=Object(r.b)(i.c,e=>({visible:e}))},ipOz:function(e,t,n){var r=n("c44P");function i(e){return r(2,e)}e.exports=i},"j+9m":function(e,t,n){"use strict";n.r(t);n.d(t,"hasClientTriggers",(function(){return o}));var r=n("tTno"),i=n("GHgd"),a=n("Or3K"),s=n("2BFa");const o=e=>Object(r.scrollTriggerEnabled)(e)||Object(i.timeOnPageTriggerEnabled)(e)||Object(a.exitIntentTriggerEnabled)(e)||Object(s.gdprCookieConsentOnExitIntentEnabled)(e)},"j+Bh":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("QgEn"),i=n("fE9J");const a=e=>t=>Object(r.jsx)(i.a.Consumer,{children:({browserWindowHeight:n,browserWindowWidth:i})=>Object(r.jsx)(e,Object.assign({},t,{browserWindowHeight:n,browserWindowWidth:i}))})},jD0g:function(e,t,n){"use strict";n.r(t);n.d(t,"networkOnline",(function(){return a}));var r=n("Ut5p"),i=n("xZ3y");const a=Object(r.b)(i.NETWORK_ONLINE)},jFtF:function(e,t,n){"use strict";n.r(t);n.d(t,"messageCookieHandler",(function(){return l}));var r=n("1+S/"),i=n("am7t"),a=n("dIvY"),s=n("CdQ/"),o=n("FFIQ"),c=n("jTJg"),u=n("FSHJ");const l=({currentState:e,widgetData:t})=>{const n=Object(i.getIsCookieStorageAllowed)(e,t),l=Object(o.getHasMessagesCookieBeenSaved)(e),d=Object(c.getGlobalCookieOptOut)(e)===u.OPT_OUT_YES;if(l&&d)try{localStorage.removeItem(r.a.HUBLYTICS_EVENTS_53);localStorage.removeItem(r.a.HMPL)}catch(e){console.warn("Unable to access localStorage")}else n&&Object(a.handleStoreMessagesCookie)(Object(s.getMessagesUtk)())}},jRRu:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsBot",(function(){return o}));var r=n("MBJP"),i=n("ZqFO"),a=n("647q"),s=n("G0k2");const o=Object(r.a)(a.getLatestWidgetData,e=>Object(s.a)(Object(i.a)(e)))},jTJg:function(e,t,n){"use strict";n.r(t);n.d(t,"getGlobalCookieOptOut",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("globalCookieOptOut")},jvmB:function(e,t,n){"use strict";n.r(t);var r=n("Iqwl"),i=n("nS6h"),a=n("y9Cc"),s=n("Wtdz"),o=n("+2bk"),c=n("usEm"),u=n("mE3N"),l=n("kWFB"),d=n("iPDb");const p=e=>{if(!Object(l.hasMessages)(e))return!1;const t=Object(d.a)(e).findLast(c.isEmailCapturePromptMessage);return!(!t||!Object(u.a)(t))};var f=n("h027"),h=n("dML/");const b=e=>!Object(f.a)(e)&&!Object(o.a)(e)&&(!p(e)||Object(h.a)(e));var g=n("J4oD"),m=n("c2PF"),O=n("Ux+X"),v=n("xk3e"),j=n("t4ZQ"),y=n("a3lm"),E=n("2Zef"),T=n("BvOu"),w=n("v0wH"),I=n("0U0A"),C=n("wihT"),A=n("OxGf"),x=n("rf4d"),S=n("Hjp8"),_=n("CdQ/");n.d(t,"default",(function(){return R}));n.d(t,"publishEmailCapturePromptMessage",(function(){return R}));const R=({channel:e,threadId:t})=>(n,o)=>{const c=Object(m.getThreadByThreadId)(o(),{threadId:t}),u=Object(g.historyDataForThread)(o(),{thread:c}),l=Object(j.getAgentType)(Object(v.getAssignedResponderInWidget)(o()))===y.b;if(!b(u)||Object(s.a)(o())||l)return;const d=E.SYSTEM_SENDER,p=new r.a({id:Object(T.generateUuid)(),text:Object(a.getAskForEmailMessage)(o()),sender:{"@type":d},status:{messageStatus:w.b},channelInstanceId:Object(I.getChannelInstanceId)(o()),senders:Object(C.a)(),direction:A.b,genericChannelId:x.d,recipients:Object(S.a)({value:Object(_.getMessagesUtk)()})});n(Object(i.publishMessageToConversation)({channel:e,message:p,threadId:t}));n(Object(O.trackInteraction)("widget-interaction",{action:"view email capture"}))}},jxkM:function(e,t,n){"use strict";n.r(t);n.d(t,"toggleOpenAction",(function(){return u}));n.d(t,"toggleOpen",(function(){return l}));n.d(t,"clickedViralLink",(function(){return d}));var r=n("Ut5p"),i=n("l04f"),a=n("xZ3y"),s=n("Ux+X"),o=n("ZEd5"),c=n("Tvz2");const u=Object(r.b)(a.TOGGLE_OPEN,({isOpened:e,isUser:t})=>({isOpened:e,isUser:t||!1}));function l({isOpened:e,isUser:t}){return(n,r)=>{if(e!==Object(i.getIsOpen)(r())){const r=t?"user open widget":"system open widget";n(Object(s.trackInteraction)("widget-interaction",{action:e?r:"close widget"}));n(u({isOpened:e,isUser:t}));Object(o.handleOpenChange)(e,t);e||Object(c.a)()}}}const d=Object(r.b)(a.CLICK_VIRAL_LINK)},k09d:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("MBJP"),i=n("bco+"),a=n("NpZo"),s=n("eg5p"),o=n("Pkdb");const c=Object(r.a)([i.getThreads,a.getSelectedThreadId,o.a],(e,t,n)=>t===s.a?n:e&&e.get(t)||null)},k8Ub:function(e,t,n){"use strict";var r=n("JGJA"),i=n("Zui/"),a=n("9F2+"),s=n("MJM1");const o=["allowMultiSelect"],c=["allowUserInput"],u=["quickReplies"],l=Object(s.a)(o),d=Object(s.a)(c),p=Object(s.a)(u);n.d(t,"a",(function(){return h}));n.d(t,"b",(function(){return b}));n.d(t,"c",(function(){return g}));n.d(t,"d",(function(){return m}));const f=e=>{const t=Object(a.a)(e);if(!t)return;return t.find(e=>Object(r.a)("@type",e)===i.i)},h=e=>f(e),b=e=>{const t=f(e);return l(t)},g=e=>{const t=f(e);return d(t)},m=e=>{const t=f(e);return p(t)}},kMhZ:function(e,t,n){"use strict";var r=n("Ut5p"),i=n("o3Zl"),a=n("xZ3y"),s=n("j+9m"),o=n("ZqFO"),c=n("JGJA");const u=Object(c.a)("popOpenWelcomeMessage"),l=Object(c.a)("popOpenWidget"),d=!0;t.a=Object(r.c)({[i.a](e,t){const{visible:n}=t.payload;return n},[a.GET_WIDGET_DATA_SUCCEEDED](e,{payload:t}){const n=Object(s.hasClientTriggers)(t),r=Object(o.f)(t),i=u(r);return!(!l(r)||!n)||(!i||!n)&&d}},d)},kNma:function(e,t,n){"use strict";var r=n("QYOI"),i=n("t+8h"),a=n("9Mwj"),s=n("ubOH");const o=Object(r.Record)({"@type":i.a,attachments:Object(r.List)(),clientType:null,id:null,messageDeletedStatus:a.a,richText:"",sender:Object(r.Map)(),status:Object(s.a)(),text:"",timestamp:null,threadId:null,channelInstanceId:null,genericChannelId:null,recipients:Object(r.List)(),senders:Object(r.List)(),direction:"",channelId:null,flowId:0,objectId:0,objectTypeId:""},"WorkflowGeneratedUserMessage");t.a=o},kP7l:function(e,t,n){"use strict";n.r(t);var r=n("MD34"),i=n("DrqF"),a=n("mc4r");const s=e=>"function"==typeof e,o=e=>"object"==typeof e&&!Array.isArray(e),c=e=>o(e)&&Object(a.a)(e.SUCCEEDED)&&Object(a.a)(e.STARTED)&&Object(a.a)(e.FAILED),u=({actionTypes:e,failureMetaActionCreator:t,successMetaActionCreator:n,toRecordFn:i})=>(a,s)=>o=>{const{STARTED:c,SUCCEEDED:u,FAILED:l}=e;o({type:c,payload:{requestArgs:s}});Object(r.a)(a,e=>{const t={requestArgs:s,data:i(e)};o({type:u,payload:t,meta:n(t)})},e=>{const n={requestArgs:s,error:e};o({type:l,payload:n,meta:t(n)})})},l=({actionTypes:e,requestFn:t,toRecordFn:n,failureMetaActionCreator:r=(()=>({})),successMetaActionCreator:a=(()=>({}))})=>{Object(i.a)(c(e),'createAsyncAction expected actionTypes to be an Object containing valid type strings for keys: "FAILED", "STARTED", and "SUCCEEDED". Got: '+e);Object(i.a)(s(t),`createAsyncAction Expected requestFn to be a Function. Got: "${t}"`);Object(i.a)(s(n),`createAsyncAction expected toRecordFn to be a Function. Got: "${n}"`);const l=u({actionTypes:e,failureMetaActionCreator:r,successMetaActionCreator:a,toRecordFn:n}),d=e=>{Object(i.a)(!e||o(e),"requestArgs must be an Object. Received "+typeof e);return l(t(e),e)};d.asyncActionDispatcher=l;return d};var d=n("BDi3");const p=({titleText:e,message:t,ignore:n=!1,ignoreStatusCodes:r=[],silenceErrorReportingCodes:i=[0],silenceErrorReporting:a=!1,error:s})=>{if(n||s&&r.some(e=>e===s.status))return Object(d.a)({ignore:!0});s&&i.some(e=>e===s.status)&&(a=!0);return Object(d.a)({titleText:e,message:t,silenceErrorReporting:a})};var f=n("wQJz"),h=n("nDpY"),b=n.n(h),g=n("VYoM");function m({senderId:e,agentType:t,sessionId:n,threadId:r}){const i=b.a.get();return g.a.get("livechat-public/v1/responder/"+e,{query:{agentType:t,portalId:i,sessionId:n,threadId:r}})}var O=n("fjpq");n.d(t,"fetchAgentResponder",(function(){return v}));const v=l({actionTypes:O.a,requestFn:m,toRecordFn:f.a,failureMetaActionCreator:p})},kTjR:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("xrOf"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),filteredChangeInfo:Object(r.Map)()},"FilteredChangeMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("FilteredChangeMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},kWFB:function(e,t,n){"use strict";n.r(t);n.d(t,"hasMessages",(function(){return s}));var r=n("DdHT"),i=n("Hnia"),a=n("021p");const s=e=>{Object(i.threadHistoryInvariant)(e);return Object(r.a)(a.d,e=>!!(e&&e.size>0))(e)}},kZvQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("JGJA"),a=n("OmJX");const s=Object(r.a)(a.a,Object(i.a)("customEmailCaptureDelay"))},kcmb:function(e,t,n){"use strict";n.r(t);n.d(t,"navigateToInitialView",(function(){return c}));var r=n("ePP0"),i=n("fT+s"),a=n("/Ihs"),s=n("qdbJ"),o=n("/uLy");function c(){return(e,t)=>{const n=Object(a.getKnowledgeBaseEnabled)(t());Object(r.hasOpenThread)(t())?e(Object(i.navigateToMostRecentThread)()):e(n?Object(o.navigateToThreadListKnowledgebase)():Object(s.loadStagedThread)())}}},kdZJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="READ_THREAD"},keKC:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("iatO"),i=n("647q"),a=n("2BFa"),s=n("akwH"),o=n("Or3K"),c=n("ktW+"),u=n("jxkM"),l=n("L0zh"),d=n("wD2U"),p=n("g9p1"),f=n("PBVa"),h=n("QgQx"),b=n("wrz1");const g=()=>(e,t)=>{Object(s.a)();const n=t(),g=Object(i.getLatestWidgetData)(n),m=!Object(f.shouldOverrideTrigger)(Object(p.getWidgetStartOpen)(n));Object(a.gdprCookieConsentOnExitIntentEnabled)(n,g)&&e(Object(r.a)(!0));Object(b.a)(t())||(Object(o.exitIntentTriggerEnabled)(g)&&Object(c.getPopOpenWidget)(n)&&!Object(d.getIsMobile)(n)&&m?e(Object(u.toggleOpen)({isOpened:!0})):Object(o.exitIntentTriggerEnabled)(g)&&!Object(h.getShouldHideWelcomeMessage)(n)&&e(Object(l.toggleInitialMessageBubble)(!0)))}},kevw:function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"c",(function(){return s}));n.d(t,"d",(function(){return o}));n.d(t,"a",(function(){return c}));var r=n("MJM1"),i=n("3HLt");const a=Object(r.a)(i.b),s=Object(r.a)(i.c),o=(Object(r.a)(i.d),Object(r.a)(i.e)),c=(Object(r.a)(i.f),Object(r.a)(i.a));Object(r.a)(i.g)},kfJr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="hubspot"},kg2E:function(e,t,n){"use strict";var r=n("QYOI"),i=n("4vna"),a=n("DmNG"),s=n("Hnb1");const o=new r.Record({displayOnScrollPercentage:new i.a,displayOnTimeDelay:new a.a,displayOnExitIntent:new s.a},"ClientTriggers");t.a=o},kkqp:function(e,t,n){var r;function a(){var e,t;t=arguments[0]||{};this.config={};this.config.elements=t.elements?t.elements:[];this.config.attributes=t.attributes?t.attributes:{};this.config.attributes[a.ALL]=this.config.attributes[a.ALL]?this.config.attributes[a.ALL]:[];this.config.allow_comments=!!t.allow_comments&&t.allow_comments;this.allowed_elements={};this.config.protocols=t.protocols?t.protocols:{};this.config.add_attributes=t.add_attributes?t.add_attributes:{};this.dom=t.dom?t.dom:document;for(e=0;e0;)this.current_element.removeChild(this.current_element.firstChild);i.appendChild(this.current_element)}if(!this.config.remove_all_contents&&!this.config.remove_element_contents[o])for(t=0;ts[e]||null;var c=n("TWJS");n.d(t,"a",(function(){return l}));const u=Object.keys(i),l=({senderType:e=null,senderId:t=null,senderField:n=null,deliveryIdentifier:i=null})=>{Object(r.a)(null===e||u.includes(e),`Invalid sender type. Should be one of ${u.join(" | ")}. Received %s`,e);const s=null===e?null:o(e);return Object(c.a)({actorId:s&&s!==a.c&&t?`${s}-${t}`:void 0,senderField:n,deliveryIdentifier:i})}},"ktW+":function(e,t,n){"use strict";n.r(t);n.d(t,"getPopOpenWidget",(function(){return s}));var r=n("MBJP"),i=n("VvTX"),a=n("OmJX");const s=Object(r.a)(a.a,(e={})=>Object(i.getPopOpenWidget)(e))},l04f:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsOpen",(function(){return s}));var r=n("MBJP"),i=n("MJM1"),a=n("QnHA");const s=Object(r.a)([a.a],Object(i.a)(["open"]))},l0Ga:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="EMAIL_CAPTURE_RESPONSE"},l7FR:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"d",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"f",(function(){return o}));n.d(t,"c",(function(){return c}));const r="A",i="B",a="I",s="S",o="V",c="E"},lEMs:function(e,t,n){"use strict";n.r(t);n.d(t,"getTypingTimeoutIdForAgentInThread",(function(){return i}));var r=n("MJM1");const i=({threadId:e,senderId:t,typingStates:n})=>Object(r.a)([e,t],n)},lEkO:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("bco+"),a=n("2gT5");const s=Object(r.a)([i.getThreads],e=>{if(e)return e.toList().filter(e=>Object(a.isPersistedThread)(e)).sortBy(e=>-e.latestMessageTimestamp)})},lTIY:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("QJvi"),i=n("scKg");function a(e,t){Object(r.a)(e);Object(i.a)(t);switch(e){case 0:return function(){return t(...arguments)};case 1:return function(e){return t(...arguments)};case 2:return function(e,n){return t(...arguments)};case 3:return function(e,n,r){return t(...arguments)};case 4:return function(e,n,r,i){return t(...arguments)};case 5:return function(e,n,r,i,a){return t(...arguments)};case 6:return function(e,n,r,i,a,s){return t(...arguments)};case 7:return function(e,n,r,i,a,s,o){return t(...arguments)};case 8:return function(e,n,r,i,a,s,o,c){return t(...arguments)};case 9:return function(e,n,r,i,a,s,o,c,u){return t(...arguments)};default:return t}}},la86:function(e,t,n){"use strict";n.r(t);n.d(t,"onThreadCreatedAndNetworkOnline",(function(){return a}));var r=n("Ut5p"),i=n("xZ3y");const a=Object(r.b)(i.THREAD_CREATED_AND_NETWORK_ONLINE)},lkO4:function(e,t,n){"use strict";n.r(t);var r=n("npjq");function i({customResponseQuantity:e,customResponseUnit:t}){return r.a.text("conversations-internal-schema.typicalResponseTime.customResponses."+t,{count:e})}function a({standardResponse:e}){return r.a.text("conversations-internal-schema.typicalResponseTime.standardResponses."+e)}n.d(t,"makeTypicalResponseTimeText",(function(){return s}));function s({typicalResponseTime:e}={}){if(!e)return;const{usingCustomResponse:t,standardResponse:n,customResponseQuantity:r,customResponseUnit:s}=e;return t&&!r?"":t?i({customResponseQuantity:r,customResponseUnit:s}):a({standardResponse:n})}},m2RC:function(e,t,n){"use strict";n.r(t);n.d(t,"getIsPortal53Prod",(function(){return s}));var r=n("nDpY"),i=n.n(r),a=n("xXtf");const s=()=>i.a.get()===a.a},mE3N:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("0IK8"),i=n("BOwv");const a=e=>Date.now()-Object(r.getTimestamp)(e){l.a.Info.then(()=>{document.title=l.a.text(e,t)})};function p(e=window){const t=e.document,n=["","webkit","moz","ms","o"];for(let e=0;e{e({isVisible:!t})}}function m(e){const t=p();if(t){const n=b(t);document.addEventListener(n,g(e))}else{window.addEventListener("focus",g(e));window.addEventListener("blur",g(e))}}function O(e){const t=p();if(t){const n=b(t);document.removeEventListener(n,g(e))}else{window.removeEventListener("focus",g(e));window.removeEventListener("blur",g(e))}}var v=n("G0k2"),j=n("Gi7k"),y=n.n(j),E=n("6Jpi"),T=n("n6ol"),w=n("Lu5y"),I=n("PwgP"),C=n("19qb"),A=n("g9p1"),x=n("QDdj"),S=n("dHfq"),_=n("bhLI"),R=n("mKxs"),D=n("Pda3");const M=({startOpen:e,widgetDataAsyncData:t,threadsAsyncData:n})=>{const i=[t];e&&i.push(n);const a=i.some(e=>Object(D.isFailed)(e)),s=i.every(e=>Object(D.isSucceeded)(e));return a?Object(r.jsx)(_.a,{name:"VISITOR_ERROR"}):s?Object(r.jsx)(_.a,{name:"VISITOR_SUCCESS"}):null};M.propTypes={startOpen:a.a.bool,threadsAsyncData:Object(R.a)("AsyncData").isRequired,widgetDataAsyncData:Object(R.a)("AsyncData").isRequired};M.displayName="Checker";var N=M;const P=e=>({startOpen:Object(A.getWidgetStartOpen)(e),threadsAsyncData:Object(S.a)(e),widgetDataAsyncData:Object(x.a)(e)});var k=Object(C.connect)(P)(N),L=n("Jtfe"),B=n("RIYo"),F=n("P5YW");const H=e=>Object(F.a)(T.k,e),U=e=>Object(F.a)(T.r,e),G=e=>Object(F.a)(T.j,e);var q=n("fE9J"),W=n("081M"),V=n("0c9j");const z={[E.a]:Object(o.css)(["padding-left:16px;padding-right:0;left:0;right:inherit;"]),[E.b]:Object(o.css)(["padding-left:0;padding-right:16px;left:inherit;right:0;"])},J=c.a.div.withConfig({displayName:"Application__WidgetAppContainer",componentId:"sc-1f2l0a1-0"})(["&.inline{height:100%;width:100%;padding:0;}",""],({widgetLocation:e})=>z[e]);class K extends s.Component{constructor(e){super(e);this.handleI18nLabels=()=>{G({"conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget":l.a.text("conversations-visitor-ui.visitorExperienceAriaLabels.chatWidget"),"conversations-visitor-experience-components.visitorExperienceAriaLabels.drag":l.a.text("conversations-visitor-experience-components.visitorExperienceAriaLabels.drag")})};this.handleDragover=this.handleDragover.bind(this);this.handleDrop=this.handleDrop.bind(this);this.registerDragDropHandlers=this.registerDragDropHandlers.bind(this);this.unregisterDragDropHandlers=this.unregisterDragDropHandlers.bind(this);this.handleVisibilityChange=this.handleVisibilityChange.bind(this);this.registerContainerRef=this.registerContainerRef.bind(this);this.getIframeDimensions=this.getIframeDimensions.bind(this);this.onIframeResize=this.onIframeResize.bind(this);this.onOpenUpdate=this.onOpenUpdate.bind(this);this.requestWidget=this.requestWidget.bind(this);this.onBrowserWindowResize=this.onBrowserWindowResize.bind(this);this.onScrollPercentageChange=this.onScrollPercentageChange.bind(this);this.onExitIntent=this.onExitIntent.bind(this);this.receiveMessage=this.receiveMessage.bind(this);this.renderContent=this.renderContent.bind(this);this.openToNewThread=this.openToNewThread.bind(this);this.state={browserWindowHeight:q.b.browserWindowHeight,browserWindowWidth:q.b.browserWindowWidth};this.requestWidget()}componentDidMount(){window.addEventListener("message",this.receiveMessage,!1);this.registerDragDropHandlers();this.onIframeResize();this.handleI18nLabels();d("conversations-visitor-ui.htmlTitle");h()&&this.props.setWindowVisible(!1);m(this.handleVisibilityChange);window.newrelic&&window.newrelic.setCustomAttribute&&window.newrelic.setCustomAttribute("isInlineEmbeddedWidget",this.props.inline)}componentWillUnmount(){window.removeEventListener("message",this.receiveMessage);this.unregisterDragDropHandlers();O(this.handleVisibilityChange)}handleDragover(e){e.preventDefault()}handleDrop(e){e.preventDefault()}registerDragDropHandlers(){window.addEventListener("dragover",this.handleDragover);window.addEventListener("drop",this.handleDrop)}unregisterDragDropHandlers(){window.removeEventListener("dragover",this.handleDragover);window.removeEventListener("drop",this.handleDrop)}handleVisibilityChange({isVisible:e}){this.props.setWindowVisible(e)}registerContainerRef(e){this.containerRef=e?Object(u.findDOMNode)(e):null}getIframeDimensions(){const e=this.containerRef?this.containerRef.getBoundingClientRect():{},{width:t,height:n}=e;return{width:t,height:n}}onIframeResize(e){H(e||this.getIframeDimensions())}onOpenUpdate(e){this.props.toggleOpen({isOpened:e,isUser:!0})}requestWidget(){U()}onBrowserWindowResize(e){this.setState({browserWindowHeight:e.height,browserWindowWidth:e.width})}onScrollPercentageChange(e){this.props.handleScrollPercentageChange({scrollPercentage:e.scrollPercentage})}onExitIntent(){this.props.executeExitIntentTrigger()}onTrackApiUsage(e){Object(B.a)(e.eventName,e.properties)}onWidgetDragged(e){this.props.trackInteraction("dragged-widget",e)}openToNewThread(){this.props.isViewingStubbedThread||this.props.loadStagedThread()}handleReceiveWidgetData(e){y.a.setExtraContext({bot:Object(v.a)(e.sendFrom[0])});const{handleReceiveWidgetData:t,visitorIdentity:n}=this.props;n.setIsPrivateWidgetLoad(e.privateLoad);t({data:e,isFirstVisitorSession:n.getIsFirstVisitorSession()})}receiveMessage({data:e,origin:t}){if(t!==Object(V.getWindowUrl)().origin&&t!==window.origin)return;let n=null;try{n=JSON.parse(e)}catch(e){return}const{type:r=null,data:i=null}=n;switch(r){case T.n:window.newrelic&&window.newrelic.addPageAction&&i.perfAttributes&&window.newrelic.addPageAction("embedScriptPerfAttributes",i.perfAttributes);break;case T.C:this.handleReceiveWidgetData(i);break;case T.i:Object(W.setHubspotUtk)(i.utk);break;case T.h:this.props.onGlobalCookieOptOut(i.globalCookieOptOut);break;case T.g:this.props.updateIsFirstVisitorSession(i.isFirstVisitorSession);this.props.visitorIdentity.setIsFirstVisitorSession(i.isFirstVisitorSession);break;case T.B:this.props.updateVisitorIdentificationEnabled(i);break;case T.o:this.props.refreshWidgetData(Object(w.buildWidgetData)(n.data));break;case T.q:this.onOpenUpdate(!0);break;case T.p:this.onOpenUpdate(!1);break;case T.c:this.onBrowserWindowResize(i);break;case T.s:this.onScrollPercentageChange(i);break;case T.f:this.onExitIntent();break;case T.z:this.onTrackApiUsage(i);break;case T.A:this.onWidgetDragged(i);break;case T.m:this.openToNewThread()}}renderContent(){const{inline:e,isOpen:t,mobile:n,onLauncherHover:i,showInitialMessageBubble:a,toggleOpen:s,trackUserInteraction:o,widgetLocation:c}=this.props;return Object(r.jsx)(q.a.Provider,{value:{browserWindowHeight:this.state.browserWindowHeight,browserWindowWidth:this.state.browserWindowWidth},children:Object(r.jsx)(I.b,{inline:e,isOpen:t,mobile:n,onLauncherHover:i,onIframeResize:this.onIframeResize,showInitialMessageBubble:a,toggleOpen:s,trackUserInteraction:o,widgetLocation:c})})}render(){const{shouldRenderContent:e}=this.props,t="widget-app-container"+(this.props.inline?" inline":"");return Object(r.jsxs)(J,{ref:this.registerContainerRef,className:t,widgetLocation:this.props.widgetLocation,children:[Object(r.jsx)(k,{}),Object(r.jsx)(L.a,{children:e?this.renderContent():null})]})}}K.displayName="Application";K.contextType=q.a;K.propTypes={executeExitIntentTrigger:a.a.func.isRequired,handleReceiveWidgetData:a.a.func.isRequired,handleScrollPercentageChange:a.a.func.isRequired,inline:a.a.bool.isRequired,isOpen:a.a.bool.isRequired,isViewingStubbedThread:a.a.bool.isRequired,loadStagedThread:a.a.func.isRequired,mobile:a.a.bool.isRequired,onGlobalCookieOptOut:a.a.func.isRequired,onLauncherHover:a.a.func.isRequired,refreshWidgetData:a.a.func.isRequired,setWindowVisible:a.a.func.isRequired,shouldRenderContent:a.a.bool.isRequired,showInitialMessageBubble:a.a.bool.isRequired,toggleOpen:a.a.func.isRequired,trackInteraction:a.a.func.isRequired,trackUserInteraction:a.a.func.isRequired,updateIsFirstVisitorSession:a.a.func.isRequired,updateVisitorIdentificationEnabled:a.a.func.isRequired,visitorIdentity:a.a.object.isRequired,widgetLocation:E.c};t.a=K},mKxs:function(e,t,n){"use strict";const r=(e,t,n=null)=>Object.assign(e.bind(),{typeName:t,typeChecker:n,isRequired:Object.assign(e.isRequired.bind(),{typeName:t,typeChecker:n,typeRequired:!0})});function i(e){if("string"!=typeof e)throw new TypeError("a string is required for the RecordPropType");const t=function(t,n,r){const i=t[n];if(null==i)return null;const a=i._name;return a?a!==e?new Error(`Invalid Record prop \`${n}\` of type \`${a}\` supplied to \`${r}\`. Expected \`${e}\``):null:new Error(`Invalid prop \`${n}\` of type \`${typeof i}\` supplied to \`${r}\`. Expected Record of type \`${e}\``)};t.isRequired=function(e,n,r){return e[n]?t(e,n,r):new Error(`Required ${n} was not specified in ${r}`)};return r(t,"recordIsType: "+e)}t.a=i},mM7p:function(e,t,n){"use strict";n.r(t);n.d(t,"timestampIsToday",(function(){return r}));const r=e=>{const t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()}},"mYl/":function(e,t,n){"use strict";var r=n("EQzX"),i=n("8ghC"),a=n("i6ES"),s=n("Cblj"),o=n("0934"),c=n("C3IS"),u=n("8Xfw"),l=n("amlY"),d=n("H9dH"),p=n("wZdh"),f=n("c2PF"),h=n("qg6t"),b=n("KDEO"),g=n("H5md");const m=({message:e,channel:t,threadId:n})=>r=>{r(Object(d.defaultMessageReceived)(e,t,n))};var O=n("DB67"),v=n("9i6G"),j=n("0IK8"),y=n("N76F"),E=n("Kjd/"),T=n("eF9A");n.d(t,"a",(function(){return w}));const w=({threadId:e,message:t,channel:n,publishContext:w={}})=>(I,C)=>{const{data:A,clientId:x}=t,S=Object(f.getThreadByThreadId)(C(),{threadId:e});if(Object(j.getType)(A)===v.a){I(Object(O.channelChangeReceived)({channelChange:new v.b(A),threadId:e}));return}const _=Object(u.deserialize)({json:A});Object(E.a)({message:_,clientId:x});switch(!0){case Object(o.a)(_):break;case Object(c.b)(_):I(Object(h.dismissTypingIndicator)(_,e));I(Object(d.defaultMessageReceived)(_,n,e,w));I(Object(p.a)({message:_,threadId:e}));break;case Object(T.isAssignmentUpdateMessage)(_):I(Object(l.assignmentV2MessageReceived)(_,n,e));break;case Object(a.isContactAssociationMessage)(_):Object(y.onContactAssociated)();break;case Object(s.isTypingMessage)(_):w.playback||I(Object(b.typingMessageReceived)(_,e));break;case Object(r.isCloseThreadMessage)(_):I(Object(g.closeThreadMessageReceived)({message:_,thread:S,channel:n}));break;case Object(i.a)(_):I(m({message:_,channel:n,threadId:e}));break;default:I(Object(d.defaultMessageReceived)(_,n,e,w))}}},mZmn:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("V/xu"),i=n("7719");function a({mobile:e,border:t=0}){return e?{flex:"0 0 32px",height:r.a[i.f]+2*t}:{height:r.a[i.e]+2*t}}},mc4r:function(e,t,n){"use strict";const r=e=>Boolean("string"==typeof e&&e.length);t.a=r},mlLV:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"f",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"a",(function(){return o}));n.d(t,"g",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"i",(function(){return l}));n.d(t,"h",(function(){return d}));const r="conversationStarted",i="conversationClosed",a="unreadConversationCountChanged",s="inputStaging",o="contactAssociated",c="userInteractedWithWidget",u="quickReplyButtonClick",l="widgetClosed",d="userSelectedThread"},mmfe:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ut5p"),i=n("SGAL");const a=Object(r.b)(i.a,(e,t)=>({channel:e,timeout:t}))},mrEz:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("uym0"))},"n+iS":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("cSJ2"),i=n("bSHG"),a=n("rCfO");const s=Object(a.default)(e=>Object(r.a)(e,i.a.TEXTONLY))},n6ol:function(e,t,n){"use strict";n.d(t,"k",(function(){return r}));n.d(t,"l",(function(){return i}));n.d(t,"e",(function(){return a}));n.d(t,"r",(function(){return s}));n.d(t,"y",(function(){return o}));n.d(t,"t",(function(){return c}));n.d(t,"d",(function(){return u}));n.d(t,"v",(function(){return l}));n.d(t,"x",(function(){return d}));n.d(t,"u",(function(){return p}));n.d(t,"w",(function(){return f}));n.d(t,"a",(function(){return h}));n.d(t,"j",(function(){return b}));n.d(t,"C",(function(){return g}));n.d(t,"i",(function(){return m}));n.d(t,"h",(function(){return O}));n.d(t,"g",(function(){return v}));n.d(t,"o",(function(){return j}));n.d(t,"q",(function(){return y}));n.d(t,"p",(function(){return E}));n.d(t,"c",(function(){return T}));n.d(t,"s",(function(){return w}));n.d(t,"f",(function(){return I}));n.d(t,"n",(function(){return C}));n.d(t,"z",(function(){return A}));n.d(t,"A",(function(){return x}));n.d(t,"m",(function(){return S}));n.d(t,"b",(function(){return _}));n.d(t,"B",(function(){return R}));const r="iframe-resize",i="open-change",a="closed-welcome-message",s="request-widget",o="store-messages-cookie",c="show-page-title-notification",u="clear-page-title-notification",l="start-track-scroll-percentage",d="stop-track-scroll-percentage",p="start-track-exit-intent",f="stop-track-exit-intent",h="api-request",b="i18n-labels",g="widget-data",m="hubspot-utk",O="global-cookie-opt-out",v="first-visitor-session",j="refresh-widget-data",y="request-open",E="request-close",T="browser-window-resize",w="scroll-percentage-change",I="exit-intent",C="perf-attributes",A="track-api-usage",x="track-widget-dragged",S="open-to-new-thread",_="api-request-result",R="visitor-identification-attributes"},nDpY:function(e,t,n){e.exports=n.dlbpr(0,10)},nS6h:function(e,t,n){"use strict";n.r(t);n.d(t,"publishMessageToConversation",(function(){return o}));var r=n("eg5p"),i=n("tbpt"),a=n("4dq7"),s=n("4SpI");function o({channel:e,message:t,threadId:n}){return o=>{n===r.a?o(Object(i.stageMessageOnStubbedThread)(t)):o(Object(s.publishMessage)({channel:e,message:t,threadId:n})).then(()=>o(Object(a.addAvailabilityMessage)({channel:e,threadId:n}))).catch(e=>{setTimeout(()=>{throw e})})}}},nSiU:function(e,t,n){"use strict";n.r(t);n.d(t,"getErrorInPayload",(function(){return i}));n.d(t,"getErrorMeta",(function(){return a}));n.d(t,"getErrorTitle",(function(){return s}));n.d(t,"getErrorMessage",(function(){return o}));n.d(t,"getDisplayEventId",(function(){return c}));n.d(t,"ignoreError",(function(){return u}));n.d(t,"isSilent",(function(){return l}));n.d(t,"isErrorReoprtingSilenced",(function(){return d}));n.d(t,"isVisibleErrorAction",(function(){return p}));n.d(t,"getError",(function(){return f}));n.d(t,"getActionType",(function(){return h}));var r=n("MJM1");const i=Object(r.a)(["payload","error"]),a=Object(r.a)(["meta","error"]),s=Object(r.a)(["meta","error","titleText"]),o=Object(r.a)(["meta","error","message"]),c=e=>!1!==Object(r.a)(["meta","error","displayEventId"],e),u=Object(r.a)(["meta","error","ignore"]),l=Object(r.a)(["meta","error","silent"]),d=Object(r.a)(["meta","error","silenceErrorReporting"]),p=Object(r.a)(["meta","error","isVisibleToUser"]),f=e=>{if(e.payload instanceof Error)return e.payload;const t=i(e);return t instanceof Error?t:null},h=e=>Object(r.a)(["type"],e)},ncoD:function(e,t,n){"use strict";n.r(t);n.d(t,"getAllAgentResponders",(function(){return p}));var r=n("KXN9"),i=n("x1JE"),a=n("Mx3c"),s=n("MBJP"),o=n("Xvzl"),c=n("SGjM"),u=n("DdHT"),l=n("MeE7"),d=n("fl6v");const p=Object(s.a)([d.getResponders],e=>Object(u.a)(i.getEntries,Object(o.a)((e,t)=>Object(l.getType)(t)===a.AGENT),Object(c.a)(r.a))(e))},neHy:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("DrqF");const i=e=>Object(r.a)("function"==typeof e,"Expected an operator to be a `function` not a `%s`",typeof e)},nf9S:function(e,t,n){"use strict";n.r(t);n.d(t,"isConversationalMessage",(function(){return a}));var r=n("0IK8"),i=n("GRT8");function a(e){const t=Object(r.getType)(e);return i.b.includes(t)}},ng2a:function(e,t,n){"use strict";n.r(t);n.d(t,"removeMessageInConversation",(function(){return a}));var r=n("Ut5p"),i=n("+tWo");const a=Object(r.b)(i.b,({message:e,threadId:t})=>({message:e,threadId:t}))},nguO:function(e,t,n){"use strict";n.d(t,"c",(function(){return r}));n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));const r="@type",i="ACTIVELY_PUBLISHING",a="FAILED_TO_PUBLISH"},nhsE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e.clientData.isInForeground},npjq:function(e,t,n){"use strict";let r;r="undefined"!=typeof NO_I18N_GLOBAL&&!0===NO_I18N_GLOBAL?{}:window.I18n=window.I18n||{};t.a=r},"nqz/":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("Dw+v"),i=n("i9zZ"),a=n("nxFs"),s=n("fT+s"),o=n("vfjv"),c=n("kcmb"),u=n("+l17");const l=({data:e})=>(t,n)=>e?Object(i.initializeI18n)({data:e}).then(()=>{const{message:{surveyId:i},sessionId:l}=e;null!==i&&t(Object(a.fetchFeedbackSurvey)(i,l));t(Object(r.a)(e));if(Object(o.getShouldFetchInitialVisitorThreads)(n()))t(Object(s.fetchVisitorThreads)()).then(()=>{t(Object(u.setThreadsSuccess)());t(Object(c.navigateToInitialView)())});else{t(Object(u.setThreadsSuccess)());t(Object(c.navigateToInitialView)())}},()=>{t(Object(r.a)(e))}):null},nt9Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("DdHT"),a=n("46XF");const s=Object(r.a)((e,t,n)=>Object(i.a)(Object(a.a)(null),Object(a.b)(e),Object(a.d)(t),a.c)(n))},nxFs:function(e,t,n){"use strict";n.r(t);var r=n("KnhK"),i=n("Ut5p"),a=n("VYoM");const s=({id:e,sessionId:t})=>a.a.get("livechat-public/v1/feedback/survey/"+e,{query:{sessionId:t}});var o=n("mEYk"),c=n.n(o);n.d(t,"fetchFeedbackSurvey",(function(){return l}));const u=Object(i.b)(r.a,e=>({enabled:e}));function l(e,t){return n=>{s({id:e,sessionId:t}).then(({enabled:e})=>{n(u(e))}).catch(e=>{c.a.captureException(e)})}}},nyI8:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("xZ3y"),i=n("o3Zl"),a=n("zFg9");const{TOGGLE_OPEN:s,RECEIVED_WIDGET_SHELL_DATA:o,TRACK_USER_INTERACTION:c}=r,u=e=>({mobile:""+e.mobile=="true",open:""+e.open=="true",hideWelcomeMessage:""+e.hideWelcomeMessage=="true",domain:e.domain,startOpen:e.startOpen,url:e.url,userInteractedWithWidget:!1,isEmbeddedInProduct:""+e.inApp53=="true"});function l(e=Object(a.a)(),t){switch(t.type){case i.a:return!t.payload.visible&&t.payload.closedByUser?e.set("startOpen",!1).set("hideWelcomeMessage",!0):e;case o:return e.merge(u(t.payload));case s:!t.payload.isOpened&&t.payload.isUser&&(e=e.set("startOpen",!1).set("hideWelcomeMessage",!0));return e.set("open",t.payload.isOpened);case c:return e.set("userInteractedWithWidget",!0);default:return e}}},nzmY:function(e,t,n){"use strict";var r=n("DdHT"),i=n("JGJA"),a=n("nDpY"),s=n.n(a),o=n("GPZA"),c=n("+xqs"),u=n("0NIc"),l=n("qjq5"),d=n("QYOI");const p=Object(l.a)((e,t)=>Object(d.Map)(e).merge(t)),f=Object(l.a)((e,t)=>Object(d.Map)(t).merge(e));Object(l.a)((e,t)=>Object(d.fromJS)(t).mergeDeep(e));var h=n("kq2S");n.d(t,"a",(function(){return b}));function b(e={}){let t=Object.assign({},e);return Object(r.a)(p({portalId:s.a.get(),status:o.a.STARTED}),f({unseenCount:Object(i.a)("unseenCount",t)||0,threadPreview:Object(c.a)(Object(i.a)("threadPreview",t)),channelDetails:Object(h.a)(Object(i.a)("channelDetails",t))}),u.a)(t)}},"o/5C":function(e,t,n){"use strict";var r=n("QYOI"),i=n("qjq5"),a=n("JGJA"),s=n("DdHT"),o=n("0G/n"),c=n("Mx3c"),u=n("l7FR");u.a,c.AGENT,u.b,c.BOT,u.d,c.INTEGRATOR,u.e,c.SYSTEM,u.f,c.VISITOR,u.c,c.EMAIL;Object(a.a)("senderField"),Object(a.a)("actorId");const l=Object(a.a)("deliveryIdentifier"),d=Object(a.a)("name");var p=n("Zui/");const f=Object(a.a)("recipientField"),h=(Object(a.a)("actorId"),Object(a.a)("deliveryIdentifier"),Object(a.a)("singleDeliveryIdentifier")),b=Object(a.a)("value"),g=Object(a.a)("type");n("ZI4L");n.d(t,"d",(function(){return m}));n.d(t,"f",(function(){return O}));n.d(t,"b",(function(){return S}));n.d(t,"c",(function(){return _}));n.d(t,"a",(function(){return R}));n.d(t,"e",(function(){return M}));Object(a.a)("id"),Object(a.a)("channelInstanceId");const m=Object(a.a)("genericChannelId"),O=(Object(a.a)("integrationId"),Object(a.a)("recipients")),v=Object(a.a)("senders"),j=f,y=Object(a.a)("senderField"),E=(Object(a.a)("direction"),e=>{const t=l(e);return t?t.type:void 0}),T=e=>{const t=l(e);return t?t.value:void 0},w=(e,t)=>e.reduce((e,n)=>{const r=h(n);return g(r)===t?e.push(b(r)):e},Object(r.List)()),I=(e,t)=>{const n=O(e);return Object(r.List)(n.filter(e=>j(e)===t))},C=(e,t)=>{const n=v(e);return n&&n.filter(e=>y(e)===t)||Object(r.List)()},A=Object(i.a)((e,t,n)=>{const r=I(n,e);return w(r,t)}),x=Object(i.a)((e,t,n)=>{const r=C(n,e);if(r.size){const e=r.first(),n=E(e);if(n&&n===t){return T(e)||""}}return""}),S=(A("TO",o.b),A("CC",o.b),A("BCC",o.b),Object(s.a)(O,e=>e.reduce((e,t)=>{const n=h(t).value;return n&&!Number.isInteger(n)?e.push(n):e},Object(r.List)())),x("FROM",o.b)),_=(x("ORIGINAL_FROM",o.b),e=>{const t=v(e);return t&&t.size>0&&d(t.first())}),R=Object(a.a)("attachments"),D=Object(i.a)((e,t)=>{const n=R(t);if(n)return n.find(t=>Boolean(t&&Object(a.a)("@type",t)===e))}),M=(Object(i.a)((e,t)=>{const n=R(t);if(n)return n.find(t=>Boolean(t&&Object(a.a)("@type",t)===e))}),D(p.c),D(p.d),e=>m(e))},o3Zl:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TOGGLE_INITIAL_MESSAGE_BUBBLE"},oUkX:function(e,t,n){"use strict";var r=n("QgEn"),i=n("okxY"),a=n("8Ma8");const s=e=>{const{disableAutoFocus:t}=Object(a.c)();return Object(r.jsx)(i.a,Object.assign({contain:!1},e,{autoFocus:!t}))};s.displayName="FocusScopeWithContext";t.a=s},okxY:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));n.d(t,"b",(function(){return c}));n.d(t,"c",(function(){return _}));n.d(t,"d",(function(){return k}));var r=n("slCD"),i=n("Ktcs"),a=n.n(i),s=n("Zulv"),o=n("xr6y");function c(e){if("virtual"===Object(o.a)()){let t=document.activeElement;Object(s.j)(()=>{document.activeElement===t&&document.contains(e)&&Object(s.c)(e)})}else Object(s.c)(e)}function u(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:i}=t(e);r="none"!==n&&"hidden"!==i&&"collapse"!==i}return r}function l(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}function d(e,t){return"#comment"!==e.nodeName&&u(e)&&l(e,t)&&(!e.parentElement||d(e.parentElement,e))}const p=a.a.createContext(null);let f=null;function h(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,c=Object(i.useRef)(),u=Object(i.useRef)(),l=Object(i.useRef)([]),d=Object(i.useContext)(p);var h;let g=null!==(h=null==d?void 0:d.scopeRef)&&void 0!==h?h:null;Object(s.q)(()=>{let e=c.current.nextSibling,t=[];for(;e&&e!==u.current;){t.push(e);e=e.nextSibling}l.current=t},[t,g]);M.getTreeNode(g)&&!M.getTreeNode(l)&&M.addTreeNode(l,g);M.getTreeNode(l).contain=n;y(l,n);S(l,r,n);x(l,o);Object(s.q)(()=>{if(l&&(g||null==g))return()=>{l!==f&&!I(l,f)||g&&!M.getTreeNode(g)||(f=g);M.removeTreeNode(l)}},[l,g]);let m=b(l);return a.a.createElement(p.Provider,{value:{scopeRef:l,focusManager:m}},a.a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:c}),t,a.a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function b(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||document.activeElement,c=n[0].previousElementSibling,u=_(v(n),{tabbable:i,accept:s},n);u.currentNode=T(o,n)?o:c;let l=u.nextNode();if(!l&&a){u.currentNode=c;l=u.nextNode()}l&&C(l,!0);return l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,o=r||document.activeElement,c=n[n.length-1].nextElementSibling,u=_(v(n),{tabbable:i,accept:s},n);u.currentNode=T(o,n)?o:c;let l=u.previousNode();if(!l&&a){u.currentNode=c;l=u.previousNode()}l&&C(l,!0);return l},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=_(v(n),{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let s=a.nextNode();s&&C(s,!0);return s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=_(v(n),{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let s=a.previousNode();s&&C(s,!0);return s}}}const g=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],m=g.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";g.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const O=g.join(':not([hidden]):not([tabindex="-1"]),');function v(e){return e[0].parentElement}function j(e){let t=M.getTreeNode(f);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function y(e,t){let n=Object(i.useRef)(),r=Object(i.useRef)(null);Object(s.q)(()=>{let i=e.current;if(!t){if(r.current){cancelAnimationFrame(r.current);r.current=null}return}let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!j(e))return;let n=document.activeElement,r=e.current;if(!T(n,r))return;let i=_(v(r),{tabbable:!0},r);i.currentNode=n;let a=t.shiftKey?i.previousNode():i.nextNode();if(!a){i.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling;a=t.shiftKey?i.previousNode():i.nextNode()}t.preventDefault();a&&C(a,!0)},s=t=>{if(!f||I(f,e)){f=e;n.current=t.target}else j(e)&&!w(t.target,e)?n.current?n.current.focus():f&&A(f.current):j(e)&&(n.current=t.target)},o=t=>{r.current=requestAnimationFrame(()=>{if(j(e)&&!w(document.activeElement,e)){f=e;if(document.body.contains(t.target)){n.current=t.target;n.current.focus()}else f&&A(f.current)}})};document.addEventListener("keydown",a,!1);document.addEventListener("focusin",s,!1);i.forEach(e=>e.addEventListener("focusin",s,!1));i.forEach(e=>e.addEventListener("focusout",o,!1));return()=>{document.removeEventListener("keydown",a,!1);document.removeEventListener("focusin",s,!1);i.forEach(e=>e.removeEventListener("focusin",s,!1));i.forEach(e=>e.removeEventListener("focusout",o,!1))}},[e,t]);Object(i.useEffect)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function E(e){return w(e)}function T(e,t){return t.some(t=>t.contains(e))}function w(e,t=null){for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(T(e,n.current))return!0;return!1}function I(e,t){var n;let r=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function C(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{c(e)}catch(e){}}function A(e,t=!0){let n=e[0].previousElementSibling,r=_(v(e),{tabbable:t},e);r.currentNode=n;let i=r.nextNode();if(t&&!i){r=_(v(e),{tabbable:!1},e);r.currentNode=n;i=r.nextNode()}C(i)}function x(e,t){const n=a.a.useRef(t);Object(i.useEffect)(()=>{if(n.current){f=e;T(document.activeElement,f.current)||A(e.current)}n.current=!1},[e])}function S(e,t,n){const r=Object(i.useRef)("undefined"!=typeof document?document.activeElement:null);Object(s.q)(()=>{let r=e.current;if(!t||n)return;let i=()=>{f&&!I(f,e)||(f=e)};document.addEventListener("focusin",i,!1);r.forEach(e=>e.addEventListener("focusin",i,!1));return()=>{document.removeEventListener("focusin",i,!1);r.forEach(e=>e.removeEventListener("focusin",i,!1))}},[e,n]);Object(s.q)(()=>{M.getTreeNode(e).nodeToRestore=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!T(n,e.current))return;let r=M.getTreeNode(e).nodeToRestore,i=_(document.body,{tabbable:!0});i.currentNode=n;let a=t.shiftKey?i.previousNode():i.nextNode();if(!document.body.contains(r)||r===document.body){r=null;M.getTreeNode(e).nodeToRestore=null}if((!a||!T(a,e.current))&&r){i.currentNode=r;do{a=t.shiftKey?i.previousNode():i.nextNode()}while(T(a,e.current));t.preventDefault();t.stopPropagation();a?C(a,!0):E(r)?C(r,!0):n.blur()}};n||document.addEventListener("keydown",i,!0);return()=>{n||document.removeEventListener("keydown",i,!0);let r=M.getTreeNode(e).nodeToRestore;if(t&&r&&(T(document.activeElement,e.current)||document.activeElement===document.body&&f===e)){let t=M.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore)){C(n.nodeToRestore);return}n=n.parent}}})}}},[e,t,n])}function _(e,t,n){let r=(null==t?void 0:t.tabbable)?O:m,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!d(e)||n&&!T(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});(null==t?void 0:t.from)&&(i.currentNode=t.from);return i}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),i=new D({scopeRef:e});r.addChild(i);i.parent=r;this.fastMap.set(e,i);n&&(i.nodeToRestore=n)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&T(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t);r.length>0&&r.forEach(e=>n.addChild(e));this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){null!=e.scopeRef&&(yield e);if(e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new R;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map;this.root=new D({scopeRef:null});this.fastMap.set(null,this.root)}}class D{addChild(e){this.children.push(e);e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1);e.parent=void 0}constructor(e){this.children=[];this.contain=!1;this.scopeRef=e.scopeRef}}let M=new R;let N=a.a.createContext(null);function P(e){let t=Object(i.useContext)(N)||{};Object(s.s)(t,e);return Object(r.a)(t,["ref"])}function k(e,t){let{focusProps:n}=Object(o.c)(e),{keyboardProps:r}=Object(o.h)(e),a=Object(s.i)(n,r),u=P(t),l=e.isDisabled?{}:u,d=Object(i.useRef)(e.autoFocus);Object(i.useEffect)(()=>{d.current&&t.current&&c(t.current);d.current=!1},[t]);return{focusableProps:Object(s.i)(Object.assign({},a,{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),l)}}},"p3n+":function(e,t,n){"use strict";var r=n("QYOI"),i=n("Zui/");const a=Object(r.Record)({"@type":i.d,fileIds:Object(r.List)(),fileUsageTypes:Object(r.Map)(),strippedAttachmentCount:0},"FileAttachment");t.a=a},p5It:function(e,t,n){"use strict";n.r(t);n.d(t,"executeTimeOnPageTrigger",(function(){return h}));var r=n("jxkM"),i=n("ktW+"),a=n("L0zh"),s=n("647q"),o=n("xmwc"),c=n("GHgd"),u=n("wD2U"),l=n("g9p1"),d=n("PBVa"),p=n("QgQx"),f=n("wrz1");const h=()=>(e,t)=>{e(Object(o.removeTimeOnPageTrigger)());const n=t(),h=Object(s.getLatestWidgetData)(n),b=!Object(d.shouldOverrideTrigger)(Object(l.getWidgetStartOpen)(n));Object(f.a)(t())||(Object(c.timeOnPageTriggerEnabled)(h)&&Object(i.getPopOpenWidget)(n)&&!Object(u.getIsMobile)(n)&&b?e(Object(r.toggleOpen)({isOpened:!0})):Object(c.timeOnPageTriggerEnabled)(h)&&!Object(p.getShouldHideWelcomeMessage)(n)&&e(Object(a.toggleInitialMessageBubble)(!0)))}},p79U:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("g4ag"),i=n("aYGO"),a=n("qjq5"),s=n("DFBY");const o=Object(r.a)(i.a),c=Object(a.a)((e,t)=>{const n=Object(s.getAssignedAgentId)(e);return o(n,t)})},p9k8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("BnUr"),i=n("UxsU");function a(e){return Object(r.getStatus)(e)===i.a.STARTED}},pHO9:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("scKg");function i(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=e[t](n);return n}function a(...e){e.forEach(r.a);return i.bind(null,e)}},pHbL:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MJM1"),i=n("3HLt"),a=n("kevw");const s=e=>Object(r.a)(i.b,e)||Object(a.b)(Object(a.c)(e))},pdKL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{const t=(...n)=>n.length>=e.length?e.apply(null,n):t.bind(null,...n);return t}},piVz:function(e,t,n){"use strict";var r=n("MBJP"),i=n("JGJA");const a=Object(i.a)("initialMessageBubbleVisible");var s=n("E9A7"),o=n("l04f"),c=n("rjAk"),u=n("dHfq"),l=n("Pda3");n.d(t,"a",(function(){return d}));const d=Object(r.a)([s.getShowInitialMessage,a,o.getIsOpen,u.a,c.hasPersistedThreads],(e,t,n,r,i)=>!Object(l.isUninitialized)(r)&&!Object(l.isStarted)(r)&&((!Object(l.isSucceeded)(r)||!i)&&(e&&t&&!n)))},prkp:function(e,t,n){"use strict";n.r(t);n.d(t,"markMessageReadByVisitor",(function(){return o}));var r=n("nDpY"),i=n.n(r),a=n("VYoM");const s="livechat-public/v1";function o({threadId:e,sessionId:t,messageId:n}){return a.a.post(`${s}/visitorReadThread/thread/${e}/message/${n}`,{query:{portalId:i.a.get(),sessionId:t}})}},"pxL+":function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));n.d(t,"e",(function(){return s}));n.d(t,"c",(function(){return o}));n.d(t,"f",(function(){return c}));n.d(t,"a",(function(){return u}));n.d(t,"d",(function(){return l}));var r=n("g4ag"),i=(n("JGJA"),n("MWj0"));n("Zui/"),n("QYOI");Object(r.a)(i.c);const a=Object(r.a)(i.h),s=Object(r.a)(i.u),o=Object(r.a)(i.n),c=(Object(r.a)(i.o),Object(r.a)(i.k),Object(r.a)(i.x)),u=Object(r.a)(i.a),l=(Object(r.a)(i.d),Object(r.a)(i.s));Object(r.a)(i.t),Object(r.a)(i.w),Object(r.a)(i.r),Object(r.a)(i.i),Object(r.a)(i.p)},py2G:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("YibP"),i=n("eCQl");const a=e=>t=>{try{e(t)}catch(e){const t=Object(r.a)(e&&e.message,{name:"ResolveError"});Object(i.reportError)({error:t,fingerprint:["{{ default }}","ResolveError"]});throw e}}},q1tZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("JGJA");const i=Object(r.a)("name");Object(r.a)("type")},q4JX:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("eCQl"),i=n("v0wH"),a=n("WebA"),s=n("C3IS"),o=n("pxL+"),c=n("0IK8");const u=e=>{switch(!0){case Object(s.b)(e):return Object(o.c)(i.b,Object(a.buildCommonMessage)(e));default:Object(r.reportError)({error:new Error("UNRESOLVED_REPUBLISH_MESSAGE: "+Object(c.getType)(e)),fingerprint:["{{ default }}","UNRESOLVED_REPUBLISH_MESSAGE"]});return null}}},q6sI:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Ut5p"),a=n("bYG+"),s=n("JGJA"),o=n("gjm2"),c=n("0H74"),u=n("qjq5");function l(e,t){return Object(o.a)(t,(e,t,n)=>Object(c.a)(n,t,e),e)}var d=Object(u.a)(l),p=n("GXXt");function f(e,t,n){const r=Object(p.a)(e,n);return Object(c.a)(e,t(r),n)}var h=Object(u.a)(f),b=n("mEYk"),g=n.n(b),m=n("KXN9"),O=n("xyDt"),v=n("y+PV"),j=n("IDM/"),y=n("stzZ"),E=n("4cwC"),T=n("MZef"),w=n("nf9S"),I=n("ul3k"),C=n("EQzX"),A=n("8ghC"),x=n("eF9A"),S=n("BnUr"),_=n("aYGO");const R=Object(u.a)((e,t)=>t.setIn(_.h,e));var D=n("UxsU"),M=n("g4ag");const N=Object(M.a)(_.e);var P=n("6pgb"),k=n("p79U");const L=Object(a.a)("currentUrl");var B=n("qQrL"),F=n("cXEp"),H=n("2Sm/"),U=n("xZ3y"),G=n("t0Ql"),q=n("MJM1");Object(s.a)("id"),Object(s.a)("timestamp"),Object(s.a)("@type");const W=Object(q.a)(["newChannel","name"]);Object(s.a)("newChannel"),Object(q.a)(["oldChannel","name"]),Object(s.a)("oldChannel");var V=n("2fwB");const z=Object(T.a)({data:Object(r.Map)()});function J(e){return t=>t=Object(P.a)(e,t)}const K=Object(i.c)({[Object(i.a)(U.ADD_CONVERSATION,H.a.SUCCEEDED)]:(e,t)=>{const{conversation:n}=t.payload,r=Object(S.getThreadId)(n);return Object(O.a)(Object(a.a)(r,n),e)},[F.a]:e=>Object(j.a)(e),[U.LAST_SEEN_SUCCESS](e,t){const{threadId:n,latestMessageTimestamp:r}=t.payload,i=Object(m.a)(e);return Object(s.a)(n,i)&&r?Object(O.a)(h(n,N(r)),e):e},[B.b.SUCCEEDED](e,t){const{threadId:n,publishedMessage:r}=t.payload,i=Object(w.isConversationalMessage)(r)&&!Object(I.isEmailCaptureResponseMessage)(r)?J:()=>e=>e;return Object(O.a)(h(n,i(r)),e)},[U.RECEIVED_INCOMING_MESSAGE](e,t){const{threadId:n,message:r}=t.payload,i=Object(w.isConversationalMessage)(r)&&!Object(I.isEmailCaptureResponseMessage)(r)?J:()=>e=>e,a=Object(O.a)(h(n,i(r)),e);return Object(x.isAssignmentUpdateMessage)(r)?Object(O.a)(h(n,Object(k.a)(r)),a):Object(C.isCloseThreadMessage)(r)?Object(O.a)(h(n,R(D.a.ENDED)),a):Object(A.a)(r)?Object(O.a)(h(n,R(D.a.STARTED)),a):a},[U.INCREMENT_UNSEEN_COUNT](e,t){const{threadId:n}=t.payload;return Object(O.a)(h(n,h("unseenCount",e=>e+1)),e)},[U.CLEAR_UNSEEN_COUNT_FOR_CHANNEL](e,t){const{threadId:n}=t.payload;return Object(O.a)(h(n,Object(a.a)("unseenCount",0)),e)},[U.GET_VISITOR_THREADS_STARTED]:e=>Object(v.a)(e),[U.GET_VISITOR_THREADS_SUCCESS]:(e,t)=>{const{threads:n}=t.payload,i=n&&n.length?n.reduce((e,t)=>{const n=Object(S.getThreadId)(t);return e.set(n,t)},Object(r.Map)()):Object(r.Map)();return Object(y.a)(d(i),e)},[U.GET_VISITOR_THREADS_FAILURE]:e=>Object(E.a)(e),[F.b](e,t){const{threadId:n,currentUrl:r}=t.payload;return Object(O.a)(e=>e.update(n,L(r)),e)},[G.a]:(e,t)=>{const{threadId:n,channelChange:r}=t.payload,i=W(r);return Object(O.a)(e=>e.updateIn([n,..._.c],Object(V.a)(i)),e)}},z),Y=e=>(t,n)=>{try{return e(t,n)}catch(e){g.a.captureException(e,{extra:{state:t.toJS(),action:n}});return t}};t.a=Y(K)},q8Gl:function(e,t,n){"use strict";n.r(t);n.d(t,"getWindowLocation",(function(){return i}));var r=n("8CDR");const i=()=>new r.a(window.location.href)},qAIk:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ut5p"),i=n("Qvwz");const a=Object(r.b)(i.a)},qQrL:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));var r=n("VVfI");const i=Object(r.a)("PUBLISH_MESSAGE"),a=Object(r.a)("INITIALIZE_PUBSUB")},qdbJ:function(e,t,n){"use strict";n.r(t);n.d(t,"loadStagedThread",(function(){return u}));var r=n("eg5p"),i=n("1YzF"),a=n("5xOy"),s=n("v2h7"),o=n("WTKJ"),c=n("esZR");function u(){return e=>{e(Object(i.selectThread)(r.a));e(Object(a.resetStubbedThread)());e(Object(s.a)(o.c));e(Object(c.stageInitialMessage)())}}},qg6t:function(e,t,n){"use strict";n.r(t);n.d(t,"dismissTypingIndicator",(function(){return s}));var r=n("0IK8"),i=n("2+C7"),a=n("5jhX");const s=(e,t)=>n=>{const s=Object(r.getSenderId)(e);n(Object(i.clearExistingTypingTimeout)(e,t));n(Object(a.removeTypingTimeoutIdForAgentInThread)(t,s))}},qjq5:function(e,t,n){"use strict";var r=n("QJvi"),i=n("scKg"),a=n("lTIY");function s(e,t,n){const r=Object(a.a)(t,o.bind(null,e,t,n));r.args=n;r.operation=e;return r}function o(e,t,n,...r){const i=t-r.length,a=n.concat(r);return i<=0?e(...a):s(e,i,a)}function c(e,t){return s(Object(i.a)(t),Object(r.a)(e),[])}var u=c(2,c);n.d(t,"a",(function(){return l}));function l(e){return u(e.length,e)}},qkre:function(e,t,n){"use strict";n.d(t,"m",(function(){return s}));n.d(t,"d",(function(){return c}));n.d(t,"e",(function(){return u}));n.d(t,"n",(function(){return l}));n.d(t,"a",(function(){return d}));n.d(t,"b",(function(){return p}));n.d(t,"i",(function(){return h}));n.d(t,"j",(function(){return b}));n.d(t,"c",(function(){return g}));n.d(t,"f",(function(){return m}));n.d(t,"k",(function(){return O}));n.d(t,"l",(function(){return v}));n.d(t,"h",(function(){return j}));n.d(t,"g",(function(){return y}));var r=n("JGJA"),i=n("L8e7");const a=e=>t=>{const n=Object(i.a)(t);return n&&e(n)},s=a(Object(r.a)("subject")),o=Object(r.a)("from"),c=(a(o),a(e=>{const t=o(e);return t&&Object(r.a)("email",t)})),u=a(e=>{const t=o(e);return t&&Object(r.a)("name",t)}),l=a(e=>{const t=e&&e.to;return t&&t.map(e=>e&&"function"==typeof e.trim?e.trim():e).toList()}),d=a(Object(r.a)("bcc")),p=a(Object(r.a)("cc")),f=Object(r.a)("originalSender"),h=a(e=>{const t=f(e);return t&&Object(r.a)("email",t)}),b=a(e=>{const t=f(e);return t&&Object(r.a)("name",t)}),g=a(Object(r.a)("connectedAccountAddress")),m=a(Object(r.a)("hasReplies")),O=a(Object(r.a)("previousRepliesHtml")),v=a(Object(r.a)("previousRepliesPlainText")),j=a(Object(r.a)("memberOfForwardedSubthread")),y=a(Object(r.a)("forward"));a(Object(r.a)("clipStatus")),a(Object(r.a)("templateId")),a(Object(r.a)("emailAuthenticationStatus"))},qqP0:function(e,t,n){"use strict";n.r(t);var r=n("DdHT"),i=n("ZqFO"),a=n("VvTX"),s=n("97n4"),o=n("MJM1");const c=["enabled"],u=["timeDelaySeconds"],l=(Object(o.a)(c),Object(o.a)(u));n.d(t,"timeOnPageTriggerDelaySeconds",(function(){return d}));const d=e=>Object(r.a)(i.f,a.getClientTriggers,s.c,l)(e)},r1tY:function(e,t,n){e.exports=n.dlbpr(1,67)},"rA/t":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("eCQl"),i=n("QYOI"),a=n("JGJA"),s=n("DdHT"),o=n("bYG+"),c=n("TWJS");function u(e){const t=Object(a.a)("@type",e)||Object(a.a)("type",e),n=Object(a.a)("utk",e)||Object(a.a)("vid",e)||Object(a.a)("id",e);return t&&n?Object(c.a)({actorId:`${t&&t[0]}-${n}`}):null}function l(e){try{const t=Object(a.a)("sender",e),n=Object(i.fromJS)(t||{}),r=u(n),l=Object(a.a)("senders",e)||[],d=Object(i.List)(l.filter(Boolean).map(e=>Object(c.a)(e))),p=0===d.size&&r?Object(i.List)([r]):d;return Object(s.a)(Object(o.a)("sender",n),Object(o.a)("senders",p))(e)}catch(t){const n=new Error("Unable to build Senders from legacy Sender");Object(r.reportError)({error:n,extra:{message:""+t}});return e}}},rCfO:function(e,t,n){"use strict";n.r(t);n.d(t,"default",(function(){return c}));var r=n("scKg"),i=n("QYOI");function a(...e){return 1===e.length?e[0]:Object(i.Seq)(e)}function s(e,t,n,...r){const i=n(...r);e.has(i)||e.set(i,t(...r));return e.get(i)}function o(e,t,n,...r){const i=n(...r);e.has(i)||e.set(i,t(...r));return e.get(i)}function c(e,t=a){Object(r.a)(e);const n=Object(i.Map)().asMutable(),c=(1===e.length?s:o).bind(null,n,e,t);c.cache=n;return c}},rIrL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("GcWH"),a=n("OxGf"),s=n("rf4d");const o=Object(r.Record)({"@type":i.a,clientType:null,id:null,richText:null,sender:null,status:null,text:null,timestamp:null,attachments:Object(r.List)(),direction:a.b,channelInstanceId:null,genericChannelId:s.d,senders:Object(r.List)(),recipients:Object(r.List)()},"InitialMessage");t.a=o},rLZs:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("QYOI"),i=n("Mx3c"),a=n("iPDb"),s=n("0IK8"),o=n("C3IS"),c=n("V+nC");const u=e=>e&&Object(a.a)(e)?Object(a.a)(e).reduce((e,t)=>{if(Object(o.b)(t)&&!Object(o.c)(t)||Object(c.a)(t)){const n=Object(s.getSenderId)(t),a=Object(s.getSenderType)(t),o=Object(r.Map)({senderId:n,senderType:a});if(n&&(a===i.AGENT||a===i.BOT))return e.add(o)}return e},Object(r.Set)()):Object(r.Set)()},"rdz/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("rkZZ");const i=(e,t)=>{const{r:n,g:i,b:a}=Object(r.a)(e);return`#${("0"+(0|256+n+(256-n)*t/100).toString(16).substr(1)).substr(-2)}${("0"+(0|256+i+(256-i)*t/100).toString(16).substr(1)).substr(-2)}${("0"+(0|256+a+(256-a)*t/100).toString(16).substr(1)).substr(-2)}`}},rf4d:function(e,t,n){"use strict";n.d(t,"d",(function(){return r}));n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));n.d(t,"c",(function(){return s}));const r=1e3,i=1001,a=1002,s=1003},rjAk:function(e,t,n){"use strict";n.r(t);n.d(t,"hasPersistedThreads",(function(){return a}));var r=n("MBJP"),i=n("bco+");const a=Object(r.a)(i.getThreads,e=>!!e.size)},rkZZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{let t=(e||"#000000").slice(1);3===t.length&&(t=t.replace(/(.)/g,"$1$1"));return{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16)}}},rmOE:function(e,t){hns("I18n",{translations:{en:{i18n:{duration:{seconds:"{{ seconds }} sec",minutes:"{{ minutes }} min",hours:"{{ hours }} hr",hoursAndMinutes:"{{ hours }} hr {{ minutes }} min",days:"{{ days }} days",shortForm:{seconds:"{{ seconds }}s",minutes:"{{ minutes }}m",hours:"{{ hours }}h",days:"{{ days }}d",hoursAndMinutes:"{{ hours }}h {{ minutes }}m"}},dateTime:{quarterAndYear:"Q{{quarterNumber}} {{yearNumber}}"},numberRepresentation:{fraction:"{{ numerator }}/{{ denominator }}",numberWithCurrencyCode:"{{currencyCode}} {{amountNumberValue}}",phoneNumberWithExtension:"{{phoneNumber}}, ext. {{extension}}"}}}}})},rwJP:function(e,t,n){e.exports=n.dlbpr(1,87)},sA91:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("QYOI");const i=(e={})=>{let t=null;e.prototype instanceof r.Record?t=e.prototype:e.constructor&&e.constructor.prototype instanceof r.Record&&(t=e.constructor.prototype);if(t){if(t._name)return t._name;new e;return t._name||"Record"}return"Object"}},sENq:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("MBJP"),i=n("MJM1"),a=n("647q");const s=Object(r.a)([a.getLatestWidgetData],e=>Object(i.a)(["widgetLocation"],e))},sL2E:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n("QgEn"),i=n("Ktcs"),a=n("VfuR"),s=n.n(a),o=n("t6nY"),c=n.n(o),u=n("SjIE"),l=n.n(u),d=n("F3hY"),p=n("L82M"),f=n("GdKg"),h=n("npjq");class b extends i.Component{constructor(...e){super(...e);this.renderAvatar=()=>{const{isBot:e,avatar:t,avatarAlt:n,avatarName:i,style:a,size:s,online:o,showStatus:c}=this.props;let u=t;null===t&&e&&(u=l.a);const b=h.a.text("conversations-visitor-experience-components.default.agent"),g={style:a,src:u,className:"chat-head-avatar",size:s,alt:void 0===n?h.a.text("conversations-visitor-experience-components.default.avatar",{identifier:i||b}):n};if(c){const e=o?p.b:p.a;g.alt=h.a.text(e===p.b?"conversations-visitor-experience-components.default.avatarAvailable":"conversations-visitor-experience-components.default.avatarAway",{identifier:i||b});return Object(r.jsx)(d.a,{status:e,size:s,children:Object(r.jsx)(f.a,Object.assign({},g))})}return Object(r.jsx)(f.a,Object.assign({},g))}}render(){const{onClick:e,className:t,disabled:n}=this.props,i=c()("chat-head",t,n&&"chat-head-disabled");return Object(r.jsx)("div",{className:i,onClick:e,children:this.renderAvatar()})}}b.displayName="ChatHead";b.propTypes={avatar:s.a.string,avatarAlt:s.a.string,avatarName:s.a.string,className:s.a.string,disabled:s.a.bool,isBot:s.a.bool,onClick:s.a.func,online:s.a.bool.isRequired,showStatus:s.a.bool.isRequired,size:s.a.string.isRequired,style:s.a.object};b.defaultProps={avatar:null,avatarName:"",away:!1,disabled:!1,online:!1,showStatus:!1,isVisitorWidget:!1,size:"md"}},sZZm:function(e,t,n){"use strict";n.r(t);var r=n("P5YW");const i="external-api-event";n.d(t,"postExternalApiEvent",(function(){return a}));const a=({eventType:e,payload:t})=>{Object(r.a)(i,{eventType:e,payload:t})}},scKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){if("function"==typeof e)return e;throw new Error(`expected \`${"number"==typeof t?`operation[${t}]`:"operation"}\` to be a function but got \`${String(e)}\``)}},seb2:function(e,t,n){"use strict";var r=n("9f1P"),i=n("57op"),a=n("3Ezh");function s(e,t){return`${e}, ${t||a.a}`}n.d(t,"a",(function(){return o}));const o=({theme:e})=>Object(r.css)(["font-family:",";font-weight:400;font-size:14px;color:",";line-height:24px;"],({theme:{font:{fontFamily:e}}})=>s(e),Object(i.i)(e))},"sl/w":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("QgEn"),i=n("Ktcs"),a=n("VfuR"),s=n.n(a),o=n("PVk8");class c extends i.Component{render(){const{useGap:e,message:t,options:n}=this.props,i=Object(o.a)(Object(o.b)(this.props));return Object(r.jsx)("i18n-string",Object.assign({},i,{children:Object(o.c)({useGap:e,message:t,options:n},!0)}))}}c.displayName="FormattedMessage";c.propTypes={message:s.a.string.isRequired,options:s.a.object,useGap:s.a.bool};c.isI18nElement=!0;c.defaultProps={options:{},useGap:!1}},slCD:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}return i}},stzZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("VToG"),i=n("nt9Q");const a=Object(i.a)(r.d)},sxmL:function(e,t,n){"use strict";var r=n("QYOI"),i=n("Gc2C"),a=n("0IK8"),s=n("8Xfw");const o=e=>Object(s.deserialize)({json:e});n.d(t,"a",(function(){return c}));const c=(e=[])=>{Object(i.a)(r.Iterable.isIterable(e)||Array.isArray(e),"Expected messages to be iterable not a `%s`",typeof e);return e.reduce((e,t)=>{const n=o(t),r=Object(a.getId)(n);return e.set(r,n)},Object(r.OrderedMap)())}},"t+8h":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="WORKFLOW_GENERATED_USER_MESSAGE"},t0Ql:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CHANNEL_CHANGE_RECEIVED"},t4ZQ:function(e,t,n){"use strict";n.r(t);n.d(t,"getAgentType",(function(){return i}));var r=n("MJM1");const i=Object(r.a)(["agentType"])},t6nY:function(e,t,n){e.exports=n.dlbpr(1,1)},tOKt:function(e,t,n){"use strict";n.r(t);n.d(t,"buildInitialMessage",(function(){return l}));var r=n("QYOI"),i=n("JGJA"),a=n("IcZZ"),s=n("ubOH"),o=n("BvOu"),c=n("c1C1"),u=n("rIrL");const l=(e={})=>{const t=Object(i.a)("timestamp",e);return Object(u.a)({id:Object(i.a)("id",e)||Object(o.generateUuid)(),sender:Object(r.Map)(Object(r.fromJS)(Object(i.a)("sender",e))),status:Object(s.a)(Object(i.a)("status",e)),attachments:Object(a.a)(Object(i.a)("attachments",e)),clientType:Object(i.a)("clientType",e),richText:Object(i.a)("richText",e),text:Object(i.a)("text",e),timestamp:t||Object(c.generateUniqueClientTimestamp)(),senders:Object(i.a)("senders",e),channelInstanceId:Object(i.a)("channelInstanceId",e),recipients:Object(i.a)("recipients",e)})}},tRjK:function(e,t,n){"use strict";n.r(t);n.d(t,"removeAllClientTriggers",(function(){return s}));var r=n("y5Tz"),i=n("xmwc"),a=n("akwH");const s=()=>e=>{Object(r.a)();e(Object(i.removeTimeOnPageTrigger)());Object(a.a)()}},tTno:function(e,t,n){"use strict";n.r(t);n.d(t,"scrollTriggerEnabled",(function(){return o}));var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("UBEt");const o=e=>{const t=Object(r.f)(e),n=Object(i.getClientTriggers)(t),o=Object(a.b)(n);return Object(s.a)(o)}},tUSi:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="chat-widget-header-text",i="chat-widget-header-description"},tXbc:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));n.d(t,"d",(function(){return s}));n.d(t,"e",(function(){return o}));const r="CONNECTED",i="RECONNECTING",a="DISCONNECTED",s="RESUBSCRIBING",o="SUSPENDED"},tY0N:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="TYPING"},tbpt:function(e,t,n){"use strict";n.r(t);n.d(t,"stageMessageOnStubbedThread",(function(){return a}));var r=n("Ut5p"),i=n("ffqu");const a=Object(r.b)(i.b,e=>({message:e}))},tcix:function(e,t,n){"use strict";n.r(t);n.d(t,"captureActionBreadcrumb",(function(){return a}));var r=n("mEYk"),i=n.n(r);const a=e=>{i.a.captureBreadcrumb({message:e.type,category:"redux action"})}},tcuH:function(e,t,n){"use strict";n.r(t);n.d(t,"incrementUnseenCountAction",(function(){return u}));n.d(t,"incrementUnseenCount",(function(){return l}));var r=n("Ut5p"),i=n("c2PF"),a=n("9zF3"),s=n("xZ3y"),o=n("vBag"),c=n("BnUr");const u=Object(r.b)(s.INCREMENT_UNSEEN_COUNT,({channel:e,threadId:t})=>({channel:e,threadId:t})),l=({channel:e,threadId:t})=>(n,r)=>{const s=Object(i.getThreadByThreadId)(r(),{threadId:t}),l=Object(c.getUnseenCount)(s);n(u({channel:e,threadId:t}));if(0===l){const e=Object(a.calculateUnseenThreadsCount)(r());Object(o.postUnreadConversationCountChangedEvent)({unreadCount:e})}}},tyiq:function(e,t,n){"use strict";var r=n("MJM1");const i=["awayInOfficeHoursStrategy"],a=["awayMessage"],s=["officeHours"],o=["outsideOfficeHoursStrategy"],c=["teamMembersAvailabilityStrategy"],u=["typicalResponseTime"];n.d(t,"a",(function(){return l}));n.d(t,"b",(function(){return d}));Object(r.a)(i);const l=e=>Object(r.a)(a,e)||"",d=(Object(r.a)(s),Object(r.a)(o),Object(r.a)(c),Object(r.a)(u))},u8Gm:function(e,t,n){"use strict";var r=n("MBJP"),i=n("OmJX"),a=n("JGJA");const s=Object(a.a)("language"),o=Object(a.a)("searchableKnowledgeBaseIds");var c=n("647q");n.d(t,"b",(function(){return u}));n.d(t,"a",(function(){return l}));const u=Object(r.a)(c.getLatestWidgetData,e=>s(e)),l=Object(r.a)(i.a,e=>o(e))},uB3n:function(e,t,n){"use strict";var r=n("QYOI");const i=e=>""+e;var a=n("BGhm");const s=Object(r.Record)({entries:Object(r.Map)(),evict:()=>Object(r.Set)(),idInvariant:a.a,idTransform:i,name:null,notSetValue:null},"IndexedAsyncData");t.a=s},uOZ5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"c",(function(){return i}));n.d(t,"b",(function(){return a}));const r="COMPANY",i="USERS_AND_TEAMS",a="OWNER"},uOkx:function(e,t){e.exports={mode:"compressed",staticDomainPrefix:"//static.hsappstatic.net",bender:{depVersions:{"react-rhumb":"static-1.9910"},depPathPrefixes:{"react-rhumb":"/react-rhumb/static-1.9910"},project:"react-rhumb",staticDomain:"//static.hsappstatic.net",staticDomainPrefix:"//static.hsappstatic.net"}}},uVkz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("kkqp"),i=n.n(r);const a=e=>new i.a(e)},uXUH:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("MBJP"),i=n("lkO4"),a=n("tyiq"),s=n("H/Vc");const o=Object(r.a)(s.getWidgetAvailabilityOptions,e=>{const t=Object(a.b)(e);return t?Object(i.makeTypicalResponseTimeText)({typicalResponseTime:t}):""})},uax2:function(e,t,n){"use strict";var r=n("slCD"),i=n("QgEn"),a=n("VfuR"),s=n.n(a),o=n("Ktcs"),c=n("9f1P"),u=n.n(c),l=n("7719");const d={[l.c]:24,[l.f]:32,[l.e]:48};var p=n("CR0J"),f=n("57op");const h=f.h,b=f.j;var g=n("54vt");const m=Object(c.keyframes)(["100%{transform:rotate(360deg)}"]),O=u.a.div.withConfig({displayName:"VizExLoadingSpinner__SpinnerOuter",componentId:"u56ww7-0"})(["position:relative;align-items:center;display:flex;margin:8px;",";"],({grow:e})=>e&&Object(c.css)(["justify-content:center;width:100%;height:100%;margin:0;"])),v=u.a.div.withConfig({displayName:"VizExLoadingSpinner__SpinnerInner",componentId:"u56ww7-1"})(["position:relative;align-items:center;display:flex;justify-content:center;width:",";height:",";color:",";"],({size:e})=>e+"px",({size:e})=>e+"px",({theme:e,use:t})=>t===g.PRIMARY?h(e):b(e)),j=u.a.div.withConfig({displayName:"VizExLoadingSpinner__ResultSpinner",componentId:"u56ww7-2"})(["align-items:center;display:flex;justify-content:center;opacity:",";position:absolute;transition:opacity 0.2s cubic-bezier(0.42,0,0.58,1) 0.1s,transform 0.2s cubic-bezier(0.2,0.9,0.3,2) 0.1s;transform:scale(1);"],({showResult:e})=>e?"1":"0"),y=u.a.div.withConfig({displayName:"VizExLoadingSpinner__Spinner",componentId:"u56ww7-3"})(["transition:opacity 0.2s cubic-bezier(0.42,0,0.58,1),transform 0.2s cubic-bezier(0.89,0.03,0.68,0.22);opacity:",";position:absolute;display:block;width:100%;height:100%;&::after{position:relative;box-sizing:border-box;content:'';width:100%;height:100%;display:inline-block;border:2px solid currentColor;border-bottom-color:transparent;border-left-color:transparent;border-radius:100%;background:transparent;animation:"," 0.75s linear infinite;}"],({showResult:e})=>e?"0":"1",m),E={grow:!1,showResult:!1,resultAnimationDuration:1500,onResultDisplayFinish:()=>{},role:"status",size:"sm",use:g.PRIMARY,"data-test-id":"loading-spinner"},T=e=>{const{children:t,grow:n,onResultDisplayFinish:a,resultAnimationDuration:s,showResult:c,size:u,theme:l,use:p}=e,f=Object(r.a)(e,["children","grow","onResultDisplayFinish","resultAnimationDuration","showResult","size","theme","use"]),h=Object(o.useRef)();Object(o.useEffect)(()=>{if(c){h.current=setTimeout(a,s);return()=>{clearTimeout(h.current)}}},[a,s,c]);const b=d[u];return Object(i.jsx)(O,Object.assign({},f,{grow:n,children:Object(i.jsxs)(v,{size:b,theme:l,use:p,"data-test-id":"spinner-inner",children:[Object(i.jsx)(y,{showResult:c}),Object(i.jsx)(j,{showResult:c,"data-test-id":"spinner-result",children:t})]})}))};T.propTypes={children:s.a.node,grow:s.a.bool,onResultDisplayFinish:s.a.func,resultAnimationDuration:s.a.number.isRequired,role:s.a.string,showResult:s.a.bool,size:s.a.oneOf([l.c,l.f,l.e]),style:s.a.object,theme:p.a,use:s.a.oneOf(Object.values(g))};T.defaultProps=E;T.displayName="VizExLoadingSpinner";t.a=T},ubOH:function(e,t,n){"use strict";var r=n("QYOI"),i=n("JGJA"),a=n("NRxt");const s=Object(r.Record)({messageStatus:null,timestamp:null,sendFailure:null},"Status");t.a=function(e){if(!e)return s();const t=Object(i.a)("messageStatus",e)||null,n=Object(i.a)("timestamp",e),r="number"==typeof n?n:null,o=Object(i.a)("sendFailure",e)||null,c=o&&Object(a.a)(o);return s({messageStatus:t,timestamp:r,sendFailure:c})}},ughT:function(e,t,n){"use strict";n.r(t);n.d(t,"getFile",(function(){return i}));n.d(t,"getLocalId",(function(){return a}));n.d(t,"getFileId",(function(){return s}));n.d(t,"getUploadProgress",(function(){return o}));var r=n("JGJA");const i=Object(r.a)("file"),a=Object(r.a)("localId"),s=Object(r.a)("fileId"),o=Object(r.a)("uploadProgress")},ul3k:function(e,t,n){"use strict";n.r(t);n.d(t,"isEmailCaptureResponseMessage",(function(){return a}));var r=n("0IK8"),i=n("l0Ga");const a=e=>Object(r.getTopLevelType)(e)===i.a},usEm:function(e,t,n){"use strict";n.r(t);n.d(t,"isEmailCapturePromptMessage",(function(){return a}));var r=n("0IK8"),i=n("KO+H");const a=e=>Object(r.getTopLevelType)(e)===i.a},uxYb:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Ux+X"),i=n("qdbJ");function a(){return e=>{e(Object(i.loadStagedThread)());e(Object(r.trackInteraction)("widget-interaction",{action:"create new thread"}))}}},uym0:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"v+ge":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n.d(t,"b",(function(){return a}));var r=n("VVfI");const i="REFRESH_WIDGET_DATA",a="UPDATE_SESSION_ID";Object(r.a)("FETCH_SESSION_ID")},v0wH:function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));n.d(t,"a",(function(){return i}));const r="SENT",i="FAILED"},v2h7:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("Gc2C"),i=n("Ut5p"),a=n("VSQ5"),s=n("WTKJ");const o=Object(i.b)(a.a,e=>({view:e})),c=e=>t=>{Object(r.a)([s.b,s.c,s.a].indexOf(e)>-1,'`updateView` expected to be called with a valid `view` argument, but received "%s"',e);t(o(e))}},vBag:function(e,t,n){"use strict";n.r(t);n.d(t,"postUnreadConversationCountChangedEvent",(function(){return a}));var r=n("sZZm"),i=n("mlLV");const a=({unreadCount:e})=>{Object(r.postExternalApiEvent)({eventType:i.f,payload:{unreadCount:e}})}},vDBy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=({node:e})=>{if(e&&"BLOCKQUOTE"===e.tagName){e.style.setProperty("margin","0px 0px 0px .8ex");e.style.setProperty("padding-left","1ex");e.style.setProperty("border-left","1px solid rgb(204,204,204)");return{node:e}}return null}},vfjv:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("wMOD"),a=n("QnHA"),s=n("TA7Z"),o=n("4Brc"),c=n("647q"),u=n("xM+F");const l=Object(r.a)([o.a,c.getLatestWidgetData],(e,t)=>!Object(u.getIsPrivateLoad)(t)&&Object(s.a)(e));n.d(t,"getShouldFetchInitialVisitorThreads",(function(){return d}));const d=Object(r.a)([l,a.a],e=>{const t=Object(i.a)();return Boolean(!e||t)})},w1qe:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("QYOI"),i=n("JGJA"),a=n("g4ag"),s=n("xZ3y"),o=n("BnUr"),c=n("Ut5p");const u=Object(r.Map)(),l="stagingText";t.b=Object(c.c)({[s.GET_VISITOR_THREADS_SUCCESS]:(e,t)=>{const{threads:n}=t.payload;return n&&n.length?n.reduce((e,t)=>{const n=Object(o.getThreadId)(t);return e.set(n,{stagingText:""})},Object(r.Map)()):Object(r.Map)()},[s.UPDATE_MESSAGE_EDITOR_STAGING_TEXT]:(e,t)=>{const{threadId:n,stagingText:r}=t.payload;if(Object(i.a)(n,e)){return Object(a.a)([n,l],r,e)}return e.set(n,{stagingText:r})},[s.REMOVE_MESSAGE_EDITOR_STAGING_TEXT]:(e,t)=>{const n=t.payload;if(Object(i.a)(n,e)){return Object(a.a)([n,l],"",e)}return e}},u)},wD2U:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("QnHA"),a=n("MJM1");const s=Object(a.a)(["isFullscreen"]),o=Object(a.a)(["mobile"]);n.d(t,"getIsMobile",(function(){return c}));const c=Object(r.a)([i.a],e=>o(e)||s(e))},wFcP:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("iKGd"),i=n("3Ezh");const a={primary:r.h,text:r.j,textOnPrimary:r.o,errorText:r.a,disabledBackground:r.k,disabledText:r.l,placeholderText:r.g,inputBorder:r.e,inputBackground:r.d,helpText:r.c,happyColor:r.b,neutralColor:r.f,sadColor:r.i},s={font:{fontFamily:i.a},colors:a,components:{Button:{},IconButton:{},Link:{},List:{},ListItemButton:{}}}},wL7V:function(e,t,n){"use strict";var r=n("MJM1");const i=["threadId"],a=["channel"],s=["message"],o=["allowRetry"];n.d(t,"a",(function(){return c}));Object(r.a)(o),Object(r.a)(i),Object(r.a)(a);const c=Object(r.a)(s)},wMOD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q8Gl");const i=()=>"true"===Object(r.getWindowLocation)().paramValue("inApp53")},wO6X:function(e,t,n){"use strict";var r=n("QYOI"),i=n("xw4j"),a=n("BvOu"),s=n("c1C1");class o extends(Object(r.Record)({"@type":i.a,id:null,timestamp:null,subject:null,emailAddress:null},"TranscriptSubmissionMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(a.generateUuid)(),subject:e.subject||"",emailAddress:e.emailAddress||"",timestamp:e.timestamp||Object(s.generateUniqueClientTimestamp)("TranscriptSubmissionMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=o},wQJz:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({activationStatus:null,agentState:null,agentType:null,assignable:!0,avatar:null,bot:!1,email:null,firstName:null,lastName:null,meetingsLinkText:null,meetingsLinkUrl:null,online:!1,salesPro:!1,userId:null},"Responder");t.a=i},wZdh:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("SlUU"),i=n("E6wg"),a=n("Rrky");const s=({message:e,threadId:t})=>(n,s)=>{const o=Object(r.fileAttachmentIdsInMessage)(e);if(o.size){const e=Object(i.getSessionId)(s());n(Object(a.resolveAttachments)({fileIds:o,sessionId:e,threadId:t}))}}},wihT:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("kqCt"),i=n("QYOI"),a=n("Mx3c"),s=n("kfJr");const o=()=>Object(i.List)([Object(r.a)({senderType:a.SYSTEM,senderId:s.a})])},wjRl:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("9f1P");const i=Object(r.css)(["outline-offset:1px;outline:2px solid #00a4bd;"])},wrz1:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("ZqFO"),i=n("VvTX"),a=n("97n4"),s=n("UBEt"),o=n("647q"),c=n("wD2U");const u=e=>{const t=Object(o.getLatestWidgetData)(e),n=Object(r.f)(t),u=Object(i.getClientTriggers)(n),l=Object(a.c)(u),d=Object(c.getIsMobile)(e),p=Object(s.a)(l),f=Object(i.getPopMessageOnSmallScreens)(n),h=Object(i.getPopOpenWelcomeMessage)(n),b=Object(i.getPopOpenWidget)(n);return d?p&&!f:!b&&!h&&p}},"x+ne":function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));n.d(t,"a",(function(){return a}));var r=n("9f1P");const i=Object(r.css)(["font-size:12px;line-height:18px;"]),a=Object(r.css)(["small{","}"],i)},x1JE:function(e,t,n){"use strict";n.r(t);n.d(t,"getEvict",(function(){return l}));n.d(t,"getIdInvariant",(function(){return d}));n.d(t,"getIdTransform",(function(){return p}));n.d(t,"getName",(function(){return f}));n.d(t,"getNotSetValue",(function(){return h}));n.d(t,"getEntry",(function(){return b}));n.d(t,"getEntries",(function(){return g}));var r=n("QYOI"),i=n("qjq5"),a=n("MJM1"),s=n("dAms"),o=n("JoAZ"),c=n("Sbt9"),u=n("OPip");const l=e=>Object(a.a)(s.b)(e),d=e=>Object(a.a)(s.c)(e),p=e=>Object(a.a)(s.d)(e),f=e=>Object(a.a)(s.e)(e),h=e=>Object(a.a)(s.f)(e),b=Object(i.a)((e,t)=>{Object(o.a)(t);Object(u.a)(e,t);const n=Object(c.a)(e,t);return t.getIn(s.a).get(n,h(t))}),g=(e,t=Object(r.Set)())=>{Object(o.a)(e);return t.size?t.reduce((t,n)=>{Object(u.a)(n,e);const r=Object(c.a)(n,e),i=e.getIn(s.a).get(r,h(e));return t.set(r,i)},Object(r.Map)()):e.getIn(s.a)}},xCrP:function(e,t,n){"use strict";var r=n("qjq5"),i=n("TaVT"),a=n("TBI5");function s(e,t,n){const r=Object(i.a)(e,n);return Object(a.a)(e,t(r),n)}t.a=Object(r.a)(s)},"xM+F":function(e,t,n){"use strict";n.r(t);n.d(t,"getIsPrivateLoad",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("privateLoad",e)},xOzo:function(e,t,n){"use strict";var r=n("qjq5"),i=n("QYOI"),a=n("3Yas");a.l.implement(Array,(e,t)=>t.some(e));a.l.implementInherited(i.Iterable,(e,t)=>t.some(e));a.l.implement(Object,(e,t)=>{const n=Object.keys(t),r=n.length;for(let i=0;i({pathname:e,listen:()=>()=>{}}),u=n("nDpY"),l=n.n(u),d=n("8CDR"),p=n("zP/g"),f=n.n(p),h=n("19qb"),b=n("jxkM"),g=n("Pda3"),m=n("nqz/"),O=n("Ut5p"),v=n("I6ms");const j=Object(O.b)(v.b,e=>({isFirstVisitorSession:e}));var y=n("1+S/"),E=n("Ux+X"),T=n("m2RC");const w=Object(O.b)(v.a,e=>({globalCookieOptOut:e})),I=e=>t=>{t(w(e));if(Object(T.getIsPortal53Prod)()&&"no"===e){t(j(!1));t(Object(E.trackInteraction)("pageviewFiftyThree",{screen:"widget",subscreen:"thread view",action:"rendered widget"}))}if("yes"===e){t(j(!0));try{localStorage.removeItem(y.a.HUBLYTICS_EVENTS_53);localStorage.removeItem(y.a.HMPL)}catch(e){return}}},C=Object(O.b)(v.d,e=>({enabled:!!e.identificationToken}));var A=n("H0uH"),x=n("EFqt"),S=n("647q"),_=n("DdHT"),R=n("ZqFO"),D=n("VvTX"),M=n("97n4"),N=n("UBEt");const P=e=>Object(_.a)(R.f,D.getClientTriggers,M.b,N.b)(e);var k=n("47FM");const L=({scrollPercentage:e})=>(t,n)=>{const r=Object(S.getLatestWidgetData)(n());e>=P(r)&&t(Object(k.a)())};var B=n("l04f"),F=n("wD2U"),H=n("sENq"),U=n("QDdj"),G=n("IKdf"),q=n("mJzd"),W=n("/Ihs"),V=n("JerM");const z=Object(V.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("threadview-utv"),n.e("CurrentView-ThreadView~messages-preview"),n.e("CurrentView-ThreadView")]).then(n.bind(null,"twxQ"))),J=Object(V.a)(()=>Promise.all([n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadView~threadview-utv"),n.e("CurrentView-KnowledgeBaseContainer~CurrentView-ThreadListContainer"),n.e("CurrentView-KnowledgeBaseContainer")]).then(n.bind(null,"X1ER"))),K=()=>(e,t)=>{Object(W.getKnowledgeBaseEnabled)(t())?J.preload():z.preload()};var Y=n("piVz"),Q=n("keKC"),Z=n("qdbJ"),X=n("NpZo"),$=n("eg5p"),ee=n("Ktcs"),te=n("VfuR"),ne=n.n(te),re=n("q8Gl");const ie=()=>"true"===Object(re.getWindowLocation)().paramValue("isFirstVisitorSession"),ae=()=>{throw new Error("visitorIdentity context was used before its value got instantiated")},se={getIsFirstVisitorSession:ae,setIsFirstVisitorSession:ae,setIsPrivateWidgetLoad:ae,getIsPrivateWidgetLoad:ae},oe=Object(ee.createContext)(se),ce=({children:e})=>{const[t,n]=Object(ee.useState)(ie()),[i,a]=Object(ee.useState)(!1),s=()=>!i&&t,o=()=>i;return Object(r.jsx)(oe.Provider,{value:{getIsFirstVisitorSession:s,setIsFirstVisitorSession:n,setIsPrivateWidgetLoad:a,getIsPrivateWidgetLoad:o},children:e})};ce.displayName="VisitorIdentityContextProvider";ce.propTypes={children:ne.a.node};const ue=e=>{const t=t=>{const n=Object(ee.useContext)(oe);return Object(r.jsx)(e,Object.assign({},t,{visitorIdentity:n}))};t.displayName=`ConsumeVisitorIdentityContext(${e.displayName})`;return t};ue.displayName="ConsumeVisitorIdentityContext";const le=e=>{const t=Object(U.a)(e),n=Object(g.isSucceeded)(t),r=Object(X.getSelectedThreadId)(e)===$.a;return{isOpen:Object(B.getIsOpen)(e),mobile:Object(F.getIsMobile)(e),shouldRenderContent:n,showInitialMessageBubble:Object(Y.a)(e),widgetLocation:Object(H.a)(e),isViewingStubbedThread:r}},de={executeExitIntentTrigger:Q.a,updateIsFirstVisitorSession:j,onGlobalCookieOptOut:I,handleReceiveWidgetData:m.a,handleScrollPercentageChange:L,onLauncherHover:K,setWindowVisible:x.c,refreshWidgetData:A.a,toggleOpen:b.toggleOpen,trackInteraction:E.trackInteraction,trackUserInteraction:G.a,loadStagedThread:Z.loadStagedThread,updateVisitorIdentificationEnabled:C};var pe=ue(Object(h.connect)(le,de)(q.a)),fe=n("i9zZ");class he extends ee.Component{constructor(e){super(e);this.state={AsyncComponent:null,error:null}}componentDidMount(){Promise.all([Promise.all([n.e("CurrentView-ThreadView~messages-preview"),n.e("messages-preview")]).then(n.bind(null,"46oA")),Object(fe.initializeI18n)()]).then(([e])=>{this.setState({AsyncComponent:e.default})},e=>{this.setState({error:e})})}render(){const e=this.state.AsyncComponent;if(this.state.error){window.parent.postMessage("error");return null}return e?Object(r.jsx)(e,Object.assign({},this.props)):null}}he.displayName="AsyncMessagesPreview";var be=he,ge=n("QmIQ");const me="preview",Oe="STANDARD";var ve=n("CdQ/"),je=n("+GKH"),ye=n("CJvR"),Ee=n("QYOI"),Te=n.n(Ee),we=n("2fjV"),Ie=n("gIOm"),Ce=n("M9tH"),Ae=n("D/wX"),xe=n("/KG3"),Se=n("qQrL"),_e=n("08EF");const Re=()=>"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({maxAge:200,serialize:{options:{circular:"[CIRCULAR]"},immutable:Te.a},actionSanitizer:e=>e.type===Se.a.SUCCEEDED?Object.assign({},e,{payload:{client:"<< PUBSUB CLIENT >>"}}):e,stateSanitizer:e=>e.pubSubClient.data?Object.assign({},e,{pubSubClient:e.pubSubClient.set("data","<< PUBSUB CLIENT >>")}):e}):je.compose;function De(e,t){const n=[ye.a.withExtraArgument(t),Ae.a,Ie.a,Ce.a,we.a,xe.a],r=Re();return Object(je.createStore)(_e.a,e,r(Object(je.applyMiddleware)(...n)))}const Me=e=>"true"===e||"false"!==e&&void 0;var Ne=n("KXCN"),Pe=n("zFg9");const ke=new d.a(window.location);function Le(e){return ke.paramValue(e)}function Be(){const e=Le("url");try{return decodeURIComponent(e)}catch(t){return e}}let Fe=()=>se;function He(e={}){const t=Me(Le("startOpen")),n="true"===Le("inApp53");return De(Object.assign({},e,{visitorIdentity:new Ne.a({globalCookieOptOut:Le("globalCookieOptOut"),isFirstVisitorSession:"true"===Le("isFirstVisitorSession")}),widgetUi:Object(Pe.a)({isAttachmentDisabled:"true"===Le("isAttachmentDisabled"),isInitialInputFocusDisabled:"true"===Le("isInitialInputFocusDisabled"),isFullscreen:"true"===Le("isFullscreen"),mobile:"true"===Le("mobile"),startOpen:t,hideWelcomeMessage:"true"!==Le("hideWelcomeMessage"),domain:Le("domain"),url:Be(),isEmbeddedInProduct:n,isInCMS:"true"===Le("isInCMS"),mode:Le("mode"),apiEnableWidgetCookieBanner:Le("enableWidgetCookieBanner")})}),{getVisitorIdentityContext:()=>Fe()})}const Ue=He(),Ge=({children:e})=>{const t=Object(ee.useContext)(oe);Fe=()=>t;return Object(r.jsx)(h.Provider,{store:Ue,children:e})};Ge.displayName="ReduxProvider";Ge.propTypes={children:ne.a.node};var qe=Ge,We=n("8Ma8");n.d(t,"default",(function(){return Ve}));class Ve{constructor(){this.widgetShellUrl=new d.a(window.location)}getQueryParam(e){return this.widgetShellUrl.paramValue(e)}setSentryTags(){"function"==typeof a.a.setTagsContext&&a.a.setTagsContext({messagesUtk:Object(ve.getMessagesUtk)(),hubspotUtk:this.getQueryParam("hubspotUtk"),locale:navigator.language||navigator.userLanguage,parentUrl:this.getQueryParam("url"),isAttachmentDisabled:"true"===this.getQueryParam("isAttachmentDisabled"),isInitialInputFocusDisabled:"true"===this.getQueryParam("isInitialInputFocusDisabled"),isFullscreen:"true"===this.getQueryParam("isFullscreen"),mode:this.getQueryParam("mode"),mobile:"true"===this.getQueryParam("mobile"),isEmbeddedInProduct:"true"===this.getQueryParam("inApp53"),enableWidgetCookieBanner:this.getQueryParam("enableWidgetCookieBanner")})}renderWidget(){Object(fe.initializeI18n)().then(()=>{const e="true"===this.getQueryParam("inline");Object(s.render)(Object(r.jsx)(o.b,{config:f.a,history:c("/"),children:Object(r.jsx)(ge.a,{errorLoggingTitle:"visitor-widget",children:Object(r.jsx)(ce,{children:Object(r.jsx)(qe,{children:Object(r.jsx)(We.b,{disableFocusTrap:e,disableAutoFocus:e,disableWidgetDialog:e,children:Object(r.jsx)(pe,{location:window.location,inline:e})})})})})}),document.getElementsByClassName("widget")[0])})}renderPreview(){Object(s.render)(Object(r.jsx)(ge.a,{errorLoggingTitle:"message-preview",children:Object(r.jsx)(ce,{children:Object(r.jsx)(qe,{children:Object(r.jsx)(We.b,{disableFocusTrap:!0,disableAutoFocus:!0,disableWidgetDialog:!0,children:Object(r.jsx)(be,{location:window.location,messageId:this.getQueryParam("messageId"),messagesUtk:Object(ve.getMessagesUtk)()})})})})}),document.getElementsByClassName("widget")[0])}start(){window.AppInstance=this;this.setSentryTags();l.a.get();switch(this.getQueryParam("mode")){case me:this.renderPreview();return;case Oe:default:this.renderWidget();return}}}(new Ve).start()},xW98:function(e,t,n){"use strict";n.r(t);n.d(t,"findResponderByIdFromList",(function(){return i}));var r=n("Avso");function i({responders:e,responderId:t}){return e.find(e=>Object(r.getUserId)(e)===String(t))}},xXtf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n.d(t,"b",(function(){return i}));const r=53,i=99535353},xZ3y:function(e,t,n){"use strict";n.r(t);n.d(t,"APP_IN_FOREGROUND",(function(){return r}));n.d(t,"APP_IN_BACKGROUND",(function(){return i}));n.d(t,"TOGGLE_OPEN",(function(){return a}));n.d(t,"ADD_CONVERSATION",(function(){return s}));n.d(t,"OPEN_CONVERSATION_FOR_NEW_CHANNEL",(function(){return o}));n.d(t,"RECEIVED_INCOMING_MESSAGE",(function(){return c}));n.d(t,"CLEAR_CURRENT_CHANNEL",(function(){return u}));n.d(t,"SUBSCRIBE_TO_THREAD_CHANNELS",(function(){return l}));n.d(t,"CLEAR_UNSEEN_COUNT_FOR_CHANNEL",(function(){return d}));n.d(t,"INCREMENT_UNSEEN_COUNT",(function(){return p}));n.d(t,"ADD_MESSAGE_TO_CONVERSATION",(function(){return f}));n.d(t,"UPDATE_MESSAGE_IN_CONVERSATION",(function(){return h}));n.d(t,"NETWORK_OFFLINE",(function(){return b}));n.d(t,"NETWORK_ONLINE",(function(){return g}));n.d(t,"GET_WIDGET_DATA",(function(){return m}));n.d(t,"GET_WIDGET_DATA_SUCCEEDED",(function(){return O}));n.d(t,"CLICK_VIRAL_LINK",(function(){return v}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS",(function(){return j}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS_FAILED",(function(){return y}));n.d(t,"SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED",(function(){return E}));n.d(t,"CLICKED_MEETINGS_LINK",(function(){return T}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES",(function(){return w}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED",(function(){return I}));n.d(t,"GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED",(function(){return C}));n.d(t,"GET_VISITOR_THREADS",(function(){return A}));n.d(t,"GET_VISITOR_THREADS_STARTED",(function(){return x}));n.d(t,"GET_VISITOR_THREADS_SUCCESS",(function(){return S}));n.d(t,"GET_VISITOR_THREADS_FAILURE",(function(){return _}));n.d(t,"LAST_SEEN_SENT",(function(){return R}));n.d(t,"LAST_SEEN_SUCCESS",(function(){return D}));n.d(t,"LAST_SEEN_FAILURE",(function(){return M}));n.d(t,"RECEIVED_WIDGET_SHELL_DATA",(function(){return N}));n.d(t,"TRACK_USER_INTERACTION",(function(){return P}));n.d(t,"USER_INPUT_ON_FOCUS",(function(){return k}));n.d(t,"UPDATE_MESSAGE_EDITOR_STAGING_TEXT",(function(){return L}));n.d(t,"REMOVE_MESSAGE_EDITOR_STAGING_TEXT",(function(){return B}));n.d(t,"THREAD_CREATED_AND_NETWORK_ONLINE",(function(){return F}));const r="APP_IN_FOREGROUND",i="APP_IN_BACKGROUND",a="TOGGLE_OPEN",s="ADD_CONVERSATION",o="OPEN_CONVERSATION_FOR_NEW_CHANNEL",c="RECEIVED_INCOMING_MESSAGE",u="CLEAR_CURRENT_CHANNEL",l="SUBSCRIBE_TO_THREAD_CHANNELS",d="CLEAR_UNSEEN_COUNT_FOR_CHANNEL",p="INCREMENT_UNSEEN_COUNT",f="ADD_MESSAGE_TO_CONVERSATION",h="UPDATE_MESSAGE_IN_CONVERSATION",b="NETWORK_OFFLINE",g="NETWORK_ONLINE",m="GET_WIDGET_DATA",O="GET_WIDGET_DATA_SUCCEEDED",v="CLICK_VIRAL_LINK",j="SEND_VISITOR_EMAIL_ADDRESS",y="SEND_VISITOR_EMAIL_ADDRESS_FAILED",E="SEND_VISITOR_EMAIL_ADDRESS_SUCCEEDED",T="CLICKED_MEETINGS_LINK",w="GET_SUPPLEMENTAL_INITIAL_MESSAGES",I="GET_SUPPLEMENTAL_INITIAL_MESSAGES_SUCCEEDED",C="GET_SUPPLEMENTAL_INITIAL_MESSAGES_FAILED",A="GET_VISITOR_THREADS",x="GET_VISITOR_THREADS_STARTED",S="GET_VISITOR_THREADS_SUCCESS",_="GET_VISITOR_THREADS_FAILURE",R="LAST_SEEN_SENT",D="LAST_SEEN_SUCCESS",M="LAST_SEEN_FAILURE",N="RECEIVED_WIDGET_SHELL_DATA",P="TRACK_USER_INTERACTION",k="USER_INPUT_ON_FOCUS",L="UPDATE_MESSAGE_EDITOR_STATING_TEXT",B="REMOVE_MESSAGE_EDITOR_STAGING_TEXT",F="THREAD_CREATED_AND_NETWORK_ONLINE"},xe9j:function(e,t,n){"use strict";var r=n("QYOI"),i=n("F4Hj"),a=n("TXZ9"),s=n("+lAi"),o=n("Vfyk"),c=n("Jpeq"),u=n("3z2x"),l=Object(r.Record)({consentToCommunicateSubscriptionId:null,customConsentToCommunicateMessage:null,customConsentToProcessMessage:null,gdprConsentToCommunicateEnabled:!1,gdprConsentToProcessEnabled:!1,gdprExplicitConsentToProcessRequired:!1,consentToProcessStatus:u.b,cookieConsentPrompt:c.a},"GDPRConsentOptions");const d="V1",p="RIGHT_ALIGNED",f="@type";t.a=Object(r.Record)({[f]:d,botResponder:null,chatflowId:null,coloring:Object(a.a)(),channelInstanceId:null,gates:null,gdprConsentOptions:l(),inOfficeHours:!1,knowledgeBaseUrl:null,language:null,meetingsLinkText:null,meetingsLinkUrl:null,message:Object(i.a)(),messagesPageUri:null,nextOfficeHoursStartTime:0,privateLoad:!1,sendFrom:null,sessionId:null,showingHsBranding:!1,shouldListenToGdprBannerConsent:!0,typicalResponseTime:Object(s.a)(),usingOfficeHours:!1,availabilityOptions:new o.a,showPreviousConversations:!0,widgetLocation:p},"WidgetData")},xfs0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="THREAD_STATUS_UPDATE"},xk3e:function(e,t,n){"use strict";n.r(t);var r=n("MBJP"),i=n("QYOI"),a=n("Avso"),s=n("BnUr");const o=({thread:e,responders:t=Object(i.List)(),botResponder:n})=>{if(!e&&!n)return null;const r=Object(s.getResponder)(e);return(t||Object(i.List)()).find(t=>""+Object(a.getUserId)(t)==""+Object(s.getAssignedAgentId)(e))||n||r||null};var c=n("k09d"),u=n("AFl3"),l=n("RyNb");n.d(t,"getAssignedResponderInWidget",(function(){return d}));const d=Object(r.a)([u.a,c.a,l.a],(e,t,n)=>o({thread:t,responders:e,botResponder:n}))},xmwc:function(e,t,n){"use strict";n.r(t);n.d(t,"removeTimeOnPageTrigger",(function(){return a}));var r=n("Tldl"),i=n("e/Xz");const a=()=>(e,t)=>{const n=Object(r.getTimeOnPageTriggerTimeoutId)(t());clearTimeout(n);e(Object(i.removeTimeOnPageTriggerAction)())}},xr6y:function(e,t,n){"use strict";n.d(t,"a",(function(){return J}));n.d(t,"b",(function(){return z}));n.d(t,"c",(function(){return R}));n.d(t,"d",(function(){return Y}));n.d(t,"e",(function(){return Q}));n.d(t,"f",(function(){return ne}));n.d(t,"g",(function(){return re}));n.d(t,"h",(function(){return se}));n.d(t,"i",(function(){return ce}));n.d(t,"j",(function(){return m}));var r=n("slCD"),i=n("Zulv"),a=n("Ktcs"),s=n.n(a);let o="default",c="",u=new WeakMap;function l(e){if(Object(i.f)()){if("default"===o){c=document.documentElement.style.webkitUserSelect;document.documentElement.style.webkitUserSelect="none"}o="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){u.set(e,e.style.userSelect);e.style.userSelect="none"}}function d(e){if(Object(i.f)()){if("disabled"!==o)return;o="restoring";setTimeout(()=>{Object(i.j)(()=>{if("restoring"===o){"none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=c||"");c="";o="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&u.has(e)){let t=u.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t);""===e.getAttribute("style")&&e.removeAttribute("style");u.delete(e)}}function p(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}class f{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0;this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation();this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t;this.target=t.target;this.currentTarget=t.currentTarget;this.relatedTarget=t.relatedTarget;this.bubbles=t.bubbles;this.cancelable=t.cancelable;this.defaultPrevented=t.defaultPrevented;this.eventPhase=t.eventPhase;this.isTrusted=t.isTrusted;this.timeStamp=t.timeStamp;this.type=e}}function h(e){let t=Object(a.useRef)({isFocused:!1,onBlur:e,observer:null});t.current.onBlur=e;Object(i.q)(()=>{const e=t.current;return()=>{if(e.observer){e.observer.disconnect();e.observer=null}}},[]);return Object(a.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,i;t.current.isFocused=!1;n.disabled&&(null===(i=(r=t.current).onBlur)||void 0===i||i.call(r,new f("blur",e)));if(t.current.observer){t.current.observer.disconnect();t.current.observer=null}};n.addEventListener("focusout",r,{once:!0});t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer.disconnect();n.dispatchEvent(new FocusEvent("blur"));n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0}))}});t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}const b=s.a.createContext(null);b.displayName="PressResponderContext";function g(e){let t=Object(a.useContext)(b);if(t){let{register:n}=t,a=Object(r.a)(t,["register"]);e=Object(i.i)(a,e);n()}Object(i.s)(t,e.ref);return e}function m(e){let t=g(e),{onPress:n,onPressChange:s,onPressStart:o,onPressEnd:c,onPressUp:u,isDisabled:f,isPressed:h,preventFocusOnPress:b,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:T}=t,w=Object(r.a)(t,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),x=Object(a.useRef)(null);x.current={onPress:n,onPressChange:s,onPressStart:o,onPressEnd:c,onPressUp:u,isDisabled:f,shouldCancelOnPointerExit:m};let[S,R]=Object(a.useState)(!1),D=Object(a.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:M,removeAllGlobalListeners:N}=Object(i.n)(),P=Object(a.useMemo)(()=>{let e=D.current,t=(t,n)=>{let{onPressStart:r,onPressChange:i,isDisabled:a}=x.current;if(!a&&!e.didFirePressStart){r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey});i&&i(!0);e.didFirePressStart=!0;R(!0)}},n=(t,n,r=!0)=>{let{onPressEnd:i,onPressChange:a,onPress:s,isDisabled:o}=x.current;if(e.didFirePressStart){e.ignoreClickAfterPress=!0;e.didFirePressStart=!1;i&&i({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey});a&&a(!1);R(!1);s&&r&&!o&&s({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey})}},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=x.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},a=t=>{if(e.isPressed){e.isOverTarget&&n(E(e.target,t),e.pointerType,!1);e.isPressed=!1;e.isOverTarget=!1;e.activePointerId=null;e.pointerType=null;N();T||d(e.target)}},s={onKeyDown(n){if(v(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){A(n.target,n.key)&&n.preventDefault();n.stopPropagation();if(!e.isPressed&&!n.repeat){e.target=n.currentTarget;e.isPressed=!0;t(n,"keyboard");M(document,"keyup",o,!1)}}else"Enter"===n.key&&O(n.currentTarget)&&n.stopPropagation()},onKeyUp(t){v(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(E(e.target,t),"keyboard")},onClick(a){if((!a||a.currentTarget.contains(a.target))&&a&&0===a.button){a.stopPropagation();f&&a.preventDefault();if(!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||p(a.nativeEvent))){f||b||Object(i.c)(a.currentTarget);t(a,"virtual");r(a,"virtual");n(a,"virtual")}e.ignoreEmulatedMouseEvents=!1;e.ignoreClickAfterPress=!1}}},o=t=>{if(e.isPressed&&v(t,e.target)){A(t.target,t.key)&&t.preventDefault();t.stopPropagation();e.isPressed=!1;let r=t.target;n(E(e.target,t),"keyboard",e.target.contains(r));N();e.target instanceof HTMLElement&&e.target.contains(r)&&(O(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){s.onPointerDown=n=>{if(0===n.button&&n.currentTarget.contains(n.target))if(_(n.nativeEvent))e.pointerType="virtual";else{C(n.currentTarget)&&n.preventDefault();e.pointerType=n.pointerType;n.stopPropagation();if(!e.isPressed){e.isPressed=!0;e.isOverTarget=!0;e.activePointerId=n.pointerId;e.target=n.currentTarget;f||b||Object(i.c)(n.currentTarget);T||l(e.target);t(n,e.pointerType);M(document,"pointermove",o,!1);M(document,"pointerup",c,!1);M(document,"pointercancel",u,!1)}}};s.onMouseDown=e=>{if(e.currentTarget.contains(e.target)&&0===e.button){C(e.currentTarget)&&e.preventDefault();e.stopPropagation()}};s.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&I(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let o=r=>{if(r.pointerId===e.activePointerId)if(I(r,e.target)){if(!e.isOverTarget){e.isOverTarget=!0;t(E(e.target,r),e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=!1;n(E(e.target,r),e.pointerType,!1);x.current.shouldCancelOnPointerExit&&a(r)}},c=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button){I(t,e.target)?n(E(e.target,t),e.pointerType):e.isOverTarget&&n(E(e.target,t),e.pointerType,!1);e.isPressed=!1;e.isOverTarget=!1;e.activePointerId=null;e.pointerType=null;N();T||d(e.target)}},u=e=>{a(e)};s.onDragStart=e=>{e.currentTarget.contains(e.target)&&a(e)}}else{s.onMouseDown=n=>{if(0===n.button&&n.currentTarget.contains(n.target)){C(n.currentTarget)&&n.preventDefault();n.stopPropagation();if(!e.ignoreEmulatedMouseEvents){e.isPressed=!0;e.isOverTarget=!0;e.target=n.currentTarget;e.pointerType=p(n.nativeEvent)?"virtual":"mouse";f||b||Object(i.c)(n.currentTarget);t(n,e.pointerType);M(document,"mouseup",o,!1)}}};s.onMouseEnter=n=>{if(n.currentTarget.contains(n.target)){n.stopPropagation();if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=!0;t(n,e.pointerType)}}};s.onMouseLeave=t=>{if(t.currentTarget.contains(t.target)){t.stopPropagation();if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=!1;n(t,e.pointerType,!1);x.current.shouldCancelOnPointerExit&&a(t)}}};s.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let o=t=>{if(0===t.button){e.isPressed=!1;N();if(e.ignoreEmulatedMouseEvents)e.ignoreEmulatedMouseEvents=!1;else{I(t,e.target)?n(E(e.target,t),e.pointerType):e.isOverTarget&&n(E(e.target,t),e.pointerType,!1);e.isOverTarget=!1}}};s.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=j(n.nativeEvent);if(r){e.activePointerId=r.identifier;e.ignoreEmulatedMouseEvents=!0;e.isOverTarget=!0;e.isPressed=!0;e.target=n.currentTarget;e.pointerType="touch";f||b||Object(i.c)(n.currentTarget);T||l(e.target);t(n,e.pointerType);M(window,"scroll",c,!0)}};s.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;r.stopPropagation();if(!e.isPressed)return;let i=y(r.nativeEvent,e.activePointerId);if(i&&I(i,r.currentTarget)){if(!e.isOverTarget){e.isOverTarget=!0;t(r,e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=!1;n(r,e.pointerType,!1);x.current.shouldCancelOnPointerExit&&a(r)}};s.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;t.stopPropagation();if(!e.isPressed)return;let i=y(t.nativeEvent,e.activePointerId);if(i&&I(i,t.currentTarget)){r(t,e.pointerType);n(t,e.pointerType)}else e.isOverTarget&&n(t,e.pointerType,!1);e.isPressed=!1;e.activePointerId=null;e.isOverTarget=!1;e.ignoreEmulatedMouseEvents=!0;T||d(e.target);N()};s.onTouchCancel=t=>{if(t.currentTarget.contains(t.target)){t.stopPropagation();e.isPressed&&a(t)}};let c=t=>{e.isPressed&&t.target.contains(e.target)&&a({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};s.onDragStart=e=>{e.currentTarget.contains(e.target)&&a(e)}}return s},[M,f,b,N,T]);Object(a.useEffect)(()=>()=>{T||d(D.current.target)},[T]);return{isPressed:h||S,pressProps:Object(i.i)(w,P)}}function O(e){return"A"===e.tagName&&e.hasAttribute("href")}function v(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof HTMLInputElement&&!S(i,n)||i instanceof HTMLTextAreaElement||i.isContentEditable||O(i)&&("button"!==a||"Enter"===n)||"link"===a&&"Enter"!==n)}function j(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function y(e,t){const n=e.changedTouches;for(let e=0;et.right||t.left>e.right)&&!(e.top>t.bottom||t.top>e.bottom)}function I(e,t){return w(t.getBoundingClientRect(),T(e))}function C(e){return!(e instanceof HTMLElement&&e.draggable)}function A(e,t){return e instanceof HTMLInputElement?!S(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type}const x=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:x.has(e.type)}function _(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function R(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=Object(a.useCallback)(e=>{if(e.target===e.currentTarget){r&&r(e);i&&i(!1);return!0}},[r,i]),o=h(s),c=Object(a.useCallback)(e=>{if(e.target===e.currentTarget){n&&n(e);i&&i(!0);o(e)}},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:t||!r&&!i?null:s}}}let D=null,M=new Set,N=!1,P=!1,k=!1;const L={Tab:!0,Escape:!0};function B(e,t){for(let n of M)n(e,t)}function F(e){return!(e.metaKey||!Object(i.g)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}function H(e){P=!0;if(F(e)){D="keyboard";B("keyboard",e)}}function U(e){D="pointer";if("mousedown"===e.type||"pointerdown"===e.type){P=!0;B("pointer",e)}}function G(e){if(p(e)){P=!0;D="virtual"}}function q(e){if(e.target!==window&&e.target!==document){if(!P&&!k){D="virtual";B("virtual",e)}P=!1;k=!1}}function W(){P=!1;k=!0}function V(){if("undefined"==typeof window||N)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){P=!0;e.apply(this,arguments)};document.addEventListener("keydown",H,!0);document.addEventListener("keyup",H,!0);document.addEventListener("click",G,!0);window.addEventListener("focus",q,!0);window.addEventListener("blur",W,!1);if("undefined"!=typeof PointerEvent){document.addEventListener("pointerdown",U,!0);document.addEventListener("pointermove",U,!0);document.addEventListener("pointerup",U,!0)}else{document.addEventListener("mousedown",U,!0);document.addEventListener("mousemove",U,!0);document.addEventListener("mouseup",U,!0)}N=!0}"undefined"!=typeof document&&("loading"!==document.readyState?V():document.addEventListener("DOMContentLoaded",V));function z(){return"pointer"!==D}function J(){return D}function K(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!L[n.key])}function Y(e,t,n){V();Object(a.useEffect)(()=>{let t=(t,r)=>{K(null==n?void 0:n.isTextInput,t,r)&&e(z())};M.add(t);return()=>{M.delete(t)}},t)}function Q(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=Object(a.useRef)({isFocusWithin:!1}),o=Object(a.useCallback)(e=>{if(s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)){s.current.isFocusWithin=!1;n&&n(e);i&&i(!1)}},[n,i,s]),c=h(o),u=Object(a.useCallback)(e=>{if(!s.current.isFocusWithin){r&&r(e);i&&i(!0);s.current.isFocusWithin=!0;c(e)}},[r,i,c]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:o}}}let Z=!1,X=0;function $(){Z=!0;setTimeout(()=>{Z=!1},50)}function ee(e){"touch"===e.pointerType&&$()}function te(){if("undefined"!=typeof document){"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ee):document.addEventListener("touchend",$);X++;return()=>{X--;X>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ee):document.removeEventListener("touchend",$))}}}function ne(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=Object(a.useState)(!1),c=Object(a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Object(a.useEffect)(te,[]);let{hoverProps:u,triggerHoverEnd:l}=Object(a.useMemo)(()=>{let e=(e,r)=>{c.pointerType=r;if(i||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let a=e.currentTarget;c.target=a;t&&t({type:"hoverstart",target:a,pointerType:r});n&&n(!0);o(!0)},a=(e,t)=>{c.pointerType="";c.target=null;if("touch"===t||!c.isHovered)return;c.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t});n&&n(!1);o(!1)},s={};if("undefined"!=typeof PointerEvent){s.onPointerEnter=t=>{Z&&"mouse"===t.pointerType||e(t,t.pointerType)};s.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}}else{s.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0};s.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||Z||e(t,"mouse");c.ignoreEmulatedMouseEvents=!1};s.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,"mouse")}}return{hoverProps:s,triggerHoverEnd:a}},[t,n,r,i,c]);Object(a.useEffect)(()=>{i&&l({currentTarget:c.target},c.pointerType)},[i]);return{hoverProps:u,isHovered:s}}function re(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=Object(a.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:i}).current;s.onInteractOutside=n;s.onInteractOutsideStart=i;Object(a.useEffect)(()=>{if(r)return;let e=e=>{if(ie(e,t)&&s.onInteractOutside){s.onInteractOutsideStart&&s.onInteractOutsideStart(e);s.isPointerDown=!0}};if("undefined"!=typeof PointerEvent){let n=e=>{if(s.isPointerDown&&s.onInteractOutside&&ie(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}};document.addEventListener("pointerdown",e,!0);document.addEventListener("pointerup",n,!0);return()=>{document.removeEventListener("pointerdown",e,!0);document.removeEventListener("pointerup",n,!0)}}{let n=e=>{if(s.ignoreEmulatedMouseEvents)s.ignoreEmulatedMouseEvents=!1;else if(s.isPointerDown&&s.onInteractOutside&&ie(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}},r=e=>{s.ignoreEmulatedMouseEvents=!0;if(s.onInteractOutside&&s.isPointerDown&&ie(e,t)){s.isPointerDown=!1;s.onInteractOutside(e)}};document.addEventListener("mousedown",e,!0);document.addEventListener("mouseup",n,!0);document.addEventListener("touchstart",e,!0);document.addEventListener("touchend",r,!0);return()=>{document.removeEventListener("mousedown",e,!0);document.removeEventListener("mouseup",n,!0);document.removeEventListener("touchstart",e,!0);document.removeEventListener("touchend",r,!0)}}},[t,s,r])}function ie(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function ae(e){if(!e)return;let t=!0;return n=>{let r=Object.assign({},n,{preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(r);t&&n.stopPropagation()}}function se(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ae(e.onKeyDown),onKeyUp:ae(e.onKeyUp)}}}const oe=500;function ce(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:s,threshold:o=oe,accessibilityDescription:c}=e;const u=Object(a.useRef)(null);let{addGlobalListener:l,removeGlobalListener:d}=Object(i.n)(),{pressProps:p}=m({isDisabled:t,onPressStart(e){if("mouse"===e.pointerType||"touch"===e.pointerType){n&&n(Object.assign({},e,{type:"longpressstart"}));u.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0}));s&&s(Object.assign({},e,{type:"longpress"}));u.current=null},o);if("touch"===e.pointerType){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0});l(window,"pointerup",()=>{setTimeout(()=>{d(e.target,"contextmenu",t)},30)},{once:!0})}}},onPressEnd(e){u.current&&clearTimeout(u.current);!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r(Object.assign({},e,{type:"longpressend"}))}}),f=Object(i.l)(s&&!t?c:null);return{longPressProps:Object(i.i)(p,f)}}},xrOf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="FILTERED_CHANGE"},xw4j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r="CHAT_TRANSCRIPT_SENT"},xyDt:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("qjq5"),i=n("DdHT"),a=n("46XF");const s=Object(r.a)((e,t)=>Object(i.a)(Object(a.a)(null),Object(a.d)(e),a.c)(t))},"y+PV":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("EN6V"),i=n("VToG"),a=n("nt9Q");const s=Object(a.a)(i.c,r.a)},y5Tz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=()=>{Object(i.a)(r.x)}},y9Cc:function(e,t,n){"use strict";n.r(t);n.d(t,"getAskForEmailMessage",(function(){return s}));var r=n("npjq"),i=n("MBJP"),a=n("OmJX");const s=Object(i.a)(a.a,(e={})=>e.askForEmailMessage?e.askForEmailMessage:r.a.text("conversations-visitor-ui.askForEmailMessage"))},yYAF:function(e,t,n){e.exports=n.dlbpr(1,58)},yb5F:function(e,t,n){"use strict";n.r(t);n.d(t,"resubscribe",(function(){return l}));n.d(t,"updateSubscriptions",(function(){return d}));n.d(t,"overwriteSubscriptions",(function(){return p}));var r=n("cjt2"),i=n("5vQK"),a=n("BxyF"),s=n("fogE");const o=(e,t=i.a)=>({type:r.h.STARTED,payload:{clientKey:t,subscriptions:e}}),c=(e,t=i.a)=>({type:r.h.SUCCEEDED,payload:{clientKey:t,subscriptions:e}}),u=(e,t=i.a)=>({type:r.h.FAILED,payload:{clientKey:t,error:e},meta:Object(s.a)()}),l=e=>({type:r.g,payload:{clientKey:e}}),d=(e,t=i.a)=>(n,r)=>{const i=Object(a.getPubSubClient)(r(),{clientKey:t});n(o(e,t));i.updateSubscriptions(e).then(e=>{e!==i.updateSubscriptions.DEBOUNCED&&n(c(e,t))},e=>{n(u(e,t))}).catch(e=>{setTimeout(()=>{n(u(e,t))})})},p=(e,t=i.a)=>(n,r)=>{const i=Object(a.getPubSubClient)(r(),{clientKey:t});n(o(e,t));i.overwriteSubscriptions(e).then(e=>{e!==i.overwriteSubscriptions.DEBOUNCED&&n(c(e,t))},e=>{n(u(e,t))}).catch(e=>{setTimeout(()=>{n(u(e,t))})})}},yivD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));let r=0;function i(e=""){return`${e}${r++}`}},yslo:function(e,t,n){"use strict";var r=n("QYOI"),i=n("uOZ5");class a extends(Object(r.Record)({"@type":i.c,userIds:Object(r.List)(),teamIds:Object(r.List)()},"UsersAndTeamsChatHeadingConfig")){constructor(e={}){super(Object(r.fromJS)(e))}}t.a=a},yuy6:function(e,t,n){"use strict";var r=n("QYOI"),i=n("9Mwj"),a=n("c1C1"),s=n("BvOu"),o=n("xfs0"),c=n("W26t");class u extends(Object(r.Record)({"@type":o.a,id:null,timestamp:null,sender:Object(r.Map)(),messageDeletedStatus:i.a,auditParams:Object(c.a)(),currentStatus:null,previousStatus:null},"ThreadStatusUpdateMessage")){constructor(e={}){super(Object(r.fromJS)(Object.assign({},e,{id:e.id||Object(s.generateUuid)(),auditParams:Object(c.a)(e.auditParams),timestamp:e.timestamp||Object(a.generateUniqueClientTimestamp)("ThreadStatusUpdateMessage-timestamp")})).filterNot(e=>void 0===e))}}t.a=u},ywGS:function(e,t,n){"use strict";n.r(t);n.d(t,"postShowPageTitleNotification",(function(){return a}));var r=n("n6ol"),i=n("P5YW");const a=e=>{Object(i.a)(r.t,e)}},yy6y:function(e,t,n){"use strict";n.r(t);n.d(t,"getShouldListenToGdprBannerConsent",(function(){return i}));var r=n("JGJA");const i=e=>Object(r.a)("shouldListenToGdprBannerConsent",e)},z8AP:function(e,t,n){"use strict";n.r(t);n.d(t,"hasNewUnseenMessage",(function(){return s}));var r=n("npjq"),i=n("tcuH"),a=n("ywGS");const s=({channel:e,threadId:t})=>n=>{n(Object(i.incrementUnseenCount)({channel:e,threadId:t}));Object(a.postShowPageTitleNotification)({title:r.a.text("conversationsVisitorUIPageTitleNotifications.newMessage")})}},zFg9:function(e,t,n){"use strict";var r=n("QYOI");const i=Object(r.Record)({isFullscreen:!1,mobile:!1,open:!1,hideWelcomeMessage:!1,domain:null,startOpen:void 0,url:null,userInteractedWithWidget:!1,isEmbeddedInProduct:!1,mode:null,isAttachmentDisabled:!1,isInitialInputFocusDisabled:!1,apiEnableWidgetCookieBanner:!1,isInCMS:!1},"WidgetUi");t.a=i},zGIQ:function(e,t,n){"use strict";var r=n("MBJP"),i=n("QYOI"),a=n("cKdz");const s=3;function o({assignedResponder:e=null,chatHeadingConfig:t,responders:n,sendFromResponders:r=n}){const o=e?Object(i.List)([e]):r;return(o.size||!Object(a.a)(t)&&t?o:n).take(s)}var c=n("WUj5"),u=n("AFl3"),l=n("xk3e"),d=n("hTKa");n.d(t,"a",(function(){return p}));const p=Object(r.a)([l.getAssignedResponderInWidget,c.a,u.a,d.a],(e,t,n,r)=>o({assignedResponder:e,chatHeadingConfig:t,responders:n,sendFromResponders:r}))},"zP/g":function(e,t){e.exports={"/":{success:{default:["VISITOR_SUCCESS"]},error:["VISITOR_ERROR"]}}},zZzs:function(e,t,n){"use strict";n.r(t);n.d(t,"getAvailabilityStrategy",(function(){return i}));n.d(t,"getAvailabilityStrategyConfig",(function(){return a}));n.d(t,"getInboxIsMissingAvailabilityConfig",(function(){return s}));n.d(t,"getOfficeHoursStartTime",(function(){return o}));n.d(t,"getTypicalResponseTime",(function(){return c}));var r=n("JGJA");const i=Object(r.a)("availabilityStrategy"),a=Object(r.a)("availabilityStrategyConfig"),s=e=>!a(e),o=Object(r.a)("officeHoursStartTime"),c=Object(r.a)("typicalResponseTime")},"zbS+":function(e,t,n){"use strict";var r=n("ubOH"),i=n("QYOI"),a=n("9Mwj"),s=n("KZZz");const o=Object(i.Record)({"@type":s.a,sender:Object(i.Map)(),senders:Object(i.List)(),timestamp:null,text:"",richText:"",hasMore:!1,id:null,status:Object(r.a)(),attachments:Object(i.List)(),messageDeletedStatus:a.a,clientType:null,genericChannelId:null},"CommentMessage");t.a=o}}); //# sourceMappingURL=//static.hsappstatic.net/conversations-visitor-ui/static-1.17482/bundles/visitor.js.map