!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1)}([function(t,e){t.exports="#broadly-widget{position:fixed;z-index:100000;max-height:100vh;max-width:100vw}#broadly-widget,#broadly-widget iframe{display:block;visibility:visible;box-sizing:border-box;background:none transparent;border:none;opacity:1;padding:0;margin:0;transform:translate(0);pointer-events:auto;overflow:hidden}#broadly-widget iframe{position:static;width:100%;height:100%;z-index:1;transition:none}html.broadly__chat--minimal #broadly-widget{top:auto;left:auto;bottom:0;right:0;width:400px;overflow:hidden;animation-name:zoomIn;animation-duration:.3s;animation-fill-mode:both}@media only screen and (max-device-width:600px){html.broadly__chat--minimal #broadly-widget{width:100vw;margin:0 calc(50% - 50vw);padding:0 0 env(safe-area-inset-bottom)}}html.broadly__chat--full #broadly-widget{left:auto;bottom:0;right:0;width:400px;height:100%!important}@media only screen and (max-device-width:600px){html.broadly__chat--full body{overflow:hidden;background:#fff!important;visibility:hidden}html.broadly__chat--full #broadly-widget{width:100%;height:100%}}@media only screen and (min-device-width:600px){html.broadly__chat--full #broadly-widget{box-shadow:0 4px 23px 0 rgba(0,0,0,.1)}html.broadly__chat--full #broadly-widget.broadly__chat--nbly{max-height:min(100vh,600px)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}.broadly__chat--closed #broadly-widget{top:auto;left:auto;bottom:20px;right:20px;width:50px;height:50px;overflow:hidden;animation-name:zoomIn;animation-duration:.3s;animation-fill-mode:both}.broadly__chat--transition-minimal-to-full #broadly-widget{transition:all .3s ease}.broadly__chat--transition-minimal-to-closed #broadly-widget{transition:all .3s ease,width 2ms}.broadly__chat--transition-full-to-closed #broadly-widget{transition:bottom .3s ease,width 2ms}.broadly__chat--transition-closed-to-full #broadly-widget{transition:right .3s ease,width 2ms}"},function(t,e,n){"use strict";var o;n.r(e);var i=new Uint8Array(16);function a(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=function(t){return"string"==typeof t&&r.test(t)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[t[e+0]]+s[t[e+1]]+s[t[e+2]]+s[t[e+3]]+"-"+s[t[e+4]]+s[t[e+5]]+"-"+s[t[e+6]]+s[t[e+7]]+"-"+s[t[e+8]]+s[t[e+9]]+"-"+s[t[e+10]]+s[t[e+11]]+s[t[e+12]]+s[t[e+13]]+s[t[e+14]]+s[t[e+15]]).toLowerCase();if(!d(n))throw TypeError("Stringified UUID is invalid");return n};var u=function(t,e,n){var o=(t=t||{}).random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=o[i];return e}return l(o)};const m="_broadly";function f(){const t=p(window.sessionStorage.getItem(m));return t.visitorID||(t.visitorID=u()),h(t),t}function p(t){try{return t&&function(){if(JSON.parse)return JSON.parse(...arguments);if(JSON.deserialize)return JSON.deserialize(...arguments);throw new Error("JSON.parse not available")}(t)||{}}catch(t){return{}}}function h(t){const e=p(window.sessionStorage.getItem(m)),n=function(){if(JSON.stringify)return JSON.stringify(...arguments);if(JSON.serialize)return JSON.serialize(...arguments);throw new Error("JSON.stringify not available")}(Object.assign(e,t));window.sessionStorage.setItem(m,n)}var y=n(0),w=n.n(y);function b(){return document.cookie.split(/;\s/).map((t=>t.split("="))).filter((t=>{let[e]=t;return"_ga"===e})).map((t=>{let[,e]=t;return e.split(".").slice(2).join(".")}))[0]}let g,v,_;const x="⠋⠙⠹⠼⠴⠧⠇⠏";function S(t){let e=0;t?_||(v=null,I(e),_=setInterval((function(){++e,I(e)}),200)):(clearInterval(_),function(){document.title===v&&(document.title=g);v=null}())}function I(t){document.title!==v&&(g=document.title),document.title=`${x[t%8]} New Message`,v=document.title}const E="broadly-widget",N="broadly__chat--nbly",O=["windowgenie.com"];function T(t){const e=document.createElement("iframe");e.src=`https://chat.broadly.com/webchat.html?businessID=${t.id}&parentURL=${encodeURIComponent(window.location.href)}`,e.frameBorder="0",e.allowTransparency="true";const n=document.createElement("div");n.id=E,n.style.display="none",n.appendChild(e);function o(){setTimeout((function(){document.getElementById(E)||document.body.appendChild(n)})),document.removeEventListener("readystatechange",o)}(O.some((t=>window.location.hostname.includes(t)))||t.isNBLY)&&(n.className=N),"loading"===document.readyState?document.addEventListener("readystatechange",o):o();const i=function(){try{const{performance:t}=window;if(t&&t.now)return t.now()}catch(t){}return null}();window.addEventListener("message",(function(n){const{source:o}=n;o===e.contentWindow&&function(t){let{event:e,iframe:n,config:o,loadTime:i}=t;const{type:a}=e.data,{payload:r}=e.data;switch(a){case"ready":C(),function(t){let{iframe:e,config:n,loadTime:o}=t;e.contentWindow.postMessage({type:"init",payload:{...n,state:f(),source:{hostname:document.location.hostname,referrer:document.referrer,title:document.title,url:document.location.href,userAgent:window.navigator.userAgent,loadTime:o},gaClientID:b()}},"*")}({iframe:n,config:o,loadTime:i});break;case"showView":!function(t){let{iframe:e,viewName:n}=t;const o=e.parentNode;!function(t){const{style:e}=t;"none"===e.display&&(!function(){const t=document.createElement("style");t.id="broadly-widget-css",t.type="text/css",t.styleSheet?t.styleSheet.cssText=w.a:t.appendChild(document.createTextNode(w.a)),document.head.appendChild(t)}(),e.display=null)}(o);for(const t of document.documentElement.classList){const e=t.startsWith("broadly__chat--"),o=t.startsWith("broadly__chat--transition");if(e&&!o){document.documentElement.classList.remove(t);const e=t.split("broadly__chat--").pop();j({document:document,previousView:e,viewName:n})}}document.documentElement.classList.add(`broadly__chat--${n}`)}({iframe:n,viewName:r});break;case"showUnread":S(r);break;case"updateState":h(r);break;case"setHeight":{const{height:t}=r;n.style.height="auto"===t?"":`${t}px`;break}case"getInnerHeightDifference":{const t=function(){var t,e;const n=document.getElementById(E).classList.contains(N),o=null===(t=window.visualViewport)||void 0===t?void 0:t.width,i=null===(e=window.visualViewport)||void 0===e?void 0:e.height;return n&&o>=600?Math.min(i,600):i}();n.contentWindow.postMessage({type:"getInnerHeightDifference",payload:{contentHeight:t}},"*");break}}}({event:n,iframe:e,config:t,loadTime:i})})),C()}function C(){if(!document.querySelector('meta[name="viewport"]')){const t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1.0, viewport-fit=cover",document.head.appendChild(t)}}function j(t){let{document:e,previousView:n,viewName:o}=t;const i=`broadly__chat--transition-${n}-to-${o}`;e.documentElement.classList.add(i),setTimeout((()=>{e.documentElement.classList.remove(i)}),350)}const k="WebSocket"in window,D=function(){const t=function(){const t=document.querySelector('script[data-broadly-chat-id], script[src="proxy.php?url=https://chat.broadly.com/javascript/chat.js"]'),e=t&&t.getAttribute("data-broadly-chat-id"),n=t&&t.getAttribute("id");return e||n}();return t?{id:t}:window.broadlyChat}(),L=!(!D||!(D.id||D.chatID||D.businessID)),z=window.navigator.userAgent,J=/MSIE|Trident/.test(z),M="https://cdn.apigateway.co/webchat-client..prod/sdk.js";k&&L&&!J&&function(t){const e=t.id||t.chatID||t.businessID,n=new XMLHttpRequest;n.open("GET",`https://platform-integrations-prod.apigateway.co/broadly/getReplacementWidgetID?businessID=${encodeURIComponent(e)}`,!0),n.timeout=3e3,n.onreadystatechange=function(){if(4===n.readyState){const e=n.responseText&&n.responseText.trim();200===n.status&&e?function(t){const e=document.createElement("script");e.src=M,e.defer=!0,e.setAttribute("data-widget-id",t),document.body.appendChild(e)}(e):T(t)}},n.onerror=function(){T(t)},n.ontimeout=function(){T(t)},n.send()}(D)}]);