(this["webpackJsonp@livechat/chat-widget"]=this["webpackJsonp@livechat/chat-widget"]||[]).push([[13,7,20],[,,function(e,t,n){"use strict";function r(e,t){return e+t}n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return y})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return w})),n.d(t,"m",(function(){return C})),n.d(t,"n",(function(){return x})),n.d(t,"p",(function(){return _})),n.d(t,"q",(function(){return E})),n.d(t,"r",(function(){return L})),n.d(t,"s",(function(){return I})),n.d(t,"o",(function(){return k})),n.d(t,"t",(function(){return u})),n.d(t,"u",(function(){return A})),n.d(t,"v",(function(){return z})),n.d(t,"w",(function(){return M})),n.d(t,"x",(function(){return P})),n.d(t,"y",(function(){return R})),n.d(t,"z",(function(){return B})),n.d(t,"A",(function(){return D})),n.d(t,"B",(function(){return N})),n.d(t,"C",(function(){return o})),n.d(t,"D",(function(){return T})),n.d(t,"E",(function(){return F})),n.d(t,"F",(function(){return d})),n.d(t,"G",(function(){return q})),n.d(t,"H",(function(){return V})),n.d(t,"I",(function(){return l})),n.d(t,"K",(function(){return U})),n.d(t,"J",(function(){return W})),n.d(t,"L",(function(){return G})),n.d(t,"M",(function(){return f})),n.d(t,"N",(function(){return H})),n.d(t,"P",(function(){return Z})),n.d(t,"Q",(function(){return p})),n.d(t,"R",(function(){return Y})),n.d(t,"U",(function(){return K})),n.d(t,"V",(function(){return J})),n.d(t,"S",(function(){return Q})),n.d(t,"T",(function(){return X})),n.d(t,"W",(function(){return $})),n.d(t,"X",(function(){return te})),n.d(t,"Y",(function(){return re})),n.d(t,"Z",(function(){return ie})),n.d(t,"ab",(function(){return ne})),n.d(t,"bb",(function(){return oe})),n.d(t,"cb",(function(){return ce})),n.d(t,"db",(function(){return ue})),n.d(t,"eb",(function(){return se})),n.d(t,"fb",(function(){return de})),n.d(t,"gb",(function(){return le})),n.d(t,"hb",(function(){return fe})),n.d(t,"ib",(function(){return pe})),n.d(t,"jb",(function(){return me})),n.d(t,"kb",(function(){return ve})),n.d(t,"lb",(function(){return ge})),n.d(t,"mb",(function(){return je})),n.d(t,"nb",(function(){return we})),n.d(t,"ob",(function(){return Ce})),n.d(t,"pb",(function(){return xe})),n.d(t,"rb",(function(){return _e})),n.d(t,"sb",(function(){return Ee})),n.d(t,"tb",(function(){return Se})),n.d(t,"ub",(function(){return Le})),n.d(t,"vb",(function(){return Ie})),n.d(t,"wb",(function(){return ke})),n.d(t,"xb",(function(){return Te})),n.d(t,"yb",(function(){return Ae})),n.d(t,"zb",(function(){return ze})),n.d(t,"O",(function(){return Me})),n.d(t,"qb",(function(){return Pe})),n.d(t,"Ab",(function(){return Be})),n.d(t,"Bb",(function(){return De})),n.d(t,"Cb",(function(){return Ne})),n.d(t,"Db",(function(){return ee})),n.d(t,"Eb",(function(){return Fe}));var i={}.hasOwnProperty;function o(e,t){return i.call(t,e)}function a(){return(a=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r=0;n--)if(e(t[n]))return t[n]}function S(e,t,n){for(var r=t;r>=0;r--)if(e(n[r]))return r;return-1}function I(e,t){return S(e,t.length-1,t)}function k(e,t){if(e<=0)return[];for(var n=[];e--;)n.push(t);return n}function T(e){return e}function A(e,t){return f(t).forEach((function(n){e(t[n],n)}))}function z(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})}function M(){return Math.random().toString(36).substring(2)}function P(e){var t=M();return o(t,e)?P(e):t}function R(e,t){for(var n="string"===typeof e?e.split("."):e,r=0,i=t;i&&r0?e[e.length-1]:void 0}function Z(e,t){return f(t).reduce((function(n,r){return Object.defineProperty(n,e(r),{value:t[r],enumerable:!0}),n}),{})}function Y(e,t){return f(t).reduce((function(n,r){return n[r]=e(t[r],r),n}),{})}function K(e,t){if(q(t))return e;var n={};return A((function(r,i){if(o(i,t))if(l(e[i])&&l(t[i]))n[i]=K(e[i],t[i]);else if(d(e[i])&&d(t[i])){var a=Math.max(e[i].length,t[i].length);n[i]=new Array(a);for(var c=0;c1){var u=null!=n&&o(a,n)?n[a]:{};c=ve(i.slice(1),t,u)}return Object(be.a)({},n,((r={})[a]=c,r))}function he(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function ge(e,t){if(he(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne)break;i+=a.length+1,r.push(a)}return r.join(" ")+"..."}function we(e){return"number"!==typeof e||isNaN(e)?NaN:Object.is(e,0)?0:Object.is(e,-0)?-0:e>0?1:-1}function Ce(e){var t=e.replace(/[A-Z]|([-_ ]+)/g,(function(e){var t=e.charCodeAt(0);return t>64&&t<91?"_"+e.toLowerCase():"_"}));return"_"===t[0]?t.substr(1):t}function xe(e,t){return[t.slice(0,e),t.slice(e,t.length)]}function _e(e){return e.reduce(r,0)}function Ee(e,t){return t.slice(0,e)}function Le(e,t,n){var r=S((function(t){return!e(t)}),t,n);return r===t?[]:n.slice(r+1,t+1)}function Se(e,t){return Le(e,t.length-1,t)}function Ie(e,t){var n,r=Date.now()-2*e,i=function(){r=Date.now(),t.apply(void 0,arguments)},o=function(){return clearTimeout(n)},a=function(){for(var t=Date.now(),a=arguments.length,c=new Array(a),u=0;u=e?i.apply(void 0,c):(o(),n=setTimeout.apply(void 0,[i,r-t+e].concat(c)))};return a.cancel=o,a}function ke(e){return Array.prototype.slice.call(e)}function Te(e,t){return Number(e.toFixed(t))}function Ae(e){return f(e).map((function(t){return[t,e[t]]}))}function ze(e,t){var n,r=Date.now()-2*e,i=function(){return r=Date.now(),t.apply(void 0,arguments)},o=function(){return clearTimeout(n)},a=function(){var t=Date.now();t-r>=e&&(r=Date.now()),o();for(var a=arguments.length,c=new Array(a),u=0;u=e&&(n=Date.now(),t.apply(void 0,arguments))}}function Pe(e,t){return e===t?0:e0&&void 0!==n[0].raw){var u=n;n=[u[0][0]];for(var s=1;ssvg{width:32px;height:32px;fill:",(function(e){return e.theme.colors.secondaryTextColor}),";}"),oe=function(e){return Object(F.d)(ie,e,Object(F.d)("svg",{viewBox:"0 0 32 32",css:re},Object(F.d)("path",{d:"M6.1,22.1l5.3-4.8c0.4-0.3,1-0.3,1.3,0l3.2,2.8l6.5-5.8c0.4-0.3,1-0.3,1.3,0l2.3,2.1V9c0-0.6-0.4-1-1-1h-18 c-0.6,0-1,0.4-1,1L6.1,22.1C6.1,22,6.1,22,6.1,22.1z M8,23h8.1l-4.1-3.7L8,23z M19.1,23h5.9c0.6,0,1-0.4,1-1v-3l-3-2.7l-5.7,5.1 L19.1,23z M7.1,6h18c1.7,0,3,1.3,3,3v13c0,1.7-1.3,3-3,3h-18c-1.7,0-3-1.3-3-3V9C4.1,7.3,5.4,6,7.1,6z M15.1,16c-1.7,0-3-1.3-3-3 s1.3-3,3-3s3,1.3,3,3S16.8,16,15.1,16z M15.1,14c0.6,0,1-0.4,1-1s-0.4-1-1-1c-0.6,0-1,0.4-1,1S14.5,14,15.1,14z"})))},ae=function(e){return Object(F.d)(ie,e,Object(F.d)("svg",{viewBox:"0 0 32 32"},Object(F.d)("path",{d:"M3.6,5.1L3.6,5.1l24.1,21.1c0.4,0.4,0.5,1,0.1,1.4c-0.3,0.4-0.9,0.4-1.3,0.2l-0.1-0.1l-8.1-7.1l-2,1.8 l1.7,1.5h4l2.3,2l-0.1,0L24,26H6c-1.6,0-2.9-1.2-3-2.8L3,23L3,7.3L2.3,6.7c-0.4-0.4-0.5-1-0.1-1.4C2.6,4.9,3.1,4.9,3.6,5.1z M11,20.3L6.9,24h8.1L11,20.3z M26,5c1.6,0,2.9,1.2,3,2.8L29,8v15.4l0,0l-2-1.7l0-3.7l-3-2.7l-2.2,2L20.3,16l3.1-2.8 c0.3-0.3,0.9-0.3,1.2-0.1l0.1,0.1l2.3,2.1V8c0-0.5-0.4-0.9-0.9-1L26,7H10L7.7,5l0.1,0L8,5H26z M5,9.1l0,14l5.3-4.8 c0.3-0.3,0.9-0.3,1.2-0.1l0.1,0.1l3.2,2.8l1.9-1.7L5,9.1z M20,8c1.7,0,3,1.3,3,3s-1.3,3-3,3s-3-1.3-3-3S18.3,8,20,8z M20,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S20.6,10,20,10z"})))},ce=n(645);function ue(){var e=Object(ee.a)(["\n\t&-enter {\n\t\topacity: 0;\n\t\theight: 0;\n\t}\n\n\t&-enter&-enter-active {\n\t\topacity: 1;\n\t\theight: 1.2em;\n\t\ttransition: height 200ms ease-in-out, opacity 100ms ease-in-out 100ms;\n\t}\n\n\t&-exit {\n\t\topacity: 1;\n\t\theight: 1.2em;\n\t}\n\n\t&-exit&-exit-active {\n\t\topacity: 0;\n\t\theight: 0;\n\t\ttransition: height 100ms ease-in-out 100ms, opacity 200ms ease-in-out;\n\t}\n"]);return ue=function(){return e},e}var se=function(e){return e(ue())},de=function(e){return u.createElement(F.a,null,(function(t){var n=t.css;return u.createElement(ce.a,Object(i.a)({},e,{classNames:se(n),timeout:200}))}))};de.propTypes={children:C.node};var le=de;function fe(){var e=Object(ee.a)(["\n\t&-enter {\n\t\topacity: 0;\n\t\ttransform: scale(1.2);\n\t}\n\n\t&-enter-active {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t\ttransition: opacity ","ms ",", transform ","ms ",";\n\t}\n\n\t&-enter-done {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t}\n"]);return fe=function(){return e},e}var pe="cubic-bezier(0.14, 0, 0, 1)",me=function(e){return e(fe(),200,pe,200,pe)},be=function(e){return u.createElement(F.a,null,(function(t){var n=t.css;return u.createElement(ce.a,Object(i.a)({},e,{classNames:me(n),timeout:500}))}))},ve=w("img",{displayName:"Img",target:"e1lw40el0"})("display:",(function(e){return e.isLoaded?"inline-block":"none"}),";"),he=function(e){var t=e.children,n=e.src,r=e.srcSet,o=e.className,a=e.alt,c=void 0===a?"":a,s=Object(f.a)(e,["children","src","srcSet","className","alt"]),d=u.useState("pending"),l=d[0],p=d[1],m=u.useState(!1),b=m[0],v=m[1],h=u.useRef(0),g="loaded"===l,O=null;if(t)O=t({imageStatus:l,shouldAnimate:b});else switch(l){case"pending":O=u.createElement(oe,s);break;case"failed":O=u.createElement(ae,s);break;default:O=null}return u.useLayoutEffect((function(){return p("pending"),v(!1),h.current=setTimeout((function(){return v(!0)}),300),function(){return clearTimeout(h.current)}}),[n,r]),u.createElement(u.Fragment,null,u.createElement(be,{in:b&&g},u.createElement(ve,Object(i.a)({alt:c},s,{src:n,isLoaded:g,srcSet:r,className:o,onLoad:function(){p("loaded"),clearTimeout(h.current)},onError:function(){return p("failed")}}))),O)};he.propTypes={children:C.func,src:C.string.isRequired,srcSet:C.string,className:C.string};var ge=he;var Oe={name:"n7acn9",styles:"border-radius:inherit;width:100%;height:100%;object-fit:cover"},ye=w("div",{displayName:"Avatar",mapPropsToStyles:function(e){var t={},n={},r=e.size,o=e.radius,a=e.fontSize;return r&&(t.width=r,t.height=r,t.lineHeight=r),o&&(t.borderRadius=o,n.borderRadius=o),a&&(t.fontSize=a),Object(i.a)({},t,{"& img":n})},target:"e11ezd0e0"})("border:1px solid #fff;border-radius:50%;text-align:center;text-transform:uppercase;overflow:hidden;",(function(e){return e.noBackround?"":"background-color: #fff;"}),";"),je=function(e){var t=e.imgUrl,n=e.letter,r=null;return t||n?t?r=Object(F.d)(ge,{src:t,css:Oe,alt:"avatar",draggable:!1},(function(e){var t=e.imageStatus,n=e.shouldAnimate;switch(t){case"pending":return Object(F.d)(Q,{css:[Oe,n&&re,""]});case"failed":return Object(F.d)(Q,{css:Oe});default:return null}})):n&&(r=Object(F.d)("span",null,n)):r=Object(F.d)("div",{css:Oe},Object(F.d)(Q,{css:Oe})),Object(F.d)(ye,Object(i.a)({noBackround:!t&&!n},e),r)};je.propTypes={imgUrl:C.string,letter:C.string,size:C.string,style:C.shape()};var we=je;var Ce={name:"1oep8ze",styles:"&>:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:0;border-bottom-left-radius:0;}&>:last-child{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit;}&>:first-child:last-child{border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:inherit;}"},xe=w("div",{displayName:"Bubble",mapPropsToStyles:function(e){var t=e.isOwn,n=e.ovalBorderRadius,r=e.sharpBorderRadius,i=e.radiusType,o={borderTopLeftRadius:"single"===i||"first"===i?n:r,borderTopRightRadius:n,borderBottomRightRadius:n,borderBottomLeftRadius:"single"===i||"last"===i?n:r};return t?function(e){var t=e.borderTopLeftRadius,n=e.borderTopRightRadius,r=e.borderBottomRightRadius;return{borderTopLeftRadius:n,borderTopRightRadius:t,borderBottomRightRadius:e.borderBottomLeftRadius,borderBottomLeftRadius:r}}(o):o},target:"emwkn670"})(Ce,";border:1px solid rgba(0, 0, 0, 0.05);display:inline-block;max-width:280px;margin-bottom:0.1em;& img{max-width:100%;display:block;}");xe.propTypes={children:C.node,isOwn:C.bool,radiusType:C.oneOf(["single","first","last"])};var _e=xe;var Ee=w("div",{target:"ek650k30"})({name:"1ojnsow",styles:"display:flex;flex-direction:column;min-width:0"}),Le=w("div",{mapPropsToStyles:function(e){return{flexShrink:e.shrink?1:0}},target:"e1jdwequ0"})(""),Se=function(e){return u.createElement(Le,Object(i.a)({flexFill:!0},e))};Se.defaultProps={shrink:!0},Se.propTypes={shrink:C.bool};var Ie=Se,ke=w("div",{mapPropsToStyles:function(e){return{flexShrink:e.shrink?1:0}},target:"e1yi1p4d0"})(""),Te=function(e){return u.createElement(ke,Object(i.a)({flexFit:!0},e))};Te.defaultProps={shrink:!0},Te.propTypes={shrink:C.bool};var Ae=n(21);var ze=w("button",{displayName:"IconButton",section:!0,target:"e1m5b1js0"})({name:"1dor5y1",styles:"appearance:none;background:transparent;border:0;display:inline-block;margin:0;padding:0.5em;color:inherit;cursor:pointer;&:disabled{cursor:not-allowed;}"}),Me=u.forwardRef((function(e,t){var n=Object(Ae.f)(e);return u.createElement(ze,Object(i.a)({ref:t},n,e))}));Me.propTypes={active:C.bool,disabled:C.bool,children:C.node.isRequired,color:C.string,onClick:C.func};var Pe=Me,Re=w("video",{displayName:"video",target:"e1x6yqf60"})("display:",(function(e){return e.isLoaded?"inline-block":"none"}),";"),Be=function(e){var t=e.src,n=e.pause,r=Object(f.a)(e,["src","pause"]),o=u.useState("pending"),c=o[0],s=o[1],d=u.useState(!1),l=d[0],p=d[1],m=u.useRef(0),b=u.useRef(null),v="loaded"===c;u.useEffect((function(){if(null==b?void 0:b.current){var e=b.current,t=e.play();t&&t.then((function(){n&&(e.pause(),e.currentTime=1)})).catch(a.W)}}),[n]);var h=u.useCallback((function(e){e&&clearTimeout(e)}),[]),g={pending:u.createElement(oe,r),failed:u.createElement(ae,r)}[c]||null;return u.useLayoutEffect((function(){return s("pending"),p(!1),m.current=setTimeout((function(){return p(!0)}),300),function(){return clearTimeout(m.current)}}),[t]),u.createElement(u.Fragment,null,u.createElement(be,{in:l&&v},u.createElement(Re,Object(i.a)({ref:b},r,{isLoaded:v,src:t,onLoadedData:function(){s("loaded"),h(m.current)},onError:function(){return s("failed")}}))),g)};Be.propTypes={src:C.string.isRequired};var De=Be,Ne=n(27),Fe=n(646),qe=n(40),Ve=n(14),Ue=function(e){return e.getBoundingClientRect().top+window.pageYOffset},We=n(99);var Ge=u.createContext({registerUnseenListItem:a.W,isScrollOnBottom:a.W,scrollToBottom:a.W}),He=Ge.Provider,Ze=Ge.Consumer,Ye=function(e){void 0===e&&(e=0);var t=e;return function(){return t++}}(),Ke=w("div",{displayName:"MessageList",target:"e1i3n9g60"})({name:"tssf9r",styles:"padding:20px;overflow-y:auto;height:100%;outline-offset:-5px"}),Je=u.forwardRef((function(e,t){var n=e.active,r=void 0===n||n,o=e.onScroll,c=Object(f.a)(e,["active","onScroll"]),s=u.useRef(),d=Object(We.a)(s,t),l=function(){var e=u.useRef([]);return{getAll:function(){return e.current},registerItem:u.useCallback((function(t){var n=Ye(),r=e.current;return r.push(Object(i.a)({},t,{id:n})),function(){var e=Object(a.q)((function(e){return e.id===n}),r);-1!==e&&r.splice(e,1)}}),[])}}(),p=l.getAll,m=l.registerItem,b=Object(Ne.l)(r),v=Object(Ne.l)(o),h=Object(Ae.f)(),g=u.useCallback((function(){p().forEach((function(e){var t,n;(t=s.current,n=e.ref,Ue(n)-Ue(t)+n.clientHeight<=t.clientHeight)&&e.onSeen()}))}),[p]),O=u.useMemo((function(){return Object(a.vb)(300,(function(){b.current&&g()}))}),[b,g]),y=u.useCallback((function(e){O(),v.current&&v.current(e)}),[v,O]);u.useEffect((function(){r&&g()}),[r,g]);var j=u.useMemo((function(){return{registerUnseenListItem:m,isScrollOnBottom:function(){return e=s.current,void 0===(t=20)&&(t=0),e.scrollTop+e.clientHeight-e.scrollHeight>=-t;var e,t},scrollToBottom:function(){var e;(e=s.current).scrollTop=e.scrollHeight}}}),[m]);return u.createElement(He,{value:j},u.createElement(Ke,Object(i.a)({},h,c,{ref:d,onScroll:y,role:"grid","aria-live":"polite","aria-relevant":"additions"})))})),Qe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i:first-child{border-top:",yt,";}&:first-child>:first-child{border-top:0;}&>:last-child{border-bottom:",yt,";}&:last-child>:last-child{border-bottom:0;}>*{border-color:",Ot,"!important;}"),wt=n(18),Ct=n(167),xt=n(25);var _t=Object(wt.b)(.2),Et=w(u.forwardRef((function(e,t){var n=e.href,r=Object(f.a)(e,["href"]);return n?u.createElement("a",Object(i.a)({href:n,rel:"nofollow noopener"},r,{ref:t})):u.createElement("button",Object(i.a)({},r,{ref:t}))})),{displayName:"Button",mapPropsToStyles:function(e){var t=e.primary?e.theme.vars["--primary-color"]:"black",n=_t(t);return{borderColor:t,color:t,"&:hover":{color:n,borderColor:n}}},shouldForwardProp:q.a,target:"e1972fzd0"})({name:"1x6954b",styles:"border-width:1px;border-style:solid;background-color:#fff;font-size:1em;font-family:inherit;line-height:1.4em;text-align:center;text-decoration:none;appearance:none;padding:0.8em;transition:box-shadow 0.1s,color 0.1s,border-color 0.2s;&:hover{cursor:pointer;}&:active{box-shadow:none;outline:none;}&[disabled]{pointer-events:none;}"}),Lt=function(e){var t=e.label,n=e.onPress,r=e.disabled,o=Object(f.a)(e,["label","onPress","disabled"]),a=Object(Ae.f)(),c=u.useRef(),s=Object(Ct.a)(Object(i.a)({onPress:n,isDisabled:r},o),c).buttonProps;return u.createElement(Et,Object(xt.h)(a,s,o,{ref:c}),t)};Lt.propTypes={label:C.oneOfType([C.string,C.node])};var St=Lt,It=w(St,{target:"e121y1dq0"})("display:inline-block;width:100%;border-left:0;border-right:0;border-top:0;border-bottom-color:rgba(0, 0, 0, 0.1);box-shadow:none;transition:background-color 0.1s;background:transparent;color:",(function(e){return e.disabled?"#8D9BA9":"inherit"}),";margin:0;&:hover{border-bottom-color:rgba(0, 0, 0, 0.15);background:rgba(0, 0, 0, 0.02);color:inherit;}&:active{background:rgba(0, 0, 0, 0.04);color:inherit;}"),kt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i0;return t===s-1?Object(u.cloneElement)(e,n?Object(i.a)({},Mt,Pt):Mt):n?Object(u.cloneElement)(e,Pt):e}))))};Nt.propTypes={avatar:C.string,avatarLetter:C.string,children:C.node,isOwn:C.bool,isCarousel:C.bool,onlyFirstWithMeta:C.bool};var Ft=Nt,qt=ut,Vt="#fff",Ut={vars:{"primary-color":"#427fe1","secondary-color":"#fbfbfb","tertiary-color":Vt},AgentBar:{Avatar:{size:"42px"},css:{backgroundColor:"var(--secondary-color)"}},Avatar:{size:"30px"},Bubble:{sharpBorderRadius:"0.3em",ovalBorderRadius:"1.4em",css:{backgroundColor:{default:"var(--secondary-color)",bot:"green"}}},Button:{},ChatListItem:{Avatar:{css:{marginRight:".5em"}}},FixedWrapperMaximized:{animationDuration:100,width:"400px",height:"500px"},FixedWrapperMinimized:{animationDuration:100},FixedWrapperRoot:{position:"right",css:{}},Message:{secondaryTextColor:"#000",horizontalAlign:"left",own:{horizontalAlign:"right",Bubble:{css:{backgroundColor:"var(--primary-color)",color:Vt}},Content:{css:{alignItems:"flex-end"}},MessageMeta:{css:{textAlign:"right"}},Time:{css:{textAlign:"right"}}},bot:{Bubble:{css:{backgroundColor:"green"}}}},MessageButtons:{},MessageGroup:{},MessageList:{css:{backgroundColor:"var(--tertiary-color)"}},MessageMedia:{},MessageText:{},MessageTitle:{},QuickReply:{css:{borderColor:"var(--primary-color)",backgroundColor:"#fff",color:"var(--primary-color)"}},TextComposer:{inputColor:"#000",Icon:{color:"#aaa"},IconButton:{active:{Icon:{color:"var(--primary-color)"}}}},TitleBar:{iconsColor:"#fff",behaviour:"default",css:{backgroundColor:"var(--primary-color)"}}},Wt=function e(t){var n=b(t);return 0===Object.keys(n).length?Object(i.a)({},t,{vars:Object(a.P)((function(e){return"--"+e}),t.vars||{})}):Object(i.a)({},t,Object(a.Q)((function(t){return Object(i.a)({},e(t),{css:t.css||{}})}),n),{vars:Object(a.P)((function(e){return"--"+e}),t.vars||{})})},Gt=function(e){var t=e.theme,n=void 0===t?{}:t,r=e.children,i=Wt(Object(a.U)(Ut,n));return u.createElement(l,{value:i},r)},Ht=n(79);var Zt=w("button",{displayName:"QuickReply",target:"e1gt5po80"})({name:"hta3ic",styles:"border-width:1px;border-style:solid;font-size:1em;line-height:1em;appearance:none;transition:box-shadow 0.1s,color 0.1s,border-color 0.2s;margin:0.25em;background-color:#fff;border-radius:1.4em;box-shadow:0 0.1em 0.1em 0 rgba(32, 34, 40, 0.05);font-weight:400;overflow:hidden;padding:0.375em 1em 0.5em;word-break:break-word;&:hover{cursor:pointer;}&:active{outline:none;}"}),Yt=function(e){var t=e.value,n=e.onSelect,r=void 0===n?a.W:n,o=e.onClick,c=void 0===o?a.W:o,s=Object(f.a)(e,["value","onSelect","onClick"]),d=Object(Ae.f)(),l=u.useCallback((function(e){r(t),c(e)}),[c,r,t]);return u.createElement(Zt,Object(i.a)({value:t},s,d,Object(Ht.c)({onClick:l})))};Object(a.bb)(console.warn.bind(console));var Kt=w("div",{displayName:"QuickReplies",target:"e1dnb9qc0"})({name:"1q028wg",styles:"display:flex;flex-wrap:wrap;text-align:center;justify-content:center;width:100%"}),Jt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i20?o.slice(0,20).trim()+"\u2026":o,onClick:e.handleButtonClick(s)},c)):null}))),t)},t}(u.Component);mn.defaultProps={onButtonClick:a.W};var bn=mn;var vn=function(e){return e.stopPropagation()},hn=function(e){return Object(F.d)("a",Object(i.a)({},e,{onClick:vn,rel:"nofollow noopener",target:"_blank"}))},gn={name:"1srcwd0",styles:"display:block;width:100%;height:150px;object-fit:cover"},On=w("div",{target:"e9ztsyy0"})({name:"1faw7sw",styles:"display:flex;margin:0 auto;overflow:hidden;width:100%;min-width:110px;height:150px;align-items:center;justify-content:center;background:#fff"}),yn=function(e){var t=e.link,n=e.url,r=e.srcset,o=Object(f.a)(e,["link","url","srcset"]),a=Object(F.d)(gt,o,Object(F.d)(On,null,Object(F.d)(ge,Object(i.a)({alt:"",css:gn},function(e,t){var n={src:e};return void 0!==t&&(n.srcSet=t),n}(n,r)))));return t?Object(F.d)(hn,{href:t,style:o.style},a):a};yn.propTypes={link:C.string,url:C.string.isRequired,srcSet:C.string};var jn=yn;var wn={name:"oipjxo",styles:"width:230px"},Cn=w("div",{target:"es7wtci0"})({name:"10don1d",styles:"width:230px;min-width:0px;max-width:100%"}),xn={borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomRightRadius:0,borderBottomLeftRadius:0},_n=(u.Component,n(229));var En=w("div",{target:"epptpc33"})({name:"1u909ow",styles:"position:relative;width:100%;display:flex"}),Ln={name:"fol00x",styles:"scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}"},Sn=w("div",{target:"epptpc32"})("display:flex;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;align-items:flex-start;",Ln," ",(function(e){var t,n=e.padding,r=e.dir;return Object(i.a)({},"undefined"!==typeof n&&{padding:n},{"> :not(:last-child)":(t={},t["rtl"===r?"marginLeft":"marginRight"]=8,t)})}),";"),In=w("div",{target:"epptpc31"})({name:"1blnsxj",styles:"flex-grow:0;flex-shrink:0"}),kn=w("button",{target:"epptpc30"})("position:absolute;width:30px;height:30px;border-radius:50%;background:",(function(e){return e.theme.colors.floatSurface}),";color:",(function(e){return e.theme.colors.primaryTextColor}),";border:0;box-shadow:0 4px 12px rgba(0, 0, 0, 0.3);text-align:center;top:32%;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;outline:0;-webkit-transform:translate3d(0, 0, 0);&:hover{cursor:pointer;}svg{display:inline;}",(function(e){var t;return(t={})[e.variant]=".5em",t}),";"),Tn=function(e){var t=e.itemCount;return t*e.itemWidth+(t-1)*e.spacing},An=function(e){var t=e.clientWidth,n=e.scrollableElement,r=e.currentX,i=e.nextX,o=e.scrollDirection,a=e.isRtl,c=n.firstElementChild.getBoundingClientRect().width,u=function(e,t){if(e.length<2)return 0;var n=e[0],r=e[1],i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return t?i.left-o.right:o.left-i.right}(n.children,a),s=(a?n.lastElementChild:n.firstElementChild).getBoundingClientRect().left-n.getBoundingClientRect().left+r,d=function(e){var t=e.x,n=e.scrollDirection,r=(t-e.leftElementXOffset)/(e.itemWidth+e.spacing);return 1===n?Math.floor(r):Math.ceil(r)}({x:i,scrollDirection:o,leftElementXOffset:s,itemWidth:c,spacing:u});if(c>t)return s+(1===o?d+1:d-1)*(c+u);var l=s+d*(c+u),f=Math.floor(t/(c+u)),p=Tn({itemCount:f,itemWidth:c,spacing:u});return l+(p+c<=t?Tn({itemCount:f+1,itemWidth:c,spacing:u}):p)/2-t/2},zn=function(e){var t=e.children,n=e.scrollableElementPadding,r=e.dir,o=Object(f.a)(e,["children","scrollableElementPadding","dir"]),c=u.useRef(0),s=u.useRef(null),d=Object(Ae.f)().isFocusVisible,l=u.useState(!0),p=l[0],m=l[1],b=u.useState(!0),v=b[0],h=b[1],g=Object(Ne.j)(),O=g[0],y=g[1],j=Object(Ne.u)("x",s),w=!(O&&d),C=u.useCallback((function(){var e=s.current;e&&(m(!function(e){if("ltr"===getComputedStyle(e).direction)return e.scrollLeft<=1;var t=e.scrollWidth-e.clientWidth;switch(Object(Ve.f)()){case"negative":return e.scrollLeft<=1-t;case"positive-ascending":return e.scrollLeft>=t-1;case"positive-descending":return e.scrollLeft<=1}}(e)),h(!function(e){var t=getComputedStyle(e).direction,n=e.scrollWidth-e.clientWidth;if("ltr"===t)return e.scrollLeft>=n-1;switch(Object(Ve.f)()){case"negative":return e.scrollLeft>=-1;case"positive-ascending":return e.scrollLeft<=1;case"positive-descending":return e.scrollLeft>=n-1}}(e)))}),[]),x=u.useMemo((function(){return Object(a.vb)(200,C)}),[C]);Object(Ne.n)((function(){var e=requestAnimationFrame(C),t=new _n.a(Object(a.h)(200,C));return t.observe(s.current),function(){cancelAnimationFrame(e),t.disconnect()}}));var _=function(e){c.current+=e,c.current<0?c.current=0:c.current>=t.length&&(c.current=t.length-1);var n=s.current,i=n.clientWidth,o=n.scrollWidth,a="rtl"===r,u=function(e,t){var n=e.scrollWidth-e.clientWidth;if(t)switch(Object(Ve.f)()){case"negative":return n+e.scrollLeft;case"positive-ascending":return n-e.scrollLeft;case"positive-descending":return e.scrollLeft}return e.scrollLeft}(n,a),d=u+e*i,l=1===e?Math.min(d,o-i):Math.max(d,0),f=d===l?An({clientWidth:i,scrollableElement:n,currentX:u,nextX:d,scrollDirection:e,isRtl:a}):l;if(a)switch(Object(Ve.f)()){case"negative":return void j(-o+i+f);case"positive-ascending":return void j(o-i-f);case"positive-descending":return void j(f)}else j(f)};return u.createElement(En,o,w&&p&&u.createElement(kn,{variant:"left",type:"button","aria-label":"Previous item",onClick:function(e){e.stopPropagation(),_(-1)}},u.createElement(Z,{"aria-hidden":!0})),u.createElement(Sn,Object(i.a)({dir:r,tabIndex:-1,ref:s,onScroll:x,padding:n},y),u.Children.map(t,(function(e,t){return u.createElement(In,{onFocus:function(){d&&O&&_(Object(a.nb)(t-c.current))}},e)}))),w&&v&&u.createElement(kn,{variant:"right",type:"button","aria-label":"Next item",onClick:function(e){e.stopPropagation(),_(1)}},u.createElement(K,{"aria-hidden":!0})))}},function(e,t,n){"use strict";n.d(t,"l",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"m",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return l})),n.d(t,"j",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"o",(function(){return m})),n.d(t,"n",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"i",(function(){return h}));var r=150,i="liveChatChatId",o="openAIChatId",a="email_prompt",c="message_draft",u=100,s=20,d=255,l="Invalid `chat.id`",f="Move chat to mobile",p={labs:"https://mobile-chat.labs.livechat.com/chat-widget-moment/",staging:"https://mobile-chat.staging.livechat.com/chat-widget-moment/",production:"https://mobile-chat.livechat.com/chat-widget-moment/"},m="https://widget-voice-assistant-labs.netlify.app/",b=1500,v="feaf6c0e-9f43-48ff-9ad0-8e24e0350932",h=100},,function(e,t,n){"use strict";n.r(t),n.d(t,"getView",(function(){return u})),n.d(t,"getDefaultView",(function(){return s})),n.d(t,"getCurrentView",(function(){return d})),n.d(t,"getConnectionState",(function(){return l})),n.d(t,"getEvent",(function(){return m})),n.d(t,"getEventByServerId",(function(){return b})),n.d(t,"hasEvent",(function(){return v})),n.d(t,"hasEventByServerId",(function(){return h})),n.d(t,"getIndexedEvents",(function(){return g})),n.d(t,"getEvents",(function(){return O})),n.d(t,"getChat",(function(){return y})),n.d(t,"getChatByServerId",(function(){return j})),n.d(t,"hasChat",(function(){return w})),n.d(t,"getChats",(function(){return C})),n.d(t,"getUsers",(function(){return x})),n.d(t,"getSessionUser",(function(){return _})),n.d(t,"getUser",(function(){return E})),n.d(t,"getUserByServerId",(function(){return L})),n.d(t,"hasUser",(function(){return S})),n.d(t,"getTimeline",(function(){return I})),n.d(t,"getChatList",(function(){return k})),n.d(t,"getSessionUserId",(function(){return T})),n.d(t,"getLastDeliveredEvent",(function(){return A})),n.d(t,"getLastSeenEvent",(function(){return z})),n.d(t,"getLastEvent",(function(){return M})),n.d(t,"getUnseenCount",(function(){return N})),n.d(t,"getLastUnseenEvent",(function(){return F})),n.d(t,"getLastSeenAgentEvent",(function(){return q})),n.d(t,"getParticipants",(function(){return V})),n.d(t,"localize",(function(){return U})),n.d(t,"getApplicationState",(function(){return W}));var r=n(1),i=n(90),o=n(2),a=n(82),c=function(e,t){return t},u=function(e,t){var n=t.replace(/\//gi,".");return Object(o.y)(n,e.views)},s=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rs.a.VALID_TIMEFRAME?[]:n},Re=function(e){var t=Me(e).recommendations;return Boolean(null==t?void 0:t.visible)},Be=function(e){return e.localize(e.getApplicationState("limitReached")||!m(e)?"agents_not_available":"agents_not_available_continuous")},De=function(e){var t=e.getView("Chat/queue"),n=t&&t.numberInQueue,i=t&&t.waitingTime;return function(e){var t=e.localize("user_in_queue"),n=e.getView("Chat/prechat").fields;if(!n||Object(r.G)(n))return t;var i=n.find((function(e){var t=e.meta;return t&&"groupSelect"===t}));if(!i||!i.options||Object(r.G)(i.options))return t;var o=i.options.find((function(t){return t.groupNumber===e.getApplicationState("group")}));return o&&o.queueTemplate?o.queueTemplate:t}(e).replace(/%number%/g,"**"+n+"**").replace(/%minutes%/g,"**"+Math.floor(i/60)+"**")},Ne=function(e){if(e.getApplicationState("isPreview"))return!1;if(!p("rating",e).enabled)return!1;var t=e.getChat(i.d),n=t.active,o=t.properties.rate;return!(!n||o)&&(function(e){var t=e.getChat(i.d).properties.timestamp;if(!t)return 0;var n=oe(e);if(!n||0===(null==n?void 0:n.length))return 0;var o=Object(r.r)((function(e){return"system_message"!==e.type}),n);return o?o.timestamp-t:0}(e)/1e3/60>2&&function(e){return oe(e).some((function(e){var t=e.author,n=e.own,r=e.properties;return!n&&"system"!==t&&!r.invitation&&!r.welcomeMessage}))}(e))}},,function(e,t,n){"use strict";var r=n(1),i=n(3),o=n(0),a=n(144);t.a=function(e,t){return o.memo((function(n){return Object(i.d)(a.a,Object(r.a)({},t,n),e)}))}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return L})),n.d(t,"b",(function(){return S})),n.d(t,"n",(function(){return I})),n.d(t,"s",(function(){return k})),n.d(t,"t",(function(){return T})),n.d(t,"p",(function(){return A})),n.d(t,"w",(function(){return z})),n.d(t,"y",(function(){return M})),n.d(t,"u",(function(){return P})),n.d(t,"o",(function(){return R})),n.d(t,"E",(function(){return D})),n.d(t,"H",(function(){return N})),n.d(t,"F",(function(){return F})),n.d(t,"D",(function(){return q})),n.d(t,"G",(function(){return V})),n.d(t,"L",(function(){return U})),n.d(t,"K",(function(){return W})),n.d(t,"O",(function(){return G})),n.d(t,"C",(function(){return H})),n.d(t,"P",(function(){return Z})),n.d(t,"j",(function(){return K})),n.d(t,"l",(function(){return J})),n.d(t,"k",(function(){return Q})),n.d(t,"Q",(function(){return X})),n.d(t,"x",(function(){return $})),n.d(t,"q",(function(){return ee})),n.d(t,"M",(function(){return te})),n.d(t,"v",(function(){return re})),n.d(t,"J",(function(){return ie})),n.d(t,"a",(function(){return oe})),n.d(t,"i",(function(){return ae})),n.d(t,"T",(function(){return ce})),n.d(t,"I",(function(){return ue})),n.d(t,"A",(function(){return de})),n.d(t,"z",(function(){return le})),n.d(t,"B",(function(){return fe})),n.d(t,"m",(function(){return pe})),n.d(t,"c",(function(){return me})),n.d(t,"r",(function(){return be})),n.d(t,"N",(function(){return ve})),n.d(t,"e",(function(){return he})),n.d(t,"S",(function(){return Oe})),n.d(t,"h",(function(){return ye})),n.d(t,"g",(function(){return je})),n.d(t,"R",(function(){return we})),n.d(t,"f",(function(){return Ce}));var r=n(7),i=n(1),o=n(220),a=n(2),c=n(15),u=n(132),s=n.n(u),d=n(191),l=n.n(d),f=n(6),p=n(23),m=n(153),b=n(9),v=n(117),h=function(e){var t=0;return e.split("").forEach((function(e){var n=e.charCodeAt(0);t=(t<<5)-t+n,t&=t})),t},g=function(e,t){return h(e)%(1/t)===0},O=n(118),y=[0,2,4,6,8,1,3,5,7,9],j=function(e){return e.replace(/\b(?:\d[ -]*?){8,15}((?:\d[ -]*?){4})\b/g,(function(e,t){var n=e.replace(/(-|\s)/g,"");return function(e){if(/[^0-9-\s]+/.test(e))return!1;for(var t,n=e.replace(/\D/g,""),r=n.length,i=1,o=0;r;)t=parseInt(n.charAt(--r),10),o+=(i^=1)?y[t]:t;return o&&o%10===0}(n)?""+function(e){var t=e%4,n=t?4-t:0,r=Math.floor(e/4)+(t?1:0)-n-1,i=Object(a.o)(n,"XXX"),o=Object(a.o)(r,"XXXX");return i.concat(o).join("-").concat("-")}(n.length)+t:e}))},w=n(51),C=n(22),x=n(34),_=n(115);(new s.a).tlds(l.a);var E=function(e,t,n){var r=Object(a.q)((function(t){return t.name===e}),n);return-1!==r?Object(a.Cb)(r,Object(i.a)({},n[r],{defaultValue:t}),n):n},L=function(e,t,n){e.addEvent(t,Object(i.a)({},n,{serverId:n.serverId||null}))},S=function(e,t,n){var r=n.systemMessageType,i=n.textVariables,o=n.text;L(e,t,{id:Object(a.x)(e.getIndexedEvents(f.d)),serverId:null,type:"system_message",author:"system",seen:!0,properties:Object(a.f)({systemMessageType:r,textVariables:i,defaultText:o})})},I=function(e){e.updateChat(f.d,{active:!1,properties:{ended:!0,queued:!1,agentIsTyping:!1}}),e.setApplicationState({greetingsMuted:!1})},k=function(e){e.setApplicationState({eyeCatcher:Object(i.a)({},e.getApplicationState().eyeCatcher,{hidden:!0})})},T=function(e){var t=b.f(e);if(t&&t.properties.uniqueId&&!b.V(e,t)){var n=e.getApplicationState().invitation;e.setApplicationState({invitation:Object(i.a)({},n,{hiddenIds:[].concat(n.hiddenIds,[t.properties.uniqueId])})}),g(e.getSessionUser().serverId,.01)&&Object(w.d)({minimizedType:b.p(e),greetingId:t.properties.id,greetingUniqueId:t.properties.uniqueId,greetingType:t.properties.type,greetingSubtype:t.properties.subtype,greetingAddon:t.properties.addon||"none"}),e.emit("render-minimized")}},A=function(e){var t=b.f(e);if(t&&t.properties.uniqueId&&!b.vb(e)){var n=e.getApplicationState().invitation;e.setApplicationState({invitation:Object(i.a)({},n,{displayedIds:[].concat(n.displayedIds,[t.properties.uniqueId])})})}},z=function(e,t){var n=(void 0===t?{}:t).shouldMaintainModality,r=void 0===n||n;b.db(e,"maximized")||e.setApplicationState({visibility:Object(i.a)({},e.getApplicationState("visibility"),{state:"maximized"},!r&&{interactionModality:"virtual"})})},M=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getApplicationState(),o=r.visibility,a=r.destroyed;!t&&"hidden"===o.state&&o.forced||"minimized"===o.state||(!b.X(e)||b.lb(f.d,e)||a?e.setApplicationState({visibility:Object(i.a)({},e.getApplicationState("visibility"),{state:"hidden"})}):n||!e.getView("Moment").show?(e.setApplicationState({visibility:Object(i.a)({},e.getApplicationState("visibility"),{state:"minimized"})}),Oe(e,{bubbleHoverState:!1})):e.emit("request_close_moment"))},P=function(e){b.db(e,"minimized")&&e.setApplicationState({visibility:{state:"hidden"}})},R=function(e,t){var n=t.id,r=t.active,i=void 0===r||r,o=t.thread,c=t.group,u=t.agent,s=t.queued,d=void 0!==s&&s,l=t.timestamp;null===e.getChat(f.d).serverId&&e.setChatServerId(f.d,n);var p={ended:!1,queued:d,fakeAgentMessageId:null,lastThread:o,currentAgent:u,timestamp:l};"number"===typeof c&&(p.group=c),k(e),e.updateChat(f.d,{active:i,properties:p}),de(e);var m=b.d(f.d,e);Object(a.y)("properties.isBot",m)?setTimeout((function(){return"loader"===e.getDefaultView("Chat")&&e.setDefaultView("Chat","timeline")}),1500):e.setDefaultView("Chat","timeline"),e.setApplicationState({hidden:!1});var v=e.getApplicationState().readyState;e.setCurrentView("Chat"),v===C.b.NOT_READY||b.db(e,"maximized")||z(e,{shouldMaintainModality:!1})},B=function(e,t,n){void 0===n&&(n={});var r=b.i("creditCardMasking",e).enabled?j(t):t;return{type:Object(v.a)(r)?"emoji":"message",thread:b.b(e),properties:Object(a.f)(Object(i.a)({text:r},n))}},D=function(e,t,n,r){e.sendEvent(t,B(e,n,{triggeredBy:r}))},N=function(e,t,n){e.setApplicationState({messageDraft:n})},F=function(e,t,n,r){var o=e.getApplicationState("invitation").current,c=e.getEvent(t,o),u=B(e,n,Object(i.a)({triggeredBy:r},c&&{fromGreeting:Object(i.a)({},Object(a.db)(["id","uniqueId"],c.properties))})),s=e.getChat(t).active,d=b.Z(e),l=b.i("preChatAfterGreeting",e).enabled;if(d&&!s&&l){var p=b.R(e,"prechat"),m=b.W(e,t);L(e,t,Object(i.a)({},u,{seen:!0,type:f.h,author:e.getSessionUserId(),id:Object(a.x)(e.getIndexedEvents(f.d))})),p||m||U(e)}else e.sendEvent(t,u)},q=function(e,t,n){var r=n.text,i=n.recipients,o=void 0===i?"all":i;e.sendEvent(t,{type:"custom_system_message",thread:b.b(e),properties:{text:r.trim(),recipients:o}})},V=function(e,t){e.updateChat(f.d,{properties:{currentAgent:t}})},U=function(e){if(!b.R(e,"prechat")){var t=e.getView("Chat/prechat");ne(e,t)}},W=function(e,t){var n=e.getChat(f.d).properties,o=n.rate,a=n.rateComment,c=t.fields,u=Object(r.a)(t,["fields"]);o&&(c=E("rating",o,c)),a&&(c=E("rateComment",a,c)),ne(e,Object(i.a)({},u,{fields:c}))},G=function(e){e.updateChat(f.d,{properties:{startChatAgainPending:!0}})},H=function(e,t,n){var r=void 0===n?{}:n,i=r.chatId,o=r.forced;e.updateChat(f.d,{properties:{startChatAgainPending:!1}}),ae(e);var a=e.getChat(f.d),c=a.properties.lastThread,u=a.serverId;if(o||!b.K(e)||u&&i!==u)e.flushChat(t),i&&e.setChatServerId(f.d,i);else{se(e);var s=b.h(e,f.d);s&&e.removeEvent(f.d,s.id),e.hasEvent(f.d,"boosters")&&e.removeEvent(f.d,"boosters")}e.updateChat(t,{properties:{agentIsTyping:!1,ended:!1,fakeAgentMessageId:null,lastThread:c,loadingHistory:!1,queued:!1,rate:null,rateComment:null,transcriptSentTo:null}}),e.setApplicationState({greetingsMuted:!1}),oe(e)},Z=function(e,t){var n=t.getApplicationState("config");t.setApplicationState({config:Object(i.a)({},n,{features:Object(i.a)({},n.features,{fileSharing:{enabled:"1"===e.properties.license.core["attachments.enable_for_visitors"]},agentAvatar:{enabled:e.__unsafeProperties.group.hasAgentAvatarsEnabled},continuousChat:{enabled:"1"===e.properties.license.core.continuous_chat_widget_enabled},chatHistory:{enabled:"1"===e.properties.license.core.customer_history_enabled},rating:{enabled:e.__unsafeProperties.group.ratingEnabled},emailTranscript:{enabled:e.__unsafeProperties.group.transcriptButtonEnabled},logo:{enabled:e.__unsafeProperties.group.logo.enabled,path:e.__unsafeProperties.group.logo.src},linksPreview:{enabled:e.__unsafeProperties.group.linksUnfurlingEnabled},ticketForm:{enabled:"ticketForm"in e,mode:e.__unsafeProperties.ticketFormMode||Object(m.a)(e)},queue:{writingInQueueEnabled:Object(p.g)(e)},preChatForm:{enabled:"prechatForm"in e},preChatAfterGreeting:{enabled:e.__unsafeProperties.group.prechatFormAfterGreetingEnabled},creditCardMasking:{enabled:!!e.__unsafeProperties.license&&e.__unsafeProperties.license.creditCardMaskingEnabled},hideTrademark:{enabled:e.__unsafeProperties.group.hasHiddenTrademark},disableSounds:{enabled:!e.__unsafeProperties.group.hasSoundsEnabled},minimized:{enabled:!e.__unsafeProperties.group.disabledMinimized},mobileMinimized:{enabled:e.__unsafeProperties.group.hasCustomMobileSettings?!e.__unsafeProperties.group.disabledMinimizedOnMobile:!e.__unsafeProperties.group.disabledMinimized},hideOnInit:{enabled:e.__unsafeProperties.group.hideOnInit}}),minimizedType:e.__unsafeProperties.group.minimizedType,mobileMinimizedType:e.__unsafeProperties.group.minimizedTypeOnMobile,theme:Object(a.U)(n.theme,Object(O.a)(e.__unsafeProperties.group.theme)),screenPosition:e.__unsafeProperties.group.screenPosition,mobileScreenPosition:e.__unsafeProperties.group.screenPositionOnMobile,nonProfitLicense:!!e.__unsafeProperties.license&&e.__unsafeProperties.license.nonProfit,properties:e.properties,screenOffset:{x:e.__unsafeProperties.group.offsetX,y:e.__unsafeProperties.group.offsetY}})}),t.getApplicationState("config").features.disableSounds.enabled&&t.setApplicationState({muted:!0})},Y=function(e,t,n){var r,o=e.getApplicationState("config");e.setApplicationState({config:Object(i.a)({},o,{features:Object(a.U)(o.features,(r={},r[t]=n,r))})})},K=function(e,t){Y(e,t,{enabled:!1})},J=function(e,t,n){Y(e,t,Object(i.a)({enabled:!0},n))},Q=function(e,t){try{var n=JSON.parse(t).filter((function(e){return"moment"===e.template_id}));if(Object(a.G)(n))return;J(e,"boosters",{items:n.map((function(e){var t={type:e.action.type,label:e.action.label,url:e.action.url};return e.action.webview_height&&(t.webviewHeight=e.action.webview_height),{id:e.id,template:e.template_id,title:e.title,description:e.description,icon:e.icon,action:t}}))})}catch(r){}},X=function(e,t,n){var r={answered:!0};n&&(r.fields=n.properties.fields,n.id&&e.setEventServerId(f.d,t,n.id)),e.updateEvent(f.d,t,{properties:r})},$=function(e,t){t.properties.receivedFirstTime&&g(e.getSessionUser().serverId,.01)&&Object(w.e)({minimizedType:b.p(e),greetingId:t.properties.id,greetingUniqueId:t.properties.uniqueId,greetingType:t.properties.type,greetingSubtype:t.properties.subtype,greetingAddon:t.properties.addon||"none"})},ee=function(e,t){var n=e.getApplicationState(),r=n.defaultWidget,o=n.embedded,c=n.actingAsDirectLink,u=n.availability,s=n.greetingsMuted,d=b.R(e,"prechat");V(e,t.author),"bar"!==b.p(e)&&k(e),"livechat"===r&&e.setDefaultView("Chat","timeline"),de(e),fe(e);var l,m,v,h,g,O=b.f(e);O&&(Object(w.f)({minimizedType:b.p(e),greetingId:null==(l=O.properties)?void 0:l.id,greetingUniqueId:null==(m=O.properties)?void 0:m.uniqueId,greetingType:null==(v=O.properties)?void 0:v.type,greetingSubtype:null==(h=O.properties)?void 0:h.subtype,greetingAddon:(null==(g=O.properties)?void 0:g.addon)||"none"}),e.removeEvent(f.d,O.id));Object(a.m)(t.properties.cards||t.properties.card).filter(Boolean).forEach((function(t){t.title&&(t.title=Object(p.j)(e,t.title)),t.subtitle&&(t.subtitle=Object(p.j)(e,t.subtitle)),t.buttons&&(t.buttons.forEach((function(e){return e.invitation=!0})),o&&!c||t.buttons.filter((function(e){return"url"===e.type&&"target"in e})).forEach((function(e){return e.target="new"})))}));var y=Object(a.x)(e.getIndexedEvents(f.d));L(e,f.d,Object(i.a)({},t,{seen:!s,id:y,properties:Object(i.a)({},t.properties,t.properties.text&&{text:Object(p.j)(e,t.properties.text)})})),e.updateChat(f.d,{properties:{fakeAgentMessageId:y}}),e.setApplicationState({invitation:Object(i.a)({},e.getApplicationState("invitation"),{current:y})}),b.db(e,"maximized")||("livechat"===r&&e.setCurrentView("Chat"),b.V(e,t)&&t.properties.receivedFirstTime&&!s?z(e,{shouldMaintainModality:!1}):b.V(e,t)||M(e,!0)),b.N(e)&&"offline"===u&&d&&U(e),"openwidget"!==r&&(s||$(e,t),e.emit("render-minimized"))},te=function(e){ne(e,e.getView("Chat/ticketForm"))},ne=function(e,t){var n={formType:t.type,formId:t.id,fields:t.fields};if(b.R(e)){var r=e.getLastEvent(f.d).id;return e.updateEvent(f.d,r,{properties:n})}var i={id:Object(a.x)(e.getIndexedEvents(f.d)),type:"form",author:"system",properties:n};return L(e,f.d,i)},re=function(e){return!!e&&function(e){var t=Object(c.h)(e);return!t||"https:"===t||!1}(Object(o.a)(e))},ie=function(e,t){var n=e.getView("Moment");if(n.show&&!t.wasTriggeredByGreeting)return n.data.url===t.url?void e.emit("request_expand_moment"):void e.emit("request_expand_moment",{nextMoment:t});re(t.url)?(e.updateView("Moment",{show:!0,data:t}),n.show&&e.emit("request_expand_moment")):S(e,f.d,{text:"Link attached to the button is invalid."})},oe=function(e){var t=b.i("boosters",e);t.enabled&&(e.hasEvent(f.d,"boosters")||e.addEvent(f.d,{type:"boosters",id:"boosters",author:"system",seen:!0,properties:{boosters:t.items}}))},ae=function(e,t){e.updateView("Moment",{show:!1,data:{}}),t&&M(e)},ce=function(e,t){e.requestUpdateUser(e.getSessionUser().id,t)},ue=function(e,t){var n;e.setUserServerId(e.getSessionUser().id,t),e.setApplicationState({testGroup:(n=t,h(n)%2?"A":"B")})},se=function(e,t){if(void 0===t&&(t=void 0),b.R(e,t)){var n=e.getLastEvent(f.d).id;e.removeEvent(f.d,n)}},de=function(e){se(e,"prechat")},le=function(e){se(e,"postchat")},fe=function(e){se(e,"ticket")},pe=function(e,t,n){var r=Object(a.y)("error.details.errors",e);if(r){var o=r.reduce((function(e,n){return"requester.email"===n.field?Object(i.a)({},e,{email:t("invalid_email")}):"requester.name"===n.field?Object(i.a)({},e,{name:n.message}):e}),{});Object(a.G)(o)?n():n(o)}else n()},me=function(e){var t=f.b,n=e.getChat(f.d).properties.lastThread;e.hasEvent(f.d,t)&&e.removeEvent(f.d,t),!!b.m(e).find((function(e){return"form"===e.type&&"ask_for_email"===e.properties.formId}))||e.addEvent(f.d,{id:t,serverId:null,seen:!0,type:f.b,author:"system",thread:n})},be=function(e,t,n,r){switch(Object(a.E)(n.type,["message","webview"])&&z(e),n.type){case"message":F(e,f.d,n.text,{event:t,button:n});break;case"webview":ie(e,{url:n.value,height:n.webviewHeight,wasTriggeredByGreeting:r,source:r?"targeted_message":"rich_message"});break;case"cancel":ge(e,f.d,t);break;case"copy":return void Object(_.a)(n.value)}e.emit("rich_greeting_button_clicked",{button:n,event:e.getEvent(f.d,t)})},ve=function(e){e.emit("start_thread")},he=function(e,t,n){void 0===n&&(n="button");var r=e.getChat(f.d),i=Object(a.E)("image",t.type);(Object(a.E)(["clipboard","drag"],n)||Math.random()<.1)&&Object(x.d)("file_upload_added",{uploadSource:n}),e.sendEvent(f.d,{type:"file",thread:r.properties.lastThread,properties:{name:t.name.substring(0,f.f),progress:0,finished:!1,failed:!1,failReason:null,fileType:i?"image":"other",url:i?URL.createObjectURL(t):null,uploadSource:n}},{file:t})},ge=function(e,t,n){var r=e.getChat(t),i=e.getApplicationState().mobile,o=e.getEvent(t,n);!r.active&&o&&(g(e.getSessionUser().serverId,.01)&&Object(w.c)({mobile:i,greetingId:o.properties.id,greetingUniqueId:o.properties.uniqueId,greetingType:o.properties.type,greetingSubtype:o.properties.subtype,greetingAddon:o.properties.addon||"none",minimizedType:b.p(e)}),e.emit("request_cancel_greeting",o.properties.uniqueId),e.emit("render-minimized"))},Oe=function(e,t,n){var r=(void 0===n?{}:n).scheduleRerender,o=void 0===r||r,a=e.getView("minimized"),c=Object(i.a)({},a,t);JSON.stringify(a)!==JSON.stringify(c)&&(e.updateView("minimized",c),o&&setTimeout((function(){return e.emit("render-minimized")}),0))},ye=function(e,t){var n=t.sessions,r=t.transitionState,o=e.getView("minimized"),a=Object(i.a)({},o,{visitorCounter:Object(i.a)({},o.visitorCounter,"number"===typeof n&&{sessions:n},{transitionState:r,isVisible:!!r&&"hidden"!==r,hasSeen:o.hasSeen||"shown"===r})});e.updateView("minimized",a),e.emit("render-minimized")},je=function(e,t){var n=t.transitionState,r=t.data,o=e.getView("minimized"),a=Object(i.a)({},o,{googleReviews:Object(i.a)({data:r},o.googleReviews,{transitionState:n,isVisible:!!n&&"hidden"!==n,hasSeen:o.hasSeen||"shown"===n})});e.updateView("minimized",a),e.emit("render-minimized")},we=function(e,t){var n=e.getApplicationState("locationHistory").history,r=(new Date).getTime();if(n.length&&Object(a.N)(n)===t)e.setApplicationState({locationHistory:{history:n,updatedAt:r}});else{var i=[].concat(n.slice(-1*C.a.MAX_HISTORY_ELEMENTS),[t]);e.setApplicationState({locationHistory:{history:i,updatedAt:r}})}},Ce=function(e,t){var n=e.getApplicationState("recommendations");e.setApplicationState({recommendations:Object(i.a)({},n,{hiddenIds:[].concat(n.hiddenIds,[t])})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"c",(function(){return v}));var r=n(2),i=function(e,t){Object(r.u)((function(e,n){t.style[n]=e}),e)},o=function(e,t){Object(r.u)((function(e,n){"style"!==n?t.setAttribute(n,e):i(e,t)}),e)},a=function(){return!!document.documentElement.currentStyle},c=function(e,t){var n=window.getComputedStyle(t),i="border-box"===n.boxSizing,o=Object(r.db)(e,n);if(a()&&i&&Object(r.C)("width",o)&&null!==o.width){var c=[o.width,n.paddingLeft,n.paddingRight,n.borderLeftWidth,n.borderRightWidth];o.width=Object(r.rb)(c.map(parseFloat))+"px"}if(a()&&i&&Object(r.C)("height",o)&&null!==o.height){var u=[o.height,n.paddingTop,n.paddingBottom,n.borderTopWidth,n.borderBottomWidth];o.height=Object(r.rb)(u.map(parseFloat))+"px"}return o},u=n(123);function s(e,t){void 0===t&&(t=document.body);var n=Object(u.a)(t),i=Object(r.q)((function(t){return t===e}),n);return n[i===n.length-1?0:i+1]}function d(){return new Promise((function(e){!function t(){document.body?e(document.body):setTimeout(t,100)}()}))}var l=null,f=function(){if(l)return l;var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),r=n.style;return r.width="100px",r.height="50px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?l="positive-descending":(e.scrollLeft=1,l=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),l};function p(e,t){return void 0===t&&(t=0),Math.abs(e.scrollTop+e.clientHeight-e.scrollHeight)<=t}function m(e,t){return void 0===t&&(t=0),e.scrollTop<=t}function b(e){var t=e.parentNode;t&&t.removeChild(e)}var v=function(e,t){var n=document.createElement(e);return o(t,n),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"i",(function(){return m})),n.d(t,"j",(function(){return p})),n.d(t,"g",(function(){return v})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return O})),n.d(t,"m",(function(){return j})),n.d(t,"o",(function(){return f})),n.d(t,"h",(function(){return C})),n.d(t,"d",(function(){return _})),n.d(t,"n",(function(){return E})),n.d(t,"c",(function(){return L}));var r=n(2),i=function(e){return Object(r.yb)(e).map((function(e){return e.map(encodeURIComponent).join("=")})).join("&")},o=function(e){var t=e.split("&").filter(Boolean).map((function(e){return e.split("=").map((function(e){return decodeURIComponent(e.replace("+","%20"))}))})).map((function(e){return 2===e.length?e:[e[0],""]}));return Object(r.v)(t)},a=/(?:[^:]+:\/\/)?([^/\s]+)/;function c(e){var t=e.match(a);return t&&t[1]}var u=/[^:]+:\/\/[^(/|?)\s]+/,s=function(e){var t=e.match(u);return t&&t[0]},d=/.*?\?([^#]+)/,l=function(e){var t=e.match(d);return t?"?"+t[1]:""},f=function(e){return e.replace(/^\?/,"")},p=function(e){if(null===s(e))return o(f(e));var t=f(l(e));return t?o(t):{}},m=function(e,t){return p(t)[e]},b=/^(?:https?:)?\/\/[^/]+\/([^?#]+)/,v=function(e){var t=e.match(b);return"/"+(t&&t[1]||"")},h=function(e){return e.replace(/\w/g,"$&[\\r\\n\\t]*")},g=new RegExp("^[\0-\x1f]*("+h("javascript")+"|"+h("data")+"):","i"),O=function(e){return g.test(e)},y=/^((http(s)?:)?\/\/)/,j=function(e){return e.replace(y,"")},w=/^((http(s)?:)?\/\/)/,C=function(e){var t=e.match(w);return t?t[2]:null},x=n(1),_=function(e,t){if(0===Object.keys(t).length)return e;var n=s(e),r=v(e),o=l(e)?p(e):{};return""+n+r+"?"+i(Object(x.a)({},o,t))},E=function(e,t){if(-1===e.indexOf("?"))return e;var n=p(e);if(Object(r.G)(n))return e;if(Object.keys(n).every((function(e){return!t.includes(e)})))return e;t.forEach((function(e){return delete n[e]}));var i=e.split("?")[0],o=_(i,n);return e.indexOf("#")>-1?o+"#"+e.split("#")[1]:o},L=function(e){return"https://"+j(e)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return d})),n.d(t,"f",(function(){return l}));var r=n(1),i=n(2),o=n(45),a=function(e,t){var n=function(n){var r=Object.create(n);r.action=function(t,r){var i={type:e,payload:t};r&&(i.meta=r),n.dispatch(i)};for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a1?a-1:0),s=1;s"+t+"":"")+"\n\t\t"+a+"\n\t",n]}f.insert=function(e,t){var n="";m(e,t,{insert:function(e){n+=e}},!0),f.inserted[t.name]=n};n(139)},,function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return s})),n.d(t,"j",(function(){return d})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"i",(function(){return m}));var r=n(2),i=function(e){return!!e&&/native code/.test(String(e))},o=function(){return!i(window.matchMedia)||!window.matchMedia("(hover: none)").matches},a=function(){return Object(r.E)(navigator.platform,["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"])},c=function(){return a()&&Object(r.E)("Version/15",navigator.userAgent)},u=function(){return a()&&Object(r.E)("Version/17",navigator.userAgent)},s=function(){return/mobile/gi.test(navigator.userAgent)&&!("MacIntel"===navigator.platform&&Object(r.E)("iPad",navigator.userAgent))},d=function(){return s()||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>0},l=function(){return Object(r.E)("Chrome",navigator.userAgent)},f=function(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0},p=function(){return/Firefox/.test(navigator.userAgent)},m=function(){return!l()&&/Safari/.test(navigator.userAgent)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return N}));var r={};n.r(r),n.d(r,"xs",(function(){return d})),n.d(r,"sm",(function(){return l})),n.d(r,"md",(function(){return f})),n.d(r,"lg",(function(){return p})),n.d(r,"xl",(function(){return m})),n.d(r,"xxl",(function(){return b})),n.d(r,"none",(function(){return v})),n.d(r,"round",(function(){return h})),n.d(r,"def",(function(){return g}));var i={};n.r(i),n.d(i,"yellow",(function(){return O})),n.d(i,"red",(function(){return y})),n.d(i,"green",(function(){return j})),n.d(i,"ruby",(function(){return w})),n.d(i,"accent",(function(){return C})),n.d(i,"webkitOutline",(function(){return x})),n.d(i,"grayscale",(function(){return _})),n.d(i,"brand",(function(){return E}));var o={};n.r(o),n.d(o,"subtle",(function(){return L})),n.d(o,"xs",(function(){return S})),n.d(o,"sm",(function(){return I})),n.d(o,"floating",(function(){return k})),n.d(o,"md",(function(){return T})),n.d(o,"lg",(function(){return A})),n.d(o,"xl",(function(){return z})),n.d(o,"enormous",(function(){return M})),n.d(o,"outline",(function(){return P}));var a={};n.r(a),n.d(a,"light",(function(){return B})),n.d(a,"dark",(function(){return D}));var c={};n.r(c),n.d(c,"space0",(function(){return W})),n.d(c,"space1",(function(){return G})),n.d(c,"space2",(function(){return H})),n.d(c,"space3",(function(){return Z})),n.d(c,"space4",(function(){return Y})),n.d(c,"space5",(function(){return K})),n.d(c,"space6",(function(){return J})),n.d(c,"space7",(function(){return Q}));var u={};n.r(u),n.d(u,"easings",(function(){return X}));var s={};n.r(s),n.d(s,"heading",(function(){return $})),n.d(s,"subheading",(function(){return ee})),n.d(s,"input",(function(){return te})),n.d(s,"placeholder",(function(){return ne})),n.d(s,"caption",(function(){return re})),n.d(s,"basic",(function(){return ie})),n.d(s,"basicContrast",(function(){return oe})),n.d(s,"errorCaption",(function(){return ae})),n.d(s,"heroHeader",(function(){return ce})),n.d(s,"code",(function(){return ue}));var d="2px",l="4px",f="6px",p="8px",m="12px",b="16px",v="0px",h="50%",g=f,O={50:"#FFFAE5",100:"#F7C56E",500:"#FFD000",800:"#3A352C"},y={100:"#FF7C6B",500:"#D93311"},j={100:"#77Cf9D",500:"#268750"},w={100:"#FA6681",500:"#E30D34"},C="#2000F0",x="#3B99FC",_={0:"#FFFFFF",15:"#F6F6F7",25:"#F0F0F0",50:"#F8F8F8",100:"#E3E3E3",200:"#D5D5D5",300:"#C0C0C0",400:"#B3B3B3",500:"#757575",550:"#6E6E6E",600:"#575757",650:"#333333",700:"#2E2E2E",800:"#252525",900:"#111111"},E={orange:"#FF5100",black:"#1B1B20"},L="rgba(0, 0, 0, 0.125) 0px 0.362176px 0.941657px -1px, rgba(0, 0, 0, 0.18) 0px 3px 7.8px -2px",S="0px 0.6px 0.54px -1.33px rgba(0, 0, 0, 0.15), 0px 2.29px 2.06px -2.67px rgba(0, 0, 0, 0.13), 0px 10px 9px -4px rgba(0, 0, 0, 0.04);",I="0px 0.48px 2.22px -1.17px rgba(0, 0, 0, 0.14), 0px 1.83px 8.42px -2.33px rgba(0, 0, 0, 0.12), 0px 8px 36.8px -3.5px rgba(0, 0, 0, 0.06);",k="0px 0.48px 2.41px -0.38px rgba(0, 0, 0, 0.05), 0px 4px 20px -0.75px rgba(0, 0, 0, 0.17)",T=k,A=k,z="rgba(0, 0, 0, 0.075) 0px 0.602187px 2.04744px -1.33333px, rgba(0, 0, 0, 0.067) 0px 2.28853px 7.78101px -2.66667px, rgba(0, 0, 0, 0.02) 0px 10px 34px -4px",M="rgba(0, 0, 0, 0.035) 0px 0.796192px 3.98096px -0.1875px, rgba(0, 0, 0, 0.047) 0px 2.41451px 12.0725px -0.375px, rgba(0, 0, 0, 0.075) 0px 6.38265px 31.9133px -0.5625px, rgba(0, 0, 0, 0.17) 0px 20px 100px -0.75px;",P="0 0 0 1px "+C,R=n(1),B=Object(R.a)({},i,{border:_[500],borderSubtle:_[100],divider:_[100],error:y[500],errorContrast:_[0],subtleFeedback:O[50],subtleFeedbackContrast:_[900],caution:O[500],cautionContrast:_[900],success:j[500],successContrast:_[0],primaryTextColor:_[900],secondaryTextColor:_[550],tertiaryTextColor:_[400],surface:_[0],surfaceVariant:_[25],surfaceVariantHover:"#E6E6E6",surfaceInteractive:_[50],surfaceInteractivePressed:_[600],surfaceDecorative:_[100],surfaceFade:_[15],hintSurface:_[800],floatSurface:_[0],pressedElement:_[200],notification:w[500],notificationContrast:_[0],widgetBackground:_[50],disabled:_[100],disabledContrast:_[600],inactiveElement:_[300],formIconColor:_[50],trademarkFooterText:_[600],homescreenBackground:_[50],decorations:{decorOne:"#FFDAB9",decorTwo:"#D9CCFA",decorThree:"#FACCCC",decorFour:"#F4F791",decorFive:"#F1C9FC"}}),D=Object(R.a)({},i,{border:_[600],borderSubtle:_[650],divider:_[700],error:y[100],errorContrast:_[900],subtleFeedback:O[800],subtleFeedbackContrast:O[100],caution:O[100],cautionContrast:_[900],success:j[100],successContrast:_[900],primaryTextColor:_[0],secondaryTextColor:_[400],tertiaryTextColor:_[600],surface:_[800],surfaceVariant:_[700],surfaceVariantHover:"#333333",surfaceInteractive:_[700],surfaceInteractivePressed:_[400],surfaceDecorative:_[700],surfaceFade:_[700],hintSurface:_[550],floatSurface:_[700],pressedElement:_[600],notification:w[100],notificationContrast:_[900],widgetBackground:_[900],disabled:_[700],disabledContrast:_[500],inactiveElement:_[600],formIconColor:_[900],trademarkFooterText:_[400],homescreenBackground:_[900],decorations:{decorOne:"#D7650F",decorTwo:"#400CC6",decorThree:"#AF3C3C",decorFour:"#ACB125",decorFive:"#831AA2"}}),N=function(e){return e/16+"rem"},F=N(18),q=N(16),V=N(14),U=N(12),W="0px",G="2px",H="4px",Z="8px",Y="10px",K="12px",J="16px",Q="24px",X={linear:"cubic-bezier(0, 0, 1, 1)",sharp:"cubic-bezier(0.33, 0, 0, 1)",smooth:"cubic-bezier(0.33, 0, 0.67, 1)",swift:"cubic-bezier(0.14, 0, 0, 1)",spring:"cubic-bezier(0.18, 0.89, 0.32, 1.28)"},$={fontSize:q,fontWeight:"bold"},ee={fontSize:V,fontWeight:"bold"},te={fontSize:V,fontWeight:"normal"},ne={fontSize:V,fontWeight:"normal"},re={fontSize:U,fontWeight:"normal"},ie={fontSize:V,fontWeight:"normal"},oe={fontSize:V,fontWeight:"normal"},ae={fontSize:U,fontWeight:"normal"},ce={fontSize:F,fontWeight:"bold"},ue={fontFamily:"monospace !important",fontSize:"13px",fontWeight:"normal"}},,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 o}));var r={};n.r(r),n.d(r,"NOT_READY",(function(){return a})),n.d(r,"READY",(function(){return c})),n.d(r,"BOOTSTRAPPED",(function(){return u}));var i={};n.r(i),n.d(i,"FRA_A",(function(){return s})),n.d(i,"FRA_B",(function(){return d})),n.d(i,"FRA",(function(){return l})),n.d(i,"DAL",(function(){return f}));var o={};n.r(o),n.d(o,"VALID_TIMEFRAME",(function(){return m})),n.d(o,"SEARCH_QUERIES",(function(){return b})),n.d(o,"QUERY_CALL_THRESHOLD",(function(){return v})),n.d(o,"MAX_HISTORY_ELEMENTS",(function(){return h}));var a="not_ready",c="ready",u="bootstrapped",s="fra-a",d="fra-b",l="fra",f="dal",p=n(38),m=18e5,b=/^(s|q|search|query|search_query)$/,v=p.a?1:3,h=10},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return l})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return g}));var r=n(15),i=n(18),o=n(6),a=n(9),c=n(86),u=function(){var e=Object(r.j)(window.location.search);return parseInt(function(){var e=String(window.location).match(/licen(?:s|c)e\/g?(\d+)/);return e?e[1]:null}()||e.license_id,10)},s=function(e){var t=parseInt(e,10);return t>-1?t:null},d=function(e){return"group"in e?s(e.group):"groups"in e?s(e.groups):null},l=function(){return"1"===Object(r.i)("unique_groups",window.location.search)||"1"===Object(r.i)("unique_group",window.location.search)},f=function(e,t,n){void 0===n&&(n={});var r=n,i=r.name,c=void 0===i?function(e){return e.getSessionUser().name||e.localize("client")}(e):i,u=r.agent,s=void 0===u?function(e){return Object(a.d)(o.d,e).name}(e):u;return t.replace(/%name%/g,c).replace(/%agent%/g,s)},p=function(e){return Object(i.d)(e)>.7},m=function(e){return Object(i.d)(e)<=.179},b=function(e){var t,n=Object(c.b)();return Boolean(null==(t=e.properties.license[n])?void 0:t.messaging_in_queue_enabled)},v=function(e){return"https://"+e+"."+("api"===e?"livechatinc":"livechat")+".com"},h=function(){var e=document.createElement("video"),t=document.createElement("canvas");return navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia?navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",displaySurface:"browser"},audio:!1}).then((function(t){return e.srcObject=t,e.play()})).then((function(){return new Promise((function(e){setTimeout(e,o.l)}))})).then((function(){t.width=e.videoWidth,t.height=e.videoHeight,t.getContext("2d").drawImage(e,0,0,e.videoWidth,e.videoHeight);var n=function(e,t){for(var n=e.split(","),r=n[0],i=n[1],o=r.match(/:(.*?);/)[1],a=atob(i),c=a.length,u=new Uint8Array(c);c--;)u[c]=a.charCodeAt(c);return new File([u],t,{type:o})}(t.toDataURL("image/png"),"screenshot.png");return e.srcObject.getTracks().forEach((function(e){return e.stop()})),n})):Promise.reject(new Error("Screen sharing is not supported"))},g=function(e){return m(e)?Object(i.c)(.1,Object(i.e)(.1,e)):Object(i.c)(.2,Object(i.b)(.15,e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"m",(function(){return s})),n.d(t,"p",(function(){return d})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"l",(function(){return b})),n.d(t,"k",(function(){return v})),n.d(t,"f",(function(){return h})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return O}));var r=n(1),i="chat-widget",o="chat-widget-minimized",a=5,c="LiveChat chat widget",u="OpenWidget widget",s={opacity:0,visibility:"hidden",zIndex:-1},d={opacity:1,visibility:"visible",zIndex:2147483639},l={id:i+"-container",style:Object(r.a)({},s,{position:"fixed",bottom:0,width:0,height:0,maxWidth:"100%",maxHeight:"100%",minHeight:0,minWidth:0,backgroundColor:"transparent",border:0,overflow:"hidden"})},f={id:"configurator-root-container",style:Object(r.a)({},l.style)},p={id:"livechat-eye-catcher",style:{position:"fixed",visibility:"visible",zIndex:2147483639,background:"transparent",border:0,padding:"10px 10px 0 0",float:"left",marginRight:"-10px",webkitBackfaceVisibility:"hidden"}},m={style:{position:"absolute",display:"none",top:"-5px",right:"-"+a+"px",width:"16px",lineHeight:"16px",textAlign:"center",cursor:"pointer",textDecoration:"none",color:"#000",fontSize:"20px",fontFamily:"Arial, sans-serif",borderRadius:"50%",backgroundColor:"rgba(255, 255, 255, 0.5)"}},b={id:"livechat-eye-catcher-img",style:{display:"block",overflow:"hidden",cursor:"pointer"}},v={alt:"",style:{display:"block",border:0,float:"right"}},h={position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px"},g={allowtransparency:!0,id:i,name:i,title:c,scrolling:"no",style:{width:"100%",height:"100%","min-height":"0px","min-width":"0px",margin:"0px",padding:"0px","background-image":"none","background-position-x":"0%","background-position-y":"0%","background-size":"initial","background-attachment":"scroll","background-origin":"initial","background-clip":"initial","background-color":"rgba(0, 0, 0, 0)","border-width":"0px",float:"none","color-scheme":"normal"}},O=Object(r.a)({},g,{id:o,name:o})},,function(e,t,n){"use strict";n.d(t,"B",(function(){return l})),n.d(t,"V",(function(){return v})),n.d(t,"W",(function(){return x})),n.d(t,"a",(function(){return u.a})),n.d(t,"b",(function(){return u.b})),n.d(t,"c",(function(){return u.d})),n.d(t,"d",(function(){return u.e})),n.d(t,"f",(function(){return u.g})),n.d(t,"e",(function(){return u.f})),n.d(t,"g",(function(){return u.h})),n.d(t,"h",(function(){return u.i})),n.d(t,"i",(function(){return u.j})),n.d(t,"j",(function(){return u.k})),n.d(t,"k",(function(){return u.l})),n.d(t,"l",(function(){return u.n})),n.d(t,"m",(function(){return u.o})),n.d(t,"n",(function(){return u.p})),n.d(t,"o",(function(){return u.q})),n.d(t,"p",(function(){return u.r})),n.d(t,"q",(function(){return u.u})),n.d(t,"r",(function(){return u.v})),n.d(t,"s",(function(){return u.w})),n.d(t,"t",(function(){return u.y})),n.d(t,"u",(function(){return u.z})),n.d(t,"v",(function(){return u.A})),n.d(t,"w",(function(){return u.B})),n.d(t,"x",(function(){return u.C})),n.d(t,"y",(function(){return u.D})),n.d(t,"z",(function(){return u.E})),n.d(t,"A",(function(){return u.F})),n.d(t,"D",(function(){return u.H})),n.d(t,"C",(function(){return u.G})),n.d(t,"E",(function(){return u.I})),n.d(t,"F",(function(){return u.J})),n.d(t,"G",(function(){return u.O})),n.d(t,"H",(function(){return u.P})),n.d(t,"I",(function(){return u.Q})),n.d(t,"J",(function(){return u.R})),n.d(t,"K",(function(){return u.S})),n.d(t,"L",(function(){return u.T})),n.d(t,"Q",(function(){return u.Y})),n.d(t,"O",(function(){return u.W})),n.d(t,"P",(function(){return u.X})),n.d(t,"R",(function(){return u.Z})),n.d(t,"S",(function(){return u.ab})),n.d(t,"M",(function(){return u.U})),n.d(t,"N",(function(){return u.V})),n.d(t,"T",(function(){return u.bb})),n.d(t,"U",(function(){return u.cb})),n.d(t,"X",(function(){return u.db})),n.d(t,"Y",(function(){return u.eb})),n.d(t,"Z",(function(){return u.fb}));var r=n(20),i=n(1),o=n(7),a=n(0),c=n(5),u=n(39),s=Object(c.A)(c.g,{target:"eed86ay0"})("padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;",(function(e){var t=e.size;return{width:t,height:t}}),";"),d=function(e){var t=e.buttonSize,n=void 0===t?32:t,r=e.iconSize,c=void 0===r?24:r,d=Object(o.a)(e,["buttonSize","iconSize"]);return a.createElement(s,Object(i.a)({size:n},d),a.createElement(u.x,{size:c},a.createElement(u.i,{size:c})))},l=Object(c.A)("div",{target:"e1viqdiv0"})("margin:8px 16px;background:",(function(e){return e.theme.colors.surface}),";box-shadow:",(function(e){return e.theme.boxShadow.sm}),";",(function(e){var t=e.stickToEdge,n=void 0!==t&&t,r=e.theme;return{marginBottom:n?"0":"8px",borderRadius:n?r.borderRadius.md+" "+r.borderRadius.md+" "+r.borderRadius.none+" "+r.borderRadius.none:r.borderRadius.md,"@media (orientation: landscape)":{maxWidth:"50%",margin:n?"0 auto":"0 auto 8px"}}}),";"),f=(n(106),n(2),n(182),n(145),n(148),n(93),n(147),n(92),n(146),n(104),(new Date).toISOString(),n(12)),p=n(3),m=n(38);function b(){var e=Object(f.a)(["\n\t0% {\n\t\ttransform: scale(",");\n\t}\n\n\t25% {\n\t\ttransform: scale(",");\n\t}\n\n\t50% {\n\t\ttransform: scale(",");\n\t}\n\n\t100% {\n\t\ttransform: scale(1.0);\n\t}\n"]);return b=function(){return e},e}var v=Object(c.A)("div",{target:"eyqxlol0"})("display:flex;align-items:center;justify-content:center;width:auto;min-width:1.5em;border-radius:",(function(e){return e.theme.borderRadius.xl}),";padding:0 4px;flex-shrink:0;background-color:",(function(e){return e.theme.colors.notification}),";color:",(function(e){return e.theme.colors.notificationContrast}),";height:1.5em;line-height:1.5em;text-align:center;font-size:0.8em;box-shadow:",(function(e){return e.theme.boxShadow.xs}),";font-weight:bold;",(function(e){var t=e.animated,n=e.theme,r=e.minScale,i=e.maxScale;return!m.a&&t&&Object(p.c)("animation-name:",function(e,t){return void 0===e&&(e=0),void 0===t&&(t=1.3),Object(p.e)(b(),e,e,t)}(r,i),";animation-duration:0.625s;animation-timing-function:",n.transitions.easings.spring,";")}),";");var h=Object(c.A)(c.g,{target:"e1l1ek6a1"})("padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center;",(function(e){var t=e.size;return{width:t,height:t}}),";"),g=Object(c.A)(u.a,{target:"e1l1ek6a0"})({name:"jbgpyq",styles:"transform:rotate(90deg)"}),O=function(e){var t=e.buttonSize,n=void 0===t?32:t,r=e.iconSize,c=void 0===r?24:r,s=Object(o.a)(e,["buttonSize","iconSize"]);return a.createElement(h,Object(i.a)({size:n},s),a.createElement(u.x,{size:c},a.createElement(g,{size:c})))},y=n(50);var j=Object(c.A)("span",{target:"e1tnd1n32"})({name:"2h1wr3",styles:"flex-grow:1;flex-shrink:1"}),w=Object(c.A)("div",{target:"e1tnd1n31"})("display:flex;cursor:pointer;justify-content:flex-start;align-items:center;color:",(function(e){return e.theme.colors.primaryTextColor}),";",(function(e){return e.theme.typography.basic}),";"),C=Object(c.A)(v,{target:"e1tnd1n30"})({name:"1oi6uwp",styles:"margin:0 6px;flex-shrink:0;box-shadow:none"}),x=function(e){var t=e.unseenCount,n=e.text,r=e.stickToEdge,c=e.onClose,u=e.onClick,s=Object(o.a)(e,["unseenCount","text","stickToEdge","onClose","onClick"]);return a.createElement(l,Object(i.a)({stickToEdge:r},s),a.createElement(w,{"aria-label":"new messages notification",onClick:u},a.createElement(C,null,t<100?t:"99+"),a.createElement(j,{ellipsis:!0},a.createElement(y.a,null,n)),a.createElement(O,{onClick:u,"aria-label":"scroll to latest "+(t>1?t+" messages":"message")}),a.createElement(d,{"aria-label":"close notification",onClick:function(e){e.stopPropagation(),c()}})))};r.h,r.d,r.g,r.a,r.b,r.f},function(e,t,n){"use strict";n.d(t,"c",(function(){return r.a})),n.d(t,"b",(function(){return i.a})),n.d(t,"l",(function(){return o.a})),n.d(t,"m",(function(){return a.a})),n.d(t,"r",(function(){return c.a})),n.d(t,"u",(function(){return u.a})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return O})),n.d(t,"k",(function(){return y})),n.d(t,"n",(function(){return j})),n.d(t,"o",(function(){return w})),n.d(t,"p",(function(){return C})),n.d(t,"q",(function(){return x})),n.d(t,"t",(function(){return T})),n.d(t,"v",(function(){return A})),n.d(t,"w",(function(){return z})),n.d(t,"x",(function(){return M})),n.d(t,"y",(function(){return P})),n.d(t,"h",(function(){return D})),n.d(t,"s",(function(){return U})),n.d(t,"d",(function(){return W})),n.d(t,"e",(function(){return G})),n.d(t,"j",(function(){return Z})),n.d(t,"i",(function(){return K}));var r=n(140),i=n(99),o=n(71),a=n(260),c=n(131),u=n(161),s=n(160),d=n(0),l=function e(t,n){t.forEach((function(t){if(t!==n.modalElement){if(!n.ancestors.has(t)){var r=t.getAttribute("aria-hidden");return n.originalValues.set(t,r),void t.setAttribute("aria-hidden","true")}t.children&&e([].slice.call(t.children),n)}}))},f=function(e){d.useEffect((function(){if(e){var t=e.current,n=t.ownerDocument||document,r=function(e,t){for(var n=new Set,r=e;r=r.parentElement;){if(t.body===r)return n;n.add(r)}return n}(t,n),i=new Map;return l([].slice.call(n.body.children),{ancestors:r,originalValues:i,modalElement:t}),function(){i.forEach((function(e,t){null!==e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}))}}}),[e])};function p(e,t,n){d.useEffect((function(){return document.addEventListener(e,t,n),function(){return document.removeEventListener(e,t,n)}}),[e,t,n])}var m=function(e,t){d.useEffect((function(){var n=t.current;if(n){var r=function(e){e.preventDefault()};return n.addEventListener(e,r,{passive:!1}),function(){return n.removeEventListener("touchmove",r)}}}),[e,t])},b=0,v=null,h=function(){v="keyboard"},g=function(){v="click"},O=function(e){var t=(null==e?void 0:e.document)||document;return d.useEffect((function(){return 0===b&&(t.addEventListener("keydown",h,!0),t.addEventListener("mousedown",g,!0),t.addEventListener("touchstart",g,!0)),b++,function(){--b>0||(v=null,t.removeEventListener("keydown",h,!0),t.removeEventListener("mousedown",g,!0),t.removeEventListener("touchstart",g,!0))}}),[t]),d.useCallback((function(){return v}),[])};var y=function(e){return{onKeyPress:d.useCallback((function(t){var n=t.key;"Enter"!==n&&" "!==n||e()}),[e])}};var j=function(e){d.useEffect(e,[])};var w=function(e){var t=Object(o.a)(e);d.useEffect((function(){return function(){return t.current()}}),[t])},C=function(e,t){var n=d.useRef(!1);d.useEffect((function(){n.current?e():n.current=!0}),t)},x=function(e){var t=d.useRef(!1),n=Object(o.a)(e);return d.useEffect((function(){t.current&&(t.current=!1,n.current())})),d.useCallback((function(){t.current=!0}),[])},_=n(2),E=n(14),L=n(228),S={duration:0},I=Object(L.a)(),k=["End","Home","Space","PageUp","PageDown","ArrowUp","ArrowDown"];var T=function(e,t){void 0===t&&(t={});var n=t,r=n.firstItemKey,i=n.lastItemKey,o=n.topThreshold,a=void 0===o?20:o,s=n.bottomThreshold,l=void 0===s?20:s,f=n.initialScrollTop,m=n.onIsUserScrollingChanged,b=n.onIsScrolledToTopChanged,v=n.onIsScrolledToBottomChanged,h=n.onScrollDeltaChanged,g=n.isScrollingChangedTimeout,O=void 0===g?300:g,y=d.useRef(0),j=d.useRef(0),w=d.useRef(!1),C=d.useRef(!1),x=d.useRef(!1),L=d.useRef(!1),T=d.useRef(null),A=d.useRef({timeout:0,value:!1}),z=Object(u.a)("y",e),M=d.useCallback((function(){L.current=!0,z.apply(void 0,arguments)}),[z]),P=Object(c.a)(r),R=Object(c.a)(i),B=d.useCallback((function(){L.current=!1}),[]),D=d.useCallback((function(){return C.current}),[]),N=d.useCallback((function(){return x.current}),[]),F=d.useCallback((function(e){return M(0,e)}),[z]),q=d.useCallback((function(t){if(e.current){var n=e.current,r=n.scrollHeight,i=n.clientHeight;M(r-i,t)}}),[e,M]),V=d.useCallback((function(e){return T.current=e}),[]),U=d.useCallback((function(){return!!e.current&&e.current.scrollHeight>e.current.clientHeight}),[e]),W=d.useCallback((function(){A.current.value||(A.current.value=!0,m&&m(A.current.value)),clearTimeout(A.current.timeout),A.current.timeout=window.setTimeout((function(){A.current.value&&(A.current.value=!1,m&&m(A.current.value))}),O)}),[O]),G=d.useCallback((function(){var t=e.current,n=t.scrollTop,r=t.scrollHeight,i=y.current>n,o=y.currentj.current,d=y.current-n,f=r>1.5*window.innerHeight;if(y.current=n,j.current=r,U()&&!L.current&&W(),!c||!w.current){var p=C.current&&i,m=x.current&&(o||u||s),g=p||Object(E.i)(t,a),O=m||Object(E.h)(t,l);b&&(!C.current&&g?b(!0):C.current&&!g&&b(!1)),v&&(!x.current&&O?v(!0):x.current&&!O&&v(!1)),C.current=g,x.current=O,!s&&!C.current&&h&&!x.current&&w.current&&A.current&&I&&!L.current&&f&&h({deltaX:0,deltaY:d/2})}}),[b,v,W]),H=d.useCallback((function(e){Object(_.E)(e.key,k)&&B()}),[B]),Z=function(){M(T.current.offsetTop,S),T.current=null},Y=function(){T.current?Z():(P!==r&&function(){var t=e.current.scrollHeight,n=j.current-y.current;M(t-n,S)}(),R!==i&&x.current&&q())};return p("keydown",H),d.useEffect((function(){!1===w.current?(T.current?Z():M("number"===typeof f?f:e.current.scrollHeight,S),G(),w.current=!0):Y()})),d.useEffect((function(){if(e.current){var t=e.current;return t.addEventListener("scroll",G,I?{passive:!0}:void 0),function(){return t.removeEventListener("scroll",G)}}}),[e,G]),{scrollTo:M,scrollToTop:F,scrollToBottom:q,getIsOnTop:D,getIsOnBottom:N,getIsScrollable:U,setScrollTargetNode:V,onWheel:B,onTouchStart:B}},A=function(e){return Object(s.useSubscription)({getCurrentValue:e.get,subscribe:e.subscribe})},z=function(e){return Object(r.a)((function(){var t=e,n=[];return{subscribe:function(e){return n.push(e),function(){n.splice(n.indexOf(e),1)}},next:function(e){t=e,n.forEach((function(t){return t(e)}))},get:function(){return t}}}))},M=function(e,t){d.useEffect((function(){var n=setTimeout(e,t);return function(){return clearTimeout(n)}}),[e,t])};function P(e){var t=d.useState(e),n=t[0],r=t[1];return[n,d.useCallback((function(){r((function(e){return!e}))}),[])]}var R=new Map,B=d.createContext(R);B.Provider;function D(e){var t=d.useContext(B);if("undefined"===typeof e)return t;if(t.has(e))return t.get(e);var n={},r={get:function(){return n.value},set:function(e){return n.value=e},clear:function(){return delete n.value},destroy:function(){return t.delete(e)}};return t.set(e,r),r}function N(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1?e:Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(n={},n[r]=Object(s.a)({},e.chats.byIds[r],{participants:[].concat(o,[i])}),n))})})},t[T]=ue,t[A]=function(e,t){var n,r=t.id;return Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(n={},n[r]=Object(s.a)({},e.chats.byIds[r],{serverId:null,events:{byIds:{},orderedIds:[],serverIdsMapping:{}},properties:{}}),n))})})},t[M]=function(e,t){var n,r=t.chat,i=t.user,o=e.chats.byIds[r].participants,a=Object(p.q)((function(e){return i===e}),o);return-1===a?e:Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(n={},n[r]=Object(s.a)({},e.chats.byIds[r],{participants:Object(p.jb)(a,o)}),n))})})},t[P]=oe,t[N]=function(e,t){var n,r=t.id,i=t.serverId;return Object(s.a)({},e,{chats:Object(s.a)({},se(e.chats,r,{serverId:i}),{serverIdsMapping:Object(s.a)({},e.chats.serverIdsMapping,(n={},n[i]=r,n))})})},t[q]=function(e,t){var n,r,i=t.id,o=t.chat,a=t.serverId;return Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(r={},r[o]=Object(s.a)({},e.chats.byIds[o],{events:Object(s.a)({},se(e.chats.byIds[o].events,i,{serverId:a}),{serverIdsMapping:Object(s.a)({},e.chats.byIds[o].events.serverIdsMapping,(n={},n[a]=i,n))})}),r))})})},t[F]=function(e,t){var n,r=t.id,i=t.chat,o=t.data;return Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(n={},n[i]=Object(s.a)({},e.chats.byIds[i],{events:de(e.chats.byIds[i].events,r,o)}),n))})})},t[G]=function(e,t){var n=t.id,r=t.properties;return Object(s.a)({},e,{users:de(e.users,n,{properties:r})})},t[U]=function(e,t){var n,r=t.id,i=t.serverId;return Object(s.a)({},e,{users:Object(s.a)({},se(e.users,r,{serverId:i}),{serverIdsMapping:Object(s.a)({},e.users.serverIdsMapping,(n={},n[i]=r,n))})})},t[Y]=function(e,t){var n=t.id,r=t.data;return Object(s.a)({},e,{chats:se(e.chats,n,r)})},t[Q]=function(e,t){var n,r=t.id,i=t.chat,o=t.data;return Object(s.a)({},e,{chats:Object(s.a)({},e.chats,{byIds:Object(s.a)({},e.chats.byIds,(n={},n[i]=Object(s.a)({},e.chats.byIds[i],{events:se(e.chats.byIds[i].events,r,o)}),n))})})},t[ee]=function(e,t){var n=t.id,r=t.data;return Object(s.a)({},e,{users:se(e.users,n,r)})},t))},fe=function(e){return void 0===e&&(e={}),function(t,n){return void 0===t&&(t=e),n.type!==String(V)?t:Object(s.a)({},t,n.payload)}},pe=function(e){var t;return Object(f.d)(function(e){var t=e.id,n=e.connectionState;return{id:t,connectionState:void 0===n?c:n}}(e),((t={})[D]=function(e,t){var n=t.connectionState;return Object(s.a)({},e,{connectionState:n})},t))},me=function(e){return+new Date(e).setHours(0,0,0,0)},be=function(e,t){return me(e)===me(t)},ve=function(e){var t=e.sessionUserId,n=e.event,r=e.showDate,i=void 0!==r&&r;return{own:n.author===t,author:n.author,events:[{id:n.id,type:n.type}],type:n.type,showDate:i,timestamp:n.timestamp}},he=function(e,t){return ve({sessionUserId:O.getSessionUser(e).id,event:t,showDate:!0})},ge=function(e){return Object(p.X)((function(e){return-1*Object(p.z)(0,"timestamp",Object(p.N)(e.events))}),e).map((function(e){return{id:e.id}}))},Oe=function(e,t){var n,r=t.id;return Object(s.a)({},e,{Chat:Object(s.a)({},e.Chat,(n={},n[r]=Object(s.a)({},e.Chat[r],{timeline:[]}),n))})},ye=function(){return!1},je=function(){return!0},we=function(e){return void 0===e&&(e={}),function(t){return void 0===t&&(t=e),t}},Ce=function(e,t){return Object(f.f)(Object(d.b)(Object(p.R)((function(t,n){return t(e[n])}),{application:ne,entities:le,localization:fe,session:pe,views:we})),function(e){var t=e.shouldAddToTimeline,n=void 0===t?je:t,r=e.shouldCreateNewGroup,i=void 0===r?ye:r,o=function(e,t){var n=O.getSessionUser(e).id;return function(r,o){var a=Object(p.N)(r),c=O.getEvent(e,t,Object(p.N)(a.events).id);if("message_draft"===o.type&&"form"===a.type){var u=Object(p.r)((function(e){return"message_draft"===e.type}),r);return u?[].concat(Object(p.l)(2,r),[Object(s.a)({},u,{events:[].concat(u.events,[{id:o.id,type:o.type}])}),a]):[].concat(Object(p.l)(1,r),[ve({sessionUserId:n,event:o}),a])}return be(c.timestamp,o.timestamp)?o.timestamp>=a.timestamp+3e5||a.author!==o.author||i(o)?[].concat(r,[ve({sessionUserId:n,event:o})]):[].concat(Object(p.l)(1,r),[Object(s.a)({},a,{events:[].concat(a.events,[{id:o.id,type:o.type}])})]):[].concat(r,[ve({sessionUserId:n,event:o,showDate:!0})])}},a=function(e,t,r){var i=r.filter(n);if(0===i.length)return[];var a=i[0],c=i.slice(1),u=he(e,a);return c.reduce(o(e,t),[u])},c=function(e,t,n){var r=O.getChats(n);return{Chat:Object(p.Q)((function(e){var t;return(t={})[e.id]={timeline:a(n,e.id,e.events)},t}),r),ChatList:ge(r),current:null}},u=function(e,t,n){var r,i=t.id;return Object(s.a)({},e,{Chat:Object(s.a)({},e.Chat,(r={},r[i]={timeline:a(n,i,O.getChat(n,i).events)},r)),ChatList:ge(O.getChats(n))})},d=function(e,t,r){var i,a=t.chat,c=t.id,u=e.Chat[a].timeline,d=O.getEvent(r,a,c);return n(d)?Object(s.a)({},e,{Chat:Object(s.a)({},e.Chat,(i={},i[a]=Object(s.a)({},e.Chat[a],{timeline:u.length>0?o(r,a)(u,d):[he(r,d)]}),i)),ChatList:ge(O.getChats(r))}):e},l=function(e,t){var n,r,i=t.chat,o=t.id,a=e.Chat[i].timeline,c=Object(p.q)((function(e){return e.events.some((function(e){return e.id===o}))}),a),u=a[c],d=u.events.filter((function(e){return e.id!==o}));return d.length>0?r=Object(p.Cb)(c,Object(s.a)({},u,{events:d}),a):(r=c+1",c,":last-of-type{margin-bottom:0;}"),s=Object(i.A)("div",{target:"e52g9ij1"})("margin:0;padding:1em;",(function(e){var t=e.compact,n=e.theme;return t&&Object(o.c)("padding:",n.spaces.space3,";")}),";"),d=Object(i.A)("div",{target:"e52g9ij0"})("margin-bottom:",(function(e){return e.theme.spaces.space3}),";",(function(e){return e.compact&&Object(o.c)(a.a," padding:0;")}),";"),l=n(218),f=Object(i.A)(l.a,{target:"ezxewqd1"})("display:flex;overflow:hidden;flex-direction:column;width:230px;max-width:100%;margin-bottom:0.1em;",(function(e){var t=e.theme;return"smooth"===t.name?Object(o.c)("box-shadow:",t.boxShadow.xs,";"):Object(o.c)("border:1px solid ",t.colors.divider,";")}),";"),p=Object(i.A)("div",{target:"ezxewqd0"})("display:flex;flex-direction:column;width:230px;min-width:0%;max-width:100%;color:",(function(e){return e.theme.colors.primaryTextColor}),";",(function(e){return e.narrow&&{flex:2}}),";");var m=Object(i.A)("div",{target:"eztkvdh2"})({name:"o30wb6",styles:"padding:1em;&:active{outline:none;}"}),b=Object(i.A)("h2",{target:"eztkvdh1"})({name:"yoe8zv",styles:"margin:0;margin-bottom:4px;font-size:1em;font-weight:400"}),v=Object(i.A)("p",{target:"eztkvdh0"})("margin:0;color:",(function(e){return e.theme.colors.secondaryTextColor}),";"),h=Object(i.A)("div",{target:"epch3w90"})("padding:5px;margin-bottom:5px;text-align:center;border:1px solid ",(function(e){return e.theme.colors.secondaryTextColor}),";border-radius:",(function(e){return e.theme.borderRadius.sm}),";"),g=(n(0),n(121));var O={name:"idj2s4",styles:"object-fit:cover;width:100%;height:100%"},y={name:"je8g23",styles:"pointer-events:none"},j=Object(i.A)("div",{target:"ex5d4ma0"})("overflow:hidden;width:100%;height:150px;border-top-left-radius:",(function(e){return e.theme.borderRadius.md}),";border-top-right-radius:",(function(e){return e.theme.borderRadius.md}),";"),w=function(e){var t=e.url,n=e.link,r=e.alternativeText,a=void 0===r?"":r,c=Object(o.d)(j,null,Object(o.d)(i.h,{alt:a,src:t,css:O}));return n?Object(o.d)(g.a,{href:n,css:y},c):c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={id:"data-lc-id",focus:"data-lc-focus",event:"data-lc-event",prop:"data-lc-prop",action:"data-lc-action",actionValue:"data-lc-action-value",actionSuccess:"data-lc-action-success"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(0),i=n(222),o=n(270),a=n.n(o),c="msCrypto"in window,u=function(e){return!c&&a()(e)},s=n(3),d=n(5),l=n(271),f=n.n(l);var p=/\s/g,m=function(){return null},b={name:"14c9nf6",styles:"width:1.75em;height:1.75em;margin:-1px;vertical-align:middle!important;display:inline!important"},v=function(e){var t=e.emoji,n="https://cdn.livechat-static.com/api/file/lc/img/emoji-fallback/"+f()(t).toUpperCase().replace(p,"-")+".svg";return Object(s.d)(d.h,{alt:t,css:b,src:n},m)},h=r.memo(v),g=Object(i.a)(),O=function(e){return e.split(g).map((function(e,t){return!(t%2===1)||u(e)?e:r.createElement(h,{key:t,emoji:e})}))},y=function e(t){return r.Children.map(t,(function(t){var n;return"string"===typeof t?O(t):r.Children.count(null==t||null==(n=t.props)?void 0:n.children)?r.cloneElement(t,void 0,e(t.props.children)):t}))},j=function(e){var t=e.children;return"string"===typeof t?O(t):t?y(t):null},w=r.memo(j)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"h",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return l}));var r=n(44),i=function(e){return Object(r.b)("chat_started",e)},o=function(e){return Object(r.b)("chat_rated",e)},a=function(e){return Object(r.b)("widget_opened",e)},c=function(e){return Object(r.b)("greeting_displayed",e)},u=function(e){return Object(r.b)("greeting_dismissed",e)},s=function(e){return Object(r.b)("greeting_canceled",e)},d=function(e){return Object(r.b)("greeting_not_canceled",e)},l=function(e,t){return Object(r.b)("potential_connection_problem_"+e,t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext(!1),o=function(){return r.useContext(i)};t.a=i.Provider},,function(e,t,n){"use strict";var r=n(94),i=Object(r.b)()?window.localStorage:r.a,o={setItem:function(e,t){return new Promise((function(n){return n(i.setItem(e,t))}))},getItem:function(e){return new Promise((function(t){return t(i.getItem(e))}))},removeItem:function(e){return new Promise((function(t){return t(i.removeItem(e))}))}};t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return x}));var r=n(7),i=n(1),o=n(63),a=n(2),c=n(14),u=n(15),s={};var d=function(e,t){var n=void 0===t?{}:t,r=n.query,o=void 0===r?{}:r,d=n.jsonpParam,l=void 0===d?"jsonp":d,f=n.callbackName;return new Promise((function(t,n){Object(c.g)().then((function(r){var d,p=document.createElement("script"),m=f||Object(a.x)(s);s[m]=!0;var b="__"+m;window[b]=function(e){delete s[m],delete window[b],Object(c.j)(p),t(e)},p.src=e+"?"+Object(u.a)(Object(i.a)({},o,((d={})[l]=b,d))),p.addEventListener("error",(function(){setTimeout((function(){return n(new Error("JSONP request failed."))}),100)})),r.appendChild(p)}))}))},l=n(106),f=n(22),p=n(86),m=/\.([a-z]{1,})$/i,b=function(e){var t=e.__priv,n={enabled:!0,x:parseInt(t.group["embedded_chat.eye_grabber.x"])+15,y:parseInt(t.group["embedded_chat.eye_grabber.y"]),src:Object(u.c)(t.group["embedded_chat.eye_grabber.path"])};if(-1!==n.src.indexOf("/default/eyeCatchers/")){var r=n.src.match(m)[1];n.srcset={"1x":n.src,"2x":n.src.replace(new RegExp("\\."+r,"i"),"-2x."+r)}}return n},v=function(e){var t=e.licenseId;return"https://api"+function(e){var t=f.c.DAL;return e&&e!==t?"-"+e:""}(e.region)+function(e){return 1520===e?".staging":""}(t)+".livechatinc.com"},h=function(e,t){var n="get_dynamic_configuration"===e?"v3.6":"v3.4";return v(t)+"/"+n+"/customer/action/"+e},g=function e(t,n){var r=(void 0===n?{}:n).validateDefaultWidget,o=void 0===r||r,a=h("get_dynamic_configuration",t);return d(a,{query:Object(i.a)({license_id:t.licenseId,client_id:null!="c5e4f61e1a6c3b1521b541bc5c5a2ac5"?"c5e4f61e1a6c3b1521b541bc5c5a2ac5":"",url:Object(u.n)(t.url,["cw_configurator"])},"number"===typeof t.groupId&&{group_id:t.groupId},t.channelType&&{channel_type:t.channelType},t.skipCodeInstallationTracking&&{test:1})}).then((function(n){if(n.error)switch(n.error.type){case"misdirected_request":return e(Object(i.a)({},t,{region:n.error.data.region}));default:var r=new Error(n.error.message);throw r.code=n.error.type.toUpperCase(),r}if(o&&"livechat"!==n.default_widget){var a=new Error("The 'default_widget' is not 'livechat', but instead: '"+n.default_widget+"'");throw a.code="DEFAULT_WIDGET_NOT_LIVECHAT",a.organizationId=n.organization_id,a.defaultWidget=n.default_widget,a}if(!n.livechat_active){if("direct_link"===t.channelType){var c=Object(u.a)({utm_source:"expired_chat_link",utm_medium:"referral",utm_campaign:"lc_"+t.licenseId});window.location.replace("https://www.livechat.com/powered-by-livechat/?"+c)}var s=new Error("License expired");throw s.code="LICENSE_EXPIRED",s}if(!n.livechat.domain_allowed){var d=new Error("Current domain is not added to the allowlist.");throw d.code="DOMAIN_NOT_ALLOWED",d}return l=n,f=t.region,{organizationId:l.organization_id,groupId:l.livechat.group_id,clientLimitExceeded:l.livechat.client_limit_exceeded,configVersion:l.livechat.config_version,localizationVersion:l.livechat.localization_version,onlineGroupIds:l.livechat.online_group_ids||[],region:f||null,language:l.livechat.language};var l,f}))},O=function(e){var t,n,r=Object(p.a)(),i=Boolean(null==(t=e.properties.group[r])?void 0:t.forwardTicketFormToHelpdesk),o="1"===e.__priv.license["helpdesk.inbound_forwarding"],a=null==(n=e.properties.license[r])?void 0:n.hdLicenseID;return"number"===typeof a&&a>-1&&(i||o)},y=function(e){var t,n=e.buttons,o=e.allowed_domains,a=e.prechat_form,c=e.ticket_form,s=e.__priv,d=e.properties,f=Object(r.a)(e,["buttons","allowed_domains","prechat_form","ticket_form","__priv","properties"]),p="0"===s.group.tickets_enabled,m=!Boolean(s.disable_native_tickets)&&Boolean(c),v=O(e),h=p||v||m;return Object(i.a)({},f,a&&{prechatForm:Object(l.b)(a)},h&&c&&{ticketForm:Object(l.b)(c)},{properties:d,buttons:n.map((function(e){return"image"===e.type?{id:e.id,type:e.type,onlineValue:Object(u.c)(e.online_value),offlineValue:Object(u.c)(e.offline_value)}:{id:e.id,type:e.type,onlineValue:e.online_value,offlineValue:e.offline_value}}))},o&&{allowedDomains:o},{__unsafeProperties:Object(i.a)({},s.s&&{s:!0},{group:{chatBoosters:s.group.chat_boosters,disabledMinimized:"1"===s.group["chat_window.disable_minimized"],disabledMinimizedOnMobile:"1"===s.group["chat_window.mobile_disable_minimized"],disabledOnMobile:"1"===s.group["chat_window.hide_on_mobile"],eyeCatcher:"1"===s.group["embedded_chat.display_eye_catcher"]?b(e):{enabled:!1},hasAgentAvatarsEnabled:"1"===s.group["chat_window.display_avatar"],hasCustomMobileSettings:"1"===s.group["chat_window.custom_mobile_settings"],hasHiddenTrademark:"1"===s.group["chat_window.hide_trademark"],hasSoundsEnabled:"0"===s.group["chat_window.disable_sounds"],initiallyHidden:"1"===s.group["chat_window.hide_on_init"]||"1"===s.group["chat_window.disable_minimized"],initiallyHiddenOnMobile:"1"===s.group["chat_window.mobile_hide_on_init"]||"1"===s.group["chat_window.mobile_disable_minimized"],hideOnInit:"1"===s.group["chat_window.hide_on_init"],language:s.group.language,linksUnfurlingEnabled:"1"===s.group.links_unfurling,logo:"1"===s.group["chat_window.display_logo"]?{enabled:!0,src:s.group["chat_window.logo_path"]}:{enabled:!1},minimizedType:s.group["chat_window.theme.minimized"],minimizedTypeOnMobile:s.group["chat_window.mobile_minimized_theme"],offlineMessagesEnabled:p,offsetX:parseInt(s.group["chat_window.offset_x"]),offsetXOnMobile:parseInt(s.group["chat_window.mobile_offset_x"]),offsetY:parseInt(s.group["chat_window.offset_y"]),offsetYOnMobile:parseInt(s.group["chat_window.mobile_offset_y"]),prechatFormAfterGreetingEnabled:"1"===s.group.pre_chat_survey_after_greeting,ratingEnabled:"1"===s.group["rate_me.enabled"],screenPosition:s.group["chat_window.screen_position"],screenPositionOnMobile:s.group["chat_window.mobile_screen_position"],transcriptButtonEnabled:"1"===s.group["chat_window.display_transcript_button"],theme:{name:s.group["chat_window.new_theme.name"],variant:s.group["chat_window.new_theme.variant"]||"light",customJson:s.group["chat_window.new_theme.custom_json"],agentbarBackgroundColor:s.group["chat_window.new_theme.agentbar_background_color"],agentbarText:s.group["chat_window.new_theme.agentbar_text"],agentMessageColorBackground:s.group["chat_window.new_theme.agent_message_color_background"],agentMessageColorText:s.group["chat_window.new_theme.agent_message_color_text"],backgroundColor:s.group["chat_window.new_theme.background_color"],ctaColor:s.group["chat_window.new_theme.cta_color"],minimizedColorBackground:s.group["chat_window.new_theme.minimized_color_background"],minimizedColorIcon:s.group["chat_window.new_theme.minimized_color_icon"],minimizedColorText:s.group["chat_window.new_theme.minimized_color_text"],systemMessageColor:s.group["chat_window.new_theme.system_message_color"],titlebarBackgroundColor:s.group["chat_window.new_theme.titlebar_background_color"],titlebarText:s.group["chat_window.new_theme.titlebar_text"],visitorMessageColorBackground:s.group["chat_window.new_theme.visitor_message_color_background"],visitorMessageColorText:s.group["chat_window.new_theme.visitor_message_color_text"]}},license:{creditCardMaskingEnabled:"1"===s.license.mask_credit_cards,nonProfit:"1"===s.license.non_profit,licenseinboundForwardingToHelpdeskEnabled:"1"===s.license["helpdesk.inbound_forwarding"]},helpdeskIntegrationEnabled:v,ticketFormMode:(t=e,O(t)?"helpdesk":"0"===t.__priv.group.tickets_enabled?"offline_message":"livechat")})})},j=function(e){var t=h("get_configuration",e);return d(t,{callbackName:"lc_static_config",query:Object(i.a)({organization_id:e.organizationId,version:e.version},"number"===typeof e.groupId&&{group_id:e.groupId})}).then((function(e){return y(e)}))},w=function(e){var t=h("get_localization",e);return d(t,{callbackName:"lc_localization",query:Object(i.a)({organization_id:e.organizationId,version:e.version,language:e.language},"number"===typeof e.groupId&&{group_id:e.groupId})}).then((function(e){return Object(a.P)((function(e){return e.toLowerCase()}),e)}))},C=function(e){var t=h("get_localization",e);return Object(o.a)(t+"?"+Object(u.a)(Object(i.a)({organization_id:e.organizationId,version:e.version,language:e.language},"number"===typeof e.groupId&&{group_id:e.groupId}))).then((function(e){return e.json()})).then((function(e){return Object(a.P)((function(e){return e.toLowerCase()}),e)}))},x=function(e,t){return d("https://api.openwidget.com/v1.0/configuration/"+e,{callbackName:"ow_config",query:Object(i.a)({},t&&{integration_name:t})}).then((function(t){var n=t.staticConfig,o=t.localization,c=Object(r.a)(t,["staticConfig","localization"]);return Object(i.a)({},c,y(n),{localization:Object(a.P)((function(e){return e.toLowerCase()}),o),organizationId:e})}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));new RegExp("^message-group");var r="system-card"},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a}));var r=function(e,t){return void 0===t&&(t=!1),t&&e.__unsafeProperties.group.hasCustomMobileSettings},i=function(e,t){var n=e.__unsafeProperties.group;return r(e,t)?n.screenPositionOnMobile:n.screenPosition},o=function(e,t){var n=e.__unsafeProperties.group;return r(e,t)?{x:n.offsetXOnMobile,y:n.offsetYOnMobile}:{x:n.offsetX,y:n.offsetY}},a=function(e,t){var n=e.__unsafeProperties.group;return r(e,t)?n.disabledMinimizedOnMobile:n.disabledMinimized}},,,,,,function(e,t,n){var r=n(232)("wks"),i=n(172),o=n(91).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c}));var r=n(31),i=r.d.CONNECTED,o=r.d.DISCONNECTED,a="fakely_connected",c=(r.d.NOT_INITIALIZED,r.d.RECONNECTING)},,,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 o})),n.d(t,"d",(function(){return a}));var r="bb9e5b2f1ab480e4a715977b7b1b4279",i="feade1d6c3f17748ae4c8d917a1e1068",o="a9f288b2883da20306d30e179067406f",a="632cead4b282481a422dd4e1d1567449"},,function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p}));var r=n(1),i=n(2),o=n(42),a=n(49),c=new Map,u=new Map,s={value:-1},d=[];function l(){c.clear(),s.value=-1,d.forEach(o.a),d=[]}function f(e,t){var n=c.get(e);"function"===typeof n&&Object(o.a)((function(){return n(Object(r.a)({},t,{preventDefault:i.W,stopPropagation:i.W}))}))}function p(e){var t,n,o,d=++s.value,l=Object(r.a)({},e,{onFocus:function(t){e.onFocus&&e.onFocus(t),u.set(d,!0)},onBlur:function(t){e.onBlur&&e.onBlur(t),u.delete(d)}});return Object(r.a)({},l,((t={})[a.a.id]=String(d),t),u.has(d)&&((n={})[a.a.focus]="true",n),((o={})[a.a.event]=Object.keys(l).map((function(e){var t=e.replace(/^on/,"").toLowerCase(),n=Object(i.w)();return"press"===t&&(t="click"),c.set(n,l[e]),t+":"+n})).join(";"),o))}},,function(e,t,n){"use strict";t.a=function(e){var t=e.min,n=void 0===t?1e3:t,r=e.max,i=void 0===r?5e3:r,o=e.jitter,a=void 0===o?.5:o,c=0;return{duration:function(){var e=n*Math.pow(2,c++);if(a){var t=Math.random(),r=Math.floor(t*a*e);e=0===(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,i)},reset:function(){c=0}}}},,,function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(77),i=function(){return r.b},o=function(){return r.c}},,,function(e,t,n){"use strict";var r=n(94);t.a=Object(r.b)()?window.localStorage:r.a},,function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),i=n(7),o=(n(0),n(5)),a=n(3),c=n(21),u=n(18),s=n(50);var d={name:"1bw4iei",styles:"margin:0 4px;margin-bottom:8px;padding:8px;border-radius:6px!important"},l=Object(o.A)(o.p,{target:"ecz5hmt0"})("font-family:inherit;font-size:0.9em;",(function(e){var t=e.theme;return Object(a.c)("color:",t.colors.quickRepliesColor,";border-color:",t.colors.quickRepliesColor,";background-color:",t.colors.surface,";&:hover{color:","light"===t.variant?Object(u.i)(.6,t.colors.cta):Object(u.d)(Object(u.e)(.2,t.colors.cta))>.015?Object(u.e)(.6,t.colors.cta):Object(u.e)(.2,t.colors.cta),";background-color:","light"===t.variant?Object(u.j)(.85,t.colors.cta):Object(u.e)(.03,Object(u.f)(.2,t.colors.cta,t.colors.grayscale[900])),";}")}),";"),f=function(e){return e.stopPropagation()};t.b=function(e){var t=e.replies,n=e.onSelect,u=Object(i.a)(e,["replies","onSelect"]),p=Object(c.f)();return Object(a.d)(o.o,Object(r.a)({onSelect:n},u,p),t.map((function(e,t){var n=e.text;return Object(a.d)(l,{key:t,onClick:f,value:t,css:d},Object(a.d)(s.a,null,n.length>20?n.slice(0,20).trim()+"\u2026":n))})))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p.d}));var r=n(1),i=n(7),o=n(3),a=n(0),c=n(162),u=n.n(c),s=n(121),d=n(31),l=n(2),f=n(21);var p=n(48),m=n(50),b=n(17);var v={name:"1y4r7fy",styles:"padding-top:0.5em"},h={name:"1p6jvwd",styles:"padding-bottom:0.5em"},g=function(e){var t=e.card,n=e.onButtonClick,c=void 0===n?l.W:n,g=e.onShowMoreButtonClick,O=e.TitleComponent,y=void 0===O?p.m:O,j=Object(i.a)(e,["card","onButtonClick","onShowMoreButtonClick","TitleComponent"]),w=Object(f.f)(),C=a.useRef(null),x=function(e){return e.buttons?Object(r.a)({},e,{buttons:e.buttons.map((function(e){switch(e.type){case"phone":e.type;var t=e.value,n=e.role,o=Object(i.a)(e,["type","value","role"]);return Object(r.a)({},o,{href:"tel:"+t,target:"_parent",variant:n});case"url":e.type;var a=e.value,c=e.role,u=Object(i.a)(e,["type","value","role"]);return"invitation"in e?Object(r.a)({},u,{variant:c}):Object(r.a)({},u,{href:a,target:"_blank",variant:c});case"copy":var s=e.type,d=e.value,l=e.role,f=Object(i.a)(e,["type","value","role"]);return Object(r.a)({},f,{type:s,value:d,variant:l});default:if("value"in e){e.type,e.value;var p=e.role,m=Object(i.a)(e,["type","value","role"]);return Object(r.a)({},m,{variant:p})}e.type;var b=e.role,v=Object(i.a)(e,["type","role"]);return Object(r.a)({},v,{variant:b})}}))}):e}(t),_=x.title,E=x.subtitle,L=x.image,S=x.buttons,I=void 0===S?[]:S,k=_||E,T=!!g,A=T&&I.length>3,z=I.length>1,M=z?p.c:p.j,P=z?p.b:p.i,R=I.find((function(e){return"copy"===e.type}));return Object(o.d)(p.d,Object(r.a)({ref:C},j),L&&Object(o.d)(p.g,L),Object(o.d)(p.e,null,k&&Object(o.d)(u.a,{component:s.a},Object(o.d)(p.l,Object(r.a)({css:[!Object(l.G)(I)&&h,""]},w),R&&Object(o.d)(p.f,{ellipsis:!0},R.value),_&&Object(o.d)(y,{textWrap:!0,preserveLines:!0},Object(o.d)(m.a,null,_)),E&&Object(o.d)(p.k,{textWrap:!0,preserveLines:!0},Object(o.d)(m.a,null,E)))),!Object(l.G)(I)&&Object(o.d)(M,{css:k&&v,compact:!!g},(A?I.slice(0,3):I).map((function(e,t){var n=e.text,a=e.type,u=e.value,s=Object(i.a)(e,["text","type","value"]),l=n.length>20?n.slice(0,20).trim()+"\u2026":n;return Object(o.d)(P,{key:t,compact:T,fullWidth:"copy"===a},Object(o.d)(d.a,null,(function(e){return Object(o.d)(p.a,Object(r.a)({label:Object(o.d)(m.a,null,l)},s,T&&{isFocusVisible:!0},b.b({onPress:function(){return c(t)}}),"copy"===a&&{"data-lc-action":"copy","data-lc-action-value":u,"data-lc-action-success":e("copied")||"Copied!"}))})))}))),A&&Object(o.d)(d.a,null,(function(e){return Object(o.d)(p.h,Object(r.a)({label:e("show_more")},b.b({onPress:function(){return null==g?void 0:g()}}),T&&{isFocusVisible:!0}))}))))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=430},,function(e,t){var n=e.exports={version:"2.6.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return u}));var r=n(2),i=function(){return Object(r.y)("webkit.messageHandlers.iosMobileWidget.postMessage",window)?"ios":!!Object(r.y)("androidMobileWidget.postMessage",window)&&"android"},o=function(e){return window.androidMobileWidget.postMessage(JSON.stringify(e))},a=function(e){return window.webkit.messageHandlers.iosMobileWidget.postMessage(e)},c=function(){var e=i();return"android"===e?o:"ios"===e?a:null}(),u=function(){return Boolean(i())};t.a=function(e){c&&(c({messageType:"uiReady"}),e.on("add_event",(function(t){var n=t.event;if("message"===n.type){var r=e.getUser(n.author).name;c({messageType:"newMessage",text:n.properties.text,id:n.id,timestamp:n.timestamp,author:{name:r}})}})),e.on("mobile_wrapper_minimize_intent",(function(){c({messageType:"hideChatWindow"})})))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(1),i=n(2);function o(e,t){return null!=t&&null!=e&&"object"===typeof t&&"object"===typeof e?a(t,e):e}function a(e,t){var n;if(Array.isArray(e)){n=e.slice(0,t.length);for(var a=0;ao[1])return 0;var u=.022,s=0,d=0,l="BoW";return r=r>u?r:r+Math.pow(u-r,1.414),i=i>u?i:i+Math.pow(u-i,1.414),Math.abs(i-r)<5e-4?0:(i>r?d=(s=1.14*(Math.pow(i,.56)-Math.pow(r,.57)))<.1?0:s-.027:(l="WoB",d=(s=1.14*(Math.pow(i,.65)-Math.pow(r,.62)))>-.1?0:s+.027),n<0?100*d:0===n?Math.round(100*Math.abs(d))+""+l+"":Number.isInteger(n)?(100*d).toFixed(n):0)}function s(e,t,n){return-u(e,n)>u(t,n)?e:t}var d=function e(t,n,a){void 0===a&&(a=0);var c=Math.abs(u(t,n)),s=Object(i.i)(n),d=o[s?"light":"dark"],l=d.targetedAPCAContrast,f=d.maxModifier;if(a>=5)return t;var p=f-c/l*.5;if(c>=l)return t;var m=s?Object(r.b)(p,t):Object(r.e)(p,t);return Math.abs(u(m,n))>=l?m:e(m,n,a+1)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return Ft})),n.d(t,"b",(function(){return Bn})),n.d(t,"a",(function(){return nr}));var r={};n.r(r),n.d(r,"CHAT_DEACTIVATED",(function(){return ke})),n.d(r,"CHAT_PROPERTIES_DELETED",(function(){return Te})),n.d(r,"CHAT_PROPERTIES_UPDATED",(function(){return Ae})),n.d(r,"CHAT_TRANSFERRED",(function(){return ze})),n.d(r,"CUSTOMER_DISCONNECTED",(function(){return Me})),n.d(r,"CUSTOMER_PAGE_UPDATED",(function(){return Pe})),n.d(r,"CUSTOMER_SIDE_STORAGE_UPDATED",(function(){return Re})),n.d(r,"CUSTOMER_UPDATED",(function(){return Be})),n.d(r,"EVENT_PROPERTIES_DELETED",(function(){return De})),n.d(r,"EVENT_PROPERTIES_UPDATED",(function(){return Ne})),n.d(r,"EVENT_UPDATED",(function(){return Fe})),n.d(r,"EVENTS_MARKED_AS_SEEN",(function(){return qe})),n.d(r,"GREETING_ACCEPTED",(function(){return Ve})),n.d(r,"GREETING_CANCELED",(function(){return Ue})),n.d(r,"GROUPS_STATUS_UPDATED",(function(){return We})),n.d(r,"INCOMING_CHAT",(function(){return Ge})),n.d(r,"INCOMING_EVENT",(function(){return He})),n.d(r,"INCOMING_GREETING",(function(){return Ze})),n.d(r,"INCOMING_MULTICAST",(function(){return Ye})),n.d(r,"INCOMING_RICH_MESSAGE_POSTBACK",(function(){return Ke})),n.d(r,"INCOMING_TYPING_INDICATOR",(function(){return Je})),n.d(r,"QUEUE_POSITION_UPDATED",(function(){return Qe})),n.d(r,"THREAD_PROPERTIES_DELETED",(function(){return Xe})),n.d(r,"THREAD_PROPERTIES_UPDATED",(function(){return $e})),n.d(r,"USER_ADDED_TO_CHAT",(function(){return et})),n.d(r,"USER_REMOVED_FROM_CHAT",(function(){return tt}));var i={};n.r(i),n.d(i,"CONNECTING",(function(){return un})),n.d(i,"OPEN",(function(){return sn})),n.d(i,"CLOSED",(function(){return dn}));var o=n(1),a=n(7),c=n(155),u=n(36),s=n(2),d="change_region",l="check_goals",f="destroy",p="fail_all_requests",m="login_success",b="pause_connection",v="prefetch_token",h="push_received",g="push_response_received",O="reconnect",y="request_failed",j="response_received",w="send_request",C="set_chat_active",x="set_self_id",_="socket_connected",E="socket_disconnected",L="socket_recovered",S="socket_unstable",I="start_connection",k="update_customer_page",T="CONNECTION_LOST",A="IDENTITY_MISMATCH",z="MISDIRECTED_CONNECTION",M="MISSING_CHAT_THREAD",P="SDK_DESTROYED",R="accept_greeting",B="cancel_greeting",D="delete_chat_properties",N="delete_event_properties",F="delete_thread_properties",q="get_chat",V="get_customer",U="get_form",W="get_predicted_agent",G="get_url_info",H="list_chats",Z="list_group_statuses",Y="list_threads",K="login",J="mark_events_as_seen",Q="resume_chat",X="send_event",$="send_rich_message_postback",ee="send_sneak_peek",te="set_customer_session_fields",ne="start_chat",re="update_chat_properties",ie="update_customer",oe="update_customer_page",ae="update_event_properties",ce="update_thread_properties",ue=n(69),se=n(116),de=n(16),le="connected",fe="destroyed",pe="disconnected",me="agent",be="customer";function ve(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var he=function(e){return e.connection.status},ge=function(e,t){return e.requests[t]},Oe=function(e){return e.users.self.id},ye=function(e,t){var n=e.chats[t];return!!n&&n.active},je=function(e){return he(e)===le},we=function(e){return function(e){var t=e.region;return"https://api"+(t?"-"+t:"")+function(e){var t=e.organizationId,n=e.env;return"feaf6c0e-9f43-48ff-9ad0-8e24e0350932"===t?".staging":"production"===n?"":"."+n}(e)+".livechatinc.com"}(e)+"/v3.5/customer"},Ce=function(e,t){var n=t.id,r=e.requests,i=(r[n],Object(a.a)(r,[n].map(ve)));return Object(o.a)({},e,{requests:i})},xe=function(e,t){return Object(o.a)({},t,{connection:Object(o.a)({},t.connection,{status:e})})};function _e(e){var t=s.D,n=Object(se.a)(),r=Object(ue.c)(function(e){var t;return Object(de.d)(e,((t={}).change_region=function(e,t){var n=t.region;return Object(o.a)({},e,{region:n})},t.destroy=function(e){return xe(fe,e)},t.login_success=function(e){return xe(le,e)},t.pause_connection=function(e){return xe("paused",e)},t.request_failed=Ce,t.response_received=Ce,t.push_response_received=Ce,t.send_request=function(e,t){var n,r=t.promise,i=t.resolve,a=t.reject,c=t.id,u=t.request;return Object(o.a)({},e,{requests:Object(o.a)({},e.requests,(n={},n[c]={id:c,promise:r,resolve:i,reject:a,request:u},n))})},t.set_chat_active=function(e,t){var n,r=t.id,i=t.active;return Object(o.a)({},e,{chats:Object(o.a)({},e.chats,(n={},n[r]=Object(o.a)({},e.chats[r],{active:i}),n))})},t.set_self_id=function(e,t){return Object(o.a)({},e,{users:Object(o.a)({},e.users,{self:Object(o.a)({},e.users.self,{id:t.id})})})},t.socket_disconnected=function(e){var t=he(e),n=xe(t===pe?pe:"reconnecting",e);return Object(o.a)({},n,{requests:{}})},t.update_customer_page=function(e,t){return Object(o.a)({},e,{page:Object(o.a)({},e.page,t)})},t))}(function(e){var t=e.application,n=void 0===t?{}:t,r=e.organizationId,i=e.groupId,a=void 0===i?null:i,c=e.env,u=e.page,s=void 0===u?null:u,d=e.region,l=void 0===d?null:d,f=e.referrer,p=void 0===f?null:f,m=e.uniqueGroups,b=void 0!==m&&m,v=e.mobile,h=void 0!==v&&v;return{application:Object(o.a)({},n,{name:"chat_widget",version:"2d1e3d88ae6f503b8277660aa55a1472a7e6b237"}),organizationId:r,env:c,groupId:a,chats:{},connection:{status:pe},page:s,region:l,referrer:p,requests:{},users:{self:{id:null,type:be},others:{}},uniqueGroups:b,mobile:h}}(e)),t(Object(ue.a)(n)));return r.addSideEffectsHandler=n.add,r}function Ee(e){var t=e.message,n=e.code,r=new Error(t);return r.code=n,r}var Le="customer_banned",Se="product_version_changed",Ie="logged_out_remotely",ke="chat_deactivated",Te="chat_properties_deleted",Ae="chat_properties_updated",ze="chat_transferred",Me="customer_disconnected",Pe="customer_page_updated",Re="customer_side_storage_updated",Be="customer_updated",De="event_properties_deleted",Ne="event_properties_updated",Fe="event_updated",qe="events_marked_as_seen",Ve="greeting_accepted",Ue="greeting_canceled",We="groups_status_updated",Ge="incoming_chat",He="incoming_event",Ze="incoming_greeting",Ye="incoming_multicast",Ke="incoming_rich_message_postback",Je="incoming_typing_indicator",Qe="queue_position_updated",Xe="thread_properties_deleted",$e="thread_properties_updated",et="user_added_to_chat",tt="user_removed_from_chat",nt="file",rt="form",it="filled_form",ot="message",at="rich_message",ct="system_message",ut="custom",st=function(e){var t={};return"string"===typeof e.customId&&(t.custom_id=e.customId),Object(s.I)(e.properties)&&(t.properties=e.properties),t},dt=function(e){switch(e.type){case ot:var t=Object(o.a)({},st(e),{type:e.type,text:e.text});return e.postback&&(t.postback={id:e.postback.id,thread_id:e.postback.threadId,event_id:e.postback.eventId,type:e.postback.type,value:e.postback.value}),t;case nt:return Object(o.a)({},st(e),{type:e.type,url:e.url,alternative_text:e.alternativeText});case it:return Object(o.a)({},st(e),{type:e.type,form_id:e.formId,fields:e.fields.map((function(e){switch(e.type){case"group_chooser":if(!e.answer)return e;var t=e.answer,n=t.groupId,r=Object(a.a)(t,["groupId"]);return Object(o.a)({},e,{answer:Object(o.a)({},r,{group_id:n})});default:return e}}))});case ct:var n=Object(o.a)({},st(e),{type:e.type,text:e.text,system_message_type:e.systemMessageType});return e.recipients&&(n.recipients=e.recipients),n;case ut:var r=Object(o.a)({},st(e),{type:e.type});return e.content&&(r.content=e.content),r}},lt=function(e){var t=e.active,n=void 0===t||t,r=e.chat,i=e.continuous,o={active:n,chat:{}};if("boolean"===typeof i&&(o.continuous=i),!r)return o;var a=r.access,c=r.thread,u=r.properties;return a&&a.groupIds&&(o.chat.access={group_ids:a.groupIds}),u&&(o.chat.properties=u),c&&(o.chat.thread=function(e){var t={},n=e.events,r=e.properties;return n&&(t.events=n.map(dt)),r&&(t.properties=r),t}(c)),o},ft=function(e){return Object(s.yb)(e).map((function(e){var t,n=e[0],r=e[1];return(t={})[n]=r,t}))},pt=function(e){var t=Object(s.gb)(["avatar","name","email"],e);return e.sessionFields&&(t.session_fields=ft(e.sessionFields)),t},mt=function(e){return{type:f,payload:{reason:e}}},bt=function(e){return{type:b,payload:{reason:e}}},vt=function(e){return void 0===e&&(e=!1),{type:v,payload:{fresh:e}}},ht=function(e){return{type:O,payload:{delay:e}}},gt=function(e,t,n){return{type:w,payload:Object(o.a)({request:{action:e,payload:t}},n&&{source:n})}},Ot=function(e,t){return{type:C,payload:{id:e,active:t}}},yt=function(e){return{type:x,payload:{id:e}}},jt=n(45),wt=function(e,t){t.payload.id=Object(s.x)(e.getState().requests);var n=Object(jt.a)(),r=n.resolve,i=n.reject,o=n.promise;return t.payload.promise=o,t.payload.resolve=r,t.payload.reject=i,e.dispatch(t),o},Ct=n(81),xt=n(55),_t=function(e){var t=e.getState(),n=t.organizationId,r=t.groupId;return"side_storage_"+n+(t.uniqueGroups?":"+r:"")},Et=function(e,t){var n=function(e,t){var n=e.getState(),r=n.groupId;return"side_storage_"+t+(n.uniqueGroups?":"+r:"")}(e,t),r=_t(e);return xt.a.getItem(n).catch(s.W).then((function(e){return e?xt.a.setItem(r,e).catch(s.W).then((function(){return xt.a.removeItem(n).catch(s.W).then((function(){return JSON.parse(e)})).catch(s.W)})):xt.a.getItem(r).catch(s.W).then((function(e){return JSON.parse(e||"{}")})).catch(s.W)})).catch(s.W)},Lt=function(e,t,n){return wt(e,gt(t,n,"login"))};function St(e,t,n){var r,i,a=null,c={min:300,max:6e4,jitter:.3},u=Object(Ct.a)(c),d=Object(Ct.a)(Object(o.a)({},c,{min:1e3})),l=u,f=function(e){return r.dispatch(mt(e))},p=function(){return r.dispatch(ht(l.duration()))},b=function(){return Promise.all([e.getToken(),Et(r,n)])},v=function(e){var t=e[0],n=e[1],i=Oe(r.getState());if(null===i)r.dispatch(yt(t.entityId));else if(i!==t.entityId){var o=new Error("Identity has changed.");throw o.code=A,o}return[t,n]},h=function(e){var n,i=e[0],o=e[1],c=r.getState(),u=c.application,d=c.groupId,l=c.page,f=c.referrer,p=c.mobile,m={token:i.tokenType+" "+i.accessToken,customer:"function"===typeof t?pt(t()):{},customer_side_storage:o,is_mobile:p,application:Object(s.db)(["name","version"],u)};return m.c=function(e){var t=e[0],n=e[1];return Array.from(""+t+n).reduce((function(e,t){return e+t["tAedoCrahc".split("").reverse().join("")](0)}),0)%1024}(function(e){return[e.organizationId,e.users.self.id]}(c)),"number"===typeof d&&(m.group_id=d),u.channelType&&(m.application.channel_type=u.channelType),null!==l&&(a=l,m.customer_page=l),null!==f&&(m.referrer=f),Promise.race([Lt(r,K,m),(n=15e3,new Promise((function(e){setTimeout(e,n)}))).then((function(){return Promise.reject(Ee({message:"Request timed out.",code:"REQUEST_TIMEOUT"}))}))])};return{sendLogin:function(t){var n;r=t,null==(n=i)||n.cancel(),i=function(e,t,n){var r=e.slice(0),i=!1;return function e(o){var a=r.shift();Object(jt.c)((function(){return a(o)})).then((function(n){i||(r.length?e(n):t(n))}),(function(e){i||n(e)}))}(),{cancel:function(){i=!0}}}([b,v,h],(function(e){i=null,u.reset(),d.reset(),l=u,function(){var e=r.getState().page;a!==e&&Lt(r,oe,e).catch(s.W),a=null}(),r.dispatch({type:m,payload:e})}),(function(t){switch(i=null,t.code){case"AUTHENTICATION":return e.getFreshToken(),void p();case T:case z:case P:return;case"SSO_IDENTITY_EXCEPTION":case"SSO_OAUTH_EXCEPTION":return"server_error"===t.message||"temporarily_unavailable"===t.message?void p():void f(t.message);case"USERS_LIMIT_REACHED":return void r.dispatch(bt(t.code.toLowerCase()));case A:case"CUSTOMER_BANNED":case"WRONG_PRODUCT_VERSION":return void f(t.code.toLowerCase());case"SERVICE_TEMPORARILY_UNAVAILABLE":return l=d,void p();default:return void p()}}))},cancel:function(){var e;null==(e=i)||e.cancel()}}}var It,kt=n(63),Tt=n(15),At=function(e,t,n){return t.getToken().then((function(t){var r=e.getState();null===Oe(r)&&e.dispatch(yt(t.entityId));var i=r.page;if(i&&i.url){var o=Object(Tt.a)({organization_id:r.organizationId}),a={session_fields:ft(n||{}),group_id:r.groupId||0,page_url:i.url};return Object(kt.a)(we(r)+"/action/check_goals?"+o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:t.tokenType+" "+t.accessToken},body:JSON.stringify(a)}).then((function(){}))}}))},zt=function(e,t){var n=e.getState,r=e.dispatch,i=function(e){return e.requests}(n());r({type:p,payload:{rejects:Object.keys(i).map((function(e){return i[e].reject})),reason:t}})},Mt=function(e,t,n){var r=e.getState,i=e.dispatch,o=t.payload.id;i({type:y,payload:{id:o,reject:r().requests[o].reject,error:n}})},Pt=Object.freeze({success:!0}),Rt=function(e,t){var n={id:t.id,authorId:t.author_id,createdAt:t.created_at,threadId:e,properties:t.properties||{}};return void 0!==t.custom_id&&(n.customId=t.custom_id),n},Bt=function(e,t){var n,r,i,o,a;t.height>t.width?(r="height",i="width",o=t.height,a=t.width):(r="width",i="height",o=t.width,a=t.height);var c=e/o;return(n={})[r]=Math.ceil(Math.min(o,e)),n[i]=Math.ceil(Math.min(c*a,a)),n},Dt=function(e,t){return void 0!==t.width&&void 0!==t.height?function(e,t){return Object(o.a)({},Rt(e,t),{type:nt,contentType:t.content_type,url:t.url,name:t.name,width:t.width,height:t.height,thumbnails:{default:Object(o.a)({url:t.thumbnail_url},Bt(300,t)),high:Object(o.a)({url:t.thumbnail2x_url},Bt(600,t))}},t.alternative_text&&{alternativeText:t.alternative_text})}(e,t):Object(o.a)({},Rt(e,t),{type:nt,contentType:t.content_type,url:t.url,name:t.name})},Nt=function(e){var t={};if("string"===typeof e.title&&(t.title=e.title),"string"===typeof e.subtitle&&(t.subtitle=e.subtitle),e.image){var n=e.image;t.image=Object(o.a)({url:n.url,name:n.name},n.alternative_text&&{alternativeText:n.alternative_text})}return e.buttons&&(t.buttons=e.buttons.map((function(e){switch(e.type){case"message":case"copy":case"phone":return{type:e.type,text:e.text,postbackId:e.postback_id,userIds:e.user_ids,value:e.value,role:e.role||"default"};case"cancel":return{type:e.type,text:e.text,postbackId:e.postback_id,userIds:e.user_ids,role:e.role||"default"};case"url":var t={type:e.type,text:e.text,postbackId:e.postback_id,userIds:e.user_ids,value:e.value,role:e.role||"default"};return e.target&&(t.target=e.target),t;case"webview":var n={type:e.type,text:e.text,postbackId:e.postback_id,userIds:e.user_ids,value:e.value,role:e.role||"default"};return"string"===typeof e.webview_height&&(n.webviewHeight=e.webview_height),n;default:return{text:e.text,postbackId:e.postback_id,userIds:e.user_ids,role:e.role||"default"}}}))),t},Ft=function(e,t){switch(t.template_id){case"cards":case"quick_replies":case"sticker":return Object(o.a)({},Rt(e,t),{type:at,template:t.template_id,elements:t.elements.map(Nt)});default:return null}},qt=function(e,t){switch(t.type){case nt:return Dt(e,t);case rt:return function(e,t){return Object(o.a)({},Rt(e,t),{authorId:"system",type:rt,formId:t.form_id,fields:t.fields})}(e,t);case it:return function(e,t){return Object(o.a)({},Rt(e,t),{type:it,formId:t.form_id,fields:t.fields.map((function(e){switch(e.type){case"group_chooser":if(!e.answer)return e;var t=e.answer,n=t.group_id,r=Object(a.a)(t,["group_id"]);return Object(o.a)({},e,{answer:Object(o.a)({},r,{groupId:n})});default:return e}}))})}(e,t);case ot:return function(e,t){return Object(o.a)({},Rt(e,t),{type:ot,text:t.text})}(e,t);case at:return Ft(e,t);case ct:return function(e,t){var n=Object(o.a)({},Rt(e,Object(o.a)({},t,{author_id:"system"})),{type:ct,text:t.text,systemMessageType:t.system_message_type});return t.text_vars&&(n.textVars=t.text_vars),n}(e,t);case ut:return function(e,t){return Object(o.a)({},Rt(e,t),{type:ut},t.content&&{content:t.content})}(e,t);default:return null}},Vt=function(e){return{id:e.id,addon:e.addon||null,uniqueId:e.unique_id,displayedFirstTime:e.displayed_first_time,accepted:e.accepted||!1,subtype:e.subtype||"greeting",event:qt(null,e.event),agent:{id:e.agent.id,name:e.agent.name,avatar:e.agent.avatar,jobTitle:e.agent.job_title,isBot:e.agent.is_bot||!1}}},Ut=function(e){return void 0===e&&(e={}),e.group_ids?{groupIds:e.group_ids}:{}},Wt=function(e){return Object(s.Q)((function(e){return e.events_seen_up_to?e.events_seen_up_to:null}),Object(s.L)("id",e))},Gt=function(e,t){var n=t.properties||{};return{id:t.id,chatId:e,active:t.active,access:Ut(t.access),createdAt:t.created_at,userIds:t.user_ids,events:t.events.map((function(e){return qt(t.id,e)})).filter(Boolean),properties:n,previousThreadId:t.previous_thread_id||null,nextThreadId:t.next_thread_id||null,queue:t.queue?Xt(t.queue):null}},Ht=function(e){return{id:e.id,access:Ut(e.access),users:e.users.map($t),properties:e.properties||{},eventsSeenUpToMap:Wt(e.users)}},Zt=function(e){var t=Object(s.gb)(["avatar","email","name"],e);return e.session_fields&&(t.sessionFields=e.session_fields.reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=t[n],e}),{})),t},Yt=function(e){var t=Zt(e);return Object(o.a)({id:e.id,type:be},t,{sessionFields:t.sessionFields||{}})},Kt=function(e){var t=e.statistics;return Object(o.a)({},Yt(e),{statistics:{chatsCount:t.chats_count,threadsCount:t.threads_count,visitsCount:t.visits_count,pageViewsCount:t.page_views_count,greetingsShownCount:t.greetings_shown_count,greetingsAcceptedCount:t.greetings_accepted_count}})},Jt=function(e){var t=e.agent,n=e.queue;return{agent:{id:t.id,type:me,name:t.name,avatar:t.avatar,jobTitle:t.job_title,isBot:t.is_bot},queue:n}},Qt=function(e){return{position:e.position,waitTime:e.wait_time}},Xt=function(e){return Object(o.a)({},Qt(e),{queuedAt:e.queued_at})},$t=function(e){return e.type===be?(n=e,Object(o.a)({},Yt(n),{present:n.present})):{id:(t=e).id,type:me,name:t.name,avatar:t.avatar,jobTitle:t.job_title,present:t.present};var t,n},en=((It={}).CONNECTION_LOST="Connection lost.",It.MISDIRECTED_CONNECTION="Connected to wrong region.",It),tn=function(e,t){var n=e.getState();switch(t.type){case g:case h:switch(t.payload.action){case ke:return void e.dispatch(Ot(t.payload.payload.chatId,!1));case Ge:return void e.dispatch(Ot(t.payload.payload.chat.id,!0));default:return}case j:switch(t.payload.action){case H:return void t.payload.payload.chatsSummary.filter((function(e){var t=e.id,r=e.active;return ye(n,t)!==r})).forEach((function(t){var n=t.id,r=t.active;e.dispatch(Ot(n,r))}));default:return}}},nn=function(e,t){t.forEach((function(t){if("present"in t){t.present;var n=Object(a.a)(t,["present"]);e("user_data",n)}else if(t.type!==be)e("user_data",t);else{t.statistics;var r=Object(a.a)(t,["statistics"]);e("user_data",r)}}))},rn=function(e,t){var n=e.emit,r=e.store,i=t.payload;switch(i.action){case $e:return i.payload.properties.lc2&&"queue_pos"in i.payload.properties.lc2&&n(Qe,{chatId:i.payload.chatId,threadId:i.payload.threadId,queue:{position:i.payload.properties.lc2.queue_pos,waitTime:i.payload.properties.lc2.queue_waiting_time}}),void n("thread_properties_updated",i.payload);case Re:return void function(e,t){xt.a.setItem(_t(e),JSON.stringify(t)).catch(s.W)}(r,i.payload.customer_side_storage);case Me:switch(i.payload.reason){case"access_token_expired":r.dispatch(vt(!0)),r.dispatch(ht(100)),n("disconnected",i.payload);break;case Le:case"customer_temporarily_blocked":case"license_not_found":case Se:case"too_many_connections":case"unsupported_version":case Ie:r.dispatch(mt(i.payload.reason));break;case"misdirected_connection":zt(r,z),r.dispatch({type:d,payload:i.payload.data});break;case"service_temporarily_unavailable":case"too_many_unauthorized_connections":zt(r,i.payload.reason.toUpperCase());break;default:r.dispatch(ht(100)),n("disconnected",i.payload)}return;case We:var o=i.payload.groups[0];return void n("availability_updated",{availability:"offline"===o.status?"offline":"online"});case Ge:return nn(n,i.payload.chat.users),void n(i.action,i.payload);case He:if(null===i.payload.event)return;return void n(i.action,i.payload);case Je:return void n(i.action,i.payload);case et:return nn(n,[i.payload.user]),void n(i.action,i.payload);default:return void n(i.action,i.payload)}},on=function(e,t){var n=e.emit,r=t.payload;switch(r.action){case ke:return void r.resolve(Pt);case q:return nn(n,r.payload.users),void r.resolve(r.payload);case Ge:return nn(n,r.payload.chat.users),void r.resolve(r.payload);case He:return void r.resolve(r.payload.event);case H:return nn(n,r.payload.users),void r.resolve(r.payload);default:return void r.resolve(r.payload)}},an=function(e){var t=e.auth,n=e.customerDataProvider,i=e.emitter,a=e.socket,c=e.licenseId,u=i.emit,C=St(t,n,c);return function(e,n){switch(e.type){case d:return void a.reinitialize();case l:return void At(n,t,e.payload.sessionFields).catch(s.W);case f:var c=e.payload;switch(C.cancel(),a.destroy(),c.reason){case"manual":zt(n,P);break;case Le:case"license_expired":case Se:case Ie:zt(n,T),u("disconnected",c);break;default:u("disconnected",c)}return void i.off();case p:var A=e.payload,z=A.reason,M=A.rejects,R={message:en[z],code:z};return void M.forEach((function(e){e(Ee(R))}));case m:var B=e.payload,D=B.dynamicConfig,N=B.customer,F=B.chats,q=B.greeting,V=B.availability,U=Object(o.a)({customer:N,availability:V},q&&{greeting:q});return Object.defineProperty(U,"__unsafeDynamicConfig",{value:D}),Object.defineProperty(U,"__unsafeChats",{value:F}),void u("connected",U);case b:var W=e.payload;return a.disconnect(),void("manual"!==W.reason&&u("disconnected",W));case v:return e.payload.fresh?void t.getFreshToken().catch(s.W):void t.hasToken().then((function(e){return e?t.getToken().then((function(e){if(!(e.creationDate+e.expiresIn-Date.now()>36e5))return t.invalidate().then(t.getFreshToken)})):t.getToken()})).catch(s.W);case h:return e.payload.action===Me||tn(n,e),void rn({emit:u,store:n},e);case g:return tn(n,e),void on({emit:u},e);case O:return zt(n,T),void a.reconnect(e.payload.delay);case y:var G=e.payload;return void(0,G.reject)(Ee(G.error));case j:return tn(n,e),void on({emit:u},e);case w:var H=n.getState();return function(e){return he(e)===fe}(H)?void Mt(n,e,{code:P,message:"SDK destroyed."}):je(H)||"login"===e.payload.source?void function(e,t){var n=t.payload,i=n.id,a=n.request,c=Object(o.a)({request_id:i},a);switch(c.action){case K:var u=[];return void e.emit(Object(o.a)({},c,{version:"3.5",payload:Object(o.a)({},c.payload,{pushes:{3.5:Object(s.Db)(r).filter((function(e){return e!==Me&&!Object(s.E)(e,u)}))}})}));default:e.emit(c)}}(a,e):void Mt(n,e,{code:"NO_CONNECTION",message:"No connection."});case x:return void u("customer_id",e.payload.id);case E:return void u("disconnected",{reason:"connection_lost"});case _:return void C.sendLogin(n);case L:if(!je(n.getState()))return;return void u("connection_recovered");case S:if(!je(n.getState()))return;return void u("connection_unstable");case I:return a.connect(),void n.dispatch(vt());case k:if(!je(n.getState()))return;return void wt(n,gt(oe,e.payload)).catch(s.W);default:return}}},cn=function(e,t){var n={status:"idle",queuedTasks:[],nextPageId:null},r=function r(i,o){switch(n.status){case"idle":return n.status="fetching",void e.listThreads(n.nextPageId?{chatId:t,pageId:n.nextPageId}:{chatId:t,minEventsCount:25}).then((function(e){var t=e.threads,o=e.nextPageId;n.nextPageId=o,n.nextPageId?(n.status="idle",i({value:{threads:[].concat(t).reverse()},done:!1})):(n.status="done",i({value:{threads:[].concat(t).reverse()},done:!0}));var a=n.queuedTasks.shift();a&&r(a.resolve,a.reject)}),(function(e){var t=n.queuedTasks;n.status="idle",n.queuedTasks=[],o(e),t.forEach((function(t){return t.reject(e)}))}));case"fetching":return void n.queuedTasks.push({resolve:i,reject:o});case"done":return void i({value:void 0,done:!0})}};return{next:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return new Promise(r)}))}},un=0,sn=1,dn=3,ln=function(e,t){var n,r=(void 0===t?{}:t).query,i=void 0===r?{}:r,o=Object(Tt.a)(i),a=o?e+"?"+o:e,c=Object(u.a)(),s=Object(Ct.a)({min:1e3,max:5e3,jitter:.5}),d=dn,l=null,f=function(){d=sn,s.reset(),c.emit("connect")},p=function(){b(),h(),c.emit("disconnect")},m=function(e){var t=e.data;c.emit("message",t)},b=function(){var e;(clearTimeout(n),d=dn,l)&&((e=l).removeEventListener("open",f),e.removeEventListener("close",p),e.removeEventListener("message",m),l.close(),l=null)},v=function(){var e;d=un,l=new WebSocket(a),(e=l).addEventListener("open",f),e.addEventListener("close",p),e.addEventListener("message",m)},h=function(e){void 0===e&&(e=s.duration()),b(),0!==e?n=setTimeout(v,e):v()};return{connect:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){if(d!==dn)throw new Error("Socket is already open or connecting.");clearTimeout(n),v()})),destroy:function(){c.off(),b()},disconnect:b,reconnect:h,emit:function(e){if(d!==sn)throw new Error("Socket is not connected.");l.send(e)},getReadyState:function(){return d},on:c.on,off:c.off}},fn=function(){var e,t=s.W;return{cancel:function(){clearTimeout(e),t=s.W},check:function(){var n=Object(jt.a)();return t=n.resolve,e=setTimeout((function(){var e=new Error("Timeout.");e.code="TIMEOUT",n.reject(e)}),2e3),n.promise},resolve:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){clearTimeout(e),t()}))}},pn=function(e,t){var n,r,a=void 0===t?{}:t,c=a.query,s=void 0===c?{}:c,d=a.emitter,l=void 0===d?Object(u.a)():d,f=ln(e,{query:s}),p=fn(),m=function(){return f.getReadyState()===i.OPEN},b=function(){p.cancel()};return n=f,r=l,["connect","disconnect"].forEach((function(e){n.on(e,(function(t){r.emit(e,t)}))})),f.on("disconnect",b),f.on("message",(function(e){p.resolve();var t=JSON.parse(e);l.emit("message",t)})),"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&(window.addEventListener("online",(function(){m()&&p.check().then((function(){p.cancel(),l.emit("connection_recovered")}),(function(e){if(p.cancel(),"TIMEOUT"!==e.code)throw e;f.reconnect()}))})),window.addEventListener("offline",(function(){p.cancel(),m()&&l.emit("connection_unstable")}))),Object(o.a)({},f,{destroy:function(){b(),f.destroy()},disconnect:function(){b(),f.disconnect()},reconnect:function(e){b(),f.reconnect(e)},emit:function(e){f.emit(JSON.stringify(e))},on:l.on,off:l.off})},mn=function(e,t){var n=e.getState(),r=(we(n)+"/rtm/ws").replace(/^https/,"wss");return pn(r,{query:{organization_id:n.organizationId},emitter:t})},bn=function(e){var t=Object(u.a)(),n=mn(e,t);return Object(o.a)({},Object.keys(n).reduce((function(e,t){return e[t]=function(){var e;return(e=n)[t].apply(e,arguments)},e}),{}),{reinitialize:function(){n.disconnect(),(n=mn(e,t)).connect()}})},vn=function(e){return{chatId:e.chat_id,properties:e.properties}},hn=function(e){var t={chatId:e.chat_id,threadId:e.thread_id,transferredTo:Object(o.a)({},e.transferred_to.agent_ids&&{agentIds:e.transferred_to.agent_ids},e.transferred_to.group_ids&&{groupIds:e.transferred_to.group_ids}),queue:e.queue?Xt(e.queue):null};return"manual"===e.reason?Object(o.a)({},t,{reason:e.reason,requesterId:e.requester_id}):Object(o.a)({},t,{reason:e.reason})},gn=function(e){return{url:e.url,title:e.title,openedAt:e.opened_at}},On=function(e){return Object(o.a)({id:e.id},Zt(e))},yn=function(e){return{chatId:e.chat_id,threadId:e.thread_id,eventId:e.event_id,properties:e.properties}},jn=function(e){return{chatId:e.chat_id,threadId:e.thread_id,eventId:e.event_id,properties:e.properties}},wn=function(e){var t=e.thread_id;return{chatId:e.chat_id,threadId:t,event:qt(t,e.event)}},Cn=function(e){return{chatId:e.chat_id,userId:e.user_id,seenUpTo:e.seen_up_to}},xn=function(e){return{uniqueId:e.unique_id}},_n=function(e){var t=e.chat;return{chat:Object(o.a)({},Ht(t),{thread:Gt(t.id,t.thread)})}},En=function(e){return{chatId:e.chat_id,event:qt(e.thread_id,e.event)}},Ln=function(e){return Vt(e)},Sn=function(e){return{userId:e.user_id,chatId:e.chat_id,threadId:e.thread_id,eventId:e.event_id,postback:e.postback}},In=function(e){var t=e.chat_id,n=e.typing_indicator;return{chatId:t,typingIndicator:{authorId:n.author_id,isTyping:n.is_typing}}},kn=function(e){return{chatId:e.chat_id,threadId:e.thread_id,queue:Qt(e.queue)}},Tn=function(e){return{chatId:e.chat_id,threadId:e.thread_id,properties:e.properties}},An=function(e){return{chatId:e.chat_id,threadId:e.thread_id,properties:e.properties}},zn=function(e){return{chatId:e.chat_id,user:$t(e.user),present:e.user.present}},Mn=function(e){return{chatId:e.chat_id,userId:e.user_id}},Pn=function(e){return e.map((function(e){switch(e.type){case"group_chooser":return Object(o.a)({},e,{options:e.options.map((function(e){var t=e.group_id,n=Object(a.a)(e,["group_id"]);return Object(o.a)({},n,{groupId:t})}))});case"rating":var t=e.comment_label,n=Object(a.a)(e,["comment_label"]);return Object(o.a)({},n,{commentLabel:t});default:return e}}))},Rn=function(e){var t=e.map((function(e,t){return Object(o.a)({},e,{id:String(t)})}));return Pn(t)},Bn=function(e){var t=!("id"in e.fields[0]);return{id:e.id,fields:t?Rn(e.fields):Pn(e.fields)}},Dn=function(e){return e.enabled?Object(o.a)({},e,{form:Bn(e.form)}):e},Nn=function(e){var t={url:e.url};return e.title&&(t.title=e.title),e.description&&(t.description=e.description),e.image_url&&(t.imageUrl="https://"+Object(Tt.m)(e.image_url),e.image_width&&e.image_height&&(t.imageWidth=e.image_width,t.imageHeight=e.image_height)),t},Fn=function(e){var t=e.online_groups_ids,n=e.customer_groups;if(!t)return"offline";var r=n.monitoring.id;return Object(s.E)(r,t)?"online":"offline"},qn=function(e){var t=e.chats_summary.map((function(e){var t=e.id,n=e.active,r=e.access,i=e.last_thread_created_at,o=e.last_thread_id,a=e.last_event_per_type,c=e.properties,u=void 0===c?{}:c,d=e.users,l={id:t,active:n,access:Ut(r),properties:u,users:d.map($t),lastThreadId:o||null,lastThreadCreatedAt:i||null,eventsSeenUpToMap:Wt(d)};if(!a)return l;l.lastEventsPerType=Object(s.Q)((function(e){return qt(e.thread_id,e.event)}),a);var f=a,p=Object.keys(f).map((function(e){return f[e]})),m=Object(s.N)(p.sort((function(e,t){return e.thread_id===t.thread_id?Object(s.qb)(e.event.created_at,t.event.created_at):Object(s.qb)(e.thread_created_at,t.thread_created_at)})));return m&&l.lastEventsPerType&&(l.lastEvent=l.lastEventsPerType[m.event.type]),l}));return{chatsSummary:Object(s.X)((function(e){var t,n=e.lastEvent,r=e.order;return-1*(null!=(t=void 0!==n?n.timestamp:r)?t:0)}),t),totalChats:e.total_chats,users:Object(s.Bb)((function(e){return e.id}),Object(s.t)((function(e){return e.users}),t)),previousPageId:e.previous_page_id||null,nextPageId:e.next_page_id||null}},Vn=function(e){return e.groups_status},Un=function(e,t){return{threads:t.threads.map((function(t){return Gt(e.payload.chat_id,t)})),previousPageId:t.previous_page_id||null,nextPageId:t.next_page_id||null}},Wn=function(e){var t=e.__priv_dynamic_config,n=e.chats,r=e.greeting;return Object(o.a)({dynamicConfig:t,customer:Kt(e.customer),availability:Fn(t),chats:n.map((function(t){return{id:t.chat_id,active:"has_active_thread"in t?t.has_active_thread:e.has_active_thread,hasUnreadEvents:t.has_unread_events}}))},r&&{greeting:Vt(r)})},Gn=function(e){switch(e.action){case ke:return{action:e.action,payload:{chatId:e.payload.chat_id}};case Te:return{action:e.action,payload:(t=e.payload,{chatId:t.chat_id,properties:t.properties})};case Ae:return{action:e.action,payload:vn(e.payload)};case ze:return{action:e.action,payload:hn(e.payload)};case Re:case Me:return{action:e.action,payload:e.payload};case Pe:return{action:e.action,payload:gn(e.payload)};case Be:return{action:e.action,payload:On(e.payload)};case De:return{action:e.action,payload:yn(e.payload)};case Ne:return{action:e.action,payload:jn(e.payload)};case Fe:return{action:e.action,payload:wn(e.payload)};case qe:return{action:e.action,payload:Cn(e.payload)};case Ve:case Ue:return{action:e.action,payload:xn(e.payload)};case We:return{action:e.action,payload:e.payload};case Ge:return{action:e.action,payload:_n(e.payload)};case He:return{action:e.action,payload:En(e.payload)};case Ze:return{action:e.action,payload:Ln(e.payload)};case Ye:return{action:e.action,payload:e.payload};case Ke:return{action:e.action,payload:Sn(e.payload)};case Je:return{action:e.action,payload:In(e.payload)};case Qe:return{action:e.action,payload:kn(e.payload)};case Xe:return{action:e.action,payload:Tn(e.payload)};case $e:return{action:e.action,payload:An(e.payload)};case et:return{action:e.action,payload:zn(e.payload)};case tt:return{action:e.action,payload:Mn(e.payload)}}var t},Hn=function(e,t){var n=e.dispatch,r=e.getState,i=t.request_id,a=ge(r(),i),c=a.promise,u=a.resolve,s=function(e){var t,n=e.request,r=e.response;switch(r.action){case R:case B:case D:case N:case F:return{action:r.action,payload:Pt};case q:return{action:r.action,payload:(t=r.payload,Object(o.a)({},Ht(t),{thread:t.thread?Gt(t.id,t.thread):null}))};case V:return{action:r.action,payload:Kt(r.payload)};case U:return{action:r.action,payload:Dn(r.payload)};case W:return{action:r.action,payload:Jt(r.payload)};case G:return{action:r.action,payload:Nn(r.payload)};case H:return{action:r.action,payload:qn(r.payload)};case Z:return{action:r.action,payload:Vn(r.payload)};case Y:return{action:r.action,payload:Un(n,r.payload)};case K:return{action:r.action,payload:Wn(r.payload)};case J:case ee:case te:case $:case re:case ie:case oe:case ae:case ce:return{action:r.action,payload:Pt}}}({request:a.request,response:t});n({type:j,payload:Object(o.a)({id:i,promise:c,resolve:u},s)})},Zn=function(e,t){var n=e.dispatch;return t.on("connect",(function(){n({type:_})})),t.on("message",(function(t){if("response"===t.type){if(!t.success)return void function(e,t){var n,r=e.dispatch,i=e.getState,o=t.request_id,a=t.payload,c=ge(i(),o).reject;r({type:y,payload:{id:o,reject:c,error:(n=a.error,{code:n.type.toUpperCase(),message:n.message})}})}(e,t);switch(t.action){case Q:case X:case ne:return;default:return void Hn(e,t)}}if("request_id"in t)switch(t.action){case Ge:case He:return void function(e,t){var n=e.dispatch,r=e.getState,i=t.request_id,a=ge(r(),i),c=a.promise,u=a.resolve,s=Gn(t);n({type:g,payload:Object(o.a)({id:i,promise:c,resolve:u},s)})}(e,t)}!function(e,t){var n=Gn(t);n&&e.dispatch({type:h,payload:n})}(e,t)})),t.on("disconnect",(function(){zt(e,T),he(e.getState())===le&&e.dispatch({type:E})})),t.on("connection_unstable",(function(){n({type:S})})),t.on("connection_recovered",(function(){n({type:L})})),t.off},Yn="UPLOAD_FAILED",Kn=function(e,t,n){var r=void 0===n?{}:n,i=r.headers,o=r.method,a=void 0===o?"POST":o,c=r.onProgress,u=r.withCredentials,s=void 0!==u&&u,d=new XMLHttpRequest;return{promise:new Promise((function(n,r){"function"===typeof c&&(d.upload.onprogress=function(e){c(e.loaded/e.total)}),d.onload=function(){var e;try{e=JSON.parse(d.response)}catch(t){e=d.response}if(d.status>=200&&d.status<300)n(e);else{var t=new Error("Upload failed.");t.code=Yn,t.response=e,r(t)}},d.onerror=function(){var e=new Error("Upload failed.");e.code=Yn,r(e)},d.onabort=function(){var e=new Error("Upload canceled.");e.code="UPLOAD_CANCELED",r(e)},d.open(a,e),d.withCredentials=s,i&&Object.keys(i).forEach((function(e){return d.setRequestHeader(e,i[e])})),d.send(function(e){var t=new FormData;return Object.keys(e).forEach((function(n){return t.append(n,e[n])})),t}(t))})),cancel:function(){d.abort()}}},Jn=1048576,Qn=10485760,Xn=function(e,t){if(void 0===t&&(t=2),e<1024)return e+" b";var n=e/1024;if(eQn)throw Ee({message:"The file is too big (max size is "+Xn(Qn)+").",code:"TOO_BIG_FILE"})},er=function(e,t){var n,r=e.auth,i=e.store,o=t.file,a=t.onProgress,c=!1;return{promise:new Promise((function(e,t){$n(o);var u=i.getState(),s=Object(Tt.a)({organization_id:u.organizationId}),d=we(u)+"/action/upload_file?"+s,l={file:o};r.getToken().then((function(r){c?t(new Error("Upload cancelled.")):(n=Kn(d,l,{headers:{Authorization:r.tokenType+" "+r.accessToken},onProgress:a})).promise.then(e,(function(e){if(e.response){var n=e.response.error,r=n.type,i=n.message;t(Ee({message:i,code:r.toUpperCase()}))}else t(e)}))}))})),cancel:function(){c||(c=!0,n&&n.cancel())}}},tr=function(e){e.env,e.organizationId,e.eventName;return Promise.resolve()},nr=function(e,t,n){void 0===t&&(t="production"),Object(c.b)(e);var r=e.autoConnect,i=void 0===r||r,d=e.customerDataProvider,f=e.identityProvider,p=Object(a.a)(e,["autoConnect","customerDataProvider","identityProvider"]),m=_e(Object(o.a)({},p,{env:t})),b=Object(u.a)(),v=bn(m),h="function"===typeof f?f():Object(c.a)(p,n,t);m.addSideEffectsHandler(an({emitter:b,socket:v,auth:h,customerDataProvider:d,licenseId:n})),Zn(m,v);var g=wt.bind(null,m),O=function(){m.dispatch({type:I})},y=Object.freeze({acceptGreeting:function(e){var t=e.greetingId,n=e.uniqueId;return g(gt(R,{greeting_id:t,unique_id:n}))},auth:h,cancelGreeting:function(e){var t=e.uniqueId;return g(gt(B,{unique_id:t}))},cancelRate:function(e){var t=e.chatId,n=e.properties,r=void 0===n?["score"]:n;return y.listThreads({chatId:t}).then((function(e){var n=e.threads;if(!n.length)throw Ee({message:'There is no thread in "'+t+'".',code:M});return y.deleteThreadProperties({chatId:t,threadId:n[0].id,properties:{rating:r}})}))},connect:O,deactivateChat:function(e){var t=e.id;return g(gt("deactivate_chat",{id:t}))},deleteChatProperties:function(e){var t=e.id,n=e.properties;return g(gt(D,{id:t,properties:n}))},deleteEventProperties:function(e){var t=e.chatId,n=e.threadId,r=e.eventId,i=e.properties;return g(gt(N,{chat_id:t,thread_id:n,event_id:r,properties:i}))},deleteThreadProperties:function(e){var t=e.chatId,n=e.threadId,r=e.properties;return g(gt(F,{chat_id:t,thread_id:n,properties:r}))},destroy:function(){m.dispatch(mt("manual"))},disconnect:function(){m.dispatch(bt("manual"))},getChat:function(e){var t=e.chatId,n=e.threadId;return g(gt(q,{chat_id:t,thread_id:n}))},getChatHistory:function(e){var t=e.chatId;return cn(y,t)},getCustomer:function(){return g(gt(V,{}))},getForm:function(e){var t=e.groupId,n=e.type;return g(gt(U,{group_id:t,type:n}))},getPredictedAgent:function(e){void 0===e&&(e={});var t=e.groupId;return g(gt(W,"number"===typeof t?{group_id:t}:{}))},getUrlInfo:function(e){var t=e.url;return g(gt(G,{url:t}))},listChats:function(e){return void 0===e&&(e={}),"limit"in e&&"number"===typeof e.limit&&e.limit>25?Promise.reject(new Error("Specified limit is too high (max 25).")):g(gt(H,void 0===e.pageId?{limit:e.limit||10}:{page_id:e.pageId}))},listGroupStatuses:function(e){var t=(void 0===e?{}:e).groupIds;return g(gt(Z,t?{group_ids:t}:{all:!0}))},listThreads:function(e){return g(gt(Y,void 0===e.pageId?{chat_id:e.chatId,sort_order:e.sortOrder,limit:e.limit,min_events_count:e.minEventsCount}:{chat_id:e.chatId,page_id:e.pageId}))},markEventsAsSeen:function(e){var t=e.chatId,n=e.seenUpTo;return g(gt(J,{chat_id:t,seen_up_to:n}))},on:b.on,once:b.once,off:b.off,rateChat:function(e){var t=e.chatId,n=e.rating;return y.listThreads({chatId:t}).then((function(e){var r=e.threads;if(!r.length)throw Ee({message:'There is no thread in "'+t+'".',code:M});return y.updateThreadProperties({chatId:t,threadId:r[0].id,properties:{rating:n}})}))},resumeChat:function(n){return tr({env:t,organizationId:e.organizationId,eventName:"chat_started"}),g(gt(Q,function(e){var t=lt(e);return Object(o.a)({},t,{chat:Object(o.a)({},t.chat,{id:e.chat.id})})}(n)))},sendEvent:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return g(function(e){var t=e.chatId,n=e.event,r=e.attachToLastThread,i={chat_id:t,event:dt(n)};return r&&(i.attach_to_last_thread=!0),gt(X,i)}(e))})),sendRichMessagePostback:function(e){var t=e.chatId,n=e.threadId,r=e.eventId,i=e.postback;return g(gt($,{chat_id:t,event_id:r,thread_id:n,postback:i}))},setCustomerSessionFields:function(e){var t=e.sessionFields;return g(gt(te,{session_fields:ft(t)}))},setSneakPeek:function(e){var t=e.chatId,n=e.sneakPeekText,r=m.getState();ye(r,t)&&je(r)&&g(gt(ee,{chat_id:t,sneak_peek_text:n})).catch(s.W)},startChat:function(n){return void 0===n&&(n={}),tr({env:t,organizationId:e.organizationId,eventName:"chat_started"}),g(gt(ne,lt(n)))},updateChatProperties:function(e){var t=e.id,n=e.properties;return g(gt(re,{id:t,properties:n}))},updateCustomer:function(e){return g(gt(ie,pt(e)))},updateCustomerPage:function(e){m.dispatch({type:k,payload:Object(s.gb)(["title","url"],e)})},updateEventProperties:function(e){var t=e.chatId,n=e.threadId,r=e.eventId,i=e.properties;return g(gt(ae,{chat_id:t,event_id:r,thread_id:n,properties:i}))},updateThreadProperties:function(e){var t=e.chatId,n=e.threadId,r=e.properties;return g(gt(ce,{chat_id:t,thread_id:n,properties:r}))},uploadFile:function(e){return er({auth:h,store:m},e)}});return i?O():m.dispatch({type:l,payload:{sessionFields:"function"===typeof d?d().sessionFields:{}}}),y}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return g}));var r=n(1),i=n(0),o=n(169),a=n.n(o),c=n(132),u=n.n(c),s=n(2),d=n(15),l=new u.a,f=Array.prototype.map,p=["A","UL","OL","LI","STRONG","EM","BR","DEL","CODE","PRE"],m=new o.Renderer;m.list=function(e,t,n){var r=n;return e.replace(b,(function(){return t?r+++". ":"- "}))},m.listitem=function(e){return""+b+e};var b="%list-item%",v=function(e){return e.replace(/\n+$/,"")};function h(e,t,n){var r,o,a;if(function(e,t){for(var n=e.parentNode;n;){if(n.nodeName===t)return!0;n=n.parentNode}return!1}(e,"A"))return e.textContent;var c=l.match(null!=(r=e.textContent)?r:"");if(!c||0===c.length)return e.textContent;var u=c[0],s=null!=(o=null==(a=e.textContent)?void 0:a.split(u.text))?o:[],d=s[0],f=s[1],p=i.createElement(null!=n?n:"a",{href:u.url,target:"_blank",rel:"nofollow noopener"},u.text);return i.createElement(i.Fragment,{key:t},d,p,f)}function g(e){var t=a()(e,{renderer:m}),n=(new DOMParser).parseFromString(t,"text/html").body;return n?v(n.textContent||""):""}t.a=function(e){var t,n,o=e.template,c=e.root,u=e.preserveLists,l=e.limit,b=e.linkComponent,g=void 0===b?null:b,O=null!=(t=null==c?void 0:c.props)?t:{},y=null!=(n=null==c?void 0:c.component)?n:i.Fragment,j=i.useMemo((function(){try{var e=new DOMParser,t=v(a()(o,u?{renderer:m}:{})),n=e.parseFromString(t,"text/html").body;return n?function(e,t,n){var o=0,a=!1;return function e(c){return f.call(c,(function(c,u){if("#text"===c.nodeName)return n?a?null:c.textContent&&c.textContent.length+o3)return!1}return!e}},function(e,t,n){"use strict";var r=n(2),i=n(20),o=n(23),a=n(105);t.a=function(e){var t=e.variant||"light",n=i.d[t],c=e.customJson||{},u=Object(o.h)(e.titlebarBackgroundColor)?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.065)",s=Object(o.h)(e.agentbarBackgroundColor)?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.05)",d=Object(o.h)(e.agentbarBackgroundColor)?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.15)",l=Object(o.h)(e.agentbarBackgroundColor)?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.1)",f=Object(a.a)(n.grayscale[0],n.grayscale[900],e.ctaColor),p=Object(a.b)(e.ctaColor,n.surface),m=Object(o.c)(e.agentMessageColorBackground);return Object(r.U)({name:e.name,variant:t,iconTheme:e.name,showMessageAvatar:"modern"!==e.name,colors:{agentBarText:e.agentbarText,agentBarBackground:e.agentbarBackgroundColor,cta:e.ctaColor,ctaText:f,minimizedIcon:e.minimizedColorIcon,minimizedBackground:e.minimizedColorBackground,background:e.backgroundColor,visitorMessageText:e.visitorMessageColorText,visitorMessageBackground:e.visitorMessageColorBackground,systemMessage:e.systemMessageColor,agentMessageBackground:e.agentMessageColorBackground,agentMessageText:e.agentMessageColorText,minimizedText:e.minimizedColorText,titleBarText:e.titlebarText,titleBarBackgroundColor:e.titlebarBackgroundColor,quickRepliesColor:p,lighterOppositeTitleBarColor:u,decorativeOppositeAgentBarColor:s,lighterOppositeAgentBarColor:d,codeBlockBackgroundColor:m},AgentBar:{css:{background:e.agentbarBackgroundColor,color:e.agentbarText},IconButton:{css:{background:{default:"transparent",active:d}}}},Form:{IconButton:{css:{background:{default:"rgba(0, 0, 0, 0.05)",active:e.ctaColor},color:{default:n.formIconColor,active:f}}}},ChatSummary:{Icon:{color:e.minimizedColorIcon}},Maximized:{css:{background:e.backgroundColor}},Message:{own:{Bubble:{css:{background:"modern"===e.name?"transparent":e.visitorMessageColorBackground,color:e.visitorMessageColorText}}},system:{Bubble:{css:{color:e.systemMessageColor}}},Bubble:{css:{background:"modern"===e.name?"transparent":e.agentMessageColorBackground,color:e.agentMessageColorText}},css:{color:e.systemMessageColor}},TypingIndicator:{css:{color:e.systemMessageColor}},Minimized:{MinimizedBubble:{css:{color:e.minimizedColorText,backgroundColor:{default:e.minimizedColorBackground,hasAvatar:"transparent"}},Icon:{color:e.minimizedColorIcon}},MinimizedBar:{css:{color:e.minimizedColorText,backgroundColor:e.minimizedColorBackground},Icon:{color:e.minimizedColorIcon}}},TitleBar:{css:{background:"modern"===e.name?e.titlebarBackgroundColor:e.agentbarBackgroundColor,color:"modern"===e.name?e.titlebarText:e.agentbarText},HourGlassLabel:{css:{backgroundColor:s}}},DividerLabel:{css:{color:e.systemMessageColor,borderColor:l}},TextComposer:{css:{background:n.surface},IconButton:{css:{background:{active:e.ctaColor}},active:{Icon:{color:f}}}}},c)}},,,function(e,t,n){"use strict";var r=n(1),i=n(0),o=n(5),a=n(21);var c=function(e){return e.stopPropagation()},u=Object(o.A)("a",{target:"ecc17ou0"})({name:"c5z5om",styles:"color:inherit;&:focus{outline-offset:-1px;}"});t.a=function(e){var t=Object(a.f)();return i.createElement(u,Object(r.a)({rel:"nofollow noopener",target:"_blank",textWrap:!0},e,{onClick:c},t))}},,,,,,,function(e,t,n){var r=n(111),i=n(186);e.exports=n(113)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=/\.(\w+)$/i,i=new Audio,o={mp3:"audio/mpeg",ogg:"audio/ogg"},a=function(e){var t=function(e){var t=e.match(r);return t?t[1].toLowerCase():""}(e);if(t in o){if(""!==i.canPlayType(o[t]))return!0}else 0;return!1},c=function(){return"function"===typeof window.webkitAudioContext||"function"===typeof window.AudioContext}},,,function(e,t,n){"use strict";var r=n(7),i=n(1),o=n(12),a=n(3),c=n(87),u=n(0),s=n(5),d=n(21),l=n(23),f=n(18);function p(){var e=Object(o.a)(["\n 0% {\n stroke-dasharray: 1 1000;\n }\n 100% {\n stroke-dasharray: 100 1000;\n }\n"]);return p=function(){return e},e}function m(){var e=Object(o.a)(["\n 0% {\n transform: rotate(-90deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n"]);return m=function(){return e},e}function b(){var e=Object(o.a)(["\n 0% {\n stroke-dasharray: "," ",";\n }\n 50% {\n stroke-dasharray: "," ",";\n }\n 100% {\n stroke-dasharray: "," ",";\n }\n"]);return b=function(){return e},e}var v=Object(a.e)(m()),h=Object(a.e)(p()),g=Object(s.A)("circle",{target:"e5pj4iq3"})("animation-duration:1s;transform-origin:center;animation-name:",(function(e){return t=e.animationFactor,Object(a.e)(b(),22*t,1e3*t,88*t,1e3*t,22*t,1e3*t);var t}),",",v,";animation-iteration-count:infinite;animation-timing-function:linear;"),O=Object(s.A)("circle",{target:"e5pj4iq2"})("stroke-dasharray:130;transform-origin:center;transform:rotate(-90deg);transition:stroke-dashoffset 100ms ",(function(e){return e.theme.transitions.easings.linear}),";"),y=Object(s.A)("circle",{target:"e5pj4iq1"})("transform:rotate(-90deg);stroke-dasharray:1 100;animation-duration:",(function(e){return e.duration}),"ms;animation-delay:",(function(e){return e.delay}),"ms;transform-origin:center;animation-name:",h,";animation-timing-function:linear;animation-fill-mode:forwards;"),j={r:"28",cx:"32",cy:"32",fill:"none",strokeLinecap:"round"},w={small:{sideLength:16,strokeWidth:2},medium:{sideLength:24,strokeWidth:3},large:{sideLength:32,strokeWidth:4},xlarge:{sideLength:56,strokeWidth:4}},C=Object(s.A)("svg",{target:"e5pj4iq0"})(""),x=function(e){var t=e.size,n=e.progress,r=e.adjustToColor,o=Object(c.g)(),a=w[t],s=a.sideLength,d=a.strokeWidth,p=Object(l.i)(o.colors.cta)?Object(f.i)(.6,o.colors.cta):o.colors.cta,m=Object(l.i)(r)?p:o.colors.grayscale[0];return void 0===n?u.createElement(g,Object(i.a)({},j,{strokeWidth:d,stroke:m,vectorEffect:"non-scaling-stroke",animationFactor:s/56})):"number"===typeof n?u.createElement(O,Object(i.a)({},j,{strokeWidth:d,stroke:m,vectorEffect:"non-scaling-stroke"})):"auto"===n.type?u.createElement(y,Object(i.a)({},j,{strokeWidth:d,stroke:m,vectorEffect:"non-scaling-stroke",duration:n.duration,delay:n.delay})):null};t.a=function(e){var t=e.size,n=e.adjustToColor,o=e.ariaLabel,a=e.progress,s=Object(r.a)(e,["size","adjustToColor","ariaLabel","progress"]),f=Object(c.g)(),p=n||f.colors.surface,m=Object(l.i)(p)?"rgba(0, 0, 0, 0.1)":"rgba(255, 255, 255, 0.1)",b=w[t],v=b.sideLength,h=b.strokeWidth,g=o?{"aria-labelledby":"loader-label"}:{},O=Object(d.f)();return u.createElement(C,Object(i.a)({height:v+"px",width:v+"px",viewBox:"0 0 64 64",role:"img"},g,s,O),o&&u.createElement("title",{id:"loader-label"},o),u.createElement("circle",Object(i.a)({},j,{strokeWidth:h,stroke:m,vectorEffect:"non-scaling-stroke"})),u.createElement(x,{progress:a,size:t,adjustToColor:p}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(19),o=n(115),a=n(49);function c(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n\t\t\t\n\t\t\t\t'+e+"\n\t\t\t\t"+t+"\n\t\t\t\n\t\t"),l.close());for(var p,m=l.documentElement,b=function(){var e=p.value,t=e.getAttribute(a.a.event);if("string"!==typeof t)return"continue";for(var n,r=function(){var t=n.value.split(":"),r=t[0],i=t[1];if(!r||!i)return"continue";e.removeAttribute(a.a.event),e.addEventListener(r,(function(t){var n,c,s,d,l,f,p,m,b,v;t.stopPropagation();var h={type:t.type,bubbles:!0,isTrusted:t.isTrusted,cancelBubble:t.cancelBubble,cancelable:t.cancelable,composed:t.composed,defaultPrevented:t.defaultPrevented,eventPhase:t.eventPhase,timeStamp:t.timeStamp,currentTarget:{value:null==(n=t.currentTarget)?void 0:n.value,checked:null==(c=t.currentTarget)?void 0:c.checked,disabled:null==(s=t.currentTarget)?void 0:s.disabled,draggable:null==(d=t.currentTarget)?void 0:d.draggable,hidden:null==(l=t.currentTarget)?void 0:l.hidden},target:{value:null==(f=t.target)?void 0:f.value,checked:null==(p=t.target)?void 0:p.checked,disabled:null==(m=t.target)?void 0:m.disabled,draggable:null==(b=t.target)?void 0:b.draggable,hidden:null==(v=t.target)?void 0:v.hidden}};if("click"===r&&"copy"===e.getAttribute(a.a.action))return Object(o.a)(e.getAttribute(a.a.actionValue)),void(e.innerHTML=e.getAttribute(a.a.actionSuccess));u.call("crossFrameEvent",i,JSON.stringify(h))}))},i=c(t.split(";"));!(n=i()).done;)r()},v=c(Object(r.wb)(m.querySelectorAll("["+a.a.event+"]")));!(p=v()).done;)b();var h=m.querySelector("["+a.a.focus+"]");if(h&&(h.removeAttribute(a.a.focus),h.focus(),"INPUT"===h.nodeName)){var g=h;g.setSelectionRange(g.value.length,g.value.length)}for(var O,y=[],j=function(){var e=O.value,t=e.getAttribute(a.a.prop);if("string"!==typeof t)return"continue";e.removeAttribute(a.a.prop);var n=t.split(":"),r=n[0],i=n[1];y.push((function(t){var n,o,a=null==(n=t.views)||null==(o=n.minimized)?void 0:o[i.replace("!","")];"string"===typeof a&&(a=a.trim()),"disabled"===r&&(a=i.includes("!")?!a:!!a),"boolean"===typeof a?e.toggleAttribute(r,a):a?e.setAttribute(r,a):e.removeAttribute(r)}))},w=c(Object(r.wb)(m.querySelectorAll("["+a.a.prop+"]")));!(O=w()).done;)j();y.forEach((function(e){return e(u.state)})),u.off("state_diff",s),s=function(e){var t;(null==e||null==(t=e.views)?void 0:t.minimized)&&y.forEach((function(t){return t(e)}))},u.on("state_diff",s)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));var r=n(0),i=n.n(r),o=n(2),a=n(27),c=n(53),u=i.a.createContext({isDragNDropAllowed:function(){return!1},setModalOpen:o.W,setMenuOpen:o.W,setMomentExpand:o.W}),s=function(e){var t=e.children,n=Object(c.b)(),r=Object(a.w)(!1),o=Object(a.w)(!1),s=Object(a.w)(!1),d=i.a.useMemo((function(){return{isDragNDropAllowed:function(){return!n&&!r.get()&&!o.get()&&!s.get()},setModalOpen:function(e){return o.next(e)},setMenuOpen:function(e){return r.next(e)},setMomentExpand:function(e){return s.next(e)}}}),[r,o,s,n]);return i.a.createElement(u.Provider,{value:d},t)},d=function(){return i.a.useContext(u)}},function(e,t,n){"use strict";var r=n(1),i=n(7),o=n(0),a=n(3),c=n(5),u=n(109),s=n(162),d=n.n(s),l=n(50);var f=function(e){return e.stopPropagation()},p={name:"opde7s",styles:"color:inherit"},m=Object(c.A)("div",{target:"e4c3y4j0"})({name:"1ohivhk",styles:"ul,ol{margin:8px 0;display:inline-block;white-space:normal;width:100%;padding-left:24px;}"}),b=function(e){var t=e.children,n=Object(i.a)(e,["children"]);return Object(a.d)("a",Object(r.a)({},n,{onClick:f,css:p,rel:"nofollow noopener",target:"_blank"}),t)};t.a=function(e){var t=e.text,n=e.url,r=e.eventId,i=e.shouldUseMarkdown,s=void 0!==i&&i?Object(a.d)(m,null,Object(a.d)(u.a,{root:{component:l.a},template:t,linkComponent:b})):Object(a.d)(d.a,{component:b},Object(a.d)(l.a,null,t));return Object(a.d)(c.m,r&&{id:r},n?Object(a.d)(b,{href:n},t):Object(a.d)(o.Fragment,null,s))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return m}));var r=n(87),i=n(3),o=n(0),a=n(5),c=n(1),u=n(7),s=n(12);function d(){var e=Object(s.a)(["\n ","\n "]);return d=function(){return e},e}var l=["0px, 0px","0px, -8px","0px, -10px","0px, -6px","0px, -2px","0px, 3px","0px, 2px","0px, -1px"],f=[["0%, 66.67%, 100%","6.67%","13.33%, 20%","26.67%","33.33%","40%","46.67%","53.33%"],["0%, 6.67%, 73.33%, 100%","13.33%","20%, 26.67%","33.33%","40%","46.67%","53.33%","60%"],["0%, 13.33%, 80%, 100%","20%","26.67%, 33.33%","40%","46.67%","53.33%","60%","66.67%"]].map((function(e){return Object(i.e)(d(),e.map((function(e,t){return e+" { transform: translate("+l[t]+"); }"})))})),p=Object(a.A)("circle",{target:"epoxe490"})("transform-box:fill-box;transform-origin:50% 50%;animation-timing-function:",(function(e){return e.theme.transitions.easings.linear}),";animation-name:",(function(e){return e.animationName}),";animation-duration:",(function(e){return(e.animationDuration||1.5)+"s"}),";animation-iteration-count:",(function(e){return e.animationIterationCount||"infinite"}),";"),m=function(e){var t=e.height,n=e.width,i=e.animationDuration,a=e.animationIterationCount,s=e.color,d=Object(u.a)(e,["height","width","animationDuration","animationIterationCount","color"]),l=Object(r.g)();return o.createElement("svg",Object(c.a)({viewBox:"0 0 60 40",height:t,width:n,fill:s||l.colors.primaryTextColor},d),f.map((function(e,t){return o.createElement(p,{r:"6",cy:"20",key:t,cx:9+21*t,animationName:e,animationDuration:i,animationIterationCount:a})})))};n(57);var b={name:"xr9539",styles:"overflow:hidden;margin-bottom:0"},v=function(e){var t=e.avatar,n=Object(r.g)();return Object(i.d)(a.j,{avatar:t,css:b},Object(i.d)(a.i,null,Object(i.d)(a.c,null,Object(i.d)(a.m,null,Object(i.d)(m,{height:"16px",width:"24px",color:n.colors.agentMessageText})))))}},function(e,t,n){"use strict";var r=n(1),i=n(7),o=n(3),a=(n(0),n(20)),c=n(25),u=function(e){return Object(o.c)("display:inline-block;flex-shrink:0;width:1em;height:1em;font-size:",e?Object(a.e)(e):"inherit",";user-select:none;fill:currentColor;")};t.a=function(e){var t=e.size,n=e.label,a=e.color,s=void 0===a?"inherit":a,d=e.children,l=Object(i.a)(e,["size","label","color","children"]),f=Object(c.l)(),p=n?{"aria-labelledby":f}:{};return Object(o.d)("svg",Object(r.a)({color:s,css:u(t)},l,p),n&&Object(o.d)("title",{id:f},n),d)}},function(e,t,n){"use strict";var r=n(0),i=n(5);var o=Object(i.A)("div",{target:"erkouar1"})({name:"olzfrd",styles:"max-width:300px;max-height:300px"}),a=Object(i.A)("img",{target:"erkouar0"})({name:"14j4j9s",styles:"display:block;width:auto;height:auto;max-width:100%;max-height:100%"});t.a=function(e){var t=e.url,n=e.name;return r.createElement(o,null,r.createElement(a,{alt:n,src:t}))}},function(e,t,n){"use strict";var r=n(1),i=n(12),o=n(3),a=n(20);function c(){var e=Object(i.a)(["\n\t100% {\n\t\topacity: 0.3;\n\t}\n"]);return c=function(){return e},e}var u=Object(o.e)(c());t.a=function(e){return Object(r.a)({},e,{borderRadius:Object(r.a)({},e.borderRadius,{def:e.borderRadius.md}),vars:{"primary-color":e.colors.accent,"secondary-color":e.colors.grayscale[0],"tertiary-color":e.colors.divider},ApplicationWrapper:{css:{padding:{default:"1em 1em 1em 1em",expandToEdge:"0"}}},AgentBar:{Avatar:{size:"40px"},IconButton:{css:{width:"40px",height:"40px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"6px",fontSize:Object(a.e)(32),opacity:{default:"1",disabled:"0.15"}}},Title:{css:{fontSize:Object(a.e)(16),fontWeight:"bold"}},SubTitle:{css:{fontSize:Object(a.e)(16),opacity:"1"}},css:{backgroundColor:e.colors.surface,zIndex:"1",color:e.colors.primaryTextColor,padding:"1rem"}},Avatar:{size:"20px",css:{border:0}},Bubble:{sharpBorderRadius:"10px",ovalBorderRadius:"10px",css:{boxShadow:e.boxShadow.xs,border:"0"}},ImagePreview:{css:{maxWidth:"200px",maxHeight:"300px",borderRadius:e.borderRadius.md}},IconButton:{css:{padding:"0 .5em"}},Footer:{css:{fontSize:"0.65em",padding:"0.3em 0",minHeight:"15px",width:"100%",textAlign:"center"},FooterLink:{css:{textDecoration:"none",padding:"8px",borderRadius:e.borderRadius.md}}},MessageButtons:{css:{color:e.colors.accent}},MessageText:{css:{fontSize:"14px"}},Message:{css:{animation:{default:"none",sending:u+" 2s 2s forwards"},opacity:{default:"1",failed:"0.7"},color:e.colors.primaryTextColor,justifyContent:{default:"flex-start",system:"center"}},Bubble:{sharpBorderRadius:"10px",ovalBorderRadius:"10px",css:{boxShadow:e.boxShadow.xs,border:"0"}},system:{Bubble:{css:{background:"transparent",textAlign:"center",border:"0",width:"100%",boxShadow:"none"}},MessageText:{css:{padding:"0 1em"}}},fullWidth:{Content:{css:{width:"100%"}}}},MinimizedBar:{Icon:{color:"var(--primary-color)"},css:{position:"relative"}},MinimizedBubble:{css:{position:"relative",background:{default:"var(--primary-color)",hasAvatar:"transparent"}}},Minimized:{Avatar:{css:{border:"0",backgroundColor:"transparent"}},Img:{css:{display:"block"}},ImgOverlay:{css:{display:"none"}}},Invitation:{IconButton:{css:{visibility:{mobile:"visible"}}},Bubble:{sharpBorderRadius:"10px",ovalBorderRadius:"10px",css:{border:"0"}}},TitleBar:{css:{backgroundColor:e.colors.surface,color:e.colors.primaryTextColor,fontWeight:"700!important",fontSize:"1em",textAlign:"center",height:"56px"},TitleBarTitle:{css:{fontSize:Object(a.e)(14)}},Avatar:{size:"30px",css:{border:"0"}}},TextComposer:{css:{fontSize:{default:"14px",mobile:"16px"},zIndex:"1"},IconButton:{css:{opacity:{active:1,default:.4}}},Icon:{color:"unset"}},View:{css:{color:e.colors.primaryTextColor},Bubble:{sharpBorderRadius:"10px",ovalBorderRadius:"10px",css:{boxShadow:e.boxShadow.xs,border:"0"}}},SystemCard:{css:{border:"0",boxShadow:e.boxShadow.xs}}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),i=n(1),o=n(0),a=n(5),c=Object(a.A)(a.h,{target:"e1f2pv4c1"})("width:100%;height:100%;object-fit:",(function(e){return e.scaleImage?"cover":"fill"}),";"),u=Object(a.A)("div",{displayName:"ImagePreview",target:"e1f2pv4c0"})("display:flex;margin:0 auto;align-items:center;justify-content:center;overflow:hidden;background:",(function(e){return e.theme.colors.divider}),";color:",(function(e){return e.theme.colors.primaryTextColor}),";",(function(e){return e.withMargin&&"margin-bottom: 0.1em;"})," ",(function(e){var t=e.dimensions;return Object(i.a)({},t)}),";"),s=function(e){return e.stopPropagation()},d=function(e){var t=e.children,n=Object(r.a)(e,["children"]);return o.createElement("a",Object(i.a)({},n,{onClick:s,rel:"noopener noreferrer nofollow",target:"_blank"}),t)},l=function(e){var t=e.link,n=e.url,a=e.width,s=e.height,l=e.maxWidth,f=e.maxHeight,p=e.srcSet,m=e.alternativeText,b=void 0===m?"":m,v=e.name,h=void 0===v?"":v,g=e.withMargin,O=void 0!==g&&g,y=Object(r.a)(e,["link","url","width","height","maxWidth","maxHeight","srcSet","alternativeText","name","withMargin"]),j=!!a||!!s,w=function(e){var t=void 0===e?{}:e,n=t.width,r=void 0===n?230:n,i=t.height,o=void 0===i?150:i,a=t.maxWidth,c=void 0===a?200:a,u=t.maxHeight,s=void 0===u?300:u,d=r/o;return r>c&&(o=(r=c)/d),o>s&&(r=(o=s)*d),{width:r,height:o}}({width:a,height:s,maxWidth:l,maxHeight:f});return o.createElement(d,{href:t||n},o.createElement(u,{dimensions:w,withMargin:O},o.createElement(c,Object(i.a)({},y,{alt:b||h,src:n,srcSet:p,scaleImage:!j}))))}},function(e,t,n){"use strict";var r=n(3),i=n(87),o=n(0),a=n(5),c=n(27),u=n(142),s=n(1),d=n(21),l=Object(a.A)("div",{target:"e1faam643"})("position:relative;height:18.5px;margin-top:",(function(e){return e.withMarginTop?6:0}),"px;transition:margin-top 200ms ",(function(e){return e.theme.transitions.easings.swift}),";transition-delay:300ms;will-change:margin-top;"),f=Object(a.A)("div",{target:"e1faam642"})("display:flex;flex-direction:row;align-items:center;position:absolute;white-space:nowrap;overflow:visible;",(function(e){var t=e.side;return Object(r.c)(t,":0;")}),";"),p=Object(a.A)("span",{target:"e1faam641"})((function(e){return e.theme.typography.caption}),";color:",(function(e){return e.theme.colors.secondaryTextColor}),";"),m=Object(a.A)("button",{target:"e1faam640"})("background:none;border:none;cursor:pointer;appearance:none;",(function(e){return e.theme.typography.caption}),";color:",(function(e){return e.theme.colors.cta}),";"),b=function(e){var t=e.visible,n=e.onToggle,r=e.withMarginTop,i=e.side,a=Object(d.f)();return o.createElement(l,{withMarginTop:r},o.createElement(f,{side:i},t&&o.createElement(p,null,"Text translated"),o.createElement(m,Object(s.a)({},a,{onClick:function(e){e.stopPropagation(),n()}}),t?"Show original":"Show translation")))};var v=function(e){return"smooth"===e.name?Object(r.c)("color:",e.colors.primaryTextColor,";background-color:",e.colors.surfaceDecorative,";"):Object(r.c)("color:",e.colors.secondaryTextColor,";")},h={name:"1jwcxx3",styles:"font-style:italic"},g=function(e){return Object(r.c)("pre{margin:",e.spaces.space1," ",e.spaces.space0,";display:inline-block;white-space:pre-wrap;background-color:",e.colors.codeBlockBackgroundColor,";border-radius:",e.borderRadius.sm,";padding:",e.spaces.space3,";}code{",e.typography.code,";color:inherit;background-color:",e.colors.codeBlockBackgroundColor,";border-radius:",e.borderRadius.sm,";padding:",e.spaces.space0," ",e.spaces.space1,";}")};t.a=function(e){var t=e.text,n=e.url,s=e.translation,d=e.reaction,l=e.formatting,f=e.radiusType,p=void 0===f?"single":f,m=e.draft,O=void 0!==m&&m,y=e.own,j=void 0!==y&&y,w=e.eventId,C=void 0===w?"":w,x=Object(i.g)(),_=Object(c.y)(!j),E=_[0],L=_[1],S="modern"===x.name,I=x.isRtl?"left":"right",k=x.isRtl?"right":"left",T=j&&!S?I:k;return Object(r.d)(o.Fragment,null,Object(r.d)(a.c,{radiusType:p,css:[O&&v(x),!!s&&E&&h,g(x),""]},Object(r.d)(u.a,{text:s&&E?s.targetMessage:t,url:n,eventId:C,shouldUseMarkdown:!j&&"commonmark"===l})),s&&Object(r.d)(b,{visible:E,onToggle:L,side:T,withMarginTop:!!d&&!S}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(4),i=n(2),o=n(30),a=n(22),c=["maximize","minimize"],u={faq:"FAQ","form-contact":"Form-contact","form-feedback":"Form-feedback","form-bugreport":"Form-bugreport",chat:"Chat"},s={maximize:[{name:"feature",values:Object(i.M)(u)}],minimize:null},d=function(e,t){var n=e.target;if(n instanceof Element){var r=n.closest("[data-openwidget-action]");if(r){var o=r.getAttribute("data-openwidget-action");if(o)if(function(e){return Object(i.E)(e,c)}(o)){var a=function(e,t){var n={},r=s[t];return r&&r.forEach((function(t){var r="data-openwidget-"+t.name,i=e.getAttribute(r);i&&(n[t.name]=i)})),n}(r,o);(function(e,t){var n=s[e],r=function(r){var o,a=null==(o=n.find((function(e){return e.name===r})))?void 0:o.values,c=t[r];if(!a||!Object(i.E)(c,a))return console.error("OpenWidget: You cannot combine "+c+' feature with "'+e+'" method. You can only use: '+a),{v:!1}};for(var o in t){var a=r(o);if("object"===typeof a)return a.v}return!0})(o,a)&&t[o](a)}else console.error('OpenWidget: Action "'+o+'" is not allowed. Allowed actions: '+c.join(", "));else console.error("OpenWidget: Action attribute value not found.")}}},l=function(e){var t=function(t){return d(t,e)};Object(r.z)(Object(o.a)(e,(function(e){return e.application.readyState})),Object(r.i)((function(e){return e===a.b.READY})),Object(r.G)(1),Object(r.j)((function(){document.addEventListener("click",t)}))),Object(r.z)(Object(r.l)(e,"unbind"),Object(r.j)((function(){document.removeEventListener("click",t)})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(1),n(14),n(2),n(15),n(4),n(8),n(7);var r=n(120);n(36);r.a.Promise=Promise;n(101),n(24),n(42);n(35),n(30);n(22);n(165),n(62),n(95);var i=n(19);n(102),n(265),window.Wix;Object(i.e)(),Object(i.e)(),Object(i.g)(),n(163),n(56),n(221),n(139),n(149),Object(i.g)();var o=function(e){return"modern"===e?{width:"400px",height:"465px"}:{width:"392px",height:"714px"}}},function(e,t,n){var r=n(239),i=n(235);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(84);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(86),i=function(e){var t,n,i=Object(r.a)(),o=Boolean(null==(t=e.properties.group[i])?void 0:t.forwardTicketFormToHelpdesk),a=!!e.__unsafeProperties.license&&e.__unsafeProperties.license.licenseinboundForwardingToHelpdeskEnabled,c=null==(n=e.properties.license[i])?void 0:n.hdLicenseID;return"number"===typeof c&&c>-1&&(o||a)?"helpdesk":e.__unsafeProperties.group.offlineMessagesEnabled?"offline_message":"livechat"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(55),i=n(2),o=n(15),a=n(63),c="https://accounts.livechatinc.com",u=function(e,t){return""+("production"===t?c:c.replace("accounts.","accounts."+t+"."))+function(e){var t=e.uniqueGroups,n=e.organizationId,r=e.groupId;return t?"/v2/customer/"+n+"/"+r+"/token":"/v2/customer/token"}(e)},s=function(e){var t=e.code,n=e.message,r=new Error(n);return r.code=t,r},d=function(e,t){if("identity_exception"in e)throw s({code:"SSO_IDENTITY_EXCEPTION",message:e.identity_exception});if("oauth_exception"in e)throw s({code:"SSO_OAUTH_EXCEPTION",message:e.oauth_exception});return{accessToken:e.access_token,entityId:e.entity_id,expiresIn:1e3*e.expires_in,tokenType:e.token_type,creationDate:Date.now(),organizationId:t}},l=function(e,t){return Object(a.a)(""+u(e,t),{method:"POST",credentials:"include",body:JSON.stringify({response_type:"token",grant_type:"cookie",client_id:e.clientId,organization_id:e.organizationId,redirect_uri:Object(o.f)(String(window.location))+window.location.pathname})}).then((function(e){return e.json()})).then((function(t){return d(t,e.organizationId)}))},f=(i.W,function(e){var t=e.organizationId,n=e.clientId;if("string"!==typeof t||"string"!==typeof n)throw new Error("You need to pass valid configuration object: { organizationId, clientId }.")}),p=function(e,t,n){f(e);var i=e.tokenStoragePrefix||"@@lc_auth_token:",o=""+i+t+(e.uniqueGroups?":"+e.groupId:""),a=""+i+e.organizationId+(e.uniqueGroups?":"+e.groupId:""),c=null,u=null,s=r.a.getItem(o).then((function(e){null!==s&&(s=null,e?r.a.setItem(a,e).then((function(){r.a.removeItem(o).then((function(){u=JSON.parse(e)}))})):r.a.removeItem(o).then((function(){return r.a.getItem(a).then((function(e){e&&(u=JSON.parse(e))}))})))})),d=function(){return c=l(e,n).then((function(e){return c=null,r.a.setItem(a,JSON.stringify(e)),u=e,e}),(function(e){throw c=null,e}))};return{getFreshToken:d,getToken:function e(){return c||(u&&!function(e){var t=e.creationDate,n=e.expiresIn;return Date.now()>=t+n}(u)?Promise.resolve(u):s?s.then(e):d())},hasToken:function e(){return s?s.then(e):Promise.resolve(!!u)},invalidate:function(){return u=null,s=null,r.a.removeItem(a)}}}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return d}));var r=n(4),i=n(21),o=n(37),a=n(19),c=!1,u=function(){return c?(c=!1,!0):"function"===typeof document.hasFocus&&document.hasFocus()},s=function(){return!Object(a.g)()&&u()},d=function(e,t){Object(r.z)(Object(r.l)(e,"host_focus_shifted"),Object(r.j)((function(){c=!1}))),Object(r.z)(Object(o.c)(t,(function(e){return e.application.visibility})),Object(r.D)(null),r.x,Object(r.i)((function(e){var t=e[0],n=e[1];return(null==t?void 0:t.state)!==(null==n?void 0:n.state)&&!!n.interactionModality})),Object(r.j)((function(e){var t=e[1];Object(i.d)(t.interactionModality),c="virtual"!==t.interactionModality})))}},,,,function(e,t,n){"use strict";var r=n(2),i=n(164),o=function(){var e="lc_get_time_"+Object(r.w)();window.performance&&"function"===typeof window.performance.mark&&window.performance.mark(e);var t=performance.getEntriesByName(e)[0].startTime;return performance.clearMarks(e),t},a=function(){if("undefined"===typeof PerformanceObserver)return null;var e=o(),t=[],n=new PerformanceObserver((function(e){t.push.apply(t,e.getEntries())}));n.observe({entryTypes:["longtask"]});var i=function(){var n,i=Object(r.N)(t);return i?(n=i,o()-n.startTime+n.duration):o()-e};return{disconnect:function(){return n.disconnect()},getLongTasks:function(){return[].concat(t)},waitForIdle:function(e){return new Promise((function(r){!function o(){t.push.apply(t,n.takeRecords());var a=i();a>=e?r():setTimeout(o,Math.ceil(e-a))}()}))}}};t.a=function(e){void 0===e&&(e="first-contentful-paint");var t=a();return t?Object(i.a)(e).then((function(e){return e?t.waitForIdle(5e3).then((function(){return t.disconnect(),t.getLongTasks()})):null})):Promise.resolve(null)}},function(e,t,n){"use strict";var r=n(2);t.a=function(e){return new Promise((function(t){var n=performance.getEntriesByName(e);if(Object(r.G)(n))if("undefined"!==typeof PerformanceObserver){var i=setTimeout((function(){o.disconnect(),t(null)}),6e4),o=new PerformanceObserver((function(n){var a=Object(r.p)((function(t){return t.name===e}),n.getEntries());a&&(o.disconnect(),clearTimeout(i),t(a))}));o.observe({entryTypes:["paint"]})}else t(null);else t(n[0])}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return O}));var r=n(8),i=n(2),o=n(135),a=function(e){return new Promise((function(t,n){var r=new Audio(e);r.onloadeddata=function(){t(r)},r.onerror=n}))},c=function(e){var t=e.play();return Object(i.J)(t)?t:Promise.resolve()},u=function(e){return"function"===typeof e.start&&"function"===typeof e.stop},s=function(e){u(e)?e.start(0):e.noteOn(0)},d=function(){var e=new(window.AudioContext||window.webkitAudioContext),t=!0,n=[],r=function(t){return new Promise((function(n,r){e.decodeAudioData(t,n,r)}))},i=function(t){return{play:function(){var n=e.createBufferSource();return n.connect(e.destination),n.buffer=t,{playback:new Promise((function(t,r){if(n.onended=function(){return t()},s(n),"running"!==e.state){var i=new Error("Playback failed, AudioContext is in incorrect state '"+e.state+"'");i.name="PlaybackError",r(i)}})),stop:function(){!function(e){u(e)?e.stop(0):e.noteOff(0)}(n)}}}}};return{preload:function(e){return function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.onload=function(){t(r.response)},r.onerror=n,r.open("GET",e),r.responseType="arraybuffer",r.send()}))}(e).then(r).then(i)},playSound:function(e){var r=e.play();return t&&n.push(r),r.playback},unlock:function(){return new Promise((function(r){document.addEventListener("click",(function i(){document.removeEventListener("click",i,!0),t&&(n.forEach((function(e){e.stop()})),n=[],t=!1),e.resume(),function(){var t=e.createBuffer(1,1,22050),n=e.createBufferSource();n.buffer=t,n.connect(e.destination),s(n)}(),r()}),!0)}))}}},l=function(){return Object(o.b)()?function(){var e=d(),t=Object(i.S)((function(t){var n=e.preload(t);return n.catch(i.W),n}));return{play:function(n){var r=t(n).then(e.playSound);return r.catch(i.W),r},preload:t,unlock:function(){return e.unlock()}}}():function(){var e=Object(i.S)(a);return{play:function(t){return e(t).then(c)},preload:e,unlock:function(){return Promise.resolve()}}}()},f=function(e){var t=l(),n=function(e){return Object.keys(e).reduce((function(t,n){var r=Object(i.p)((function(e){return Object(o.a)(e)}),Object(i.m)(e[n]));return t[n]=r,t}),{})}(e);return{play:function(e){var r=n[e];t.play(r).then(i.W,i.W)},preload:function(e){var r=n[e];t.preload(r).then(i.W,i.W)},unlock:function(){return t.unlock()}}},p=n.p+"static/media/new_message.f3efb3d2.mp3",m=n.p+"static/media/new_message.34190d36.ogg",b="new_message",v=function(){var e,t=f(((e={}).new_message=[m,p],e));return t.unlock().then((function(){return Object(i.O)(2e3,(function(e){t.play(e)}))}))},h=function(e,t){return"system"!==e.author&&!e.properties.welcomeMessage&&e.author!==t&&"custom"!==e.type},g=function(e){var t=!1;e.on("iframe_sound_unlocked",(function(){return t=!0})),v().then((function(n){t||(e.emit("bridge_sound_unlocked"),e.on("add_event",(function(t){var i=t.event;if(!Object(r.getApplicationState)(e.state,"muted")){var o=Object(r.getSessionUserId)(e.state);h(i,o)&&n(b)}})))}))},O=function(e){var t=!1;e.on("bridge_sound_unlocked",(function(){return t=!0})),v().then((function(n){t||(e.emit("iframe_sound_unlocked"),e.on("add_event",(function(t){var r=t.event;if(!e.getApplicationState().muted){var i=e.getSessionUserId();h(r,i)&&n(b)}})))}))}},function(e,t,n){"use strict";var r=n(1),i=n(31),o=n(2),a=n(15),c=n(6),u=n(101),s=n(89);function d(e,t){var n,i=t.schema,a=t.preSave,c=Object(o.Q)((function(e){return e.defaultValue}),i),d=Object.keys(i),l=Object(o.g)((function(e){return Object(r.a)({},c,e)}),(function(e){return Object(o.Q)((function(e){return e.value}),e)}),(function(e){var t=Date.now();return Object(o.ab)((function(e,n){return e.expires1)return Object(r.a)({},u(e),{type:"carousel",properties:{serverType:e.type,cards:e.elements.map(p)}});var i=e.elements[0];if(1===Object.keys(i).length&&i.image){var o=i.image;return Object(r.a)({},u(e),{type:"image_preview",properties:Object(r.a)({name:o.name,serverType:e.type,url:o.url},o.alternativeText&&{alternativeText:o.alternativeText},d(e))})}return Object(r.a)({},u(e),{type:"rich_message",properties:Object(r.a)({serverType:e.type,card:p(i)},d(e))})}},b=function(e){if(e.thumbnails){var t=e.thumbnails,n=Object(r.a)({},u(e),{type:"image_preview",properties:Object(r.a)({name:e.name,serverType:e.type},t.default,{link:e.url,srcSet:t.default.url+" 1x, "+t.high.url+" 2x"},d(e))});return e.alternativeText&&(n.properties.alternativeText=e.alternativeText),n}return Object(r.a)({},u(e),{type:"message",properties:Object(r.a)({serverType:e.type,text:e.name,url:e.url},e.alternativeText&&{alternativeText:e.alternativeText},d(e))})},v=function(e){var t=Object(r.a)({},u(e),{type:"system_message",properties:{serverType:e.type,systemMessageType:e.systemMessageType,defaultText:e.text}});return e.textVars&&(t.properties.textVariables=e.textVars),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(0),i=n(29),o=function(e,t){e.on("track-event",(function(e){var n;(0,t.call)("/v1.0/t/event","POST",{name:(n=e).name,eventProperties:n.eventProperties})}))},a=function(){var e=Object(i.d)();return r.useCallback((function(t){return e.emit("track-event",t)}),[e])}},function(e,t,n){"use strict";n.d(t,"c",(function(){return An})),n.d(t,"a",(function(){return zn}));var r=n(7),i=n(1),o=n(0),a=n.n(o),c=n(75),u=n(85),s=n(31),d=n(2),l=n(27),f=n(3),p=n(87),m=n(133),b=n(83),v=n(5),h=n(261),g=n(130),O=n(12),y=n(646),j=n(645),w=n(170),C=n(6),x=n(9),_=(n(57),n(29)),E=n(21),L=n(25),S=n(143),I=n(26),k=function(e){var t=e.height,n=e.width,a=e.color,c=Object(r.a)(e,["height","width","color"]),u=Object(p.g)();return o.createElement("svg",Object(i.a)({preserveAspectRatio:"xMidYMid",viewBox:"0 0 58 52",height:t,width:n},c),o.createElement("path",{d:"M29.481017,9 L26.7193716,9.00780269 L25.0166328,9.03077059 C21.0467647,9.10067287 17.1033343,9.28474889 13.272705,9.58299863 C11.1559364,9.77777398 9.61646844,11.3359767 9.42403494,13.2837302 L9.35895495,13.9827722 C9.18193028,16.0645766 9.0669853,18.9848792 9,22.1934446 L9,29.8065554 L9.04251657,31.5660142 C9.1220023,34.4365801 9.24537246,36.9681814 9.42403494,38.7162698 C9.61646844,40.6640233 11.1559364,42.222226 13.272705,42.4170014 C17.1033343,42.7152511 21.0467647,42.8993271 25.0166328,42.9692294 L26.7193716,42.9921973 L29.5976553,43 L31.2426614,42.9926959 C35.7862719,42.9500888 40.3114659,42.7583568 44.6893281,42.4174999 C46.8060966,42.2227246 48.3455646,40.6645218 48.5379981,38.7167684 L48.6030781,38.0177264 C48.8197734,35.4693959 48.9434478,29.6646482 49,25.6127275 L48.962033,22.192946 L48.9195164,20.4334872 C48.8400307,17.5629214 48.7166605,15.0313201 48.5379981,13.2832316 C48.3455646,11.3354782 46.8060966,9.77727542 44.6893281,9.58250007 C40.8586987,9.28425033 36.9152683,9.10017431 32.9454002,9.03027203 L31.2426614,9.00730413 L29.481017,9 Z",fill:a||u.colors.minimizedBackground}))},T=function(e){var t=e.height,n=e.width,a=e.color,c=Object(r.a)(e,["height","width","color"]),u=Object(p.g)();return o.createElement("svg",Object(i.a)({preserveAspectRatio:"xMidYMid",viewBox:"0 0 58 52",height:t,width:n},c),o.createElement("path",{d:"M29.0008033,0 C34.4212311,0 40.0352456,0.194420965 45.0684999,0.583262896 C51.650448,1.16652579 57.0708757,6.22147089 57.6516358,13.0262047 L57.7196204,14.2009165 L57.7899531,15.6923649 C57.859564,17.3281771 57.9295796,21.7078579 58,28.8314074 L57.9637288,30.7090953 C57.8920573,33.9897835 57.782987,36.9295762 57.6516358,38.974293 C57.0708757,45.7790268 51.650448,50.8339719 45.0684999,51.4172348 C40.4928142,51.7707274 35.4371613,51.9635416 30.4833197,51.9956773 L28.9886006,52 C23.5681728,52 17.9541584,51.805579 12.920904,51.4167371 C6.33895599,50.8334742 0.91852822,45.7785291 0.337768101,38.9737953 L0.269783585,37.7990835 L0.22114963,36.8013068 C0.126792732,34.7232882 0.0503553685,32.1671014 0,29.4319602 L0,22.5685374 L0.0389528669,20.7061894 C0.110492307,17.6622602 0.21428433,14.9489491 0.337768101,13.0267023 C0.91852822,6.22196854 6.33895599,1.16702345 12.920904,0.583760551 C17.4965898,0.230267886 22.5522426,0.0374537061 27.5060842,0.00531800931 L29.0008033,0 Z",fill:a||u.colors.ctaText}))},A=function(e){var t=e.height,n=e.width,a=e.color,c=Object(r.a)(e,["height","width","color"]),u=Object(p.g)();return o.createElement("svg",Object(i.a)({viewBox:"0 0 58 52",height:t,width:n},c),o.createElement("path",{d:"M28.5109686,35 L26.5109686,35 C25.1302567,35 24.0109686,36.1192881 24.0109686,37.5 L24.0109686,39.5 C24.0109686,40.8807119 25.1302567,42 26.5109686,42 L28.5109686,42 C29.8916804,42 31.0109686,40.8807119 31.0109686,39.5 L31.0109686,37.5 C31.0109686,36.1192881 29.8916804,35 28.5109686,35 Z M24.2180929,7.00002757 L24.1267943,7.0035235 C20.2549106,7.32941625 17.3553549,9.56561273 17.047887,12.9874285 L17.0275374,13.3466047 L17.0094313,14.0213331 C17.0050362,14.2844884 17.0022361,14.5864297 17.0008954,14.9287777 L17.0008954,15.9493215 L17.0110107,17.5091836 C17.013122,18.8237491 18.1881183,19.9979219 19.5093967,19.9999988 L21.5109686,20 L21.6691026,19.9944262 C22.9274186,19.9057695 24.0109686,18.7721183 24.0109686,17.5 L24.0062874,16.0062677 C24.0029832,14.9519111 24.8161499,14.0855552 25.8507654,14.0059633 L26.0062776,14 L31.0264559,14 C32.1206394,14 33.011709,14.8792827 33.0262786,15.9733692 L33.0657015,18.9338062 C33.0716182,19.4056689 32.9104738,19.8644183 32.6085881,20.2271337 L32.2944303,20.5975878 C32.0115119,20.9223892 31.6757925,21.2874147 31.2872723,21.6926643 L30.9447052,22.0400403 L31,22 C30.6427514,22.27188 30.266987,22.5220304 29.7475087,22.8381107 L28.724449,23.4442306 C25.7855457,25.172701 24.6451012,27.6378256 24.4474136,30.0331331 C24.4419067,30.0989938 24.4391785,30.1661675 24.439274,30.2334264 C24.441164,31.5638952 25.3552045,32.3864983 26.6788053,32.3846167 L29.1441007,32.3848707 C30.2347844,32.3831295 31.0828877,31.6446446 31.4354641,30.6172352 L31.4895952,30.4434019 C31.7323113,29.5779052 32.3932452,28.8757375 33.8585487,27.841307 L35.2493394,26.8890547 C38.4189615,24.7057033 39.9000188,22.8283919 39.9669365,19.6772614 L39.9990321,16.3132808 L40.0063004,15.2416415 L40.0109634,13.7873075 C39.6977061,10.2540552 36.8323239,7.51973947 33.2524784,7.10691418 L32.956295,7.07993622 L24.6087214,7.00293535 C24.4800723,7.0019754 24.3498647,7.00100617 24.2180929,7.00002757 Z",fill:a||u.colors.minimizedBackground}))};function z(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 0;\n\t\ttransform: scale(0);\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t\ttransform: scale(1.3);\n\t}\n"]);return z=function(){return e},e}function M(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 0;\n\t\ttransform: scale(0.8);\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t}\n"]);return M=function(){return e},e}function P(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 1;\n\t\ttransform: scale(1);\n\t}\n\n\t100% {\n\t\topacity: 0;\n\t\ttransform: scale(0.8);\n\n\t}\n"]);return P=function(){return e},e}function R(){var e=Object(O.a)(["\n\t0% {\n\t\ttransform: scale(1.05);\n\t}\n\n\t100% {\n\t\ttransform: scale(1.0);\n\t}\n"]);return R=function(){return e},e}function B(){var e=Object(O.a)(["\n\t0% {\n\t\ttransform: scale(1.0);\n\t}\n\n\t100% {\n\t\ttransform: scale(1.05);\n\t}\n"]);return B=function(){return e},e}var D=Object(f.e)(B()),N=Object(f.e)(R()),F=Object(f.e)(P()),q=Object(f.e)(M()),V=Object(f.e)(z()),U=function(e,t){return e?t?16:24:t?24:32},W=function(e,t){return Object(f.c)("display:flex;width:",U(e,t),"px;height:",U(e,t),"px;align-items:center;justify-content:center;")},G=Object(v.A)("div",{target:"e1dmt1bi3"})("position:relative;",(function(e){var t=e.mobileBubble,n=e.small;return W(t,n)})," ",(function(e){var t=e.hoverState,n=e.theme;return"in"===t?Object(f.c)("transform:scale(1);animation:",D," 200ms ",n.transitions.easings.spring," forwards;"):"out"===t?Object(f.c)("transform:scale(1.25);animation:",N," 200ms ",n.transitions.easings.spring," forwards;"):void 0}),";"),H=Object(v.A)("div",{target:"e1dmt1bi2"})("position:absolute;z-index:1;left:0;right:0;bottom:1px;transition:opacity 150ms ",(function(e){return e.theme.transitions.easings.smooth})," 50ms;",(function(e){var t=e.mobileBubble;return W(t)})," ",(function(e){return{opacity:e.isVisible?1:0}})," ",(function(e){var t=e.hoverState,n=e.theme;return"in"===t?Object(f.c)("transform:scale(1);animation:",D," 200ms ",n.transitions.easings.spring," forwards;"):"out"===t?Object(f.c)("transform:scale(1.25);animation:",N," 200ms ",n.transitions.easings.spring," forwards;"):void 0}),";"),Z=Object(v.A)("div",{target:"e1dmt1bi1"})("position:absolute;z-index:1;left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;",(function(e){var t=e.hoverState,n=e.theme;return"in"===t?Object(f.c)("animation:",F," 1000ms ",n.transitions.easings.spring," forwards;"):"out"===t?Object(f.c)("animation:",q," 400ms ",n.transitions.easings.spring," forwards;"):void 0}),";"),Y=Object(v.A)("div",{target:"e1dmt1bi0"})("position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;",(function(e){var t=e.mobileBubble,n=e.small;return W(t,n)})," ",(function(e){var t=e.active,n=e.theme;return t&&Object(f.c)("animation:",V," 400ms ",n.transitions.easings.spring," forwards;")}),";"),K=function(e){var t=e.hoverState,n=e.mobileBubble,r=e.small,i=e.showRecommendationsIcon,a=r?"24px":"30px",c={width:r?"24px":"30px",height:r?"20px":"24px"},u={width:r?"20px":"22px",height:r?"16px":"18px"},s=Object(p.g)();return o.createElement(o.Fragment,null,o.createElement(T,{width:a,height:a}),o.createElement(Z,{hoverState:t},i?o.createElement(I.P,{color:s.colors.minimizedBackground}):o.createElement(A,{height:c.height,width:c.width})),o.createElement(Y,{mobileBubble:n,small:r,active:"in"===t},"in"===t&&o.createElement(k,{height:u.height,width:u.width})))},J=function(e){var t=e.hoverState,n=e.mobileBubble,a=void 0!==n&&n,c=e.small,u=void 0!==c&&c,s=e.showRecommendationsIcon,d=void 0!==s&&s,l=Object(r.a)(e,["hoverState","mobileBubble","small","showRecommendationsIcon"]),f=Object(_.d)(),m=Object(p.g)(),b="in"===t,v=f.getApplicationState().defaultWidget;return o.createElement(G,Object(i.a)({hoverState:t,small:u,mobileBubble:a},l),"openwidget"===v?o.createElement(K,{hoverState:t,mobileBubble:a,small:u,showRecommendationsIcon:d}):o.createElement(o.Fragment,null,o.createElement(I.w,{filled:b,size:a?24:32,color:m.colors.minimizedIcon,backgroundColor:m.colors.minimizedBackground}),o.createElement(H,{isVisible:b,mobileBubble:a},b&&o.createElement(S.a,{width:a?"14px":"18px",animationDuration:1,animationIterationCount:1,color:m.colors.minimizedBackground}))))},Q=Object(v.A)("div",{target:"e3vrje60"})("width:5px;height:5px;border-radius:",(function(e){return e.theme.borderRadius.round}),";background-color:",(function(e){return e.theme.colors.surface}),";"),X=function(e,t,n){return Object(f.c)("z-index:1;position:absolute;border:3px solid ",n,";right:",e||t?-7:-3,"px;top:",e||t?-7:-3,"px;")},$=function(e){var t=e.mobile,n=void 0!==t&&t,r=e.unseenEventsCount,i=void 0===r?0:r,o=e.bar,a=Object(p.g)(),c=Object(_.d)(),u=Object(x.q)(c).animateUnseenEventIndicator;return Object(f.d)(I.V,{animated:u,css:X(n,o,a.colors.notificationContrast),minScale:i>1?1:0,maxScale:i>1?1.75:1.3,"aria-label":"new message indicator",tabIndex:0,role:"img"},Object(f.d)(Q,null))},ee=n(223),te=n(50),ne=n(17),re=n(13),ie=n(19),oe=Object(v.A)("div",{displayName:"MinimizedBar",section:!0,target:"e16i86ec1"})("position:relative;width:255px;height:50px;box-shadow:",(function(e){return e.theme.boxShadow.subtle}),";background:",(function(e){return e.theme.colors.surface}),";border-radius:",(function(e){var t=e.theme;return[t.borderRadius.lg,t.borderRadius.lg,t.borderRadius.none,t.borderRadius.none].join(" ")}),";display:flex;padding:0 0.9em;align-items:center;&:hover{cursor:pointer;}"),ae=Object(v.A)(ee.a,{target:"e16i86ec0"})("flex-grow:1;font-weight:700;font-size:0.9em;",(function(e){var t=e.theme;return Object(f.c)("margin-",t.isRtl?"left":"right",":",t.spaces.space2,";")}),";"),ce=function(e){var t=e.text,n=e.hasUnseenEvents,r=e.unseenEventsCount,i=e.onClick,a=Object(E.f)(),c=Object(_.d)(),u=Object(ie.g)(),s=Object(x.q)(c),d=s.bubbleHoverState,l=void 0!==d&&d,f=s.animated;return o.createElement(oe,Object(L.h)(a,ne.b({onClick:i,onMouseLeave:function(){f||u||(Object(re.S)(c,{bubbleHoverState:"out"}),setTimeout((function(){return Object(re.S)(c,{bubbleHoverState:!1})}),200))},onMouseEnter:function(){f||u||Object(re.S)(c,{bubbleHoverState:"in"})}})),n?o.createElement($,{bar:!0,key:r,unseenEventsCount:r}):null,o.createElement(ae,{ellipsis:!0},o.createElement(te.a,null,t)),o.createElement(I.s,{onPress:i,"aria-label":"Open LiveChat chat widget"},o.createElement(J,{mobileBubble:!0,hoverState:l})))};function ue(){var e=Object(O.a)(["\n\tfrom {\n\t\ttransform: scale(1);\n\t\topacity: 0.6;\n\t}\n\tto {\n\t\ttransform: scale(",");\n\t\topacity: 0;\n\t}\n"]);return ue=function(){return e},e}function se(){var e=Object(O.a)(["\n\tfrom {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n\tto {\n\t\twidth: ",";\n\t\theight: ",";\n\t}\n"]);return se=function(){return e},e}var de=function(e,t){return e?t?"25px":"40px":t?"38px":"60px"},le=function(e,t){return Object(f.e)(se(),e,e,t,t)},fe=Object(v.A)("div",{target:"e1ybl9g11"})("z-index:-1;position:absolute;top:0;left:0;width:",(function(e){return e.mobile?40:60}),"px;height:",(function(e){return e.mobile?40:60}),"px;border-radius:",(function(e){return e.theme.borderRadius.round}),";background-color:",(function(e){return e.theme.colors.cta}),";animation-name:",(function(e){return function(e){return Object(f.e)(ue(),e)}(e.scaleTo)}),";animation-duration:0.9s;animation-delay:",(function(e){var t=e.delay;return null!=t?t:0}),"s;animation-iteration-count:1;animation-timing-function:",(function(e){return e.theme.transitions.easings.swift}),";"),pe=Object(v.A)("div",{displayName:"MinimizedBubble",section:!0,target:"e1ybl9g10"})("display:flex;width:",(function(e){var t=e.mobile,n=e.small;return de(t,n)}),";height:",(function(e){var t=e.mobile,n=e.small;return de(t,n)}),";box-shadow:",(function(e){return e.theme.boxShadow.subtle}),";border-radius:",(function(e){return e.theme.borderRadius.round}),";background:",(function(e){return e.theme.colors.surface}),";justify-content:center;position:relative;overflow:visible;",(function(e){var t=e.theme,n=e.mobile,r=e.screenPosition;return n?t.isRtl?Object(f.c)("margin-bottom:24px;margin-","left"===r?"left":"right",":8px;"):Object(f.c)("margin-bottom:24px;margin-","left"===r?"right":"left",":8px;"):Object(f.c)("margin-","left"===r?"right":"left",":auto;")})," ",(function(e){var t=e.theme,n=e.mobile,r=e.resizeAnimation;return"shrink"===r?Object(f.c)("animation-name:",le(de(n,!1),de(n,!0)),";animation-duration:600ms;animation-timing-function:",t.transitions.easings.swift,";"):"grow"===r?Object(f.c)("animation-name:",le(de(n,!0),de(n,!1)),";animation-duration:300ms;animation-timing-function:",t.transitions.easings.swift,";animation-fill-mode:forwards;animation-iteration-count:1;"):void 0})," &:hover{cursor:pointer;}"),me={name:"1btxy8w",styles:"padding:0;width:100%;display:flex;justify-content:center;align-items:center"},be={name:"je8g23",styles:"pointer-events:none"},ve=function(e){var t=e.mobileBubble,n=e.avatar,r=e.hasUnseenEvents,a=e.unseenEventsCount,c=e.screenPosition,u=e.onClick,s=Object(_.d)(),d=Object(ie.g)(),l=Object(x.H)(s),p="livechat"===s.getApplicationState().defaultWidget&&Boolean(n),m=Object(x.q)(s),b=m.bubbleHoverState,h=void 0!==b&&b,g=m.animated,O=m.visitorCounter,y=m.googleReviews,j=m.resizeBubbleAnimation,w=m.showPulseAnimation;return Object(f.d)(pe,Object(i.a)({mobile:t,small:l,resizeAnimation:j,hasAvatar:p,screenPosition:c},ne.b(Object(i.a)({onClick:u,onAnimationEnd:function(){var e="grow"===j&&!w;Object(re.S)(s,Object(i.a)({resizeBubbleAnimation:null},e&&{showPulseAnimation:!0}))}},!n&&{onMouseLeave:function(){g||j||w||d||(null==O?void 0:O.isVisible)||(null==y?void 0:y.isVisible)||(Object(re.S)(s,{bubbleHoverState:"out"}),setTimeout((function(){return Object(re.S)(s,{bubbleHoverState:!1})}),200))}},!n&&{onMouseEnter:function(){g||j||w||d||(null==O?void 0:O.isVisible)||(null==y?void 0:y.isVisible)||Object(re.S)(s,{bubbleHoverState:"in"})}}))),r&&Object(f.d)($,{mobile:t,key:a,unseenEventsCount:a}),w&&Object(f.d)(o.Fragment,null,Object(f.d)(fe,{mobile:t,scaleTo:1.5}),Object(f.d)(fe,Object(i.a)({mobile:t,delay:.3,scaleTo:1.3},ne.b({onAnimationEnd:function(){Object(re.S)(s,{showPulseAnimation:!1})}})))),Object(f.d)(I.s,Object(i.a)({skipFocusVisible:!0,css:me,"aria-label":"Open LiveChat chat widget"},ne.b({onPress:u})),p?Object(f.d)(v.b,{"aria-hidden":!0,imgUrl:n,size:t?"40px":"60px",css:be}):Object(f.d)(J,{"aria-hidden":!0,mobileBubble:t,small:l,hoverState:h,showRecommendationsIcon:w})))},he=n(92),ge=n(193);function Oe(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 0;\n\t\ttransform: translateY(8px);\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n"]);return Oe=function(){return e},e}var ye=Object(f.e)(Oe()),je=Object(v.A)(v.q,{target:"e1wumze50"})("width:100%;margin-bottom:",(function(e){return e.noMargin?0:8}),"px;",(function(e){return e.animated&&Object(f.c)("opacity:0;transform:translateY(8px);animation:",ye," 200ms ease-in forwards;animation-delay:200ms;")}),";"),we=function(e){var t=e.reverse,n=e.noMargin,i=e.children,a=e.animated,c=Object(r.a)(e,["reverse","noMargin","children","animated"]);return o.createElement(ge.a,c,o.createElement(je,{reverse:t,noMargin:n,animated:a},i))};var Ce=n(20),xe=Object(v.A)(I.s,{target:"e241ssi0"})("width:",Object(Ce.e)(24),";height:",Object(Ce.e)(24),";border-radius:",(function(e){return e.theme.borderRadius.round}),";background-color:",(function(e){return e.theme.colors.surface}),";margin-bottom:",(function(e){return.5*e.theme.spaceBase}),"px;opacity:",(function(e){var t=e.mobile;return!Object(ie.d)()||t?"1":"0"}),";color:",(function(e){return e.theme.colors.primaryTextColor}),";&:focus{opacity:1;}"),_e=Object(f.c)("font-size:",Object(Ce.e)(24),";"),Ee=function(e){var t=e.mobile,n=void 0!==t&&t,o=Object(r.a)(e,["mobile"]);return Object(f.d)(xe,Object(i.a)({skipFocusVisible:!0,mobile:n},o),Object(f.d)(I.h,{css:_e,"aria-hidden":!0}))},Le=n(93);function Se(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 0;\n\t\ttransform: translateY(30px);\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n"]);return Se=function(){return e},e}var Ie=Object(f.e)(Se()),ke=Object(v.A)(v.f,{displayName:"Invitation",section:!0,target:"efsb37y0"})("line-height:1.35;max-width:",(function(e){return e.maxWidth}),";width:100%;margin-bottom:8px;align-items:",(function(e){return e.reverse?"flex-end":"flex-start"}),";&:hover{",xe,"{opacity:1;}}",Le.a,",",v.c,"{color:",(function(e){return e.theme.colors.primaryTextColor}),";background-color:",(function(e){return e.theme.colors.surface}),";box-shadow:",(function(e){return e.theme.boxShadow.subtle}),";}",(function(e){var t=e.animated,n=e.theme;return t&&Object(f.c)("opacity:0;transform:translateY(30px);animation:",Ie," 300ms ",n.transitions.easings.smooth," forwards;animation-delay:400ms;")}),";"),Te=Object(v.A)(v.q,{target:"e1svly570"})((function(e){return e.theme.typography.basic})," color:",(function(e){return e.theme.colors.primaryTextColor}),";max-width:100%;margin-bottom:10px;cursor:pointer;box-shadow:none;"),Ae=Object(v.A)(v.c,{target:"e1r3j30a1"})("width:100%;box-shadow:",(function(e){return e.theme.boxShadow.subtle}),";transition:border-color 100ms ease-in-out;background-color:",(function(e){return e.theme.colors.surface}),";",(function(e){return"modern"===e.theme.name&&{padding:0}}),";"),ze=Object(v.A)(v.m,{target:"e1r3j30a0"})("padding:",Ce.f.space3,";"),Me=function(e){var t=e.children;return o.createElement(Ae,null,o.createElement(ze,null,t))},Pe=Object(v.A)(v.c,{target:"ejca6bd0"})("max-width:255px;cursor:pointer;background-color:",(function(e){return e.theme.colors.surface}),";box-shadow:",(function(e){return e.theme.boxShadow.floating}),";"),Re=function(e){var t=e.children,n=Object(r.a)(e,["children"]);return o.createElement(Pe,n,o.createElement(v.m,null,t))},Be=Object(v.A)("input",{target:"e19y96k30"})("width:",(function(e){return e.mobile?"290px":"240px"}),";margin:-8px;padding:14px 10px;",(function(e){var t=e.theme.isRtl?"left":"right";return Object(f.c)("margin-",t,":-40px;padding-",t,":40px;")}),";min-width:0;flex:1;outline:none;font-family:inherit;border:1px solid transparent;color:",(function(e){return e.theme.colors.primaryTextColor}),";background-color:",(function(e){return e.theme.colors.surface}),";",(function(e){return e.theme.typography.input}),";border-radius:",(function(e){return e.theme.borderRadius.xl}),";&::placeholder{color:",(function(e){return e.theme.colors.secondaryTextColor}),";}&:focus{border-color:",(function(e){return e.theme.colors.cta}),";}"),De=function(e){return Object(f.c)("display:flex;flex-shrink:0;color:",e.colors.ctaText,";background-color:",e.colors.cta,";transition:background-color 100ms ease-in-out;&:disabled{background-color:",e.colors.disabled,";color:",e.colors.disabledContrast,";}")},Ne=function(e){var t=e.disabled,n=e.mobile,o=e.children,a=e.onPress,c=Object(r.a)(e,["disabled","mobile","children","onPress"]);return Object(f.d)(I.s,Object(i.a)({skipFocusVisible:!0,type:"submit",disabled:t,mobile:n,css:De,onPress:a,"aria-label":"Send a message"},c),o)};var Fe=Object(v.A)(ke,{target:"e1u2equ40"})({name:"kvqlxk",styles:"width:255px"}),qe=function(e){var t=e.onClose,n=e.onAnimationStart,a=e.rowReverse,c=void 0!==a&&a,u=Object(r.a)(e,["onClose","onAnimationStart","rowReverse"]);return o.createElement(Fe,Object(i.a)({animated:!0,reverse:c},ne.b({onAnimationStart:n})),o.createElement(v.f,null,o.createElement(v.q,{reverse:c},o.createElement(Ee,ne.b({onClick:t}))),o.createElement(v.q,{reverse:c},o.createElement(Re,u,o.createElement(S.a,{width:"32px",height:"21px"})))))};var Ve=Object(v.A)("form",{target:"e1gikzvv0"})({name:"ti75j2",styles:"margin:0"}),Ue=Object(s.c)((function(e,t){var n=t.type,r=t.greetingEvent,i=function(t){return e.localize(t)},o=function(){return re.w(e)},a=function(t){switch(n){case"message_input":return s=t,void re.F(e,C.d,s);case"email_input":var i,o,a=null==(i=r.properties)||null==(o=i.card)?void 0:o.buttons.find((function(e){return"webview"===e.type}));if(!a)return;var c=new URL(a.value);return c.searchParams.set("email",t),u={url:c.toString(),height:a.webviewHeight},void re.J(e,u);default:return}var u,s};return function(e){var t="en"===e.getApplicationState("language")?"Type your email\u2026":i("forms_email").replace(":","");return{maximize:o,localize:i,onSubmit:a,emailPhrase:t,getMinimizedView:function(){return x.q(e)},updateMinimizedView:function(t,n){return re.S(e,t,n)}}}}))((function(e){var t,n=e.type,r=e.mobile,a=e.maximize,c=e.localize,u=e.onSubmit,s=e.emailPhrase,d=e.updateMinimizedView,l=e.getMinimizedView,f=e.animated,p=void 0!==f&&f,m=function(e){d({messageInput:e.target.value},{scheduleRerender:!1})},b=function(e,t,n){switch(e){case"message_input":var r=n("write_a_message");return{buttonIcon:o.createElement(I.L,null),inputProps:{placeholder:r,"aria-label":r}};case"email_input":return{buttonIcon:o.createElement(I.a,null),inputProps:{type:"email",placeholder:t,"aria-label":t}};default:return{buttonIcon:null,inputProps:{}}}}(n,s,c),h=b.inputProps,g=b.buttonIcon;return o.createElement(we,{animated:p,delay:750},o.createElement(Me,null,o.createElement(Ve,ne.b({onSubmit:function(e){e.preventDefault();var t=l().messageInput.trim();t&&(a(),d({messageInput:""}),u(t))}}),o.createElement(v.q,null,o.createElement(Be,Object(i.a)({mobile:r},h,ne.b({onKeyUp:m,onChange:m}),{value:l().messageInput})),o.createElement(Ne,{disabled:!(null==(t=l().messageInput)?void 0:t.trim()),"data-lc-prop":"disabled:!messageInput"},g)))))})),We=n(217),Ge=n(38).a?100:1200,He=function(e){var t=e.children,n=e.screenPosition,r=e.onClose,a=e.onPress,c=e.onShow,u=e.getMinimizedView,s=e.updateMinimizedView,l=u().showIndicator,f=Object(_.d)();return o.useEffect((function(){if("undefined"===typeof l&&(f.emit("resize-to-theme-size"),f.once("resize-to-theme-size-done",(function(){return s({showIndicator:!0})}))),l){var e=setTimeout((function(){f.emit("resize-to-theme-size"),f.once("resize-to-theme-size-done",(function(){s({showIndicator:!1}),setTimeout(c,0)}))}),Ge);return function(){return clearTimeout(e)}}}),[f,l,s,c]),l?o.createElement(qe,Object(i.a)({onClose:r,rowReverse:"right"===n},ne.b({onClick:a}),{onAnimationStart:Object(d.bb)((function(){return f.emit("resize-to-dimensions")}))})):"undefined"===typeof l?null:t},Ze=Object(s.c)((function(e,t){var n=t.id,r=e.getApplicationState("isPreview"),i=r?d.W:function(){re.t(e)},o=r?d.W:function(){re.p(e)},a=function(t){var n=t.event,r=t.button;re.r(e,n,r,!0)};return function(e){var t=e.getApplicationState().mobile,r=e.getEvent(C.d,n),c=Object(d.e)(r),u=x.vb(e,r);return r.properties.card&&r.properties.card.image&&(c.properties.card.image=Object(d.Y)(["link"],r.properties.card.image)),r.properties.text&&(c.properties.text=Object(d.mb)(200,r.properties.text)),{mobile:t,wasDisplayed:u,event:c,onClose:i,onShow:o,onActionButtonClick:a,screenPosition:x.w(e),rtl:e.getApplicationState("rtl"),getMinimizedView:function(){return x.q(e)},updateMinimizedView:function(t){return re.S(e,t)}}}}))((function(e){var t,n,r=e.wasDisplayed,a=e.onResize,c=e.event,u=e.mobile,s=e.screenPosition,f=e.onClose,p=e.onShow,m=e.onActionButtonClick,b=e.onPress,h=e.rtl,g=e.updateMinimizedView,O=e.getMinimizedView,y=Object(_.d)(),j=c.properties,w=j.quickReplies,C=j.addon,x=Object(l.c)((function(){return!r})),E=!!(null==c||null==(t=c.properties)||null==(n=t.card)?void 0:n.image),L=o.useMemo((function(){return w&&!Object(d.G)(w)}),[w]),S=o.useCallback((function(e){m({event:c.id,button:w[e]})}),[c.id,m,w]),I=o.createElement(ke,Object(i.a)({animated:x,reverse:"right"===s,maxWidth:"message"===c.type?"255px":"230px"},ne.b({onAnimationStart:Object(d.bb)((function(){return y.emit("resize-to-dimensions")}))})),o.createElement(v.q,{reverse:"right"===s},o.createElement(Ee,Object(i.a)({mobile:u,"aria-label":"Hide greeting"},ne.b({onClick:f})))),o.createElement(Te,Object(i.a)({reverse:"right"===s},ne.b({onClick:b})),o.createElement(We.a,{event:c,mobile:u,onActionButtonClick:m,onShowMoreButtonClick:b,rtl:h})),L&&o.createElement(v.q,{reverse:"right"===s},o.createElement(he.b,{"aria-labelledby":c.id,replies:w,onSelect:S})),C&&Object(d.E)("input",C)&&o.createElement(Te,{reverse:"right"===s,fullWidth:u&&E},o.createElement(Ue,{mobile:u,type:C,greetingEvent:c,animated:x})));return x?o.createElement(He,{screenPosition:s,onResize:a,onClose:f,onPress:b,onShow:p,updateMinimizedView:g,getMinimizedView:O},I):I})),Ye=n(119),Ke=n(53),Je=n(138);var Qe=Object(Ye.a)("button",{target:"e6evvm21"})("display:flex;align-items:center;justify-content:center;position:relative;border:0;background-color:transparent;cursor:pointer;padding:",(function(e){return e.theme.spaces.space5}),";border-radius:",(function(e){return e.theme.borderRadius.xl}),";"),Xe=Object(Ye.a)(Je.a,{target:"e6evvm20"})({name:"a4hmbt",styles:"position:absolute"}),$e=function(e){var t=e.delay,n=e.duration,i=Object(r.a)(e,["delay","duration"]),o=Object(p.g)(),c=Object(Ke.b)();return a.a.createElement(Qe,i,a.a.createElement(Xe,{size:"large",progress:c?100:{type:"auto",delay:t,duration:n},adjustToColor:"light"===o.variant?o.colors.grayscale[0]:void 0}),a.a.createElement(I.h,{size:24,color:o.colors.primaryTextColor}))},et=n(32);function tt(){var e=Object(O.a)(["\n\tfrom {\n transform: translateY(50px);\n\t\topacity: 0;\n\t\tborder-radius: ","px;\n }\n to {\n transform: translateY(0px);\n opacity: 1;\n border-radius: ",";\n }\n"]);return tt=function(){return e},e}function nt(){var e=Object(O.a)(["\n\tfrom {\n\t\tmax-width: calc(","px - 1em);\n opacity: 1;\n border-radius: ",";\n\t}\n\tto {\n\t max-width: ","px;\n opacity: 0;\n border-radius: ",";\n\t}\n"]);return nt=function(){return e},e}function rt(){var e=Object(O.a)(["\n\tfrom {\n\t\tmax-width: ","px;\n\t\topacity: 0;\n\t\tborder-radius: ","px;\n }\n to {\n max-width: calc(","px - 1em);\n opacity: 1;\n border-radius: ",";\n }\n"]);return rt=function(){return e},e}var it=Object(f.e)(rt(),et.g,et.g,et.e,et.d),ot=Object(f.e)(nt(),et.e,et.d,et.g,et.g),at=Object(f.e)(tt(),et.g,et.d),ct=n(224);var ut={name:"1m2k91r",styles:"right:0.5em;justify-content:space-between"},st={name:"14ltnho",styles:"left:0.5em;flex-direction:row-reverse;justify-content:flex-end"},dt=Object(v.A)("div",{target:"eepg5sj0"})("display:flex;opacity:0;pointer-events:none;position:absolute;background:",(function(e){return e.theme.colors.surface}),";border-radius:",(function(e){return e.theme.borderRadius.xxl}),";box-shadow:",(function(e){return e.theme.boxShadow.md}),";white-space:nowrap;overflow:hidden;cursor:default;z-index:2;",(function(e){return"left"===e.screenPosition?st:ut}),";",(function(e){var t=e.theme,n=e.transitionState,r=e.isPreview,i=e.wasOtherMinimizedElementPreviously;return"shown"===n?Object(f.c)("pointer-events:all;animation:",r?it:Object(f.c)(i?at:it,",",ot,";"),";animation-delay:",r?"0s":(i?0:et.b)+"ms, "+et.c+"ms",";animation-duration:",i?et.i:et.a,"ms,",et.a,"ms;animation-timing-function:",t.transitions.easings.swift,";animation-fill-mode:forwards;"):"closed"===n?Object(f.c)("animation:",ot,";animation-duration:",et.a,"ms;animation-timing-function:",t.transitions.easings.swift,";animation-fill-mode:forwards;"):void 0}),";"),lt=function(e){var t=e.sessions,n=e.screenPosition,o=Object(r.a)(e,["sessions","screenPosition"]),c=Object(_.d)(),u=a.a.useRef(0),s=c.getApplicationState("page"),d=Object(Ke.b)(),l=Boolean(c.getView("minimized").googleReviews);return a.a.createElement(dt,Object(i.a)({screenPosition:n,isPreview:d,wasOtherMinimizedElementPreviously:l},o,ne.b({onClick:function(){Object(re.w)(c)}})),a.a.createElement(ct.a,{sessions:t,url:s.url,screenPosition:n}),a.a.createElement($e,Object(i.a)({duration:et.k,delay:et.b+et.a},ne.b({onClick:function(){d||(window.clearTimeout(u.current),Object(re.h)(c,{transitionState:"closed"}),setTimeout((function(){Object(re.h)(c,{transitionState:"hidden"})}),et.a))}}),{"aria-label":"hide visitor counter"})))},ft=n(46);function pt(){var e=Object(O.a)(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n"]);return pt=function(){return e},e}function mt(){var e=Object(O.a)(["\n from {\n transform: translate(",", ","px);\n width: 30px;\n height: 30px;\n opacity: 0;\n }\n to {\n transform: translate(0, 0);\n width: ","px;\n height: 220px;\n opacity: 1;\n }\n"]);return mt=function(){return e},e}var bt=function(e,t,n){return Object(f.e)(mt(),function(e,t){return("right"===e?"-":"")+U(t,!1)/2+"px"}(t,n),ft.d,e)},vt=Object(f.e)(pt()),ht=n(225),gt=n(39);var Ot=Object(v.A)("div",{target:"e11wgx213"})({name:"1etdpvc",styles:"overflow-x:auto;display:flex"}),yt=Object(v.A)("button",{target:"e11wgx212"})("position:absolute;width:30px;height:30px;border-radius:50%;background:",(function(e){return e.theme.colors.floatSurface}),";color:",(function(e){return e.theme.colors.primaryTextColor}),";border:0;box-shadow:0 4px 12px rgba(0, 0, 0, 0.3);text-align:center;top:32%;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;outline:0;-webkit-transform:translate3d(0, 0, 0);&:hover{cursor:pointer;}svg{display:inline;}",(function(e){var t;return(t={})[e.variant]="0.5em",t}),";"),jt=Object(v.A)(gt.a,{target:"e11wgx211"})({name:"21xn5r",styles:"transform:rotate(180deg)"}),wt=Object(v.A)("div",{target:"e11wgx210"})({name:"pw7jst",styles:"position:relative;width:100%"}),Ct=function(e,t,n){return new Promise((function(r){e.emit("get-element-properties-request",["#"+t,n]),e.once("get-element-properties-response",(function(e){return r(e)}))}))},xt=function(e,t,n,r){var o;void 0===r&&(r=!0);var a=e.getView("minimized")[t];Object(re.S)(e,((o={})[t]=Object(i.a)({},a,n),o),{scheduleRerender:r})},_t=function(e){var t=e.children,n=e.storeName,r=e.galleryStyles,a=e.isMeasurable,c=e.onArrowClick,u=Object(_.d)(),s=u.getApplicationState().isPreview,l="carousel-gallery-"+n,p=u.getView("minimized"),m="carousel-"+n,b=p[m],v=function(e){null==c||c(e);var t,n={top:0,left:"right"===e?200:-200,behavior:"smooth"};s?null==(t=document.getElementById(l))||t.scrollBy(n):u.emit("call-element-method",["#"+l,"scrollBy",n])};return o.useEffect((function(){!a||b&&Object(d.C)("showButtons",b)||Ct(u,l,["scrollWidth","clientWidth"]).then((function(e){e.scrollWidth>e.clientWidth&&xt(u,m,{showButtons:!0})}))}),[b,m,l,a,u]),o.useEffect((function(){var e=null==b?void 0:b.scrollPosition;e&&u.emit("call-element-method",["#"+l,"scrollTo",e,0])}),[]),Object(f.d)(wt,null,(null==b?void 0:b.showButtons)&&Object(f.d)(yt,Object(i.a)({variant:"left","aria-hidden":!0,tabIndex:-1},ne.b({onClick:function(){return v("left")}})),Object(f.d)(jt,null)),Object(f.d)(Ot,Object(i.a)({id:l,css:r},ne.b({onScroll:function(){Ct(u,l,["scrollLeft"]).then((function(e){var t=e.scrollLeft;"number"===typeof t&&xt(u,m,{scrollPosition:t},!1)}))}})),o.Children.map(t,(function(e){return Object(f.d)("div",null,e)}))),(null==b?void 0:b.showButtons)&&Object(f.d)(yt,Object(i.a)({variant:"right","aria-hidden":!0,tabIndex:-1},ne.b({onClick:function(){return v("right")}})),Object(f.d)(gt.a,null)))},Et=n(15),Lt=n(196),St=Object(ie.g)(),It=Object(v.A)("div",{target:"edgbg0i3"})("width:200px;height:140px;border-radius:",(function(e){return e.theme.borderRadius.md}),";border:1px solid ",(function(e){return e.theme.colors.divider}),";overflow:hidden;transition:height 300ms ",(function(e){return e.theme.transitions.easings.swift}),";"),kt=Object(v.A)(v.h,{target:"edgbg0i2"})("width:100%;height:100%;object-fit:cover;transform:scale(1);transition:transform 300ms ",(function(e){return e.theme.transitions.easings.swift}),";will-change:transform;"),Tt=Object(v.A)("p",{target:"edgbg0i1"})("color:",(function(e){return e.theme.colors.primaryTextColor}),";font-size:",Object(Ce.e)(14),";margin-bottom:0;margin-top:6px;padding:0 12px;max-height:20px;max-width:100%;overflow:hidden;word-break:break-word;",Object(Lt.a)(2),";"),At=Object(f.c)(It,"{height:120px;}",Tt,"{max-height:40px;}"),zt=Object(v.A)("a",{target:"edgbg0i0"})("display:flex;text-decoration:none;text-align:left;flex-direction:column;max-width:212px;height:180px;cursor:pointer;text-decoration:none;transition-property:opacity,transform;transition-duration:300ms;transition-timing-function:",(function(e){return e.theme.transitions.easings.swift})," 0.2s;opacity:1;transform:scale(1);will-change:opacity,transform;padding:0 ",(function(e){return e.theme.spaces.space2})," 12px;",(function(e){return e.isMultiline&&St&&At}),";",(function(e){return e.isMultiline&&!St&&Object(f.c)("&:hover,:focus{",At,";}")})," &:hover{",kt,"{transform:scale(1.05);}}:focus{outline-offset:-2px;}"),Mt=function(e){var t=e.name,n=e.image,r=e.link,a=e.onClick,c=e.isPreview?r:Object(Et.d)(r,{widgetSource:"minimized"});return o.createElement(zt,Object(i.a)({isMultiline:t.length>27,href:c,target:"_parent",referrerpolicy:"origin"},ne.b({onClick:a})),o.createElement(It,null,o.createElement(kt,{src:n})),o.createElement(Tt,null,t))};Mt.parentStyles=Object(f.c)(">div:first-child{& ",zt,"{padding-left:8px;}}>div:last-child{",zt,"{padding-right:8px;}}&:hover{",zt,":not(:hover){opacity:0.6;transform:scale(0.97);}}");var Pt=Mt,Rt=n(183),Bt=Object(ie.g)(),Dt=Object(v.A)("div",{target:"e5hftou2"})("width:",(function(e){return e.width}),"px;background-color:",(function(e){return e.theme.colors.surface}),";border-radius:",(function(e){return e.theme.borderRadius.xxl}),";overflow:hidden;box-shadow:",(function(e){return e.theme.boxShadow.floating}),";",(function(e){var t=e.animation,n=e.width,r=e.screenPosition,i=e.theme;return"hide"===t?Object(f.c)("animation-name:",bt(n,r,Bt),";animation-duration:300ms;animation-iteration-count:1;animation-timing-function:",i.transitions.easings.swift,";animation-direction:reverse;animation-fill-mode:forwards;"):"show"===t?Object(f.c)("animation-name:",bt(n,r,Bt),";animation-duration:600ms;animation-iteration-count:1;animation-timing-function:",i.transitions.easings.swift,";animation-fill-mode:forwards;"):void 0}),";"),Nt=Object(v.A)("div",{target:"e5hftou1"})("display:flex;width:100%;flex-direction:column;opacity:",(function(e){return e.animation?0:1}),";",(function(e){var t=e.animation,n=e.theme;return t&&Object(f.c)("animation-name:",vt,";animation-duration:","show"===t?.4:.2,"s;animation-delay:","show"===t?.2:0,"s;animation-iteration-count:1;animation-timing-function:",n.transitions.easings.swift,";animation-fill-mode:forwards;animation-direction:","show"===t?"normal":"reverse",";")}),";"),Ft=Object(v.A)("div",{target:"e5hftou0"})("padding:",(function(e){return e.theme.spaces.space5}),";padding-bottom:",(function(e){return e.theme.spaces.space3}),";display:flex;justify-content:space-between;color:",(function(e){return e.theme.colors.primaryTextColor}),";"),qt=function(){var e=Object(_.d)(),t=e.getView("minimized").recommendations,n=e.getApplicationState(),r=n.clientWidth,a=n.config,c=n.recommendations,u=n.isPreview,s=function(e){var t=e.mobile,n=e.productsCount,r=e.clientWidth;if(!t)return 1===n?ft.h+2*ft.a:ft.b;var i=n*ft.h+(n-1)*ft.g+2*ft.a;return Math.min(i,r-(ft.e+2*ft.c))}({mobile:Bt,productsCount:c.products.length,clientWidth:r}),l=Object(Rt.b)(),f=function(n){if(u)return null==n||n.preventDefault(),void(null==n||n.stopPropagation());Object(re.f)(e,t.id),Object(re.S)(e,{recommendations:Object(i.a)({},t,{visible:!1,animation:"hide"}),resizeBubbleAnimation:"grow"})};return o.createElement(Dt,Object(i.a)({width:s,screenPosition:a.screenPosition,animation:t.animation},ne.b({onAnimationEnd:function(){Object(re.S)(e,{recommendations:Object(i.a)({},t,{animation:null})})}})),o.createElement(Nt,Object(i.a)({},ne.b({onAnimationEnd:d.W}),{animation:t.animation}),o.createElement(Ft,null,o.createElement(ht.a,null),o.createElement(I.s,Object(i.a)({"aria-label":"Close recommendations"},ne.b({onClick:function(){f(),u||l({name:"Product recommendations dismissed"})}})),o.createElement(I.h,{size:24}))),o.createElement(_t,{storeName:"recommendations",galleryStyles:Pt.parentStyles,isMeasurable:!t.animation,onArrowClick:function(e){return"right"===e&&l({name:"Product recommendations arrow clicked"})}},c.products.map((function(e){return o.createElement(Pt,Object(i.a)({},e,{key:e.id,onClick:f,isPreview:u}))})))))},Vt=n(33);function Ut(){var e=Object(O.a)(["\n\tfrom {\n opacity: 1;\n border-radius: ",";\n\t}\n\tto {\n opacity: 0;\n border-radius: ",";\n\t}\n"]);return Ut=function(){return e},e}function Wt(){var e=Object(O.a)(["\n\tfrom {\n\t\tmax-width: calc(","px - 1em);\n opacity: 1;\n border-radius: ",";\n\t}\n\tto {\n\t max-width: ","px;\n opacity: 0;\n border-radius: ",";\n\t}\n"]);return Wt=function(){return e},e}function Gt(){var e=Object(O.a)(["\n\tfrom {\n\t\tmax-width: ","px;\n\t\topacity: 0;\n\t\tborder-radius: ","px;\n }\n to {\n max-width: calc(","px - 1em);\n opacity: 1;\n border-radius: ",";\n }\n"]);return Gt=function(){return e},e}var Ht=Object(f.e)(Gt(),Vt.g,Vt.g,Vt.e,Vt.d),Zt=Object(f.e)(Wt(),Vt.e,Vt.d,Vt.g,Vt.g),Yt=Object(f.e)(Ut(),Vt.d,Vt.g),Kt=n(226);var Jt={name:"1m2k91r",styles:"right:0.5em;justify-content:space-between"},Qt={name:"14ltnho",styles:"left:0.5em;flex-direction:row-reverse;justify-content:flex-end"},Xt=Object(v.A)("div",{target:"e1wnle7r0"})("display:flex;opacity:0;pointer-events:none;position:absolute;background:",(function(e){return e.theme.colors.surface}),";border-radius:",(function(e){return e.theme.borderRadius.xxl}),";box-shadow:",(function(e){return e.theme.boxShadow.md}),";align-items:flex-start;white-space:nowrap;overflow:hidden;cursor:default;z-index:2;",(function(e){return"left"===e.screenPosition?Qt:Jt}),";",(function(e){var t=e.theme,n=e.transitionState,r=e.isPreview,i=e.isAnotherMinimizedElementComing;return"shown"===n?Object(f.c)("pointer-events:all;animation:",r?Ht:Object(f.c)(Ht,",",i?Yt:Zt,";"),";animation-delay:",r?"0s":Vt.b+"ms, "+Vt.c+"ms",";animation-duration:",Vt.a,"ms,",i?Vt.h:Vt.a,"ms;animation-timing-function:",t.transitions.easings.swift,";animation-fill-mode:forwards;"):"closed"===n?Object(f.c)("animation:",Zt,";animation-duration:",Vt.a,"ms;animation-timing-function:",t.transitions.easings.swift,";animation-fill-mode:forwards;"):void 0}),";"),$t=function(e){var t=e.data,n=e.screenPosition,o=Object(r.a)(e,["data","screenPosition"]),c=Object(_.d)(),u=a.a.useRef(0),s=Object(Ke.b)(),d=c.getView("minimized").eventsQueue.includes("visitorCounter");return a.a.createElement(Xt,Object(i.a)({screenPosition:n,isPreview:s,isAnotherMinimizedElementComing:d},o,ne.b({onClick:function(){Object(re.w)(c)}})),a.a.createElement(Kt.a,Object(i.a)({screenPosition:n},t)),a.a.createElement($e,Object(i.a)({duration:Vt.j,delay:Vt.b+Vt.a},ne.b({onClick:function(){s||(window.clearTimeout(u.current),Object(re.g)(c,{transitionState:"closed"}),setTimeout((function(){Object(re.g)(c,{transitionState:"hidden"})}),Vt.a))}}),{"aria-label":"hide google reviews"})))};function en(){var e=Object(O.a)(["\n\t0% {\n\t\topacity: 0;\n \t\ttransform: translate3d(0, 100%, 0);\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0%, 0);\n\t}\n"]);return en=function(){return e},e}var tn=Object(f.e)(en()),nn=function(e){var t=e.minimizedType,n=e.position,r=e.evenSidePadding;return"bar"===t?"0.8em 0.8em 0 0.8em":r?"0.5em 0.5em 1em 0.5em":"left"===n?"0.5em 1em 1em 0.5em":"0.5em 0.5em 1em 1em"},rn=Object(v.A)("div",{displayName:"Minimized",section:!0,target:"eqd5v0k1"})("max-width:100%;position:absolute;bottom:0;z-index:2;display:flex;align-items:flex-end;will-change:width,height,transform,opacity;backface-visibility:hidden;",(function(e){var t;return(t={padding:nn(e)})[e.position]=0,t.justifyContent="right"===e.position&&"flex-end",t})," ",(function(e){return e.animated&&Object(f.c)("animation:",tn," 200ms ease forwards;")}),";"),on=Object(v.A)(v.q,{target:"eqd5v0k0"})("position:relative;bottom:-",ft.d,"px;",(function(e){var t=e.side;return Object(f.c)(t,":",ft.e,"px;margin-","left"===t?"right":"left",":",ft.e,"px;")}),";"),an=Object(s.c)((function(e){var t,n=e.getApplicationState(),r=n.availability,i=n.eagerFetchingMode,o=n.hasUnseenEvents,a=n.mobile,c="online"===r,u=e.getChat(C.d).active,s=x.f(e),l=!s||x.V(e,s)?null:s.id,f=x.i("agentAvatar",e).enabled&&(c||u)?x.d(C.d,e):null,p=e.getLastEvent(C.d),m=p&&(null==(t=p.properties)?void 0:t.invitation)&&!p.seen,b=function(){return e.getView("minimized")},v=b().recommendations;return{mobile:a,visibleGreetingId:l,getMinimizedView:b,productRecommendationsVisible:(null==v?void 0:v.visible)||(null==v?void 0:v.animation),avatar:Object(d.z)(!1,"avatar",f),minimizedType:x.p(e),screenPosition:x.w(e),minimizedText:x.o(C.d,e),hasUnseenEvents:i?e.getUnseenCount(C.d)>0:m||o,unseenEventsCount:i?e.getUnseenCount(C.d):m||o?1:0,newMessageAlert:e.localize("new_message"),defaultWidget:e.getApplicationState().defaultWidget,visitorCounter:x.q(e).visitorCounter,googleReviews:x.q(e).googleReviews}}))((function(e){var t=e.dir,r=e.mobile,a=e.avatar,c=e.onMaximize,u=e.minimizedText,s=e.minimizedType,l=e.newMessageAlert,f=e.screenPosition,p=e.hasUnseenEvents,m=e.unseenEventsCount,b=e.visibleGreetingId,h=e.defaultWidget,O=e.productRecommendationsVisible,y=e.getMinimizedView,j=e.visitorCounter,w=e.googleReviews,C=e.innerRef,x=void 0===C?d.W:C,_=e.onResize,E=void 0===_?d.W:_,L=null,S=null;if(b&&(L=o.createElement(Ze,{key:b,id:b,onPress:c,onResize:E})),"circle"===s){var I="livechat"===h&&b&&r;S=o.createElement(ve,{avatar:a,onClick:c,hasUnseenEvents:p,unseenEventsCount:m,mobileBubble:I,screenPosition:f})}"bar"===s&&(S=o.createElement(ce,{text:u,hasUnseenEvents:p,unseenEventsCount:m,onClick:c}));var k,T,A=null;return"livechat"===h&&(r&&"circle"===s?(k="left"===f,T=[o.createElement(v.f,{key:"greeting-column"},o.createElement(v.q,null,L)),o.createElement(v.f,{key:"bubble-column",noShrink:!0},o.createElement(v.q,null,S))],A=k?T.reverse():T):A=o.createElement(v.f,null,o.createElement(v.q,null,L),o.createElement(v.q,{reverse:"right"===f},S))),"openwidget"===h&&(A=o.createElement(o.Fragment,null,o.createElement(v.f,null,O&&o.createElement(on,{side:f},o.createElement(qt,null)),o.createElement(v.q,null,S)),(null==j?void 0:j.isVisible)&&o.createElement(lt,Object(i.a)({screenPosition:f},j)),(null==w?void 0:w.isVisible)&&o.createElement($t,Object(i.a)({screenPosition:f},w)))),o.createElement(rn,Object(i.a)({dir:t,role:"main",ref:x,minimizedType:s,position:f,animated:!!y().animated,evenSidePadding:O},ne.b({onMouseOver:function(){Promise.all([n.e(3),n.e(6),n.e(2),n.e(4)]).then(n.bind(null,693)).catch(d.W),"openwidget"===h&&Promise.all([n.e(3),n.e(5),n.e(2)]).then(n.bind(null,694)).catch(d.W)}})),o.createElement(o.Fragment,null,p&&o.createElement(g.b,{key:m,message:l,"aria-live":"polite",clearOnUnmount:!0}),A))})),cn=n(95),un=n(159),sn=n(45);var dn=o.lazy((function(){return Object(sn.b)((function(){return Promise.all([n.e(3),n.e(6),n.e(2),n.e(4)]).then(n.bind(null,693))}))})),ln=Object(v.A)("div",{displayName:"ApplicationWrapper",target:"edvz03i2"})({name:"jcdn5o",styles:"position:absolute;top:0;left:auto;right:0;bottom:0;width:100%;height:100%;will-change:tranform,opacity;backface-visibility:hidden"}),fn=Object(v.A)("div",{displayName:"Maximized",target:"edvz03i1"})("position:relative;display:flex;flex-direction:column;min-width:0;height:100%;box-shadow:",(function(e){return e.theme.boxShadow.floating}),";overflow:hidden;background:",(function(e){return e.theme.colors.surface}),";isolation:isolate;",(function(e){return"dark"===e.theme.variant&&{colorScheme:"dark"}}),";",(function(e){var t=e.expandToEdge,n=e.theme;return{borderRadius:t?n.borderRadius.none+" !important":n.borderRadius.xxl}}),";"),pn=Object(v.A)("div",{target:"edvz03i0"})({name:"dhssmq",styles:"flex-grow:1;display:flex;align-items:center;justify-content:center"}),mn=function(){var e=Object(p.g)(),t=Object(_.d)().getApplicationState().defaultWidget,n=o.useState(!1),r=n[0],i=n[1];return Object(l.x)((function(){return i(!0)}),500),r?Object(f.d)(pn,null,"openwidget"===t?Object(f.d)(I.C,{size:64,css:v.z,color:e.colors.border}):Object(f.d)(I.w,{size:64,css:v.z,color:e.colors.border,backgroundColor:e.colors.surface})):null},bn=o.forwardRef((function(e,t){var n=e.dir,r=e.showMinimizedButton,a=e.isMainViewVisible,c=e.expandToEdge,u=e.onMinimizeButtonPress,s=e.onDragEnter,d=Object(Ke.b)()?{id:"chat-widget-maximized"}:{};return Object(f.d)(ln,Object(i.a)({},d,{dir:n,expandToEdge:c,ref:t,onDragEnter:s}),Object(f.d)(fn,{expandToEdge:c,role:"main"},a?Object(f.d)(o.Suspense,{fallback:Object(f.d)(mn,null)},Object(f.d)(dn,{showMinimizedButton:r,onMinimizeButtonPress:u})):Object(f.d)(mn,null)))})),vn=n(141);function hn(){var e=Object(O.a)(["\n\t&-enter {\n\t\ttransform: translate3d(","40%, 40%, 0) scale(0.1);\n\n\t\t[role='main'] > * {\n\t\t\topacity: 0;\n\t\t\ttransform: translate3d(0, 20%, 0);\n\t\t}\n\t}\n\n\t&-enter&-enter-active {\n\t\ttransform: translate3d(0%, 0%, 0) scale(1);\n\t\ttransition: transform ","ms ",";\n\n\t\t[role='main'] > * {\n\t\t\topacity: 1;\n\t\t\ttransform: translate3d(0, 0%, 0);\n\t\t\ttransition: opacity 160ms "," 270ms,\n\t\t\t\ttransform 160ms "," 270ms;\n\t\t}\n\t}\n\n\t&-exit {\n\t\ttransform: translate3d(0%, 0%, 0) scale(1);\n\t\topacity: 1;\n\t\t[role='main'] > * {\n\t\t\topacity: 1;\n\t\t\ttransform: translate3d(0, 0%, 0);\n\t\t}\n\t}\n\n\t&-exit&-exit-active {\n\t\topacity: 0;\n\t\ttransform: translate3d(","40%, 40%, 0) scale(0.1);\n\t\ttransition: transform ","ms ",", opacity 300ms ease;\n\t\t[role='main'] > * {\n\t\t\topacity: 0;\n\t\t\ttransform: translate3d(0, 10%, 0);\n\t\t\ttransition: opacity 160ms ",", transform 160ms ",";\n\t\t}\n\t}\n"]);return hn=function(){return e},e}function gn(){var e=Object(O.a)(["\n\t&-enter {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, 100%, 0);\n\t}\n\n\t&-enter&-enter-active {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0%, 0);\n\t\ttransition: opacity 140ms ease 200ms, transform 140ms ease 200ms;\n\t}\n\n\t&-exit {\n\t\topacity: 1;\n\t\ttransform: translate3d(0, 0%, 0);\n\t}\n\n\t&-exit&-exit-active {\n\t\topacity: 0;\n\t\ttransform: translate3d(0, 100%, 0);\n\t\ttransition: opacity 140ms ease, transform 140ms ease;\n\t}\n"]);return gn=function(){return e},e}var On=function(e){return e(gn())},yn=function(e,t,n){return e(hn(),"right"===t?"":"-",cn.a,n.transitions.easings.sharp,n.transitions.easings.sharp,n.transitions.easings.sharp,"right"===t?"":"-",cn.a,n.transitions.easings.sharp,n.transitions.easings.sharp,n.transitions.easings.sharp)};var jn=Object(s.c)((function(e){var t=function(t){t?Object(re.w)(e):Object(re.y)(e)};return function(e){var n=e.getApplicationState(),r=n.mobile,i=n.embedded,o=n.actingAsDirectLink,a=n.isInCustomContainer,c=n.rtl;return{embedded:i,mobile:r,expandToEdge:r||!i||a,setMaximizedState:t,visibilityState:e.getApplicationState("visibility").state,showMinimized:!o&&x.X(e),screenPosition:x.w(e),dir:c?"rtl":"ltr",showMinimizedButton:x.pb(e),setDropAreaVisibility:function(t){return e.setApplicationState({dropAreaVisible:t})},isFileUploadAvailable:x.jb(e)&&x.Q(e)}}}))((function(e){var t=e.embedded,n=e.expandToEdge,r=e.setMaximizedState,i=e.screenPosition,a=e.showMinimizedButton,c=e.showMinimized,u=e.onAnimationEnd,s=void 0===u?d.W:u,p=e.onMinimizeButtonPress,m=void 0===p?d.W:p,b=e.onMaximizeButtonPress,v=void 0===b?d.W:b,h=e.onMinimizedRef,g=void 0===h?d.W:h,O=e.onMinimizedResize,x=e.dir,_=e.visibilityState,E=e.setDropAreaVisibility,L=e.isFileUploadAvailable,S=o.useRef(),I=o.useRef(),k=Object(vn.b)().isDragNDropAllowed,T=Object(Ke.b)(),A=o.useState("maximized"===_),z=A[0],M=A[1],P=o.useState("maximized"===_),R=P[0],B=P[1],D=function(e){L&&k()&&(e.preventDefault(),e.stopPropagation(),E(!0))};return Object(l.p)((function(){if("maximized"===_){var e=setTimeout((function(){return B(!0)}),C.i);return function(){return clearTimeout(e)}}B(!1)}),[_]),o.createElement(f.a,null,(function(e){var u=e.css,l=e.theme;return o.createElement(y.a,{appear:!0,component:null},R&&o.createElement(j.a,{classNames:yn(u,i,l),nodeRef:I,onExited:s,onEntered:function(){return M(!0)},onExit:function(){return M(!1)},timeout:cn.a},o.createElement(bn,{dir:x,ref:I,isMainViewVisible:z,showMinimizedButton:a,expandToEdge:n,onMinimizeButtonPress:function(){t&&r(!1),m()},onDragEnter:D})),T&&Object(d.E)(_,["minimized","hidden"])&&c&&o.createElement(j.a,{classNames:On(u),nodeRef:S,onExited:s,timeout:cn.a},o.createElement(w.a,{autoFocus:Object(un.b)()},o.createElement(an,{dir:x,onMaximize:function(){r(!0),v()},innerRef:function(e){S.current=e,g(e)},onResize:O}))))}))})),wn=n(40),Cn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i-1&&(n.value=n.value.replace(/var\((.*)\)/g,t))}},An=function(e,t){void 0===t&&(t="lc");var n=Object(m.a)({key:t,container:e,stylisPlugins:[Tn(),b.l]});return n.compat=!0,n},zn=function(e){var t=e.store,n=e.onError,i=e.amplitude,a=Object(r.a)(e,["store","onError","amplitude"]),c=Object(l.c)((function(){return(null==i?void 0:i.AmplitudeProvider)||function(e){return e.children}})),d=Object(u.useFrame)(),f=!t||t.getApplicationState("isPreview"),m=Object(l.c)((function(){return An(d.document.head)})),b=o.createElement(Ke.a,{value:f},o.createElement(c,null,o.createElement(g.a,null,o.createElement(p.a,{value:m},o.createElement(kn,{isPreview:f},o.createElement(In,null,o.createElement(h.a,null,o.createElement(vn.a,null,o.createElement(jn,a)))))))));return t?o.createElement(Cn,{onError:n},o.createElement(s.b,{store:t},b)):o.createElement(Cn,{onError:n},b)};function Mn(e){var t=e.store.getApplicationState().rtl;return o.createElement(s.b,{store:e.store},o.createElement(kn,null,o.createElement(an,{dir:t?"rtl":"ltr",innerRef:e.onMinimizedRef,onResize:e.onMinimizedResize,onMaximize:function(){e.store.setApplicationState({pageFocused:!0,applicationFocused:!0,visibility:Object(i.a)({},e.store.getApplicationState("visibility"),{state:"maximized"})})}})))}t.b=function(e,t,n,r){var a=Object(i.a)({},t);if(n&&r){var u=function(){n.call("renderCrossFrameMarkup",r(o.createElement(Mn,a),Sn))};u();a.store.on("render-minimized",u),a.store.on("call-element-method",(function(e){var t=e[0],r=e[1],i=e.slice(2);n.call("callElementMethod",[t,r].concat(i))})),a.store.on("get-element-properties-request",(function(e){var t=e[0],r=e[1];n.call("getElementProperties",[t,r]).then((function(e){a.store.emit("get-element-properties-response",e)}))}))}c.render(o.createElement(zn,a),e)}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(111).f,i=n(114),o=n(68)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(91),i=n(237),o=n(110),a=n(245),c=n(176),u=n(247),s=n(246),d=n(84),l=n(129),f=n(340),p=n(187),m=n(341);e.exports=function(e,t,n,b,v,h){var g=r[e],O=g,y=v?"set":"add",j=O&&O.prototype,w={},C=function(e){var t=j[e];o(j,e,"delete"==e||"has"==e?function(e){return!(h&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof O&&(h||j.forEach&&!l((function(){(new O).entries().next()})))){var x=new O,_=x[y](h?{}:-0,1)!=x,E=l((function(){x.has(1)})),L=f((function(e){new O(e)})),S=!h&&l((function(){for(var e=new O,t=5;t--;)e[y](t,t);return!e.has(-0)}));L||((O=t((function(t,n){s(t,O,e);var r=m(new g,t,O);return void 0!=n&&u(n,v,r[y],r),r}))).prototype=j,j.constructor=O),(E||S)&&(C("delete"),C("has"),v&&C("get")),(S||_)&&C(y),h&&j.clear&&delete j.clear}else O=b.getConstructor(t,e,v,y),a(O.prototype,n),c.NEED=!0;return p(O,e),w[e]=O,i(i.G+i.W+i.F*(O!=g),w),h||b.setStrong(O,e,v),O}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";n.d(t,"a",(function(){return J})),n.d(t,"b",(function(){return ee})),n.d(t,"c",(function(){return re}));var r=n(47),i=n.n(r),o=n(60),a=n(2),c=n(36),u=n(43),s=n.n(u),d=n(65),l=n.n(d),f=n(61),p=n(127),m=n(64),b=n(54),v=n.n(b),h=n(72),g=n(88),O="call",y="emit",j="@@livechat/postmessenger",w="@@livechat/4way",C="handshake",x="handshake_echo",_="response",E=n(1),L=n(80),S=n(168),I=n(70),k=n(41),T=n(66),A=n.n(T),z=function(e){return!!e.data&&e.data[j]},M=Object(a.bb)((function(){return Object(m.a)(i()((function(e){return e.data.origin=e.origin,e.data}))(s()(z)(Object(k.a)(window,"message"))))}));function P(e){return function(t){return Object(I.a)(i()(e)(t))}}var R=0,B=function(e,t,n,r){return void 0===r&&(r=R++),Object(L.a)((function(){return n.request=r,t(n),v()(1)(P((function(e){if(!e.data.error)return Object(f.a)((function(){return e.data.result}));var t=e.data.result,n=t.real,r=t.error;if(!n)return Object(S.a)(r);var i=new Error(r.message);return Object(a.C)("code",r)&&(i.code=r.code),Object(S.a)(i)}))(s()((function(e){return e.type===_&&e.request===r}))(e)))}))},D=function(e,t,n,r,i){return void 0===i&&(i=null),Object(E.a)({},e,{call:function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c4?t.protocol:window.location.protocol)+"//"+(t.host.length?"80"===t.port||"443"===t.port?t.hostname:t.host:window.location.host)}(n.src):r,a=e.handshakeRetry,u=void 0===a?{}:a;void 0===t&&(t={});var d=G(t),b=d[0],O=d[1],y=q(),j=y[0],_=y[1],E=Z++,L=n.contentWindow,S=Object(c.a)(),I=function(e,t){return V(H,E,e,t)},k=function(e){L.postMessage(e,o)},T=Object(m.a)(Object(h.a)(j)(s()((function(e){return e.owner===H&&e.instance===E}))(M()))),A=D(S,T,I,k),z=Object(m.a)(Object(h.a)(j)(P((function(e){return w in e?i()((function(){return e.data}))(B(T,k,I(x))):Object(f.a)((function(){return e}))}))(v()(1)(Object(p.a)(u.count||5)(Object(g.a)(u.interval||500)(B(T,k,I(C,O),null))))))),R=W(A,S.emit,k,b);return l()(R)(P((function(){return T}))(z)),{api:A,destroy:_,handshake$:z}}var K=n(122);function J(e,t){void 0===e&&(e={});var n=(void 0===t?{}:t).handshakeTimeout,r=void 0===n?3e3:n;var u,d=(u=function(t){var n,r=window.parent,o=t.origin,a=function(e){r.postMessage(e,o)};return a(Object(E.a)({},t,{type:_,data:{error:!1,result:(n={},n["@@livechat/4way"]=!0,n.data=G(e)[1],n)}})),v()(1)(i()((function(e){return e.type=_,e.data={error:!1,result:null},a(e),t}))(s()((function(e){return e.owner===t.owner&&e.instance===t.instance&&e.type===x}))(M())))},function(e){return function(e){return function(t,n){if(0===t){var r,i=!1,o=[],a=function(){o.forEach((function(e){e(2)}))};e(0,(function(e,t){if(0===e)r=t,n(0,c);else if(1===e){var u=t,s=o.length;u(0,(function(e,t){if(0!==e)if(i)n(e,t);else{var r=o.splice(s,1);i=!0,c(2),o=r,n(e,t)}else o.push(t)}))}else 2===e&&t?(r=null,a(),n(2,t)):2===e&&(r=null,o.length||n(2))}))}function c(e){2===e&&(a(),r&&r(2))}}}(i()(u)(e))})(P((function(){return Object(g.a)(r)(Object(K.a)(50)(s()((function(e){return e.type===C}))(M())))}))(v()(1)(Object(m.a)(s()((function(){return"complete"===document.readyState}))(A()(Object(f.a)(a.W),Object(k.a)(document,"readystatechange")))))));return{promise:Object(o.a)(i()((function(t){var n=t.instance,r=t.owner,i=t.origin,o=G(e)[0],a=window.parent,u=Object(c.a)(),d=function(e){a.postMessage(e,i)},f=s()((function(e){return e.owner===r}))(M()),p=D(u,f,(function(e,t){return V(r,n,e,t)}),d,t.data),m=W(p,u.emit,d,o);return l()(m)(f),p}))(d))}}var Q=n(7),X=n(14),$=function(e,t){var n=document.createElement("iframe");return e.appendChild(n),n.src=t,n};function ee(e,t){var n,r=e.container,a=e.url,c=Object(Q.a)(e,["container","url"]),u=$(r,a),s=function(){Object(X.j)(u),n&&n.destroy()};return{destroy:s,frame:u,promise:Object(o.a)(v()(1)(i()((function(e){var t=n.api;return t.data=e,t.destroy=s,t.frame=u,t}))(P((function(){return(n=Y(Object(E.a)({},c,{frame:u}),t)).handshake$}))(Object(k.a)(u,"load")))))}}var te=n(67),ne=n.n(te);function re(e,t){var n,r=e.onConnected,a=Object(Q.a)(e,["onConnected"]),c=!a.frame,u=function(e){if(e.frame)return e.frame;var t=e.container,n=e.url;return $(t,n)}(a),s=q(),d=s[0],f=s[1],m=function(){c&&Object(X.j)(u),n?n.destroy():f()};return l()((function(e){e.destroy=m,e.frame=u,r(e)}))(Object(h.a)(d)(Object(p.a)()(P((function(){return ne()((function(e,r){var c=function(e,t){var n=Y(e,t),r=n.api,a=n.destroy,c=n.handshake$;return{destroy:a,promise:Object(o.a)(i()((function(e){return r.data=e,r.destroy=a,r}))(c))}}(Object(E.a)({},a,{frame:u}),t);return c.promise.then(e,r),n=c,c.destroy}))}))(Object(k.a)(u,"load"))))),{destroy:m,frame:u}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return C}));var r=n(1),i=n(7),o=n(12),a=n(3),c=n(0),u=n(645);function s(){var e=Object(o.a)(["\n\t&-enter,\n\t&-appear {\n\t\topacity: 0;\n\t\ttransform: translateY(8px);\n\t}\n\n\t&-enter-active,\n\t&-appear-active {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t\ttransition: opacity 100ms ease-in, transform 200ms ease-in;\n\t}\n\n\t&-exit {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n\n\t&-exit-active {\n\t\topacity: 0;\n\t\ttransform: translateY(8px);\n\t\ttransition: opacity 100ms ease-in, transform 200ms ease-in;\n\t}\n"]);return s=function(){return e},e}var d=function(e){return Object(a.c)("transition-delay:",e,"ms;")},l=function(e){return e(s())},f=function(e){var t=e.delay,n=void 0===t?0:t,o=Object(i.a)(e,["delay"]);return Object(a.d)(a.a,null,(function(e){var t=e.css;return Object(a.d)(u.a,Object(r.a)({},o,{timeout:200+n,classNames:l(t),css:d(n)}))}))};function p(){var e=Object(o.a)(["\n\ttransition-delay: ","ms;\n\n\t&-enter,\n\t&-appear {\n\t\topacity: 0;\n\t}\n\n\t&-enter-active,\n\t&-appear-active {\n\t\topacity: 1;\n\t\ttransition: opacity ","ms ease-out;\n\t}\n\n\t&-exit {\n\t\topacity: 1;\n\t}\n\n\t&-exit-active {\n\t\topacity: 0;\n\t\ttransition: opacity ","ms ease-out;\n\t}\n"]);return p=function(){return e},e}var m=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=200),e(p(),t,n,n)},b=function(e){var t=e.delay,n=void 0===t?0:t,o=e.length,s=void 0===o?200:o,d=Object(i.a)(e,["delay","length"]);return c.createElement(a.a,null,(function(e){var t=e.css;return c.createElement(u.a,Object(r.a)({},d,{timeout:s+n,classNames:m(t,n,s)}))}))};n(87);function v(){var e=Object(o.a)(["\n\t&-enter {\n\t\ttransform: translate(-50%, 20%);\n\t\topacity: 0;\n\t}\n\n\t&-enter-active,\n\t&-enter-done {\n\t\ttransition: transform ","ms ",",\n\t\t\topacity ","ms ",";\n\t\ttransform: translate(-50%, 0%);\n\t\topacity: 1;\n\t}\n\n\t&-exit {\n\t\ttransform: translate(-50%, 0%);\n\t\topacity: 1;\n\t}\n\n\t&-exit-active,\n\t&-exit-done {\n\t\ttransform: translate(-50%, 20%);\n\t\topacity: 0;\n\t\ttransition: transform ","ms ",",\n\t\t\topacity ","ms ease-out 50ms;\n\t}\n"]);return v=function(){return e},e}var h={enter:300,exit:300},g=function(e,t){return e(v(),300,t.transitions.easings.swift,300,t.transitions.easings.swift,300,t.transitions.easings.swift,150)},O=function(e){var t=e.nodeRef,n=Object(i.a)(e,["nodeRef"]);return c.createElement(a.a,null,(function(e){var i=e.css,o=e.theme;return c.createElement(u.a,Object(r.a)({},n,{nodeRef:t,classNames:g(i,o),timeout:h}))}))};function y(){var e=Object(o.a)(["\n\t\t&-enter,\n\t\t&-appear {\n\t\t\topacity: 0;\n\t\t\twidth: 50px;\n\t\t\tleft: 100px;\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t&-enter-active,\n\t\t&-appear-active,\n\t\t&-enter-done,\n\t\t&-appear-done {\n\t\t\twidth: 276px;\n\t\t\topacity: 1;\n\t\t\tleft: 25px;\n\t\t\ttransition: width 200ms "," 200ms, opacity 200ms ",",\n\t\t\t\tleft 400ms ",";\n\t\t\ttransition-delay: 100ms;\n\t\t\tpointer-events: auto;\n\t\t}\n\n\t\t&-exit {\n\t\t\twidth: 276px;\n\t\t\topacity: 1;\n\t\t\tleft: 25px;\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t&-exit-active,\n\t\t&-exit-done {\n\t\t\twidth: 50px;\n\t\t\topacity: 0;\n\t\t\tleft: ","px;\n\t\t\ttransition: width 150ms ",", opacity 300ms ",",\n\t\t\t\tleft 300ms ",";\n\t\t\tpointer-events: none;\n\t\t}\n\t"]);return y=function(){return e},e}var j={name:"1y45fw2",styles:"will-change:opacity,width,left"},w=function(e,t,n){return e(y(),t.transitions.easings.swift,t.transitions.easings.swift,t.transitions.easings.swift,n,t.transitions.easings.swift,t.transitions.easings.swift,t.transitions.easings.swift)},C=function(e){var t=e.children,n=e.isVisible,r=e.horizontalTravel;return c.createElement(a.a,null,(function(e){var i=e.css,o=e.theme;return c.createElement(u.a,{css:j,in:n,classNames:w(i,o,r),timeout:{enter:500,exit:300},unmountOnExit:!0,mountOnEnter:!0},t)}))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));var r=n(5),i=n(3),o=n(18),a=n(195),c=function(e){var t=e.color,n=e.backgroundColor,r=e.hoverBackgroundColor;return Object(i.c)("color:",t,";background-color:",n,";&:hover{color:",t,";background-color:",r,";}")},u=function(e,t){return"light"===e?Object(o.i)(.25,t):Object(o.e)(.03,t)},s=Object(r.A)(r.d,{target:"e1osmd0p1"})("padding:",(function(e){return e.theme.spaces.space3}),";padding-bottom:",(function(e){return"calc("+e.theme.spaces.space3+" + 1px)"}),";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:none!important;width:100%;display:block;outline-offset:2px;",(function(e){var t=e.theme,n=e.variant,r=e.disabled;return Object(i.c)(t.typography.input,";font-weight:700;border-radius:","modern"===t.name?4:6,"px!important;",(!n||"default"===n)&&c("light"===t.variant?{color:Object(o.i)(.6,t.colors.cta),backgroundColor:Object(o.j)(.95,t.colors.cta),hoverBackgroundColor:Object(o.j)(.85,t.colors.cta)}:{color:Object(o.d)(Object(o.e)(.2,t.colors.cta))>.015?Object(o.e)(.6,t.colors.cta):Object(o.e)(.2,t.colors.cta),backgroundColor:Object(o.f)(.2,t.colors.cta,t.colors.grayscale[900]),hoverBackgroundColor:Object(o.e)(.03,Object(o.f)(.2,t.colors.cta,t.colors.grayscale[900]))})," ","primary"===n&&c({color:t.colors.ctaText,backgroundColor:t.colors.cta,hoverBackgroundColor:u(t.variant,t.colors.cta)})," ","danger"===n&&c({color:t.colors.errorContrast,backgroundColor:t.colors.error,hoverBackgroundColor:u(t.variant,t.colors.error)})," ",r&&Object(a.b)(t),";")}),";"),d=Object(r.A)(r.d,{target:"e1osmd0p0"})("padding:6px 4px;width:100%;height:32px;overflow:hidden;font-weight:400;white-space:nowrap;text-overflow:ellipsis;border:none;",(function(e){var t=e.theme;return c({color:"light"===t.variant?Object(o.i)(.6,t.colors.cta):Object(o.e)(.2,t.colors.cta),backgroundColor:Object(o.e)(.02,t.colors.surfaceVariant),hoverBackgroundColor:Object(o.e)(.01,t.colors.surfaceVariant)})}),";")},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var r=n(7),i=n(1),o=n(0),a=n(87),c=n(5),u=n(3),s=n(21),d=n(138),l=function(e){return Object(u.c)("color:",e.colors.disabledContrast,";background-color:",e.colors.disabled,";")},f=function(e,t,n){return e?t.disabled:n},p=Object(c.A)("button",{displayType:"Button",target:"esv0owm2"})("font-size:inherit;font-weight:700;border:0;font-family:inherit;width:100%;max-width:320px;flex-shrink:0;cursor:pointer;display:flex;justify-content:center;align-items:center;outline-offset:2px;",(function(e){var t=e.capitalize,n=e.textColor,r=e.backgroundColor,o=e.disabled,a=e.theme,c=a.spaceBase,u=a.typography,s=a.borderRadius,d=a.colors;return Object(i.a)({borderRadius:s.md},u.basicContrast,{fontWeight:"bold",padding:1.5*c+"px",color:n,backgroundColor:""+f(o,d,r)},o?{"&:hover":{cursor:"default"}}:{},t?{textTransform:"capitalize"}:{})})," ",(function(e){var t=e.disabled,n=e.theme;return t&&l(n)}),";"),m=Object(c.A)("span",{target:"esv0owm1"})("display:flex;",(function(e){var t=e.theme;return Object(u.c)("margin-",t.isRtl?"right":"left",":0.5em;")}),";"),b=Object(c.A)("span",{target:"esv0owm0"})("");t.a=function(e){var t=e.children,n=e.destructive,c=e.disabled,u=void 0!==c&&c,l=e.pending,f=void 0!==l&&l,v=Object(r.a)(e,["children","destructive","disabled","pending"]),h=Object(a.g)(),g=n?h.colors.error:h.colors.cta,O=n?h.colors.errorContrast:h.colors.ctaText,y=Object(s.f)();return o.createElement(p,Object(i.a)({},y,v,{disabled:u||f,textColor:O,backgroundColor:g}),o.createElement(b,{ellipsis:!0},t),f&&o.createElement(m,{"aria-hidden":!0},o.createElement(d.a,{size:"small",adjustToColor:g})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),i=function(e){return void 0===e&&(e=3),Object(r.c)("-webkit-line-clamp:",e,";-webkit-box-orient:vertical;-webkit-box-pack:center;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;")}},function(e,t,n){"use strict";var r=n(0),i=n(11),o=Object(i.a)(r.createElement("path",{d:"M23.7,16.7l-6,6c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-0.9-0.1-1.3l0.1-0.1l4.3-4.3H10c-0.5,0-0.9-0.4-1-0.9L9,16 c0-0.5,0.4-0.9,0.9-1l0.1,0h10.6l-4.3-4.3c-0.4-0.4-0.4-0.9-0.1-1.3l0.1-0.1c0.4-0.4,0.9-0.4,1.3-0.1l0.1,0.1l6,6 C24.1,15.7,24.1,16.2,23.7,16.7L23.7,16.7z"}),{size:32,viewBox:"0 0 32 32"});t.a=o},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),i=n(0),o=n(87),a=n(5),c=n(2),u=n(7),s=n(93),d=n(29),l=function(e,t,n,i){return void 0===n&&(n=[]),e.buttons?Object(r.a)({},e,{buttons:e.buttons.filter((function(e){return 1520!==i||"cancel"!==e.type})).map((function(e,i){return Object(r.a)({},e,{disabled:Object(c.E)(i,n)},t&&{"aria-disabled":"true"})}))}):e},f=function(e){var t=e.card,n=e.disabledButtons,o=e.eventId,a=e.onActionButtonClick,c=e.onShowMoreButtonClick,f=Object(u.a)(e,["card","disabledButtons","eventId","onActionButtonClick","onShowMoreButtonClick"]),p=i.useState(!1),m=p[0],b=p[1],v=Object(d.c)((function(e){return e.getApplicationState("license")}));return i.useEffect((function(){if(m){var e=setTimeout((function(){b(!1)}),1e3);return function(){return clearTimeout(e)}}}),[m]),i.createElement(s.b,Object(r.a)({card:l(t,m,n,v),onButtonClick:function(e){m||(b(!0),a({button:t.buttons[e],event:o}))},onShowMoreButtonClick:c},f))},p=n(147),m=function(e){var t,n,a=Object(o.g)();return a&&"modern"===a.name&&(t=150,n=250),i.createElement(p.a,Object(r.a)({maxWidth:t,maxHeight:n},e,{withMargin:!0}))},b=n(50);var v=Object(a.A)("span",{target:"e1vbunaw0"})({name:"1nadnbu",styles:"font-size:2.5em"}),h=function(e){var t=e.event,n=e.radiusType;return i.createElement(a.c,{radiusType:n},i.createElement(a.m,null,i.createElement(v,null,i.createElement(b.a,null,t.properties.text))))},g=n(148),O=n(40),y=n(142),j=function(e){function t(){return e.apply(this,arguments)||this}Object(O.a)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t,n){n&&this._messageListContext.scrollToBottom()},n.getSnapshotBeforeUpdate=function(e){return!this.shouldRenderPreview(e)&&this.shouldRenderPreview()&&this._messageListContext.isScrollOnBottom()},n.shouldRenderPreview=function(e){return void 0===e&&(e=this.props),Boolean(e.urlPreview.properties.title)},n.render=function(){var e=this;return i.createElement(a.l,null,(function(t){e._messageListContext=t;var n=e.props,r=n.urlPreview.properties,o=n.radiusType,u=Object(c.db)(["url","link"],r.image);return e.shouldRenderPreview()?i.createElement(a.c,{radiusType:o},i.createElement(m,u),i.createElement(a.n,{subtitle:r.description,title:r.title})):i.createElement(a.c,{radiusType:o},i.createElement(y.a,{text:r.text}))}))},t}(i.Component),w=n(145),C=n(27);var x=Object(a.A)("div",{target:"e1kfksj70"})({name:"yoe8zv",styles:"margin:0;margin-bottom:4px;font-size:1em;font-weight:400"});t.a=function(e){var t=e.event,n=e.mobile,u=e.radiusType,s=e.disabledButtons,d=e.onActionButtonClick,l=e.onShowMoreButtonClick,p=e.onShow,b=void 0===p?c.W:p,v=e.rtl;Object(C.n)(b);var O=Object(o.g)();switch(t.type){case"carousel":return i.createElement(a.e,{dir:v?"rtl":"ltr",mobile:n,scrollableElementPadding:O.spaces.space5},t.properties.cards.map((function(e,n){return i.createElement(f,{key:n,card:e,eventId:t.id,disabledButtons:s,onActionButtonClick:d,TitleComponent:x,onShowMoreButtonClick:l})})));case"message":case"message_draft":return i.createElement(g.a,Object(r.a)({},t.properties,{own:t.own,radiusType:u,draft:"message_draft"===t.type&&null===t.serverId,eventId:t.properties.quickReplies&&t.id}));case"emoji":return i.createElement(h,{event:t,radiusType:u});case"rich_message":return i.createElement(f,{eventId:t.id,card:t.properties.card,disabledButtons:s,onActionButtonClick:d,onShowMoreButtonClick:l});case"sticker":return i.createElement(w.a,t.properties);case"url_preview":return i.createElement(j,{radiusType:u,urlPreview:t});case"image_preview":var y=Object(c.db)(["url","link","width","height","srcSet","alternativeText","name"],t.properties);return i.createElement(m,y)}return null}},function(e,t,n){"use strict";var r=n(5),i=Object(r.A)("div",{target:"e7yhn050"})("background-color:",(function(e){return e.theme.colors.surface}),";border-radius:",(function(e){return e.theme.borderRadius.xl}),";");t.a=i},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(19),o=function(e){var t=e.allowAutoplay,n=e.allowVideoConferencing,o=e.allowClipboardWrite,a=e.allowDisplayCapture,c=["clipboard-read; clipboard-write;"];if(t&&!Object(i.c)()&&c.push("autoplay;"),a&&c.push("display-capture *;"),n){var u={"display-capture *;":!Object(i.b)()||Object(i.a)()>=94,"picture-in-picture *;":"PictureInPictureEvent"in window,"fullscreen *;":"function"===typeof Element.prototype.requestFullscreen};c=[].concat(c,["microphone *;","camera *;"],Object.keys(Object(r.eb)(Boolean,u)))}return o&&!Object(i.c)()&&c.push("clipboard-write *;"),c.join(" ")}},function(e,t,n){"use strict";var r=n(269),i=n.n(r);t.a=function(){return new RegExp("("+i()().source+")")}},function(e,t,n){"use strict";var r=n(5);var i=Object(r.A)("p",{target:"ejp8d810"})({name:"oelr46",styles:"margin:1em 0"});t.a=i},function(e,t,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=n(3),c=n(5),u=n(15),s=function(e,t){var n=new URL(t);return"https://openwidget.com/verified?"+Object(u.a)({sessions:e,domain:n.hostname})},d=function(e){var t=e.width,n=e.height;return o.a.createElement("svg",{viewBox:"0 0 16 16",height:n,width:t},o.a.createElement("g",null,o.a.createElement("g",null,o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"idMxj8N4CLSg262406917",gradientTransform:"rotate(90, 0.5, 0.5)"},o.a.createElement("stop",{offset:"0",stopColor:"#77Cf9D",stopOpacity:"1"}),o.a.createElement("stop",{offset:"1",stopColor:"#268750",stopOpacity:"1"}))),o.a.createElement("path",{d:"M 16 8 C 16 7.453 15.692 6.838 15.076 6.156 C 14.614 5.644 14.343 4.988 14.308 4.299 C 14.262 3.38 14.045 2.728 13.658 2.342 C 13.272 1.955 12.62 1.738 11.701 1.692 C 11.012 1.657 10.356 1.387 9.844 0.925 C 9.162 0.308 8.547 0 8 0 C 7.454 0 6.843 0.306 6.166 0.92 C 5.653 1.385 4.994 1.657 4.303 1.692 C 3.382 1.738 2.728 1.955 2.342 2.342 C 1.955 2.728 1.74 3.379 1.696 4.297 C 1.663 4.989 1.391 5.649 0.926 6.163 C 0.307 6.842 0 7.454 0 8 C 0 8.546 0.308 9.158 0.923 9.839 L 0.925 9.837 C 1.39 10.351 1.662 11.011 1.696 11.703 C 1.74 12.621 1.955 13.273 2.342 13.658 C 2.728 14.045 3.38 14.262 4.299 14.308 C 4.988 14.343 5.644 14.613 6.156 15.075 C 6.838 15.692 7.453 16 8 16 C 8.547 16 9.162 15.692 9.844 15.076 C 10.356 14.614 11.012 14.343 11.701 14.308 C 12.62 14.262 13.272 14.045 13.658 13.658 C 14.045 13.272 14.262 12.62 14.308 11.701 C 14.343 11.012 14.613 10.356 15.075 9.844 C 15.692 9.162 16 8.547 16 8 Z",fill:"url(#idMxj8N4CLSg262406917)"})),o.a.createElement("path",{d:"M 6.86 11.278 L 3.94 8.36 L 5.041 7.252 L 6.806 9.016 L 10.552 4.934 L 11.7 5.994 Z",fill:"rgb(247,255,247)"})))},l=n(17),f=(n(57),Object(c.A)("div",{target:"e1arqr0l2"})("display:flex;flex-direction:column;min-width:0;overflow:hidden;gap:6px;padding:",(function(e){return e.theme.spaces.space5}),";",(function(e){var t=e.screenPosition,n=e.theme;return t&&Object(a.c)("padding-","left"===t?"right":"left",":",n.spaces.space6,";")}),";")),p=Object(c.A)("div",{target:"e1arqr0l1"})("text-align:left;color:",(function(e){return e.theme.colors.primaryTextColor}),";",(function(e){return e.theme.typography.caption}),";"),m=Object(c.A)("a",{target:"e1arqr0l0"})("border:0;padding:0;margin:0;text-decoration:none;background-color:transparent;display:flex;align-items:center;gap:",(function(e){return e.theme.spaces.space2}),";color:",(function(e){return e.theme.colors.secondaryTextColor}),";",(function(e){return e.theme.typography.caption}),";");t.a=function(e){var t=e.sessions,n=e.url,i=e.screenPosition;return o.a.createElement(f,{screenPosition:i},o.a.createElement(p,{ellipsis:!0},1===t?o.a.createElement(o.a.Fragment,null,o.a.createElement("strong",null,t," person")," is browsing this website now."):o.a.createElement(o.a.Fragment,null,o.a.createElement("strong",null,t," people")," are browsing this website now.")),o.a.createElement(m,Object(r.a)({href:s(t,n),rel:"noreferrer",target:"_blank"},l.b({onClick:function(e){e.stopPropagation()}})),o.a.createElement(d,{width:"16",height:"16","aria-hidden":!0})," ",o.a.createElement("span",null,"Verified by OpenWidget")))}},function(e,t,n){"use strict";var r=n(119),i=n(0),o=n(87),a=n(26),c=function(){return"dark"===Object(o.g)().variant?i.createElement(a.G,null):i.createElement(a.H,null)},u=Object(r.a)("h2",{target:"e185lfs00"})((function(e){return e.theme.typography.subheading}),";color:",(function(e){return e.theme.colors.primaryTextColor}),";display:flex;align-items:center;gap:6px;margin:0;");t.a=function(e){return i.createElement(u,e,i.createElement(c,null),"You may also be interested in")}},function(e,t,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=n(3),c=n(5),u=(n(57),n(39)),s=n(17),d=Object(c.A)("div",{target:"er6lqub1"})("display:flex;align-items:center;color:",(function(e){return e.theme.colors.caution}),";",(function(e){return e.theme.typography.caption}),";svg{height:40px;margin:-5px;}"),l=Object(c.A)("span",{target:"er6lqub0"})("color:",(function(e){return e.theme.colors.primaryTextColor}),";margin-left:",(function(e){return e.theme.spaces.space2}),";font-size:30px;font-weight:700;"),f=function(e){var t=e.rating,n=Math.floor(t),r=Number((t-n).toFixed(2)),i=n+(r>=.8?1:0),a=r>.2&&r<.8,c=Array.from({length:5},(function(e,t){var n={size:40,"aria-hidden":!0};return t0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(185),i=n(237),o=n(110),a=n(128),c=n(174),u=n(328),s=n(187),d=n(333),l=n(68)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",m="values",b=function(){return this};e.exports=function(e,t,n,v,h,g,O){u(n,t,v);var y,j,w,C=function(e){if(!f&&e in L)return L[e];switch(e){case p:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",_=h==m,E=!1,L=e.prototype,S=L[l]||L["@@iterator"]||h&&L[h],I=S||C(h),k=h?_?C("entries"):I:void 0,T="Array"==t&&L.entries||S;if(T&&(w=d(T.call(new e)))!==Object.prototype&&w.next&&(s(w,x,!0),r||"function"==typeof w[l]||a(w,l,b)),_&&S&&S.name!==m&&(E=!0,I=function(){return S.call(this)}),r&&!O||!f&&!E&&L[l]||a(L,l,I),c[t]=I,c[x]=b,h)if(y={values:_?I:C(m),keys:g?I:C(p),entries:k},O)for(j in y)j in L||o(L,j,y[j]);else i(i.P+i.F*(f||E),t,y);return y}},function(e,t,n){var r=n(91),i=n(97),o=n(128),a=n(110),c=n(173),u=function e(t,n,u){var s,d,l,f,p=t&e.F,m=t&e.G,b=t&e.P,v=t&e.B,h=m?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,g=m?i:i[n]||(i[n]={}),O=g.prototype||(g.prototype={});for(s in m&&(u=n),u)l=((d=!p&&h&&void 0!==h[s])?h:u)[s],f=v&&d?c(l,r):b&&"function"==typeof l?c(Function.call,l):l,h&&a(h,s,l,t&e.U),g[s]!=l&&o(g,s,f),b&&O[s]!=l&&(O[s]=l)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(112),i=n(329),o=n(242),a=n(241)("IE_PROTO"),c=function(){},u=function(){var e,t=n(278)("iframe"),r=o.length;for(t.style.display="none",n(332).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("