!function(){var e=[,function(e,t,i){"use strict";var s=i(2);Object.defineProperty(t,"__esModule",{value:!0});t.startOnceReady=v;var n=i(3),o=i(89),r=i(92),a=i(119),c=i(40),l=i(33),d=i(34),u=s(i(43)),h=i(41),g=s(i(42)),p=i(120),f=i(101);const m=()=>{console.warn(`loadImmediately is set to false and widget.load() has not been called on window.${d.GLOBAL_VARIABLE} yet. Please call widget.load() first or set loadImmediately on window.${d.SETTINGS_VARIABLE} to true.`)};function E({eventEmitter:e,logError:t}){const i=(0,r.createEmbedScriptContext)(),s=new n.WidgetShell(i,t,e);if(window.hubspot_live_messages_running)console.warn("duplicate instance of live chat exists on page");else{window.hubspot_live_messages_running=!0;s.start()}return s}function _(e){(0,o.loadWidgetCss)(document);if((0,l.getExternalApiSettings)().loadImmediately)E({logError:e});else{const t=new u.default,i=new g.default;(0,c.setupExternalApi)({debug:m,on:t.on,off:t.off,clear:m,resetAndReloadWidget:m,widget:{load:()=>{E({e