<!function(){var e={1175:function(e,t,n){"use strict";n.r(t);var o=n(1601),r=n.n(o),i=n(6314),_=n.n(i)()(r());_.push([e.id,".dfa50{\n\tbackground-color:transparent !important;\n\tborder:none !important;\n\tposition:fixed !important;\n\tbottom:0px !important;\n\tright:0px !important;\n\tbox-sizing:border-box !important;\n\tmin-width:auto;\n\tmax-height:100%;\n}\n\n.eac07{\n\tbottom:0px !important;\n\tleft:0px !important;\n}\n\n.faa07{\n\tbottom:0px !important;\n\tright:0px !important;\n}\n\n.bda45.d0b39{\n\twidth:90px !important;\n\theight:90px !important;\n}\n\n.bda45.e22f5{\n\twidth:72px !important;\n\theight:72px !important;\n}\n\n.bda45.d3396{\n\twidth:108px !important;\n\theight:108px !important;\n}\n\n.eca54{\n  width:90px !important;\n  height:0px !important;\n  visibility:hidden !important;\n}\n\n.c8d90.ce2e4{\n\twidth:320px !important;\n\theight:480px !important;\n}\n\n.c8d90.deef1{\n\twidth:400px !important;\n\theight:600px !important;\n}\n\n.c8d90.e57b4{\n\twidth:480px !important;\n\theight:720px !important;\n}\n\n.c8d90.bd30a{\n\twidth:100% !important;\n\theight:100% !important;\n}\n\n@media (max-width: 600px){\n\t.c8d90.ce2e4,\n\t.c8d90.deef1,\n\t.c8d90.e57b4{\n\t\twidth:100% !important;\n\t\theight:100% !important;\n\t}\n}\n\n.c8caa{\n\twidth:270px !important;\n\theight:180px !important;\n}\n\n.ce859{\n\twidth:270px !important;\n\theight:302px !important;\n}\n\n@media (max-width: 400px){\n\t.c8caa{\n\t\twidth:100% !important;\n\t}\n\t.ce859{\n\t\twidth:100% !important;\n\t}\n}\n",""]),_.locals={iframe:"dfa50",iframe_left:"eac07",iframe_right:"faa07",widget_close:"bda45",widget_close_medium:"d0b39",widget_close_small:"e22f5",widget_close_large:"d3396",widget_hidden:"eca54",widget_open:"c8d90",widget_open_small:"ce2e4",widget_open_medium:"deef1",widget_open_large:"e57b4",widget_open_fullscreen:"bd30a",popup_open:"c8caa",welcome_popup_open:"ce859"},t.default=_},7124:function(e,t,n){"use strict";n.r(t);var o=n(1601),r=n.n(o),i=n(6314),_=n.n(i)()(r());_.push([e.id,".b11ce{\n\tdisplay:none;\n\tposition:fixed;\n\tz-index:999;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\tpadding:1em;\n\tbackground:rgba(0, 0, 0, 0.8);\n}\n\n.d36f2{\n\tdisplay:block;\n\tanimation:db9df 200ms linear forwards;\n}\n\n.b11ce span{\n\tdisplay:block;\n\twidth:100%;\n\theight:100%;\n\tbackground-position:center;\n\tbackground-repeat:no-repeat;\n\tbackground-size:contain;\n}\n\n@keyframes db9df{\n\t0%{\n\t\topacity:0;\n\t}\n\t100%{\n\t\topacity:1;\n\t}\n}\n",""]),_.locals={lightbox:"b11ce",show:"d36f2",fadeinout:"db9df"},t.default=_},9229:function(e,t,n){"use strict";n.r(t);var o=n(1601),r=n.n(o),i=n(6314),_=n.n(i)()(r());_.push([e.id,"#dbee1{\n\tposition:fixed;\n\tz-index:2147483647 !important;\n}\n",""]),_.locals={rocketbot_widget_loader_v3:"dbee1"},t.default=_},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var _={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(_[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&_[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},1601:function(e){"use strict";e.exports=function(e){return e[1]}},5793:function(e,t,n){var o=n(5072),r=n(1175);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={injectType:"singletonStyleTag",insert:e=>{window.csp_nonce&&e.setAttribute("nonce",window.csp_nonce),document.head.appendChild(e)},singleton:!0};o(r,i);e.exports=r.locals||{}},9234:function(e,t,n){var o=n(5072),r=n(7124);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={injectType:"singletonStyleTag",insert:e=>{window.csp_nonce&&e.setAttribute("nonce",window.csp_nonce),document.head.appendChild(e)},singleton:!0};o(r,i);e.exports=r.locals||{}},8679:function(e,t,n){var o=n(5072),r=n(9229);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={injectType:"singletonStyleTag",insert:e=>{window.csp_nonce&&e.setAttribute("nonce",window.csp_nonce),document.head.appendChild(e)},singleton:!0};o(r,i);e.exports=r.locals||{}},5072:function(e,t,n){"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),_=[];function a(e){for(var t=-1,n=0;n<_.length;n++)if(_[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],l=t.base?i[0]+t.base:i[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var s=a(c),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(_[s].references++,_[s].updater(d)):_.push({identifier:c,updater:m(d,t),references:1}),o.push(c)}return o}function u(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var _=i(e.insert||"head");if(!_)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");_.appendChild(t)}return t}var c,s=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=s(t,r);else{var i=document.createTextNode(r),_=e.childNodes;_[t]&&e.removeChild(_[t]),_.length?e.insertBefore(i,_[t]):e.appendChild(i)}}function f(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var p=null,h=0;function m(e,t){var n,o,r;if(t.singleton){var i=h++;n=p||(p=u(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=u(t),o=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=a(n[o]);_[r].references--}for(var i=l(e,t),u=0;u<n.length;u++){var c=a(n[u]);0===_[c].references&&(_[c].updater(),_.splice(c,1))}n=i}}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,function(){"use strict";var e,t,o,r,i,_,a,l,u,c,s,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(t,n,o){var r,i,_,a={};for(_ in n)"key"==_?r=n[_]:"ref"==_?i=n[_]:a[_]=n[_];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===a[_]&&(a[_]=t.defaultProps[_]);return y(t,a,r,i,null)}function y(e,n,r,i,_){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==_?++o:_,__i:-1,__u:0};return null==_&&null!=t.vnode&&t.vnode(a),a}function w(e){return e.children}function b(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function C(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function x(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!E.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||_)(E)}function E(){var e,n,o,i,_,l,u,c;for(r.sort(a);e=r.shift();)e.__d&&(n=r.length,i=void 0,l=(_=(o=e).__v).__e,u=[],c=[],o.__P&&((i=m({},_)).__v=_.__v+1,t.vnode&&t.vnode(i),D(o.__P,i,_,o.__n,o.__P.namespaceURI,32&_.__u?[l]:null,u,null==l?S(_):l,!!(32&_.__u),c),i.__v=_.__v,i.__.__k[i.__i]=i,M(u,i,c),i.__e!=l&&C(i)),r.length>n&&r.sort(a));E.__r=0}function k(e,t,n,o,r,i,_,a,l,u,c){var s,p,h,m,v,g=o&&o.__k||f,y=t.length;for(n.__d=l,P(n,t,g),l=n.__d,s=0;s<y;s++)null!=(h=n.__k[s])&&(p=-1===h.__i?d:g[h.__i]||d,h.__i=s,D(e,h,p,r,i,_,a,l,u,c),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&U(p.ref,null,h),c.push(h.ref,h.__c||m,h)),null==v&&null!=m&&(v=m),65536&h.__u||p.__k===h.__k?l=N(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function P(e,t,n){var o,r,i,_,a,l=t.length,u=n.length,c=u,s=0;for(e.__k=[],o=0;o<l;o++)null!=(r=t[o])&&"boolean"!=typeof r&&"function"!=typeof r?(_=o+s,(r=e.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?y(null,r,null,null,null):h(r)?y(w,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?y(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=e,r.__b=e.__b+1,i=null,-1!==(a=r.__i=T(r,n,_,c))&&(c--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&s--,"function"!=typeof r.type&&(r.__u|=65536)):a!==_&&(a==_-1?s--:a==_+1?s++:(a>_?s--:s++,r.__u|=65536))):r=e.__k[o]=null;if(c)for(o=0;o<u;o++)null!=(i=n[o])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),A(i,i))}function N(e,t,n){var o,r;if("function"==typeof e.type){for(o=e.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=e,t=N(o[r],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=S(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function T(e,t,n,o){var r=e.key,i=e.type,_=n-1,a=n+1,l=t[n];if(null===l||l&&r==l.key&&i===l.type&&!(131072&l.__u))return n;if(o>(null==l||131072&l.__u?0:1))for(;_>=0||a<t.length;){if(_>=0){if((l=t[_])&&!(131072&l.__u)&&r==l.key&&i===l.type)return _;_--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&r==l.key&&i===l.type)return a;a++}}return-1}function H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function R(e,t,n,o,r){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||H(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||H(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?o?n.u=o.u:(n.u=l,e.addEventListener(t,i?c:u,i)):e.removeEventListener(t,i?c:u,i);else{if("http://www.w3.org/2000/svg"==r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function I(e){return function(n){if(this.l){var o=this.l[n.type+e];if(null==n.t)n.t=l++;else if(n.t<o.u)return;return o(t.event?t.event(n):n)}}}function D(e,n,o,r,i,_,a,l,u,c){var s,d,f,p,v,g,y,S,C,x,E,P,N,O,T,H,R=n.type;if(void 0!==n.constructor)return null;128&o.__u&&(u=!!(32&o.__u),_=[l=n.__e=o.__e]),(s=t.__b)&&s(n);e:if("function"==typeof R)try{if(S=n.props,C="prototype"in R&&R.prototype.render,x=(s=R.contextType)&&r[s.__c],E=s?x?x.props.value:s.__:r,o.__c?y=(d=n.__c=o.__c).__=d.__E:(C?n.__c=d=new R(S,E):(n.__c=d=new b(S,E),d.constructor=R,d.render=W),x&&x.sub(d),d.props=S,d.state||(d.state={}),d.context=E,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),C&&null==d.__s&&(d.__s=d.state),C&&null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,R.getDerivedStateFromProps(S,d.__s))),p=d.props,v=d.state,d.__v=n,f)C&&null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),C&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(C&&null==R.getDerivedStateFromProps&&S!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,E),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,E)||n.__v===o.__v)){for(n.__v!==o.__v&&(d.props=S,d.state=d.__s,d.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some((function(e){e&&(e.__=n)})),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,E),C&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,g)}))}if(d.context=E,d.props=S,d.__P=e,d.__e=!1,N=t.__r,O=0,C){for(d.state=d.__s,d.__d=!1,N&&N(n),s=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do{d.__d=!1,N&&N(n),s=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++O<25);d.state=d.__s,null!=d.getChildContext&&(r=m(m({},r),d.getChildContext())),C&&!f&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(p,v)),k(e,h(H=null!=s&&s.type===w&&null==s.key?s.props.children:s)?H:[H],n,o,r,i,_,a,l,u,c),d.base=n.__e,n.__u&=-161,d.__h.length&&a.push(d),y&&(d.__E=d.__=null)}catch(e){if(n.__v=null,u||null!=_){for(n.__u|=u?160:128;l&&8===l.nodeType&&l.nextSibling;)l=l.nextSibling;_[_.indexOf(l)]=null,n.__e=l}else n.__e=o.__e,n.__k=o.__k;t.__e(e,n,o)}else null==_&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=L(o.__e,n,o,r,i,_,a,u,c);(s=t.diffed)&&s(n)}function M(e,n,o){n.__d=void 0;for(var r=0;r<o.length;r++)U(o[r],o[++r],o[++r]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function L(n,o,r,i,_,a,l,u,c){var s,f,p,m,g,y,w,b=r.props,C=o.props,x=o.type;if("svg"===x?_="http://www.w3.org/2000/svg":"math"===x?_="http://www.w3.org/1998/Math/MathML":_||(_="http://www.w3.org/1999/xhtml"),null!=a)for(s=0;s<a.length;s++)if((g=a[s])&&"setAttribute"in g==!!x&&(x?g.localName===x:3===g.nodeType)){n=g,a[s]=null;break}if(null==n){if(null===x)return document.createTextNode(C);n=document.createElementNS(_,x,C.is&&C),u&&(t.__m&&t.__m(o,a),u=!1),a=null}if(null===x)b===C||u&&n.data===C||(n.data=C);else{if(a=a&&e.call(n.childNodes),b=r.props||d,!u&&null!=a)for(b={},s=0;s<n.attributes.length;s++)b[(g=n.attributes[s]).name]=g.value;for(s in b)if(g=b[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=g;else if(!(s in C)){if("value"==s&&"defaultValue"in C||"checked"==s&&"defaultChecked"in C)continue;R(n,s,null,g,_)}for(s in C)g=C[s],"children"==s?m=g:"dangerouslySetInnerHTML"==s?f=g:"value"==s?y=g:"checked"==s?w=g:u&&"function"!=typeof g||b[s]===g||R(n,s,g,b[s],_);if(f)u||p&&(f.__html===p.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),o.__k=[];else if(p&&(n.innerHTML=""),k(n,h(m)?m:[m],o,r,i,"foreignObject"===x?"http://www.w3.org/1999/xhtml":_,a,l,a?a[0]:r.__k&&S(r,0),u,c),null!=a)for(s=a.length;s--;)v(a[s]);u||(s="value","progress"===x&&null==y?n.removeAttribute("value"):void 0!==y&&(y!==n[s]||"progress"===x&&!y||"option"===x&&y!==b[s])&&R(n,s,y,b[s],_),s="checked",void 0!==w&&w!==n[s]&&R(n,s,w,b[s],_))}return n}function U(e,n,o){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,o)}}function A(e,n,o){var r,i;if(t.unmount&&t.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||U(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){t.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],n,o||"function"!=typeof e.type);o||v(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function F(n,o,r){var i,_,a,l;t.__&&t.__(n,o),_=(i="function"==typeof r)?null:r&&r.__k||o.__k,a=[],l=[],D(o,n=(!i&&r||o).__k=g(w,null,[n]),_||d,d,o.namespaceURI,!i&&r?[r]:_?null:o.firstChild?e.call(o.childNodes):null,a,!i&&r?r:_?_.__e:o.firstChild,i,l),M(a,n,l)}function j(e,t){F(e,t,j)}function $(t,n,o){var r,i,_,a,l=m({},t.props);for(_ in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)"key"==_?r=n[_]:"ref"==_?i=n[_]:l[_]=void 0===n[_]&&void 0!==a?a[_]:n[_];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),y(t.type,l,r||t.key,i||t.ref,null)}e=f.slice,t={__e:function(e,t,n,o){for(var r,i,_;t=t.__;)if((r=t.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),_=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),_=r.__d),_)return r.__E=r}catch(t){e=t}throw e}},o=0,b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},b.prototype.render=w,r=[],_="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,l=0,u=I(!1),c=I(!0),s=0;var z,B,q,G,V=0,J=[],X=t,Z=X.__b,Y=X.__r,K=X.diffed,Q=X.__c,ee=X.unmount,te=X.__;function ne(e,t){X.__h&&X.__h(B,e,V||t),V=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function oe(e){return V=1,re(we,e)}function re(e,t,n){var o=ne(z++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):we(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=B,!B.u)){var r=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var _=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(_=!0)}})),!(!_&&o.__c.props===e)&&(!i||i.call(this,e,t,n))};B.u=!0;var i=B.shouldComponentUpdate,_=B.componentWillUpdate;B.componentWillUpdate=function(e,t,n){if(this.__e){var o=i;i=void 0,r(e,t,n),i=o}_&&_.call(this,e,t,n)},B.shouldComponentUpdate=r}return o.__N||o.__}function ie(e,t){var n=ne(z++,3);!X.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function _e(e,t){var n=ne(z++,4);!X.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function ae(e){return V=5,ue((function(){return{current:e}}),[])}function le(e,t,n){V=6,_e((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ue(e,t){var n=ne(z++,7);return ye(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ce(e,t){return V=8,ue((function(){return e}),t)}function se(e){var t=B.context[e.__c],n=ne(z++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(B)),t.props.value):e.__}function de(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function fe(){var e=ne(z++,11);if(!e.__){for(var t=B.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function pe(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ve),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){B=null,Z&&Z(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),te&&te(e,t)},X.__r=function(e){Y&&Y(e),z=0;var t=(B=e.__c).__H;t&&(q===B?(t.__h=[],B.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(ve),t.__h.forEach(ge),t.__h=[],z=0)),q=B},X.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&G===X.requestAnimationFrame||((G=X.requestAnimationFrame)||me)(pe)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),q=B=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ve),e.__h=e.__h.filter((function(e){return!e.__||ge(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),Q&&Q(e,t)},X.unmount=function(e){ee&&ee(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ve(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var he="function"==typeof requestAnimationFrame;function me(e){var t,n=function(){clearTimeout(o),he&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);he&&(t=requestAnimationFrame(n))}function ve(e){var t=B,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),B=t}function ge(e){var t=B;e.__c=e.__(),B=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function be(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}function Se(e,t){this.props=e,this.context=t}(Se.prototype=new b).isPureReactComponent=!0,Se.prototype.shouldComponentUpdate=function(e,t){return be(this.props,e)||be(this.state,t)};var Ce=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ce&&Ce(e)};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ee(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var o=e(t,n);return t.ref=n,o}return t.$$typeof=xe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ke=function(e,t){return null==e?null:O(O(e).map(t))},Pe={map:ke,forEach:ke,count:function(e){return e?O(e).length:0},only:function(e){var t=O(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:O},Ne=t.__e;t.__e=function(e,t,n,o){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Ne(e,t,n,o)};var Oe=t.unmount;function Te(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Te(e,t,n)}))),e}function He(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return He(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Re(){this.__u=0,this.t=null,this.__b=null}function Ie(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function De(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Oe&&Oe(e)},(Re.prototype=new b).__c=function(e,t){var n=t.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=Ie(o.__v),i=!1,_=function(){i||(i=!0,n.__R=null,r?r(a):a())};n.__R=_;var a=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=He(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.t.pop();)t.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(_,_)},Re.prototype.componentWillUnmount=function(){this.t=[]},Re.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Te(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&g(w,null,e.fallback);return r&&(r.__u&=-33),[g(w,null,t.__a?null:e.children),r]};var Me=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Le(e){return this.getChildContext=function(){return e.context},e.children}function Ue(e){var t=this,n=e.i;t.componentWillUnmount=function(){F(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),F(g(Le,{context:t.context},e.__v),t.l)}(De.prototype=new b).__a=function(e){var t=this,n=Ie(t.__v),o=t.o.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),Me(t,e,o)):r()};n?n(i):i()}},De.prototype.render=function(e){this.u=null,this.o=new Map;var t=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},De.prototype.componentDidUpdate=De.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Me(e,n,t)}))};var Ae="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,We=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Fe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,je=/[A-Z0-9]/g,$e="undefined"!=typeof document,ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Be=t.event;function qe(){}function Ge(){return this.cancelBubble}function Ve(){return this.defaultPrevented}t.event=function(e){return Be&&(e=Be(e)),e.persist=qe,e.isPropagationStopped=Ge,e.isDefaultPrevented=Ve,e.nativeEvent=e};var Je,Xe={enumerable:!1,configurable:!0,get:function(){return this.class}},Ze=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={},r=-1===n.indexOf("-");for(var i in t){var _=t[i];if(!("value"===i&&"defaultValue"in t&&null==_||$e&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===_?_="":"translate"===a&&"no"===_?_=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||ze(t.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":Fe.test(i)&&(i=a):a=i="oninput":r&&We.test(i)?i=i.replace(je,"-$&").toLowerCase():null===_&&(_=void 0),"oninput"===a&&o[i=a]&&(i="oninputCapture"),o[i]=_}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=O(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=O(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",Xe)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=Ae,Ze&&Ze(e)};var Ye=t.__r;t.__r=function(e){Ye&&Ye(e),Je=e.__c};var Ke=t.diffed;t.diffed=function(e){Ke&&Ke(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Je=null};var Qe={ReactCurrentDispatcher:{current:{readContext:function(e){return Je.__n[e.__c].props.value},useCallback:ce,useContext:se,useDebugValue:de,useDeferredValue:nt,useEffect:ie,useId:fe,useImperativeHandle:le,useInsertionEffect:rt,useLayoutEffect:_e,useMemo:ue,useReducer:re,useRef:ae,useState:oe,useSyncExternalStore:it,useTransition:ot}}};function et(e){return!!e&&e.$$typeof===Ae}function tt(e){e()}function nt(e){return e}function ot(){return[!1,tt]}var rt=_e;function it(e,t){var n=t(),o=oe({h:{__:n,v:t}}),r=o[0].h,i=o[1];return _e((function(){r.__=n,r.v=t,_t(r)&&i({h:r})}),[e,n,t]),ie((function(){return _t(r)&&i({h:r}),e((function(){_t(r)&&i({h:r})}))}),[e]),n}function _t(e){var t,n,o=e.v,r=e.__;try{var i=o();return!((t=r)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var at={useState:oe,useId:fe,useReducer:re,useEffect:ie,useLayoutEffect:_e,useInsertionEffect:rt,useTransition:ot,useDeferredValue:nt,useSyncExternalStore:it,startTransition:tt,useRef:ae,useImperativeHandle:le,useMemo:ue,useCallback:ce,useContext:se,useDebugValue:de,version:"18.3.1",Children:Pe,render:function(e,t,n){return null==t.__k&&(t.textContent=""),F(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(F(null,e),!0)},createPortal:function(e,t){var n=g(Ue,{__v:e,i:t});return n.containerInfo=t,n},createElement:g,createContext:function(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return et(e)?$.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:w,isValidElement:et,isElement:et,isFragment:function(e){return et(e)&&e.type===w},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:b,PureComponent:Se,memo:function(e,t){function n(e){var n=this.props.ref,o=n==e.ref;return!o&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!o:be(this.props,e)}function o(t){return this.shouldComponentUpdate=n,g(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o},forwardRef:Ee,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:w,Suspense:Re,SuspenseList:De,lazy:function(e){var t,n,o;function r(r){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return g(n,r)}return r.displayName="Lazy",r.__f=!0,r},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qe};const lt=e=>{const t=document.getElementById(e);if(!t)return null;return t.src.replace(/^[^?]+\??/,"")},ut=e=>{const t={};if(!e)return t;const n=e.split(/[;&]/);for(let e=0;e<n.length;e+=1){const o=n[e].split("=");if(!o||2!==o.length)continue;const r=unescape(o[0]);let i=unescape(o[1]);i=i.replace(/\+/g," "),t[r]=i}return t},ct=()=>{let e=lt("rocketbots__widget");e||(e=lt("respondio__widget")),e||(e=lt("webchat__widget")),e||console.error("Webchat widget failed to initialize. Please contact support.");return ut(e)};var st={referral:null,isFullscreen:!1,companyName:"Respondio",greetingPopupDelay:5e3,aboutLink:"https://respond.io",title:"",tagline:"Let's chat!",branding:!0,isFormRequired:!1,formFields:[],btnGetStartedText:"Get Started",popupMessage:"",placeholderText:"Type a message...",restrictAttachments:!1,mainColor:"#3e82f7",textColor:null,iconColor:"#ffffff",verticalPosition:0,horizontalPosition:0,fontFamily:"Roboto",widgetPosition:"right",widgetSize:"standard",displayOption:"both",shouldHideWidget:!1,launcherIcon:"l1",selectedMultiChannel:[]},dt="RESPONDIO_WIDGET_OPEN",ft="RESPONDIO_WIDGET_CLOSE",pt="RESPONDIO_POPUP_OPEN",ht="RESPONDIO_WELCOME_OPEN",mt="RESPONDIO_WIDGET_LOADED",vt="RESPONDIO_INIT",gt="RESPONDIO_HASH_CHANGE",yt="RESPONDIO_PAGE_CHANGE",wt="RESPONDIO_ACTION_WIDGET_OPEN",bt="RESPONDIO_ACTION_WIDGET_CLOSE",St="RESPONDIO_OPEN_LIGHTBOX",Ct="RESPONDIO_MESSAGE_SENT",xt="#respondio_widget",Et="#rocketbots_widget",kt="#webchat_widget",Pt=n(9234),Nt=n.n(Pt),Ot=Ee((function(e,t){const[n,o]=oe("");le(t,(()=>({show(e){o(e)}})));const r=[Nt().lightbox,n&&Nt().show].filter(Boolean).join(" ");return at.createElement("div",{className:r,onClick:()=>o("")},at.createElement("span",{style:{backgroundImage:`url('${n}')`}}))})),Tt=n(5793),Ht=n.n(Tt),Rt={subscribe(e,t){return"function"!=typeof t?console.error("Function type callback required"):(e in this.subscribers||(this.subscribers[e]=new Set),this.subscribers[e].add(t),()=>this.subscribers[e].delete(t))},publish(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e in this.subscribers&&this.subscribers[e].forEach((e=>e(t)))}};function It(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;window.$__iframe.postMessage({event:e,payload:t},"*")}var Dt=n(8679),Mt=n.n(Dt);const Lt="chat:open",Ut="chat:closed",At="chat:opened",Wt="chat:closed",Ft="chat:sent",jt={state:{},subscribers:{},do(e){switch(e){case"chat:open":return It(wt);case"chat:close":return It(bt);case"chat:reinitialize":return(()=>{const e=ct()&&ct().attach,t=document.querySelector(e);if(!e||!t)return;const n=t.querySelector("div");n&&at.unmountComponentAtNode(n);const o=document.createElement("div");o.setAttribute("id",Mt().rocketbot_widget_loader_v3),t.append(o),at.render(at.createElement(Vt,null),o)})()}},on(e,t){switch(e){case At:case Wt:case Ft:Rt.subscribe.call(this,e,t)}},is(e){return this.state[e]}};function $t(e){Object.keys(e).map((t=>{window.$respond.state[t]=e[t]}))}function zt(e){Rt.publish.call(window.$respond,e)}window.$respond=jt,window.$__respond=jt;class Bt extends b{constructor(e){super(e),this.state={widgetClass:e.config.attach?Ht().widget_open:Ht().widget_close,widgetState:e.config.attach?"widgetOpen":"widgetClose",isScreenSmall:!1},$t({[Lt]:!1,[Ut]:!0}),this.receiveMessage=this.receiveMessage.bind(this),this.postConfig=this.postConfig.bind(this),this.handleHashChange=this.handleHashChange.bind(this),this.handlePageChange=this.handlePageChange.bind(this),this.onScreenSizeChange=this.onScreenSizeChange.bind(this)}componentDidUpdate(e){const{config:t}=this.props;e.config.init!==t.init&&this.postConfig()}componentDidMount(){const e=window.matchMedia("(max-width: 600px)");this.onScreenSizeChange(e),e.addEventListener("change",this.onScreenSizeChange),window.addEventListener("message",this.receiveMessage,!1),window.addEventListener("focus",this.handlePageChange),window.addEventListener("hashchange",this.handleHashChange,!1),function(e){window.$__iframe=e}(this.iframe.contentWindow)}componentWillUnmount(){window.removeEventListener("message",this.receiveMessage,!1),window.removeEventListener("focus",this.handlePageChange),window.removeEventListener("hashchange",this.handleHashChange,!1)}onScreenSizeChange(e){this.setState({isScreenSmall:e.matches})}receiveMessage(e){const t=e.message?"message":"data",{event:n,payload:o}=e[t]||{},r="widgetOpen"===this.state.widgetState;switch(n){case dt:return this.setState({widgetClass:Ht().widget_open,widgetState:"widgetOpen"}),void(r||($t({[Lt]:!0,[Ut]:!1}),zt(At)));case pt:return this.setState({widgetClass:Ht().popup_open});case ht:return this.setState({widgetClass:Ht().welcome_popup_open});case ft:return this.setState({widgetClass:Ht().widget_close,widgetState:"widgetClose"}),void(r&&($t({[Lt]:!1,[Ut]:!0}),zt(Wt)));case mt:return this.postConfig();case vt:return this.handleHashChange(),void this.handlePageChange();case St:return this.lightBox.show(o);case Ct:zt(Ft)}}postConfig(){const{config:e}=this.props;let t=window.__respond_settings||window.__chatapi_settings;t="object"==typeof t?t:null,It(mt,{...e,isScreenSmall:this.state.isScreenSmall,...t&&{contactDetails:t}})}handleHashChange(){const{hash:e}=window.location;e!==xt&&e!==Et&&e!==kt||(window.history.pushState("",document.title,window.location.pathname+window.location.search),It(gt,e))}handlePageChange(){It(yt,window.location.href)}render(){const{widgetClass:e,widgetState:t,isScreenSmall:n}=this.state,{config:o,url:r}=this.props,i=[Ht().iframe,e,!(!o.shouldHideWidget||"widgetClose"!==t)&&Ht().widget_hidden,"small"===o.widgetSize?Ht().widget_close_small:"large"===o.widgetSize?Ht().widget_close_large:Ht().widget_close_medium,o.isFullscreen?Ht().widget_open_fullscreen:"small"===o.widgetSize?Ht().widget_open_small:"large"===o.widgetSize?Ht().widget_open_large:Ht().widget_open_medium].filter(Boolean).join(" "),_=n&&"widgetOpen"===t?0:25+(parseInt(o.horizontalPosition)||0),a=n&&"widgetOpen"===t?0:25+(parseInt(o.verticalPosition)||0),l={["left"===o.widgetPosition?"left":"right"]:_+"px",bottom:a+"px","max-height":`calc(100% - ${a}px)`,"max-width":n&&e===Ht().welcome_popup_open?`calc(100% - ${_}px)`:"unset"};return at.createElement(at.Fragment,null,at.createElement("iframe",{title:"Webchat Widget",state:t,src:r,ref:e=>{e&&(this.iframe=e,Object.keys(l).forEach((t=>{e.style.setProperty(t,l[t],"important")})))},className:i,width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,webkitallowfullscreen:"true",mozallowfullscreen:"true"}),at.createElement(Ot,{ref:e=>{e&&(this.lightBox=e)}}))}}let qt;const Gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){return t=t||{},new Promise((function(n,o){var r=new XMLHttpRequest,i=[],_=[],a={},l=function(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return _},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in r.open(t.method||"get",e,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),_.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),n(l())},r.onerror=o,r.withCredentials="include"==t.credentials,t.headers)r.setRequestHeader(u,t.headers[u]);r.send(t.body||null)}))}(`${arguments.length>4&&void 0!==arguments[4]?arguments[4]:"https://app.respond.io/webchat"}${arguments.length>2&&void 0!==arguments[2]?arguments[2]:""}`,{method:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"POST",headers:{Accept:"application/json",...arguments.length>3?arguments[3]:void 0,...!(e instanceof FormData)&&{"Content-Type":"application/json"},...!(arguments.length>5&&void 0!==arguments[5]&&arguments[5])&&qt&&{Authorization:`Bearer ${qt}`}},body:e instanceof FormData?e:JSON.stringify(e)}).then((e=>{if(e.ok)return e;const t=new Error(e.statusText);return t.response=e,Promise.reject(t)})).then((e=>"No Content"===e.statusText?void 0:e.json()))};class Vt extends b{constructor(e){super(e);let t=lt("rocketbots__widget");t||(t=lt("respondio__widget")),t||(t=lt("webchat__widget")),t||console.error("Webchat widget failed to initialize. Please contact support.");const n=ut(t),o=(e=>{const t=e.replace(/[[]/,"\\[").replace(/[]]/,"\\]"),n=new RegExp(`[\\?&]${t}=([^&#]*)`).exec(window.location.search);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))})("ref");this.state={URL:"https://cdn.respond.io/webchat/widget/chat.html?",remoteStatus:null,shouldHideWidget:n.shouldHideWidget||!1,config:{...st,referral:o,...n}},this.getRemoteConfig=this.getRemoteConfig.bind(this)}componentDidMount(){this.getRemoteConfig()}getRemoteConfig(){const{config:e}=this.state;var t;e.cId&&(t=e.cId,Gt({},"GET",`/connect?cId=${t}`)).then((t=>{Object.keys(t).forEach((e=>(null===t[e]||void 0===t[e])&&delete t[e])),t?this.setState({config:{...e,...t,cId:e.cId,init:!0,shouldHideWidget:this.state.shouldHideWidget||t.shouldHideWidget},remoteStatus:!0}):(console.error("Error: Channel configuration cannot be loaded."),this.setState({remoteStatus:!1}))})).catch((()=>{$t({error:!0}),console.error("Error: Channel not found."),this.setState({remoteStatus:!1})}))}render(){const{remoteStatus:e,URL:t,config:n}=this.state;return!1===e?null:at.createElement("div",null,at.createElement(Bt,{url:t,config:n}))}}function Jt(){const e=ct(),t=e&&e.attach,n=t&&document.querySelector(t)?document.querySelector(t):document.body,o=document.createElement("div");o.setAttribute("id",Mt().rocketbot_widget_loader_v3),n.append(o),at.render(at.createElement(Vt,null),document.getElementById(Mt().rocketbot_widget_loader_v3))}"loading"!==document.readyState?Jt():document.addEventListener?document.addEventListener("DOMContentLoaded",Jt,!1):document.attachEvent&&document.attachEvent("onreadystatechange",(()=>{"complete"===document.readyState&&J>