!function(t){setTimeout((function(){if("undefined"!=typeof gtGist&&("undefined"!=typeof gist&&gist instanceof gtGist||"undefined"!=typeof convertfox&&convertfox instanceof gtGist));else{function e(){"undefined"!=typeof convertfox?gtTemp=convertfox:"undefined"!=typeof gist&&(gtTemp=gist),gist=convertfox=new gtGist,t.gtGistReady=new Event("gistReady"),t.initGistChat=new Event("initGistChat"),t.gtGistChatReady=new Event("gistChatReady"),t.gtUnmountComponent=new Event("unMountComponent"),t.gistUnreadCount=0,t.chatConfig={},alreadyExecutedFunctions=[];for(var e=0;e=0)continue;alreadyExecutedFunctions.push("setAppId")}if("trackPageView"==o[0]){if(alreadyExecutedFunctions.indexOf("trackPageView")>=0)continue;alreadyExecutedFunctions.push("trackPageView")}var i=Array.prototype.slice.call(o,1);gist[o[0]].apply(gist,i)}}if("interactive"===document.readyState||"complete"===document.readyState)e();else var o=setInterval((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(clearInterval(o),e())}),100)}}),0);navigator.userAgent.match(/iPhone|iPad|iPod/i);var e=navigator.userAgent.match(/Android|BlackBerry|Tablet|Mobile|iPhone|iPad|iPod|Opera Mini|IEMobile/i);t.favIconScriptLoad=!1,t.isFaviconPresent=!1,(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR")||-1!=navigator.userAgent.indexOf("Chrome")||-1!=navigator.userAgent.indexOf("Firefox"))&&(t.favIconScriptLoad=!0),t.gtIpAddressDetails={},t.gtIpAddressAPIInitiateFlag=!1,t.gtFormSubmitStatus=!1,t.subDomain="messenger.",t.closedFormAjaxCallCount=[],t.closedSurveyAjaxCallCount=[],t.gtFixedElementDetails=[],t.gtChatInterval="",t.identifyClearInterval="",t.gtLeadBotInterval="",t.gtPromptInitiated=!1,t.gtPersonCreated=!1,t.gtInitialScrollEvent=!1,t.isChatIframeReloaded=!1,t.gtContactData={},t.gtChatBotInterval=[],t.getPromptIntervals=[],t.notificationChatOpen=!1,t.gtPageOriginalTitle="",t.pageLoadTime=0,t.initialTrackPageViewCalled=!1,t.gtProjectSetting="",t.officeHoursOnline="",t.trackPageViewCalled=!1,t.officeHoursInitiated=!1,t.chatPromptInitiated=!1,t.gtBrowserLanguage="",t.gtSegmentsCalled=!1,t.gtPersonSegmentsArray=[],t.gtChatReadAtPageLoad=!1,t.kbSettings="",t.kbViewStatus=!0,t.convertLinkOptionSecretArray=[],t.convertLinkOptionSecretArraySurvey=[],t.convertLinkOptionArray=[],t.convertLinkOptionArraySurvey=[],t.gtFormsData=[],t.gtSurveyData=[],t.gtTourData=[],t.surveyJSTriggerAPI=[],t.filteredMessengerApp=[],t.formOpenedViaClick=!1,t.shownFormObject=[],t.gtIsWelcomematPresent=!1,t.chatiframeInitiated=!1,t.gtPromptDetails=[],t.isChatHtmlRendered=!1,t.isQueryParamsCompleted=!0,t.isGtChatReady=!1,t.gtPageScrollPosition=null,t.gtWindowResize=!1,t.gtUserType=0,t.gtChatBottom=null,t.gtChatRight=null,t.gtChatLeft=null,t.gtLauncherPosition=null,t.gtWindowLocation=t.location.origin,t.gtPageIdeal=!1,t.gtReactChatIframeLoaded=!1,t.gtReactChatBubbleLoaded=!1,t.gtMobileCssLoaded=!1,t.gtLiveViewIntervals="",t.gtIdealIntervals="",t.gtBotPreviewDomain="gist-widget.b-cdn.net",t.defaultAllowedDomains=["betterproposals.io","landingi.com","invanto.com","invanto.io","rackdot.com","leadpages.net","bookme.name","bookme.app","cloudflare.works","kyvio.com","convertri.com","supporthero.io","cl.ly","godaddy.com",t.gtBotPreviewDomain],t.gtIdentifyTime=null,t.gtAwsUrl="https://cdn.getgist.com",t.gtAwsFromUrl="new-forms.getgist.com",t.gtAwsSurveyUrl="data.getgist.com",t.formJsUrl="https://gist-widget.b-cdn.net/form/form-1bf4f90313.min.js",t.newFormJsUrl="https://v3-forms.getgist.com/",t.surveyJsUrl="https://gist-survey.b-cdn.net/bundle-e9b25d56dc9cc2ab6b0d.min.js",t.tourJsUrl="https://gist-widget.b-cdn.net/tours/bundle-370cac6da24b0ea0dbe6.min.js",t.eventVisualisationJsUrl="https://gist-widget.b-cdn.net/event/event-visualisation-049e55f04d.min.js",t.getTurboEventName="",t.surveyTriggered=!1,t.isForRailsApp=!1,t.gtChatEnabled=!1,t.gtEventDataTime=null,t.gtBotPreviewData=null,t.gtliquidJsUrl="https://unpkg.com/liquidjs@9.6.1/dist/liquid.min.js";var o=["current_url","current_url_path","current_month","current_date","current_day","city","country","referrer_url","visitors_device","number_of_pages_viewed","visitors_ad_blocker_is","segments","tags","user_type","office_hours"],n=["scroll_percentage","time_on_page","time_on_site","current_time","on_exit_intent"];if(t.eventListeners=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange"],t.favIconScriptLoad){for(var r=document.getElementsByTagName("head")[0].getElementsByTagName("link"),s=0;s=0,y.ie=/*@cc_on!@*/!1,y.safari=Object.prototype.toString.call(t.HTMLElement).indexOf("Constructor")>0,y.supported=y.chrome||y.ff||y.opera;var w=[];g=function(){},p=_=!1;var I={ready:function(){p=!0,I.reset(),g()},reset:function(){p&&(w=[],f=!1,u=!1,m.clearRect(0,0,c,a),m.drawImage(d,0,0,c,a),S.setIcon(l),t.clearTimeout(h),t.clearTimeout(v))}};I.start=function(){if(p&&!u){if(w.length>0){u=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach((function(t){t in w[0].options&&(r[t]=w[0].options[t])})),T.run(w[0].options,(function(){f=w[0],u=!1,w.length>0&&(w.shift(),I.start())}),!1)};f?T.run(f.options,(function(){t()}),!0):t()}}};var F={},k=function(t){return t.n="number"==typeof t.n?Math.abs(0|t.n):t.n,t.x=c*t.x,t.y=a*t.y,t.w=c*t.w,t.h=a*t.h,t.len=(""+t.n).length,t};F.circle=function(t){var e=!1;2===(t=k(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w,e=!0):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w,e=!0),m.clearRect(0,0,c,a),m.drawImage(d,0,0,c,a),m.beginPath(),m.font=r.fontStyle+" "+Math.floor(t.h*(t.n>99?.85:1))+"px "+r.fontFamily,m.textAlign="center",e?(m.moveTo(t.x+t.w/2,t.y),m.lineTo(t.x+t.w-t.h/2,t.y),m.quadraticCurveTo(t.x+t.w,t.y,t.x+t.w,t.y+t.h/2),m.lineTo(t.x+t.w,t.y+t.h-t.h/2),m.quadraticCurveTo(t.x+t.w,t.y+t.h,t.x+t.w-t.h/2,t.y+t.h),m.lineTo(t.x+t.h/2,t.y+t.h),m.quadraticCurveTo(t.x,t.y+t.h,t.x,t.y+t.h-t.h/2),m.lineTo(t.x,t.y+t.h/2),m.quadraticCurveTo(t.x,t.y,t.x+t.h/2,t.y)):m.arc(t.x+t.w/2,t.y+t.h/2,t.h/2,0,2*Math.PI),m.fillStyle="rgba("+r.bgColor.r+","+r.bgColor.g+","+r.bgColor.b+","+t.o+")",m.fill(),m.closePath(),m.beginPath(),m.stroke(),m.fillStyle="rgba("+r.textColor.r+","+r.textColor.g+","+r.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?m.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):m.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),m.closePath()},F.rectangle=function(t){2===(t=k(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w),m.clearRect(0,0,c,a),m.drawImage(d,0,0,c,a),m.beginPath(),m.font=r.fontStyle+" "+Math.floor(t.h*(t.n>99?.9:1))+"px "+r.fontFamily,m.textAlign="center",m.fillStyle="rgba("+r.bgColor.r+","+r.bgColor.g+","+r.bgColor.b+","+t.o+")",m.fillRect(t.x,t.y,t.w,t.h),m.fillStyle="rgba("+r.textColor.r+","+r.textColor.g+","+r.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?m.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):m.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),m.closePath()};var S={getIcon:function(){var t=!1;return r.element?t=r.element:r.elementId?(t=C.getElementById(r.elementId)).setAttribute("href",t.getAttribute("src")):!1===(t=function(){for(var t=C.getElementsByTagName("head")[0].getElementsByTagName("link"),e=t.length-1;e>=0;e--)if(/(^|\s)icon(\s|$)/i.test(t[e].getAttribute("rel")))return t[e];return!1}())&&((t=C.createElement("link")).setAttribute("rel","icon"),C.getElementsByTagName("head")[0].appendChild(t)),t.setAttribute("type","image/png"),t},setIcon:function(t){var e=t.toDataURL("image/png");if(r.dataUrl&&r.dataUrl(e),r.element)r.element.setAttribute("href",e),r.element.setAttribute("src",e);else if(r.elementId){var o=C.getElementById(r.elementId);o.setAttribute("href",e),o.setAttribute("src",e)}else if(y.ff||y.opera){var i=s;s=C.createElement("link"),y.opera&&s.setAttribute("rel","icon"),s.setAttribute("rel","icon"),s.setAttribute("type","image/png"),C.getElementsByTagName("head")[0].appendChild(s),s.setAttribute("href",e),i.parentNode&&i.parentNode.removeChild(i)}else s.setAttribute("href",e)}},T={duration:40,types:{}};return T.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],T.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],T.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],T.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],T.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],T.run=function(t,e,o,i){var s=T.types[C.hidden||C.msHidden||C.webkitHidden||C.mozHidden?"none":r.animation];return i=!0===o?void 0!==i?i:s.length-1:void 0!==i?i:0,e=e||function(){},i=0?(F[r.type](n(t,s[i])),h=setTimeout((function(){o?i-=1:i+=1,T.run(t,e,o,i)}),T.duration),void S.setIcon(l)):void e()},function(){(r=n(b,e)).bgColor=i(r.bgColor),r.textColor=i(r.textColor),r.position=r.position.toLowerCase(),r.animation=T.types[""+r.animation]?r.animation:b.animation,C=r.win.document;var t=r.position.indexOf("up")>-1,o=r.position.indexOf("left")>-1;if(t||o)for(var p=0;p0?d.height:32,c=d.width>0?d.width:32,l.height=a,l.width=c,m=l.getContext("2d"),I.ready()},d.setAttribute("src",s.getAttribute("href"))):(d.onload=function(){a=32,c=32,d.height=a,d.width=c,l.height=a,l.width=c,m=l.getContext("2d"),I.ready()},d.setAttribute("src",""))}(),{badge:function(t,e){e=("string"==typeof e?{animation:e}:e)||{},g=function(){try{if("number"==typeof t?t>0:""!==t){var o={type:"badge",options:{n:t}};if("animation"in e&&T.types[""+e.animation]&&(o.options.animation=""+e.animation),"type"in e&&F[""+e.type]&&(o.options.type=""+e.type),["bgColor","textColor"].forEach((function(t){t in e&&(o.options[t]=i(e[t]))})),["fontStyle","fontFamily"].forEach((function(t){t in e&&(o.options[t]=e[t])})),w.push(o),w.length>100)throw new Error("Too many badges requests in queue.");I.start()}else I.reset()}catch(t){throw new Error("Error setting badge. Message: "+t.message)}},p&&g()},video:function(t){g=function(){try{if("stop"===t)return _=!0,I.reset(),void(_=!1);t.addEventListener("play",(function(){o(this)}),!1)}catch(t){throw new Error("Error setting video. Message: "+t.message)}},p&&g()},image:function(t){g=function(){try{var e=t.width,o=t.height,i=document.createElement("img"),n=o/a>e/c?e/c:o/a;i.setAttribute("crossOrigin","anonymous"),i.onload=function(){m.clearRect(0,0,c,a),m.drawImage(i,0,0,c,a),S.setIcon(l)},i.setAttribute("src",t.getAttribute("src")),i.height=o/n,i.width=e/n}catch(t){throw new Error("Error setting image. Message: "+t.message)}},p&&g()},webcam:function(e){if(t.URL&&t.URL.createObjectURL||(t.URL=t.URL||{},t.URL.createObjectURL=function(t){return t}),y.supported){var i=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,g=function(){try{if("stop"===e)return _=!0,I.reset(),void(_=!1);(i=document.createElement("video")).width=c,i.height=a,navigator.getUserMedia({video:!0,audio:!1},(function(t){i.src=URL.createObjectURL(t),i.play(),o(i)}),(function(){}))}catch(t){throw new Error("Error setting webcam. Message: "+t.message)}},p&&g()}},reset:I.reset,browser:{supported:y.supported}}};"undefined"!=typeof define&&define.amd?define("favicon",[],(function(){return e})):"undefined"!=typeof module&&module.exports?module.exports=e:this.Favico=e}():t.favIconScriptLoad=!1}document.addEventListener("gistChatReady",(function(){t.isGtChatReady=!0,"sidebar"==localStorage.getItem("widgetSize")&&_cfCommonFunctions.prototype.sidebarMessenger()}));for(let e of["turbolinks:before-visit","turbo:before-visit"])document.addEventListener(e,()=>{t.isForRailsApp=!0,t.getTurboEventName||(t.getTurboEventName=e),document.dispatchEvent(t.gtUnmountComponent)});t.favIconScriptLoad&&"undefined"!=typeof Favico&&(t.cfFavicon=new Favico({animation:"none"})),t.iframeContentLoad=function(){if(navigator.onLine){if(!_cfCommonFunctions.prototype.cfCheckMobileOrDevice()&&null!=document.getElementById("cfChatIframe")&&null!=document.getElementById("cfChatIframe")){var e={insideIframe:!1},o=document.getElementById("cfChatIframe");o.addEventListener("mouseenter",(function(){e.insideIframe=!0,e.scrollX=t.scrollX,e.scrollY=t.scrollY})),o.addEventListener("mouseleave",(function(){e.insideIframe=!1})),document.addEventListener("scroll",(function(){e.insideIframe&&t.scrollTo(e.scrollX,e.scrollY)}))}}else{var i=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(i){i.style.display="none";var n=new CustomEvent("reactEventFired",{detail:{action:"chatOpenStatus",value:{isChatOpen:!1}}});document.dispatchEvent(n)}}};var a=document.createElement("iframe");document.documentElement.appendChild(a);var c,l=a.contentWindow;t.cfMath=l.Math,document.documentElement.removeChild(a),t.cfDefaultHost=null,c={gtFormSubmitTrigger:function(t){_cfCommonFunctions.prototype.submitFormTrigger(t)},gtFormCloseTrigger:function(t){_cfCommonFunctions.prototype.closeFormTrigger(t)},sizeFormIframe:function(t){_gtFormView.prototype.ClientHeightWidth(t)},closingForm:function(e){let o=document.getElementById(`gt-gist-form-${e.id}`);if("slide_in"===e.form_type)o.style.top="100%",setTimeout(()=>{_gtFormView.prototype.removeFormFrame(e)},500);else if("sticky_bar"===e.form_type){if("bottom"===e.frameAlignment)o.style.transform="translateY(100%)",document.body.style.marginBottom="0px";else{o.style.transform="translateY(-100%)";var i=Number(e.height.split("px")[0]);t.gtFixedElementDetails=[];var n=parseInt(document.body.style.marginTop);document.body.style.marginTop=n-i+"px";for(var r=document.body.getElementsByTagName("*"),s=r.length,a=0;a{_gtFormView.prototype.removeFormFrame(e)},500)}else _gtFormView.prototype.removeFormFrame(e)},resetQueryData:function(t){var e="";"welcome_mat"==t.form_type?e=document.getElementById("cf-form-modal_"+t.form_id):"fullscreen"==t.form_type?e=document.getElementById("cf-form-modal-frame_"+t.form_id):"popup"==t.form_type?e=document.getElementById("cf-popup-form-iframe_"+t.form_id):"slide_in"==t.form_type?e=document.getElementById("gist-slide-in-form-iframe_"+t.form_id):"sticky_bar"==t.form_type&&(e=document.getElementById("cf-sticky-bar-frame_"+t.form_id)),""!=e&&e.contentWindow.postMessage({funName:"resetFormDetails",params:{randomNo:gtGist.prototype.getCookie("gist_id_"+gist.options.applicationId),cfFormEmailId:sessionStorage.getItem("formEmail")}},"*")},removeDeletedFormIframe:function(t){if("popup"==t.form_type)null!=document.getElementById("cf-popup-form-iframe_"+t.form_id)&&null!=document.getElementById("popupForm_"+t.form_id)&&document.getElementById("popupForm_"+t.form_id).remove();else if("welcome_mat"==t.form_type)null!=document.getElementById("cf-form-modal_"+t.form_id)&&(document.getElementById("cf-form-modal_"+t.form_id).remove(),document.getElementById("cf-form-full-page-fade_"+t.form_id).remove());else if("sticky_bar"==t.form_type)null!=document.getElementById("cf-sticky-bar-frame_"+t.form_id)&&document.getElementById("cf-sticky-bar-frame_"+t.form_id).parentElement.remove();else if("fullscreen"==t.form_type)null!=document.getElementById("fullpageIframe_"+t.form_id)&&(document.getElementById("cf-form-modal-frame_"+t.form_id).remove(),document.getElementById("fullpageIframe_"+t.form_id).remove());else if("slide_in"==t.form_type)null==document.getElementById("gist-slide-in-form-iframe_"+t.form_id)&&null==document.getElementById("gist-slide-in-form-iframe_"+t.form_id)||document.getElementById("gist-slide-in-form-iframe_"+t.form_id).parentElement.remove();else if("notification"==t.form_type&&null!=document.getElementById("cf-notification-form-frame_"+t.form_id)){var e=document.getElementById("cf-notification-form-frame_"+t.form_id);document.body.removeChild(e.parentNode)}},setSlideInFrameHeight:function(e){let o=document.getElementById("gist-slide-in-form-iframe_"+e.form_secret);if(""!=e.form_secret){if("init"==e.status){o.style.height=parseFloat(e.clientHeight)+"px",o.style.width=parseFloat(e.clientWidth)+"px",o.style.visibility="hidden";for(var i=!1,n=0;n{let o=document.getElementsByClassName("gist-embed-form");if(o.length)for(let i=0;i{(t.liveForms?t.liveForms.filter(t=>3===t.version):[]).forEach(t=>{let i=document.getElementById(`gt-gist-form-${t.id}`);if(i){const t=i.getAttribute("form_secret");o?i.contentWindow.postMessage({funName:"setUpdatedRandomId",params:{randomID:e.randomId}},"*"):o||t===e.formSecret||i.contentWindow.postMessage({funName:"updatePreviousEmail",params:{email:e.userEmail}},"*")}})};e.applicationId===gist.options.applicationId&&e.userEmail&&e.userEmail!==sessionStorage.getItem("formEmail")&&(o(e,!1),i(e,!1)),e.randomId!==t.gist.getCookie("gist_id_"+gist.options.applicationId)&&(o(e,!0),i(e,!0)),e.applicationId===gist.options.applicationId&&(e.userEmail&&e.userEmail!==sessionStorage.getItem("formEmail")&&sessionStorage.setItem("formEmail",e.userEmail),t.gtUserType=e.userType,gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,e.randomId),_cfCommonFunctions.prototype.gistConCookiesToLs("cf_chat_open_status",{status:"false",conversationId:"",lastActiveAgentImage:"",lastActiveAgentName:"",lastActiveAgentBackground:""}),(e.chatReload||"true"==e.chatReload)&&(t.notificationChatOpen=!1,""!=t.gtProjectSetting?gtGist.prototype.checkChatEnabledConditions(!0):gtGist.prototype.getChatEnabledConditions((function(t){gtGist.prototype.checkChatEnabledConditions(!0)}),(function(t){}))))},setPopupSurveyFrameHeight:function(t){document.getElementById("cf-popup-survey-iframe_"+t.form_secret).style.opacity=1,document.getElementById("popupSurvey_"+t.form_secret).style.display="block"},closePopupSurveyIFrame:function(e){null!=document.getElementById("cf-popup-survey-iframe_"+e.survey_id)&&(null!=document.getElementById("popupSurvey_"+e.survey_id)&&(-1==convertLinkOptionSecretArraySurvey.indexOf(parseInt(e.survey_id))?document.getElementById("popupSurvey_"+e.survey_id).remove():(document.getElementById("popupSurvey_"+e.survey_id).style.display="none",document.getElementById("popupSurvey_"+e.survey_id).classList.remove("hide-none")),t.surveyJSTriggerAPI=[]),_cfCommonFunctions.prototype.gistConCookiesToLs("cf_showing_survey",0))},removeDeletedSurveyIframe:function(t){"popup"==t.survey_type&&null!=document.getElementById("cf-popup-survey-iframe_"+t.survey_id)&&null!=document.getElementById("popupSurvey_"+t.survey_id)&&document.getElementById("popupSurvey_"+t.survey_id).remove(),_cfCommonFunctions.prototype.gistConCookiesToLs("cf_showing_survey",0)},SurveyTriggered:function(e){t.surveyTriggered=!0},chatWidgetLoaded:function(e){t.isChatIframeReloaded&>Gist.prototype.checkQueryPrams()}},t.addEventListener("message",(function(t){null!=t&&null!=t.data&&t.data.funName&&"setEmbeddedForm"!=t.data.funName&&"setEmbeddedSurvey"!=t.data.funName&&"removeEmbedIframe"!=t.data.funName&&"removeSurveyEmbedIframe"!=t.data.funName&&"iframeInit"!=t.data.funName&&"chatReady"!=t.data.funName&&c[t.data.funName](t.data.params)}),!1),function(){this._cfSurveyFormView=function(){},_cfSurveyFormView.prototype.cfSurveyPopup=function(e,o=null,i=!1){var n=e.serverProtocol,r=e.serverDomain,s=e.currentVersion,a=e.user,c=e.cfSurveyOptions.id,l=e.cfRandomId,m=e.applicationId,d=e.cfSurveyOptions.frequency_details&&e.cfSurveyOptions.frequency_details.type,p=document.head||document.getElementsByTagName("head")[0],f=".popupSurveyForm { width: 100%; height: 100%; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2147483646; display: none;}",u=document.createElement("style");u.type="text/css",u.styleSheet?u.styleSheet.cssText=f:u.appendChild(document.createTextNode(f)),p.appendChild(u);var g=document.createElement("div");document.body.appendChild(g),g.className="popupSurveyForm cfForms",g.id="popupSurvey_"+c,g.innerHTML='";var f=document.getElementById("gist-slide-in-form-iframe_"+a),u=f.contentWindow.document.createElement("script");u.type="text/javascript",u.src=t.formJsUrl,setTimeout((function(){f.contentWindow.document.body.appendChild(u)}),10)},_cfFormView.prototype.cfFullscreenView=function(e){var o=e.cfFormsData.form_type,i=e.serverProtocol,n=e.serverDomain,r=e.currentVersion,s=e.user,a=e.cfFormsData.form_secret,c=e.cfRandomId,l=e.applicationId,m=e.isFromJSTriggerAPI,d=document.head||document.getElementsByTagName("head")[0],p='.cfOpenSansFont { font-family: "Open Sans", sans-serif; }.fullscreenIframe {z-index: 2147483646; width:100%; height: 100%; position: fixed; top: 0% !important; left: 0%; display: none;}@media (min-width: 768px){.form-inside-footer {display: none;}} @media (max-width: 767px){.outside-form-footer {display: none;}}',f=document.createElement("style");f.type="text/css",f.styleSheet?f.styleSheet.cssText=p:f.appendChild(document.createTextNode(p)),d.appendChild(f);var u=document.createElement("div");document.body.appendChild(u),u.className="fullscreenIframe cfForms",u.id="fullscreenIframe_"+a,u.innerHTML='";var p=document.getElementById("cf-sticky-bar-frame_"+c),f=p.contentWindow.document.createElement("script");f.type="text/javascript",f.src=t.formJsUrl,setTimeout((function(){p.contentWindow.document.body.appendChild(f)}),10)},_cfFormView.prototype.cfPopup=function(e){var o=e.serverProtocol,i=e.isFromJSTriggerAPI,n=e.serverDomain,r=e.cfFormsData.form_type,s=e.currentVersion,a=e.user,c=e.cfFormsData.form_secret,l=e.cfRandomId,m=e.applicationId,d=document.head||document.getElementsByTagName("head")[0],p='.popupForm { width: 100%; height: 100%; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2147483646; display: none;}.cf-popup-footer {font-size: 12px;position: absolute;font-weight: 600;color: #fff;bottom: -30px;left: 50%;-webkit-transform: translateX(-50%);-moz-transform: translateX(-50%);-ms-transform: translateX(-50%);-o-transform: translateX(-50%);transform: translateX(-50%); }.cfOpenSansFont { font-family: "Open Sans", sans-serif; }@media (max-width: 767px) {.popupForm{}}',f=document.createElement("style");f.type="text/css",f.styleSheet?f.styleSheet.cssText=p:f.appendChild(document.createTextNode(p)),d.appendChild(f);var u=document.createElement("div");document.body.appendChild(u),u.className="popupForm cfForms",u.id="popupForm_"+c,u.innerHTML='';var y=document.getElementById("cf-form-modal_"+c),h=document.createElement("script");function v(){if(t.gtInitialScrollEvent){for(var e=document.body.getElementsByTagName("*"),i=e.length,r=0;r=20?e[r].style.top="calc("+e[r].getAttribute("data_top")+"px - (100% - "+document.getElementById("cf-form-full-page-fade_"+c).getBoundingClientRect().bottom+"px))":e[r].style.top="calc("+e[r].getAttribute("data_top")+"px - (100% - 0px))")}if(Number(document.getElementById("cf-form-full-page-fade_"+c).getBoundingClientRect().bottom)<=20&&"none"!=document.getElementById("cf-form-full-page-fade_"+c).style.display){if(null!=document.getElementById("cf-form-modal_"+c)&&document.getElementById("cf-form-modal_"+c).remove(),document.getElementById("cf-form-full-page-fade_"+c).style.display="none",null!=document.getElementById("cf-form-modal_"+c)&&null!=document.getElementById("cf-form-modal_"+c).contentWindow.document.getElementById("cf-modal-form-content")&&(document.getElementById("cf-form-modal_"+c).contentWindow.document.getElementById("cf-modal-form-content").style.display="none"),!t.gtFormSubmitStatus){var d={status:"closed",formSecret:c};_formShowConditionPlugin.prototype.setClosedFormCookie(c);var p={formData:d,applicationId:m,serverProtocol:o,serverDomain:n,currentVersion:s,user:a,cfRandomId:l};_formShowConditionPlugin.prototype.cfSendStatusCall(p),t.gtFormSubmitStatus=!1}document.body.scrollTop=0,document.documentElement.scrollTop=0}}t.gtInitialScrollEvent=!0}h.src=t.formJsUrl,setTimeout((function(){y.contentWindow.document.body.appendChild(h)}),10),t.addEventListener("scroll",v),document.body.addEventListener("scroll",v);var C=t.getComputedStyle(document.body,null).getPropertyValue("padding-top"),b="",w="";if(C.length>0)for(var I=0;I0&&(document.getElementById("cf-form-full-page-fade_"+c).style.marginTop="-"+b+w)}}(),function(){this._gtTourView=function(){},_gtTourView.prototype.createTourFrame=function(e,o,i){var n=document.createElement("div");document.body.appendChild(n),n.className=`gt-tour-${e.gtTourData.id}`,n.id="gist-tour",n.dataset.application_id=e.applicationId,n.dataset.secret_key=e.gtTourData.secret_key,n.dataset.id=e.gtTourData.id,n.dataset.random_id=e.cfRandomId,n.dataset.frequency_details=e.gtTourData.frequency_details&&e.gtTourData.frequency_details.type,n.dataset.trigger_type=i?"js_trigger":"popup",n.dataset.project_name=t.gtProjectSetting.project_name,o&&"object"==typeof o&&Object.keys(o).map(t=>{"tourId"!==t&&(n.dataset[t]=o[t])});var r=document.createElement("script");r.src=t.tourJsUrl,setTimeout((function(){n.appendChild(r)}),10)},_gtTourView.prototype.removeTourFrame=function(t){let e=document.querySelector(`#gist-tour.gt-tour-${t.id}`);e&&e.remove(),_cfCommonFunctions.prototype.gistConCookiesToLs("cf_tour_survey",0)}}(),function(){this._cfIframeChat=function(t){},_cfIframeChat.prototype.initChatWidget=function(){var e=document.createElement("iframe");e.id="gist-script",e.title="gistFrame",e.allowvr="yes",e.setAttribute("style","position: absolute !important; width: 0; !important; height: 0; !important; top: 0 !important; left: 0 !important; border: none !important; display: block !important; z-index: -1 !important;"),document.body.appendChild(e);var o=e.contentDocument.createElement("div");o.id="react-app",e.contentWindow.document.body.appendChild(o);var i=e.contentWindow.document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://gist-widget.b-cdn.net/messenger/bundle-b4ed7f1b8a98e1e4527a.min.js",setTimeout((function(){t.chatScriptLoaded||(e.contentWindow.document.body.appendChild(i),t.chatScriptLoaded=!0)}),100)},_cfIframeChat.prototype.cfChatFunction=function(e,o,i,n,r,s,a){t.chatiframeInitiated=!0;for(var c=!1,l=document.getElementsByTagName("iframe"),m=0;mt===Number(o.tourId)))?o:null}}(),function(){this._formShowConditionPlugin=function(t){this.cfFormoptions=t.cfFormsData,this.serverProtocol=t.serverProtocol,this.serverDomain=t.serverDomain,this.versionNumber=t.currentVersion,this.applicationId=t.applicationId,this.user=t.user},_formShowConditionPlugin.prototype.cfStartFormConditions=function(){this.cfFormoptions;var e=document.getElementById(_cfCommonFunctions.prototype.cfGetFormElement(this.cfFormoptions.form_type)+this.cfFormoptions.form_secret);let o=e&&"true"==e.getAttribute("isfromjstrigger");if(o&&setTimeout(t=>{t.cfShowCurrentForm(t,!0)},1e3,this),-1==_cfCommonFunctions.prototype.gistGetLsValue("cf_closed_forms").split("|").indexOf(this.cfFormoptions.form_secret.toString())&&!o){t["cfFormInterval_"+this.cfFormoptions.form_secret]||(t["cfFormInterval_"+this.cfFormoptions.form_secret]=[]);const e=setInterval((function(t){let[e,o]=_cfCommonFunctions.prototype.cfCheckDynamicCondition(t.cfFormoptions.display_conditions,t.cfFormoptions);t.cfFormoptions.display_conditions=o,e&&t.cfShowCurrentForm(t)}),1e3,this);t["cfFormInterval_"+this.cfFormoptions.form_secret].push(e)}},_formShowConditionPlugin.prototype.cfOnclickListener=function(){var e=this.cfFormoptions.random_link_attribute,o=this;t.addEventListener("click",(function(i){let n=i.target;if("A"!==i.target.tagName&&(n=i.target.closest("a")),null===n)return 0;var r=_cfCommonFunctions.prototype.cfTargetedElementHavingFormAttribute(n,void 0,e);if(null!=r&&(r.hasAttribute(e)||r.hasAttribute(e.toLowerCase()))){i.preventDefault();t.formOpenedViaClick=!0,o.cfShowCurrentForm(o,!0)}}))},_formShowConditionPlugin.prototype.cfSendStatusCall=function(e){var o=e.formData,i=e.applicationId,n=e.serverProtocol,r=(e.serverDomain,e.user,e.cfRandomId),s=o.formSecret,a=e.currentVersion;if(o.formSecret in t.closedFormAjaxCallCount?t.closedFormAjaxCallCount[s]+=1:t.closedFormAjaxCallCount[s]=1,""==r&&(r=gist.getCookie("gist_id_"+gist.options.applicationId)),t.closedFormAjaxCallCount[s]<=3){var c={status:o.status,random_id:r,live_form:"true"},l={method:"PATCH",url:n+t.gtAwsFromUrl+"/projects/"+i+`${3===a?"/v3/form_data/":"/form_data/"}`+o.formSecret,data:c,contentType:"application/json",accept:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(l,(function(t){}),(function(t){"closed"==o.status&&_formShowConditionPlugin.prototype.cfSendStatusCall(e)}))}},_formShowConditionPlugin.prototype.setClosedFormCookie=function(e){""==_cfCommonFunctions.prototype.gistGetLsValue("cf_closed_forms")?_cfCommonFunctions.prototype.gistConCookiesToLs("cf_closed_forms",e):_cfCommonFunctions.prototype.gistConCookiesToLs("cf_closed_forms",_cfCommonFunctions.prototype.gistGetLsValue("cf_closed_forms")+"|"+e),t.shownFormObject.every((function(o){return e!==o.form_secret.toString()||"welcome_mat"!==o.form_type||(t.gtIsWelcomematPresent=!1,!1)})),t.shownFormObject=t.shownFormObject.map((function(t){return e===t.form_secret.toString()&&(t.isClosed=!0),t}))},_formShowConditionPlugin.prototype.cfShowCurrentForm=function(e,o=!1){var i=e.cfFormoptions,n=e.serverProtocol,r=e.serverDomain,s=e.applicationId,a=i.form_type,c=i.form_secret;cfFormDisplay=new _cfFormView;var l=gtGist.prototype.getCookie("gist_id_"+gist.options.applicationId),m=n+t.subDomain+r+"/forms/"+c+"/get_custom_template?randomNo="+l+"&identified="+gtGist.prototype.getCookie("gist_identified_"+gist.options.applicationId)+"&appId="+s+"&formType="+a+"&formEmailId="+sessionStorage.getItem("formEmail"),d={status:"seen",formSecret:c};e.cfRandomId=l,e.cfFormURL=m,e.formData=d;const p=_cfCommonFunctions.prototype.gistGetLsValue("cf_closed_forms").split("|");(-1===p.indexOf(c.toString())&&!function(e){let o=!1;for(const i of t.shownFormObject)if(i.form_type===e)return o=!0,!0;return o}(a)||o)&&(o?function(e,o,i){if(t.shownFormObject.length>0){const i=t.shownFormObject.findIndex(t=>t.form_type===e);if(-1!==i){const e=t.shownFormObject[i];return e.isClosed?(t.shownFormObject.splice(i,1),!0):e.form_secret!==o&&(_formShowConditionPlugin.prototype.gtCloseFormElement({formType:e.form_type,form_secret:e.form_secret}),t.shownFormObject.splice(i,1),!0)}return!0}return!0}(a,c)&&(e.cfFormoptions.isClosed=!1,_formShowConditionPlugin.prototype.enableEligibleForm(e)):_formShowConditionPlugin.prototype.enableEligibleForm(e));for(let e of t["cfFormInterval_"+c])clearInterval(e)},_formShowConditionPlugin.prototype.enableEligibleForm=function(e){const o=e.cfFormoptions;let i,n;if(i=o.form_type,n=o.form_secret,"welcome_mat"===i)3!==o.version?(cfFormDisplay.cfWelcomeMate(e),_formShowConditionPlugin.prototype.cfSendStatusCall(e)):_gtFormView.prototype.gtWelcomeMate(e),_cfCommonFunctions.prototype.gtformTriggerEvent(e),t.gtIsWelcomematPresent=!0;else if("slide_in"===i){const o=setInterval((function(){const i=document.getElementById("gist-slide-in-form-iframe_"+n);null===i||t.gtIsWelcomematPresent||(i.style.visibility="visible",i.style.top="calc(100% - "+parseFloat(i.style.height)+"px)",clearInterval(o),_cfCommonFunctions.prototype.gtformTriggerEvent(e),_formShowConditionPlugin.prototype.cfSendStatusCall(e))}),50)}else if("popup"===i){const o=setInterval((function(){const i=document.getElementById("cf-popup-form-iframe_"+n);null===i||t.gtIsWelcomematPresent||(document.getElementById("popupForm_"+n).style.display="block",i.classList.add("hide-none"),i.style.display="block",_cfCommonFunctions.prototype.gtformTriggerEvent(e),_formShowConditionPlugin.prototype.cfSendStatusCall(e),clearInterval(o))}),50)}else if("fullscreen"===i){const o=setInterval((function(){const i=document.getElementById("fullscreenIframe_"+n);null===i||t.gtIsWelcomematPresent||(i.style.display="block",_cfCommonFunctions.prototype.gtformTriggerEvent(e),_formShowConditionPlugin.prototype.cfSendStatusCall(e),t.scrollType=document.body.style.overflow,document.body.style.overflow="hidden",clearInterval(o))}),50)}else if("sticky_bar"===i){const o=setInterval((function(){const i=document.getElementById("cf-sticky-bar-frame_"+n);null===i||t.gtIsWelcomematPresent||(i.style.top=0,_cfCommonFunctions.prototype.cfElementPullDown(parseFloat(i.style.height),!1),_cfCommonFunctions.prototype.gtformTriggerEvent(e),_formShowConditionPlugin.prototype.cfSendStatusCall(e),clearInterval(o))}),50)}},_formShowConditionPlugin.prototype.cfCreateFormIframe=function(t){var e=t.cfFormsData,o=(t.serverProtocol,t.serverDomain,t.currentVersion,t.applicationId,t.user,e.form_type);e.id,e.form_secret;cfFormDisplay=new _cfFormView,t.cfRandomId=gtGist.prototype.getCookie("gist_id_"+gist.options.applicationId),"sticky_bar"==o?cfFormDisplay.cfStickyBar(t):"notification"==o?cfFormDisplay.cfNotification(t):"fullscreen"==o?cfFormDisplay.cfFullscreenView(t):"popup"==o?cfFormDisplay.cfPopup(t):"slide_in"==o&&cfFormDisplay.cfSlideIn(t)},_formShowConditionPlugin.prototype.gtCloseFormElement=function(e){({sticky_bar:function(e){if(null!=document.getElementById("cf-sticky-bar-frame_"+e.form_secret)){var o=document.getElementById("cf-sticky-bar-frame_"+e.form_secret).offsetHeight;document.getElementById("cf-sticky-bar-frame_"+e.form_secret).style.top="-100%",t.gtFixedElementDetails=[];var i=parseInt(document.body.style.marginTop);document.body.style.marginTop=i-o+"px";for(var n=document.body.getElementsByTagName("*"),r=n.length,s=0;s{"bottom"===e.alignment?document.body.style.marginBottom=e.height:(_cfCommonFunctions.prototype.cfElementPullDown(e.height.split("px")[0],!0),document.body.style.marginTop=e.height)},1e3):"bottom"===e.alignment?(o.style.bottom="0px",o.style.transform="translateY(100%)",setTimeout(()=>{document.body.style.marginBottom=e.height,o.style["-webkit-transition"]="all 750ms",o.style["-moz-transition"]="all 750ms",o.style["-ms-transition"]="all 750ms",o.style["-o-transition"]="all 750ms",o.style.transition="all 750ms",o.style.transform="translateY(0%)"},1e3)):(_cfCommonFunctions.prototype.cfElementPullDown(e.height.split("px")[0],!1),o.style.top="0px",o.style.transform="translateY(-100%)",setTimeout(()=>{document.body.style.marginTop=e.height,o.style["-webkit-transition"]="all 750ms",o.style["-moz-transition"]="all 750ms",o.style["-ms-transition"]="all 750ms",o.style["-o-transition"]="all 750ms",o.style.transition="all 750ms",o.style.transform="translateY(0%)"},1e3));else if("slide_in"===e.form_type){"right"===e.alignment&&(o.style.right="10px");let i=()=>{let i=parseInt(e.height.replace("px",""))>t.innerHeight?`${t.innerHeight}px`:e.height;o.style.top="calc(100% - "+i+")",o.style.width=e.width,o.style.height=i,o.style.border="none"};i(),t.addEventListener("resize",()=>{i()})}else"popup"===e.form_type&&(o.style.width="100%",o.style.height="100%",o.style.border="none");i&&(i.style.visibility="visible");let r=()=>{o.contentWindow.postMessage({funName:"parentWindowSize",params:{width:t.innerWidth,height:t.innerHeight}},"*")};r(),t.addEventListener("resize",()=>{r()})},_gtFormView.prototype.createFormFrame=function(e,o,i){var n=e.cfFormsData.form_type;e.cfRandomId=gtGist.prototype.getCookie(`gist_id_${gist.options.applicationId}`);var r="",s="",a="",c={...e,formData:{...e.cfFormsData,formSecret:e.cfFormsData.form_secret},cfFormoptions:e.cfFormsData};switch(n){case"popup":r="position: fixed;top: 0px !important;left: 0px; z-index: 2147483646;",s="background: rgba(0, 0, 0, 0.7);width: 100vw;height:100vh;";break;case"sticky_bar":r="position:fixed;top:0px;right:0px;left:0px;width: 100%; z-index: 2147483644;",s="width:100vw",a='border: none;width: 100%;z-index: 2147483644;font-family: "Open Sans", sans-serif;position: fixed;left: 0;right: 0;';break;case"slide_in":r="position:fixed;bottom:0px;left:0px;z-index: 2147483644;margin-left: 10px;top:unset !important;",s="",a="position:fixed;border: none !important;box-sizing: content-box;max-width:100%;text-align: center;font-weight: 100;-webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.34) !important;-moz-webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.34) !important;-ms-webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.34) !important;-o-webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.34) !important;box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.34) !important;z-index: 2147483644;border: 1px solid #FFFFFF;-webkit-transition: top 0.75s;-moz-transition: top 0.75s;-ms-transition: top 0.75s;-o-transition: top 0.75s;transition: top 0.75s;top: 100%;";break;case"fullscreen":r="position: fixed;z-index: 2147483646; width:100%; height: 100%;top: 0% !important; left: 0%;",s="width:100vw;height:100vh"}if("welcome_mat"===n)_formShowConditionPlugin.prototype.enableEligibleForm(c);else if(!t.gtIsWelcomematPresent){var l=document.createElement("div");document.body.appendChild(l),l.className=`gt-form-${e.cfFormsData.id}`,l.id="gist-form",l.dataset.application_id=e.applicationId,l.dataset.secret_key=e.cfFormsData.form_secret,l.dataset.id=e.cfFormsData.id,l.dataset.random_id=e.cfRandomId,l.dataset.trigger_type=i?"js_trigger":n,l.dataset.project_name=t.gtProjectSetting.project_name,l.dataset.version=e.cfFormsData.version,l.style=r+"visibility: hidden",o&&"object"==typeof o&&Object.keys(o).map(t=>{"isOnExitIntent"===t&&o[t]?l.style.display="none":"formId"!==t&&(l.dataset[t]=o[t])});var m=document.createElement("div");m.style=`${s}-webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, 0.34)`,l.appendChild(m);var d=document.createElement("iframe");let p=t.newFormJsUrl;d.id=`gt-gist-form-${e.cfFormsData.id}`,d.src=`${p}${e.applicationId}/${e.cfFormsData.form_secret}?user=${e.user}&random_no=${e.cfRandomId}&form_type=${n}&id=${e.cfFormsData.id}&page_title=${document.title}&submitted_form=${encodeURIComponent(document.location.href)}&isFromTrigger=${!!i}&previousEmail=${encodeURIComponent(sessionStorage.getItem("formEmail")||"")}`,d.style=a+"height: 100vh;width: 100vw;border: none;",d.setAttribute("form_secret",e.cfFormsData.form_secret),setTimeout((function(){m.appendChild(d)}),10),_cfCommonFunctions.prototype.gtformTriggerEvent(c)}},_gtFormView.prototype.gtWelcomeMate=function(e){var o=e.cfFormoptions.form_type;e.cfRandomId=gtGist.prototype.getCookie(`gist_id_${gist.options.applicationId}`);var i=e.isFromJSTriggerAPI,n=(o=e.cfFormoptions.form_type,e.versionNumber,e.user,e.cfFormoptions.form_secret),r=(e.cfRandomId,e.applicationId,t.newFormJsUrl,document.head||document.getElementsByTagName("head")[0]),s='.cf-form-full-page-fade {opacity: 0; height: 100vh;background-color: #FFFFFF;position: relative;}.cf-form-close {margin-top: -8px;float: right;font-size: 25px;font-weight: 200;line-height: 1;color: #03cea4;text-shadow: 0 1px 0 #fff;}button.cf-form-close {position: absolute;bottom: 60px;left:51%; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -ms-transform: translateX(-50%); -o-transform: translateX(-50%);transform: translateX(-50%); -webkit-appearance: none;padding: 0;cursor: pointer;background: 0 0;border: 0;} button.cf-form-close:focus {outline: none;}.dropdown:before {content: "";position: absolute;right: 0px;top: 8px;width: 23px;height: 23px;border-left-color: transparent !important;border-right-color: #03cea4;border-top-color: transparent !important;border-bottom-color: #03cea4;border: 2px solid;transform: rotate(45deg);}.cfOpenSansFont { font-family: "Open Sans", sans-serif; }.cf-welcomemat-footer {font-size: 0.7em; font-weight:600; color: #545f5c;opacity: 0.5; position: absolute; bottom: 35px; left: 30px;}.welcomeMatpageIframe { width: 100%; height: 100vh; z-index: 2147483648; position: relative;}.form-inside-footer { left: 50% !important; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -ms-transform: translateX(-50%); -o-transform: translateX(-50%); transform: translateX(-50%); bottom: 0px !important;} @media (min-width: 768px){.form-inside-footer {display: none;}} @media (max-width: 767px){.outside-form-footer {display: none;} .cf-form-close {left: 55% !important;}}',a=document.createElement("style");a.type="text/css",a.styleSheet?a.styleSheet.cssText=s:a.appendChild(document.createTextNode(s)),r.appendChild(a);for(var c=["STYLE","META","SCRIPT","TITLE"],l=1;l<=15;l++)if(-1==c.indexOf(document.body.children[l].tagName)){document.body.children[l].className+=" cf-scroll-to-original-div";break}var m=document.createElement("div");document.body.insertBefore(m,document.body.firstChild),m.className="welcomeMatpageIframe cfForms",m.id="cf-form-full-page-fade_"+n,m.style.display="none",m.style.marginBottom="342px",m.style.visibility="hidden",m.dataset.secret_key=e.cfFormoptions.form_secret;var d=document.createElement("iframe");function p(){if(t.gtInitialScrollEvent){for(var e=document.body.getElementsByTagName("*"),i=e.length,r=0;r=20?e[r].style.top="calc("+e[r].getAttribute("data_top")+"px - (100% - "+document.getElementById("cf-form-full-page-fade_"+n).getBoundingClientRect().bottom+"px))":e[r].style.top="calc("+e[r].getAttribute("data_top")+"px - (100% - 0px))")}if(Number(document.getElementById("cf-form-full-page-fade_"+n).getBoundingClientRect().bottom)<=20&&"none"!=document.getElementById("cf-form-full-page-fade_"+n).style.display){if(null!=document.getElementById("cf-form-modal_"+n)&&document.getElementById("cf-form-modal_"+n).remove(),document.getElementById("cf-form-full-page-fade_"+n).style.display="none",null!=document.getElementById("cf-form-modal_"+n)&&null!=document.getElementById("cf-form-modal_"+n).contentWindow.document.getElementById("cf-modal-form-content")&&(document.getElementById("cf-form-modal_"+n).contentWindow.document.getElementById("cf-modal-form-content").style.display="none"),!t.gtFormSubmitStatus){_formShowConditionPlugin.prototype.setClosedFormCookie(n);let e={form_type:o,form_secret:n};_gtFormView.prototype.removeFormFrame(e),t.gtFormSubmitStatus=!1}document.body.scrollTop=0,document.documentElement.scrollTop=0}}t.gtInitialScrollEvent=!0}d.className=`gt-form-${e.cfFormoptions.id}`,d.id=`gt-gist-form-${e.cfFormoptions.id}`,d.src=`${t.newFormJsUrl}${e.applicationId}/${e.cfFormoptions.form_secret}?user=${e.user}&random_no=${e.cfRandomId}&form_type=${o}&id=${e.cfFormoptions.id}&page_title=${document.title}&submitted_form=${encodeURIComponent(document.location.href)}&isFromTrigger=${!!i}&previousEmail=${encodeURIComponent(sessionStorage.getItem("formEmail")||"")}`,d.style.width="100%",d.style.height="100vh",d.style.border="none",d.setAttribute("form_secret",e.cfFormoptions.form_secret),setTimeout((function(){m.appendChild(d)}),10),t.addEventListener("scroll",p),document.body.addEventListener("scroll",p)},_gtFormView.prototype.removeFormFrame=function(t){if("welcome_mat"===t.form_type){Math.easeInOutQuad=function(t,e,o,i){return(t/=i/2)<1?o/2*t*t+e:-o/2*(--t*(t-2)-1)+e},e=document.body,o=document.getElementById("cf-form-full-page-fade_"+t.form_secret).offsetHeight,i=1e3,n=e.scrollTop,r=o-n,s=0,(a=function(){s+=20;var t=Math.easeInOutQuad(s,n,r,i);e.scrollTop=t,document.documentElement.scrollTop=t,s\\/?]+")).replace(/[*]$/gi,"[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*")).replace(/\/$/gi,"/*")).replace("/[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*","/*[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*")).replace(/[+]/gi,"*");var u=new RegExp(f,"g"),g=a.match(u);if(null!=g&&1==g.length){var _="";_=g[0].replace(/\/$/,"")==a.replace(/\/$/,"")?"true":"false"}else _="false";c.push(_)}}return"AND"==i?n=-1==c.indexOf("false"):"OR"==i&&(n=-1!=c.indexOf("true")),n},_cfCommonFunctions.prototype.checkNoMoreThanCondition=function(e){if(null!=e.trigger_conditions&&null==e.cfFormoptions)var o=e;else if(e.cfFormoptions&&null==e.trigger_conditions)o=e.cfFormoptions;var i=o.visibility_conditions.after_x_seconds,n=o.visibility_conditions.after_scrolling_down_x_amount,r=_cfCommonFunctions.prototype.gistGetLsValue("cf_site_start_time"),s=Math.round((new Date).getTime()/1e3),a=!0;if("true"==i.enabled)if("time_on_site"==i.when){var c=s-r;"is_no_more_than"==i.condition&&(a=c<=parseInt(i.value))}else if("time_on_page"==i.when){c=s-t.pageLoadTime;"is_no_more_than"==i.condition&&(a=c<=parseInt(i.value))}var l=!0;return"true"==n.enabled&&"is_no_more_than"==n.condition&&("percentage"==n.value_type?l=((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100<=parseInt(n.value):"pixels"==n.value_type&&(l=(t.pageYOffset||document.documentElement.scrollTop)<=parseInt(n.value))),a&&l},_cfCommonFunctions.prototype.cfTargetVisitorsCondition=function(e){if(null!=e.trigger_conditions&&null==e.cfFormoptions)var o=(p=e).trigger_conditions.device_type,i=p.trigger_conditions.location,n=p.trigger_conditions.specific_pages,r=p.trigger_conditions.traffic_source_referral,s=p.trigger_conditions.using_adblock,a=p.trigger_conditions.viewed,c=p.trigger_conditions.visitors_who_belong_to_a_segment,l=t.gtPersonSegmentsArray,m=p.trigger_conditions.show_every_where,d=!0;else if(e.cfFormoptions&&null==e.trigger_conditions){var p;o=(p=e.cfFormoptions).target_visitor_conditions.device_type,i=p.target_visitor_conditions.location,n=p.target_visitor_conditions.specific_pages,r=p.target_visitor_conditions.traffic_source_referral,s=p.target_visitor_conditions.using_adblock,a=p.target_visitor_conditions.viewed,c=p.target_visitor_conditions.visitors_who_belong_to_a_segment,l=t.gtPersonSegmentsArray,m=p.target_visitor_conditions.show_every_where,d=!1}var f=!0,u=!0,g=_cfCommonFunctions.prototype.cfGetMobileStatus(),_=_cfCommonFunctions.prototype.cfGetTabletStatus(),y=!0,h=!0,v=!0,C=!0,b=!0,w=!0;if(null!=d&&d&&(w=_cfCommonFunctions.prototype.officeHoursConditionCheck(p)),null!=m&&"true"==m.enabled)return w;if(null!=n&&"true"==n.enabled&&0!=n.condition_data.length){f=!1;var I="";null!=n.operator&&(I=n.operator),f=_cfCommonFunctions.prototype.checkSpecificPagesConditions(n.condition_data,"specificPages",I)}if(null!=i&&"true"==i.enabled)if(function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return JSON.stringify(t)===JSON.stringify({})}(t.gtIpAddressDetails))u=!1;else{var F=i.value.toLowerCase().trim(),k=[null!=t.gtIpAddressDetails.city&&null!=t.gtIpAddressDetails.city?t.gtIpAddressDetails.city.toLowerCase().trim():"",null!=t.gtIpAddressDetails.country_name&&null!=t.gtIpAddressDetails.country_name?t.gtIpAddressDetails.country_name.toLowerCase().trim():""];"is"==i.condition?u=-1!=k.indexOf(F):"is_not"==i.condition&&(u=-1==k.indexOf(F))}else u=!0;if(null!=o&&"true"==o.enabled?"is_on"==o.condition?"desktop"==o.value?y=!g&&!_:"mobile"==o.value?y=!!g:"tablet"==o.value?y=!!_:"all"==o.value&&(y=!0):"is_not_on"==o.condition&&("desktop"==o.value?y=!(!g&&!_):"mobile"==o.value?y=!g:"tablet"==o.value?y=!_:"all"==o.value&&(y=!1)):y=!0,null!=a&&"true"==a.enabled&&("equals"==a.condition?h=_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")==a.value:"is_more_than"==a.condition?h=_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")>a.value:"is_less_than"==a.condition?h=_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")=a.value:"is_no_more_than"==a.condition&&(h=_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")<=a.value)),null!=r&&"true"==r.enabled&&0!=r.condition_data.length){v=!1;I="";null!=r.operator&&(I=r.operator),v=_cfCommonFunctions.prototype.checkSpecificPagesConditions(r.condition_data,"sourceReferral",I)}return C=null==s||"true"!=s.enabled||!!t.cfAdBlockEnabled,null!=c&&"true"==c.enabled&&("belongs_to"==c.condition?b=-1!=l.indexOf(parseInt(c.value)):"not_belongs_to"==c.condition&&(b=-1==l.indexOf(parseInt(c.value)))),f&&u&&y&&h&&v&&C&&b&&_cfCommonFunctions.prototype.checkNoMoreThanCondition(e)&&w},_cfCommonFunctions.prototype.gtGistAjaxCall=function(t,e,o){var i=new XMLHttpRequest;i.open(t.method,t.url),t.contentType&&i.setRequestHeader("Content-Type",t.contentType),i.onload=function(){200===i.status||204===i.status?null!=i.responseText&&""!=i.responseText&&i.responseText.endsWith("}")&&i.responseText.startsWith("{")&&"undefined"!=i.responseText&&null!=i.responseText?e(JSON.parse(i.responseText),i.status):e(null):422===i.status&&(null!=i.responseText&&""!=i.responseText&&i.responseText.endsWith("}")&&i.responseText.startsWith("{")&&"undefined"!=i.responseText&&null!=i.responseText?o(JSON.parse(i.responseText)):o(null))},t.skipStringify?i.send(t.data):i.send(JSON.stringify(t.data))},_cfCommonFunctions.prototype.cfChatRouting=function(e,o){var i="";clearInterval(t.checkChatReadyInt),null!=e&&(i=e);var n=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(n){var r=new CustomEvent("reactEventFired",{detail:{action:"route",value:{route:i,text:o}}});document.dispatchEvent(r),n.style.display="block"}},_cfCommonFunctions.prototype.cfChatOpenConMethod=function(e){var o="";clearInterval(t.checkChatReadyInt),null!=e&&(o=e);var i=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(i){i.style.display="block";var n=new CustomEvent("reactEventFired",{detail:{action:"openNewConversation",value:{textContent:o}}});document.dispatchEvent(n)}},_cfCommonFunctions.prototype.cfChatConListMethod=function(){clearInterval(t.checkChatReadyInt);var e=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(e){var o=new CustomEvent("reactEventFired",{detail:{action:"openConversationList",value:{chatStatus:"openConversationList"}}});document.dispatchEvent(o),e.style.display="block"}},_cfCommonFunctions.prototype.cfChatConArticleMethod=function(e,o){null==o&&(o=""),clearInterval(t.checkChatReadyInt);var i=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(i){var n=new CustomEvent("reactEventFired",{detail:{action:"openArticle",value:{articleData:{articleId:e,openView:o}}}});document.dispatchEvent(n),i.style.display="block"}},_cfCommonFunctions.prototype.standardHeightMessenger=function(){clearInterval(t.checkChatReadyInt);var e=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(e){var o=new CustomEvent("reactEventFired",{detail:{action:"standard",value:{chatStatus:"standard"}}});document.dispatchEvent(o),e.style.display="block";var i=e.querySelector(".gist-messenger-iframe");i.style.height="calc(100% - 120px)",i.style.right="20px",i.style.bottom="100px",i.style.borderRadius="8px",i.style.maxHeight="720px"}},_cfCommonFunctions.prototype.sidebarMessenger=function(){clearInterval(t.checkChatReadyInt);var e=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(e){var o=new CustomEvent("reactEventFired",{detail:{action:"sidebar"}});document.dispatchEvent(o),e.style.display="block";var i=e.querySelector(".gist-messenger-iframe");i.style.height="100vh",i.style.right="0",i.style.bottom="0",i.style.borderRadius="0",i.style.maxHeight="100%"}},_cfCommonFunctions.prototype.botPreview=function(){var t=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(t){t.style.display="block";var e=t.querySelector(".gist-messenger-iframe");e.style.height="100vh",e.style.right="0",e.style.bottom="0",e.style.borderRadius="0",e.style.maxHeight="100%"}},_cfCommonFunctions.prototype.gistDeleteCookie=function(e){if(null!=e&&0!=e.length)for(var o=0;ot.secretKey==o);if(-1===a)return!1;{let o=new Date(s[a].expires);if(e.type!==s[a].type){if(s[a].type=e.type,localStorage.setItem(`gist_${t}_frequency_${i}`,JSON.stringify(s)),"once"===e.type)return!0;if(r.getTime()>o.getTime())return r.setTime(r.getTime()+864e5),s[a].expires=r.toUTCString(),localStorage.setItem(`gist_${t}_frequency_${i}`,JSON.stringify(s)),!1}else if("once"!==e.type&&r.getTime()>o.getTime())return r.setTime(r.getTime()+864e5),s[a].expires=r.toUTCString(),localStorage.setItem(`gist_${t}_frequency_${i}`,JSON.stringify(s)),!1;return!0}}return!1},_cfCommonFunctions.prototype.cfGetFormElement=function(t){switch(t){case"welcome_mat":return"cf-form-modal_";case"fullscreen":return"cf-form-modal-frame_";case"popup":return"cf-popup-form-iframe_";case"slide_in":return"gist-slide-in-form-iframe_";case"sticky_bar":return"cf-sticky-bar-frame_";default:return""}},_cfCommonFunctions.prototype.cfRemoveStyleAttributeFromElements=function(t=""){if(t){let e,o=document.createElement("div");o.innerHTML=t,(e=o.querySelectorAll("*"))&&(e.forEach(t=>t.removeAttribute("style")),t=o.innerHTML)}return t}}(),function(){this.gistVisibilityConditions=function(){},gistVisibilityConditions.prototype.checkXseconds=function(e,o,i,n,r){if("time_on_site"==e.key){var s=o-i;if("equals"==e.condition){if(s==parseInt(e.value)&&r)return!0}else if("greater_than"==e.condition){if(s>parseInt(e.value)&&r)return!0}else if("greater_or_equal"==e.condition){if(s>=parseInt(e.value)&&r)return!0}else if("less_than"==e.condition){if(sparseInt(e.value)&&r)return!0}else if("greater_or_equal"==e.condition){if(s>=parseInt(e.value)&&r)return!0}else if("less_than"==e.condition){if(s0))return!1;if("greater_than"==e.condition){if(((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100>parseInt(e.value)&&i)return!0}else if("equals"==e.condition){if(((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100==parseInt(e.value)&&i)return!0}else if("greater_or_equal"==e.condition){if(((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100>=parseInt(e.value)&&i)return!0}else if("less_or_equal"==e.condition){if(((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100<=parseInt(e.value)&&i)return!0}else{if("less_than"!=e.condition)return!0;if(((t.pageYOffset||document.documentElement.scrollTop)+document.body.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100n.getTime()):"on_or_before"==t.condition?(i.setSeconds(0),i.getTime()<=n.getTime()):"on_or_after"==t.condition?(i.setSeconds(0),!!(i.getTime()>=n.getTime()&&o)):void 0},gistVisibilityConditions.prototype.checkExitIntent=function(t,e,o,i,n){var r=e;document.documentElement.addEventListener("mouseleave",(function(t){if(t.clientY<=0&&o&&("Bot"===r||"welcome_mat"!=n.form_type)&&(i.valid="true",3===n.version)){const t=document.getElementsByClassName(`gt-form-${n.id}`)[0];t&&(t.style.display="block")}}))},this.gistTargetVisitorsConditions=function(){},gistTargetVisitorsConditions.prototype.checkDateandTime=function(t,e,o){if("current_date"==t.key){if(cfCurrentDate=(new Date).setHours(0,0,0,0),cfGetGivenValudeDateFormat=new Date(t.value).setHours(0,0,0,0),"on"==t.condition)return cfCurrentDate==cfGetGivenValudeDateFormat;if("before"==t.condition)return cfCurrentDatecfGetGivenValudeDateFormat;if("on_or_before"==t.condition)return cfCurrentDate<=cfGetGivenValudeDateFormat;if("on_or_after"==t.condition)return cfCurrentDate>=cfGetGivenValudeDateFormat}else if("current_day"==t.key){var i=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][(new Date).getDay()];if("any"==t.condition)return!!t.value.includes(i);if("none"==t.condition)return!t.value.includes(i)}else if("current_month"==t.key){var n=["january","february","march","april","may","june","july","august","september","october","november","december"][(new Date).getMonth()];if("any"==t.condition)return!!t.value.includes(n);if("none"==t.condition)return!t.value.includes(n)}},gistTargetVisitorsConditions.prototype.checkTimingConditions=function(t,e){return null==t||!t||_cfCommonFunctions.prototype.officeHoursConditionCheck(e)},gistTargetVisitorsConditions.prototype.checkDeviceConditions=function(t){if(cfCurrentPageIsMobile=_cfCommonFunctions.prototype.cfGetMobileStatus(),cfCurrentPageIsTablet=_cfCommonFunctions.prototype.cfGetTabletStatus(),null==t)return!0;if("equals"==t.condition){if("desktop"==t.value)return!cfCurrentPageIsMobile&&!cfCurrentPageIsTablet;if("mobile"==t.value)return!!cfCurrentPageIsMobile;if("tablet"==t.value)return!!cfCurrentPageIsTablet;if("all"==t.value)return!0}else if("not_equals"==t.condition){if("desktop"==t.value)return!(!cfCurrentPageIsMobile&&!cfCurrentPageIsTablet);if("mobile"==t.value)return!cfCurrentPageIsMobile;if("tablet"==t.value)return!cfCurrentPageIsTablet;if("all"==t.value)return!1}},gistTargetVisitorsConditions.prototype.checkViewConditions=function(t){return null!=t&&("equals"==t.condition?_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")==t.value:"greater_than"==t.condition?_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")>t.value:"less_than"==t.condition?_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")=t.value:"less_or_equal"==t.condition&&_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")<=t.value)},gistTargetVisitorsConditions.prototype.checkAdblockConditions=function(e){return null!=e?"false"==e.condition?!t.cfAdBlockEnabled:!!t.cfAdBlockEnabled:(console.warn("Adblock condition failed"),!0)},gistTargetVisitorsConditions.prototype.checkSegmentConditions=function(e){if("segments"==e.key){let o=e.value.some(e=>t.gtSegments.includes(e));if("any"==e.condition)return o;if("none"==e.condition)return!o}return!1},gistTargetVisitorsConditions.prototype.checkTagConditions=function(e){if("tags"==e.key){let o=e.value.some(e=>t.gtTags.includes(e));if("any"==e.condition)return o;if("none"==e.condition)return!o}return!1},gistTargetVisitorsConditions.prototype.checkUserTypeConditions=function(e){if("user_type"==e.key){let o=["visitor","lead","user"][t.gtUserType],i=e.value.includes(o);if("equals"==e.condition)return i;if("not_equals"==e.condition)return!i}return!1},gistTargetVisitorsConditions.prototype.checkLocationConditions=function(e){if(null==e)return!0;if(function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return JSON.stringify(t)===JSON.stringify({})}(t.gtIpAddressDetails))return!1;var o,i=e.value.toLowerCase().trim();return"city"==e.key?o=[null!=t.gtIpAddressDetails.city&&null!=t.gtIpAddressDetails.city?t.gtIpAddressDetails.city.toLowerCase().trim():""]:"country"==e.key&&(o=[null!=t.gtIpAddressDetails.country_name&&null!=t.gtIpAddressDetails.country_name?t.gtIpAddressDetails.country_name.toLowerCase().trim():""]),"equals"==e.condition?-1!=o.indexOf(i):"not_equals"==e.condition?-1==o.indexOf(i):void 0},gistTargetVisitorsConditions.prototype.checkSpecificPagesConditionsCopy=function(e,o){var i=t.location.pathname;if(refConditions=e,"specificPages"==o||"chatEnabled"==o)var n=t.location.href;else if("sourceReferral"==o)n=document.referrer;if("is_any_page"==refConditions.condition)return!0;if("is_homepage"===refConditions.condition)return"/"==i||"/index.php"==i||"/index.html"==i;if("is_not_homepage"===refConditions.condition)return"/"!=i&&"/index.php"!=i&&"/index.html"!=i;n=(n=n.replace(/(^\w+:|^)\/\//,"")).replace(/^www\./i,""),1!=i.length&&(i=i.replace(/\/$/,"")),1!=n.length&&(n=n.replace(/\/$/,""));var r,s=refConditions.value.replace(/\/$/,"");if(s=(s=s.replace(/(^\w+:|^)\/\//,"")).replace(/^www\./i,""),"equals"===refConditions.condition)return n==s;if("not_equals"===refConditions.condition)return n!=s;if("does_not_exactly_match"===refConditions.condition)return n!=s;if("contains"===refConditions.condition)return-1!=n.indexOf(s)&&""!=n;if("not_contains"===refConditions.condition)return-1==n.indexOf(s);if("starts_with"===refConditions.condition)return 1!=(r=(r=(r=refConditions.value).replace(/(^\w+:|^)\/\//,"")).replace(/^www\./i,"")).length&&(r=r.replace(/\/$/,"")),!!n.startsWith(r);if("does_not_starts_with"===refConditions.condition)return 1!=(r=(r=(r=refConditions.value).replace(/(^\w+:|^)\/\//,"")).replace(/^www\./i,"")).length&&(r=r.replace(/\/$/,"")),!n.startsWith(r);if("ends_with"===refConditions.condition)return!!n.endsWith(s);if("does_not_ends_with"==refConditions.condition)return!n.endsWith(s);if("matches_the_pattern"==refConditions.condition){var a=new RegExp(refConditions.value);return!!document.referrer.match(a)}if("is_empty"==refConditions.condition)return""==n;if("is_all_pages"==refConditions.condition)return!0;if("matches_pattern"==refConditions.condition){n=t.location.href;var c=refConditions.value;c=(c=(c=(c=(c=(c=(c=c.replace(/\//gi,"\\/")).replace(/\./gi,"\\.")).replace(/[*](?!$)/gi,"[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]+")).replace(/[*]$/gi,"[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*")).replace(/\/$/gi,"/*")).replace("/[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*","/*[a-zA-Z0-9!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]*")).replace(/[+]/gi,"*");var l=new RegExp(c,"g"),m=n.match(l);if(null!=m&&1==m.length){return m[0].replace(/\/$/,"")==n.replace(/\/$/,"")}return!1}return console.warn("unmatched page conditions"),!1},gistTargetVisitorsConditions.prototype.checkSpecificPagesConditionsWithPath=function(e,o){var i=t.location.pathname;if(refConditions=e,"is_any_page"==refConditions.condition)return!0;if("is_homepage"===refConditions.condition)return"/"==i||"/index.php"==i||"/index.html"==i;if("is_not_homepage"===refConditions.condition)return"/"!=i&&"/index.php"!=i&&"/index.html"!=i;var n=refConditions.value;if("equals"===refConditions.condition)return i==n;if("not_equals"===refConditions.condition)return i!=n;if("does_not_exactly_match"===refConditions.condition)return i!=n;if("contains"===refConditions.condition)return!!i.includes(n);if("not_contains"===refConditions.condition)return!i.includes(n);if("starts_with"===refConditions.condition)return!!i.startsWith(n);if("does_not_starts_with"===refConditions.condition)return!i.startsWith(n);if("ends_with"===refConditions.condition)return!!i.endsWith(n);if("does_not_ends_with"==refConditions.condition)return!i.endsWith(n);if("matches_the_pattern"==refConditions.condition){var r=new RegExp(refConditions.value);return!!i.match(r)}return console.warn("unmatched page path conditions"),!1},gistTargetVisitorsConditions.prototype.checkTraficReferral=function(t){if(null!=t)return gistTargetVisitorsConditions.prototype.checkSpecificPagesConditionsCopy(t,"sourceReferral")},gistTargetVisitorsConditions.prototype.checkOfficeHours=function(e){if("office_hours"==e.key){var o=!1;return o=null==t.officeHoursOnline||""==t.officeHoursOnline,!("true"!=e.condition||!o)||"false"==e.condition&&!o}return console.warn("Unwanted office_hours condition"),!1}}(function(){this.gtGist=function(){if(this.options={serverProtocol:"https://",serverDomain:"getgist.com",applicationId:"",user:"",apiConfigure:{"contact-data":{duration:6e4,count:1},session:{duration:18e5,count:1}}},setTimeout((function(){t.gtPageOriginalTitle=document.title}),1e3),t.gtBrowserLanguage=navigator.language||navigator.userLanguage||navigator.systemLanguage||navigator.browserlanguage,(null==t.gtBrowserLanguage||""==t.gtBrowserLanguage||null==t.gtBrowserLanguage)&&Array.isArray(navigator.languages))for(i=0;it.id===o);e&&_cfIframeChat.prototype.cfOpenPrompt(e,"Bot",!0)}else if("post"===e){let e=t.announcementData.find(t=>t.id===o);e&&_cfIframeChat.prototype.cfOpenPrompt(e,"Post",!0)}else if("chat"===e){let e=t.gttriggeredChats.find(t=>t.id===o);e&&_cfIframeChat.prototype.cfOpenPrompt(e,"TriggeredChat",!0)}else if("form"===e){let e=t.liveForms.find(t=>t.form_secret==o);if(e){var r={cfFormsData:e,serverProtocol:gist.options.serverProtocol,serverDomain:gist.options.serverDomain,applicationId:gist.options.applicationId,user:gist.options.user,currentVersion:gist.options.versionNumber,isFromJSTriggerAPI:!0};if(t.gtFormsData.find(t=>t.form_secret==e.form_secret)){var s=document.getElementById(_cfCommonFunctions.prototype.cfGetFormElement(e.form_type)+e.form_secret);3===e.version&&(s=document.querySelector(`[data-secret_key='${e.form_secret}']`)),s||(3===e.version?_gtFormView.prototype.createFormFrame(r,{applicationId:t.applicationId},!0):"welcome_mat"!==e.form_type?_formShowConditionPlugin.prototype.cfCreateFormIframe(r):(r.cfFormoptions=e,_formShowConditionPlugin.prototype.cfShowCurrentForm(r,!0)))}else if(3===e.version){let o=new _gtFormView(r);t[`cfFormInstance_${e.form_secret}`]=o,o.createFormFrame({...r,versionNumber:r.currentVersion,id:r.cfFormsData.id},{applicationId:t.applicationId},!0),t.gtFormsData.push(e)}else t["cfFormInstance_"+e.form_secret]=new _formShowConditionPlugin(r),t.gtFormsData.push(e),"welcome_mat"!==e.form_type?_formShowConditionPlugin.prototype.cfCreateFormIframe(r):(r.cfFormoptions=e,_formShowConditionPlugin.prototype.cfShowCurrentForm(r,!0))}}}else{let e={cfSurveyOptions:{id:o},serverProtocol:gist.options.serverProtocol,serverDomain:t.gtAwsSurveyUrl,versionNumber:gist.options.versionNumber,applicationId:gist.options.applicationId,user:gist.options.user};_surveyFormShowConditionPlugin.prototype.cfCreateSurveyIframe(e,i,!0)}},gtGist.prototype.chat=function(e,o,i){tempThis=this;var n=_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app");if(t.gtPersonCreated)if("show"==e){if(n){var r=new CustomEvent("reactEventFired",{detail:{action:"chatOpenStatus",value:{isChatOpen:!0}}});document.dispatchEvent(r),n.style.display="block"}}else if("hide"==e){if(n){r=new CustomEvent("reactEventFired",{detail:{action:"chatOpenStatus",value:{isChatOpen:!1}}});document.dispatchEvent(r),n.style.display="none"}}else if("open"==e){if(n){r=new CustomEvent("reactEventFired",{detail:{action:"messengerVisibilityStatus",value:{showMessenger:!0}}});document.dispatchEvent(r),n.style.display="block"}}else if("close"==e){if(n){r=new CustomEvent("reactEventFired",{detail:{action:"messengerVisibilityStatus",value:{showMessenger:!1}}});document.dispatchEvent(r),n.style.display="block"}}else if("showLauncher"==e){if(n){r=new CustomEvent("reactEventFired",{detail:{action:"launcherVisibilityStatus",value:{showLauncher:!0}}});document.dispatchEvent(r),n.style.display="block"}}else if("hideLauncher"==e){if(n){r=new CustomEvent("reactEventFired",{detail:{action:"launcherVisibilityStatus",value:{showLauncher:!1}}});document.dispatchEvent(r),n.style.display="block"}}else if("navigate"==e)t.isGtChatReady?_cfCommonFunctions.prototype.cfChatRouting(o,i):(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.cfChatRouting(o,i)}),1e3));else if("openNewConversation"==e)t.isGtChatReady?_cfCommonFunctions.prototype.cfChatOpenConMethod(o):(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.cfChatOpenConMethod(o)}),1e3));else if("shutdown"==e)tempThis.resetCookie(),tempThis.trackPageView("chatShutdown");else if("openConversationList"==e)t.isGtChatReady?_cfCommonFunctions.prototype.cfChatConListMethod():(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.cfChatConListMethod()}),1e3));else if("article"==e)t.isGtChatReady?_cfCommonFunctions.prototype.cfChatConArticleMethod(o,i):(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.cfChatConArticleMethod(o,i)}),1e3));else if("standard"==e)t.isGtChatReady?_cfCommonFunctions.prototype.standardHeightMessenger():(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.standardHeightMessenger()}),1e3));else if("sidebar"==e)t.isGtChatReady?_cfCommonFunctions.prototype.sidebarMessenger():(clearInterval(t.checkChatReadyInt),t.checkChatReadyInt=setInterval((function(){t.isGtChatReady&&_cfCommonFunctions.prototype.sidebarMessenger()}),1e3));else if("config"==e){if(t.chatConfig=o,n&&t.isGtChatReady){r=new CustomEvent("reactEventFired",{detail:{action:"setChatConfig",value:o}});document.dispatchEvent(r)}}else if("botPreview"==e&&o)if(t.gtBotPreviewData=o,t.isGtChatReady)_cfCommonFunctions.prototype.botPreview();else var s=setInterval((function(){t.isGtChatReady&&(clearInterval(s),_cfCommonFunctions.prototype.botPreview())}),1e3)},gtGist.prototype.appearance=function(e,o){if(t.gtPersonCreated&&(("greeting"==e||"welcomeText"==e||"backgroundColor"==e||"chatIconColor"==e)&&_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app"))){var i=new CustomEvent("reactEventFired",{detail:{action:"chatAppearance",value:{action:e,value:o}}});document.dispatchEvent(i)}},gtGist.prototype.resetCookie=function(){for(var e=[{key:"gist_id_"+gist.options.applicationId,value:""},{key:"gist_identified_"+gist.options.applicationId,value:0}],o=[{key:"cf_closed_forms",value:""},{key:"cf_showing_forms",value:""},{key:"cf_showing_survey",value:""},{key:"cf_showing_tour",value:""},{key:"cf_displayed_triggered_chat",value:""},{key:"cf_shown_lead_bot_ids",value:""},{key:"cf_chat_open_status",value:{status:"false",conversationId:"",lastActiveAgentImage:"",lastActiveAgentName:"",lastActiveAgentBackground:""}},{key:"cf_visualization_mode",value:""},{key:"identify_data",value:""},{key:"contact-data-rate-limit",value:[]},{key:"session-rate-limit",value:[]},{key:"contact-data-details",value:{}}],i=0;i0)for(var c=0;ct>=i.getTime()-e.duration).length0)for(var d=0;d{if(t.gtContactDataSuccess){let i=modifiedIntervals=JSON.parse(localStorage.getItem("trackPageViewIntervals"))||[];for(let t of i)clearInterval(t),modifiedIntervals=modifiedIntervals.filter(e=>e!==t);if(localStorage.setItem("trackPageViewIntervals",JSON.stringify([...modifiedIntervals])),"chatShutdown"!=e){for(let e of t.gtChatBotInterval)clearInterval(e);if(t.gtChatBotInterval=[],t.gtFormsData=[],t.gtSurveyData=[],t.gtTourData=[],t.gtPromptDetails=[],t.gtPromptInitiated=!1,t.chatPromptInitiated=!1,t.gtChatReadAtPageLoad=!1,t.botNotTriggered=!0,t.initialTrackPageViewCalled){if(tempThis.checkChatEnabledConditions(!1,!0))t.gtChatEnabled=!0,_cfCommonFunctions.prototype.checkElementIsExist("id","gist-script")?gist.chat("show"):(t.isChatIframeReloaded=!0,t.chatScriptLoaded=!1,t.gtReactChatIframeLoaded=!1,t.gtContactData.hasOwnProperty("person_details")||tempThis.cfHandlePersonData((function(){}),(function(){})),gtGist.prototype.initChat());else t.gtChatEnabled=!1;let e=setInterval(()=>{if(t.gtReactChatIframeLoaded){for(let e of t.getPromptIntervals)clearInterval(e);t.pageLoadTime=Math.round((new Date).getTime()/1e3);const e=_cfCommonFunctions.prototype.gistGetLsValue("cf_shown_lead_bot_ids").split("|").map(Number),o=_cfCommonFunctions.prototype.gistGetLsValue("cf_displayed_triggered_chat").split("|").map(Number);_cfCommonFunctions.prototype.getPromptConditions({shownLeadBotIds:e,shownTriggeredChatIds:o,officeHours:t.officeHoursOnline})}},200);t.getPromptIntervals.push(e),""==_cfCommonFunctions.prototype.gistGetLsValue("cf_site_start_time")&&_cfCommonFunctions.prototype.gistConCookiesToLs("cf_site_start_time",t.pageLoadTime),""==_cfCommonFunctions.prototype.gistGetLsValue("cf_site_start_time_for_triggered_chat_purpose")&&_cfCommonFunctions.prototype.gistConCookiesToLs("cf_site_start_time_for_triggered_chat_purpose",Math.round((new Date).getTime()/1e3)),""==_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views")?_cfCommonFunctions.prototype.gistConCookiesToLs("cf_page_views",1):_cfCommonFunctions.prototype.gistConCookiesToLs("cf_page_views",parseInt(_cfCommonFunctions.prototype.gistGetLsValue("cf_page_views"))+1)}let e=gtGist.prototype.getQueryParams;e.hasOwnProperty("gist_survey_id")&>Gist.prototype.trigger("survey",e.gist_survey_id),"gist_tour_id"in e&>Gist.prototype.trigger("tour",e.gist_tour_id);var o=_cfCommonFunctions.prototype.checkElementIsExist("queryselector","input[name='cf_random_id']");o&&(o.value=gist.user.anonymousId()),tempThis.cfHandleOutboundMessages(),t.initialTrackPageViewCalled=!0}else if("chatShutdown"==e){t.gtPersonCreated=!1,tempThis.initCookie(),clearInterval(t.gtLiveViewIntervals),_cfCommonFunctions.prototype.gtRemoveMultipleListenerToDoc(document,_cfCommonFunctions.prototype.gtHandlerOfListener,!1);let e=_cfCommonFunctions.prototype.gistGetLsValue("session-rate-limit")||[];_cfCommonFunctions.prototype.gistConCookiesToLs("session-rate-limit",[...e,(new Date).getTime()]),tempThis.cfHandlePersonData((function(e,o){if(204==o||(e&&null!=e.last_heard_from&&"undefined"!=e.last_heard_from&&_cfCommonFunctions.prototype.cfGetIpAddress(e.last_heard_from),t.gtPersonCreated=!0,t.gtSegmentsCalled=!0),null!=t.gtProjectSetting.live_view_enabled&&t.gtProjectSetting.live_view_enabled){var i=null!=t.gtProjectSetting.ping_interval&&t.gtProjectSetting.ping_interval?1e3*+t.gtProjectSetting.ping_interval:3e4;clearInterval(t.gtLiveViewIntervals),t.gtLiveViewIntervals=setInterval((function(){var e,o,i;!t.gtPageIdeal&(null==navigator.onLine||null!=navigator.onLine&navigator.onLine)&&(e=_cfCommonFunctions.prototype.cfConstructBasicUrl(gist.options.serverProtocol,gist.options.track,gist.options.serverDomain),o=null!=sessionStorage.getItem("gtSessionId")?sessionStorage.getItem("gtSessionId"):_cfCommonFunctions.prototype.gtSetSessionId(),i={method:"GET",url:e+"/projects/"+gist.options.applicationId+"/end_users/ping?random_id="+gist.getCookie("gist_id_"+gist.options.applicationId)+"&open_tab_random_id="+o+"&page_url="+t.location.origin+t.location.pathname+"&page_path="+t.location.pathname,data:"",contentType:"application/json"},_cfCommonFunctions.prototype.gtGistAjaxCall(i,(function(t){}),(function(t){})))}),i),_cfCommonFunctions.prototype.gtAddMultipleListenerToDoc(document,_cfCommonFunctions.prototype.gtHandlerOfListener,!1),_cfCommonFunctions.prototype.gtSetIdealTime()}if(_cfCommonFunctions.prototype.checkElementIsExist("id","gist-app")){var n=new CustomEvent("reactEventFired",{detail:{action:"shutdown",value:{isChatOpen:!1}}});document.dispatchEvent(n)}tempThis.cfHandleEvents(null)}),(function(e){t.isChatHtmlRendered=!1,gtGist.prototype.reactChat.removeIframeFromWindow(),e&&e.status&&e.message&&"failed"==e.status&&"Random has already been taken"==e.message&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,""),tempThis.trackPageView("chatShutdown"))}))}}},250);const i=[...JSON.parse(localStorage.getItem("trackPageViewIntervals"))||[],o];localStorage.setItem("trackPageViewIntervals",JSON.stringify([...i]))},gtGist.prototype.checkQueryPrams=function(){if(tempThis=this,Object.keys(gtGist.prototype.getQueryParams).length>1||""!=Object.keys(gtGist.prototype.getQueryParams)[0]){var e=["email","emailaddress","cfEmail"],o=!0;if(-1!=Object.keys(gtGist.prototype.getQueryParams).indexOf("cf_id"))tempThis.getUserData(gtGist.prototype.getQueryParams.cf_id),o=!1;else for(var i in e)if(-1!=Object.keys(gtGist.prototype.getQueryParams).indexOf(e[i])&&("emailaddress"==e[i]&&(gtGist.prototype.getQueryParams.email=gtGist.prototype.getQueryParams.emailaddress,delete gtGist.prototype.getQueryParams.emailaddress),"cfEmail"==e[i]&&(gtGist.prototype.getQueryParams.email=gtGist.prototype.getQueryParams.cfEmail,delete gtGist.prototype.getQueryParams.cfEmail),_cfCommonFunctions.prototype.checkValidEmail(gtGist.prototype.getQueryParams.email)))return o=!1,void tempThis.identify(gtGist.prototype.getQueryParams,void 0,"url");o&&t.gtChatEnabled&>Gist.prototype.enableChat()}else gtGist.prototype.removeCfId(),t.gtChatEnabled&>Gist.prototype.enableChat()},gtGist.prototype.getUserData=function(e){const{serverProtocol:o,serverDomain:i,applicationId:n}=gist.options;tempThis=this;var r={method:"GET",url:o+t.subDomain+i+"/projects/"+n+"/get_person_details?cf_person_data="+e+"&person_random_id="+gist.getCookie("gist_id_"+n),data:"",contentType:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(r,(function(e){t.gtUserType=e.data.user_type_from_random_id,null!=e.data&&null!=e.data.user_type_from_random_id&&0==e.data.user_type_from_random_id?null!=e.data.user_id?tempThis.identify(e.data.user_id,{email:e.data.email}):tempThis.identify(e.data.email,void 0,"cf_id"):(gtGist.prototype.removeCfId(),""!=t.gtProjectSetting?gtGist.prototype.checkChatEnabledConditions(!0):gtGist.prototype.getChatEnabledConditions((function(t){gtGist.prototype.checkChatEnabledConditions(!0)}),(function(t){})))}),(function(t){tempThis.checkChatEnabledConditions(!0)}))},gtGist.prototype.identify=function(e,o,i,n,r){var s=this,a=gist.getCookie("gist_id_"+gist.options.applicationId),c=!1;if(t.trackPageViewCalled){let g=4;if(t.gtIdentifyTime){g=((new Date).getTime()-t.gtIdentifyTime.getTime())/1e3}if(g<=3)return 0;if(null!=e&&"object"==typeof o)if(o.email&&_cfCommonFunctions.prototype.checkValidEmail(o.email)){"cf_id"!=i&&"non_gist_forms"!=i&&(gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,1),localStorage.removeItem(`gt-${gist.options.applicationId}-triggerChat-list`));const d=o.user_hash;void 0!==o.user_hash&&delete o.user_hash;var l={project_secret_key:gist.options.applicationId,email:o.email,user_id:e,user_hash:d,random_id:gist.getCookie("gist_id_"+gist.options.applicationId),identify_data:o,session_data:{screen_width:screen.width,screen_height:screen.height},version:gist.options.versionNumber,random_id_changeable:!0};if("url"==i?(l.identify_type="url",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)):"cf_id"!=i&&(gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,1),localStorage.removeItem(`gt-${gist.options.applicationId}-triggerChat-list`)),"reloadFalse"==i&&(l.updated_from_chat=!0),"non_gist_forms"==i&&(l.identify_type="non_gist_forms",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),""==_cfCommonFunctions.prototype.gistGetLsValue("identify_data"))c=!0;else if(_cfCommonFunctions.prototype.gistGetLsValue("identify_data")){c=(u=_cfCommonFunctions.prototype.gistGetLsValue("identify_data")).id!=l.user_id||!_cfCommonFunctions.prototype.gtCheckObjectEqualStatus(u.traits,l.identify_data)||gtGist.prototype.getGistCookieFromList("user_hash")!==d}if(c){t.gtIdentifyTime=new Date;var m={method:"POST",url:_cfCommonFunctions.prototype.cfConstructBasicUrl(gist.options.serverProtocol,gist.options.user,gist.options.serverDomain)+"/identify",data:l,contentType:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(m,(function(e){_cfCommonFunctions.prototype.gtUserdata(e.data),_cfCommonFunctions.prototype.gistConCookiesToLs("identify_data",{id:l.user_id,traits:l.identify_data}),gtGist.prototype.setCookie("user_hash",d,365),t.gtUserType=e.data.user_type,t.officeHoursInitiated=!1,t.chatPromptInitiated=!1,gtGist.prototype.removeCfId(),null!=e&&null!=e.data&&null!=e.data.random_id&&gist.setCookie("gist_id_"+gist.options.applicationId,e.data.random_id),t.notificationChatOpen=!1,(null==i||"reloadFalse"!=i&&"non_gist_forms"!=i)&&""!=t.gtProjectSetting&&s.cfHandlePersonData((function(){s.checkChatEnabledConditions(!0)}),(function(){s.checkChatEnabledConditions(!0)}),!0),null!=n&&""!=n&&n(e)}),(function(n){t.gtIdentifyTime=null,n&&n.status&&n.message&&"failed"==n.status&&"Random has already been taken"==n.message&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,""),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0),gtGist.prototype.identify(e,o,i)),n&&n.status&&n.errors&&"error"==n.status&&"Validation failed: Email is invalid"==n.errors&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,a),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),null!=r&&""!=r&&r(n)}))}}else null!=r&&""!=r&&r(),console.error("Identify failed. EMAIL is missing in Identify Traits");else if(null==o)if(null!=e&&"object"==typeof e&&_cfCommonFunctions.prototype.checkValidEmail(e.email)){const o=e.user_hash;void 0!==e.user_hash&&delete e.user_hash;l={project_secret_key:gist.options.applicationId,email:e.email,user_hash:o,random_id:gist.getCookie("gist_id_"+gist.options.applicationId),identify_data:e,session_data:{screen_width:screen.width,screen_height:screen.height},version:gist.options.versionNumber,random_id_changeable:!0};if("url"==i?(l.identify_type="url",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)):"cf_id"!=i&&"non_gist_forms"!=i&&(gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,1),localStorage.removeItem(`gt-${gist.options.applicationId}-triggerChat-list`)),"reloadFalse"==i){var d,p=e,f=(d=Object.keys(p)).indexOf("email");-1!==f&&d.splice(f,1),l.attribute=d[0],l.updated_from_chat=!0}if("non_gist_forms"==i&&(l.identify_type="non_gist_forms",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),""==_cfCommonFunctions.prototype.gistGetLsValue("identify_data"))c=!0;else if(_cfCommonFunctions.prototype.gistGetLsValue("identify_data")){c=(u=_cfCommonFunctions.prototype.gistGetLsValue("identify_data")).id!=l.user_id||!_cfCommonFunctions.prototype.gtCheckObjectEqualStatus(u.traits,l.identify_data)||gtGist.prototype.getGistCookieFromList("user_hash")!==o}if(c){t.gtIdentifyTime=new Date;m={method:"POST",url:_cfCommonFunctions.prototype.cfConstructBasicUrl(gist.options.serverProtocol,gist.options.user,gist.options.serverDomain)+"/identify",data:l,contentType:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(m,(function(e){_cfCommonFunctions.prototype.gtUserdata(e.data),_cfCommonFunctions.prototype.gistConCookiesToLs("identify_data",{id:l.user_id,traits:l.identify_data}),gtGist.prototype.setCookie("user_hash",o,365),t.gtUserType=e.data.user_type,t.officeHoursInitiated=!1,t.chatPromptInitiated=!1,gtGist.prototype.removeCfId(),null!=e&&null!=e.data&&null!=e.data.random_id&&gist.setCookie("gist_id_"+gist.options.applicationId,e.data.random_id),t.notificationChatOpen=!1,(null==i||"reloadFalse"!=i&&"non_gist_forms"!=i)&&s.cfHandlePersonData((function(){s.checkChatEnabledConditions(t.cfProjectSetting)}),(function(){s.checkChatEnabledConditions(t.cfProjectSetting)}),!0),null!=n&&""!=n&&n(e)}),(function(o){t.gtIdentifyTime=null,o&&o.status&&o.message&&"failed"==o.status&&"Random has already been taken"==o.message&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,""),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0),gtGist.prototype.identify(e,void 0,i)),o&&o.status&&o.errors&&"error"==o.status&&"Validation failed: Email is invalid"==o.errors&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,a),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),null!=r&&""!=r&&r(o)}))}}else if(_cfCommonFunctions.prototype.checkValidEmail(e)){"cf_id"!=i&&"non_gist_forms"!=i&&(gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,1),localStorage.removeItem(`gt-${gist.options.applicationId}-triggerChat-list`));l={project_secret_key:gist.options.applicationId,email:e,random_id:gist.getCookie("gist_id_"+gist.options.applicationId),identify_data:e,session_data:{screen_width:screen.width,screen_height:screen.height},version:gist.options.versionNumber,random_id_changeable:!0};if("url"==i?(l.identify_type="url",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)):"cf_id"!=i&&(gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,1),localStorage.removeItem(`gt-${gist.options.applicationId}-triggerChat-list`)),"non_gist_forms"==i&&(l.identify_type="non_gist_forms",gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),""==_cfCommonFunctions.prototype.gistGetLsValue("identify_data"))c=!0;else if(_cfCommonFunctions.prototype.gistGetLsValue("identify_data")){var u;c=(u=_cfCommonFunctions.prototype.gistGetLsValue("identify_data")).id!=l.user_id||!_cfCommonFunctions.prototype.gtCheckObjectEqualStatus(u.traits,l.identify_data)}if(c){t.gtIdentifyTime=new Date;m={method:"POST",url:_cfCommonFunctions.prototype.cfConstructBasicUrl(gist.options.serverProtocol,gist.options.user,gist.options.serverDomain)+"/identify",data:l,contentType:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(m,(function(e){if(_cfCommonFunctions.prototype.gtUserdata(e.data),_cfCommonFunctions.prototype.gistConCookiesToLs("identify_data",{id:l.user_id,traits:l.identify_data}),t.gtUserType=e.data.user_type,t.officeHoursInitiated=!1,t.chatPromptInitiated=!1,gtGist.prototype.removeCfId(),null!=e&&null!=e.data&&null!=e.data.random_id&&gist.setCookie("gist_id_"+gist.options.applicationId,e.data.random_id),null==i||"reloadFalse"!=i&&"non_gist_forms"!=i){function o(){s.cfHandlePersonData((function(){s.checkChatEnabledConditions(t.cfProjectSetting)}),(function(){s.checkChatEnabledConditions(t.cfProjectSetting)}),!0)}a!==e.data.random_id?s.cfHandleSession(o):o()}null!=n&&""!=n&&n(e)}),(function(o){t.gtIdentifyTime=null,o&&o.status&&o.message&&"failed"==o.status&&"Random has already been taken"==o.message&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,""),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0),gtGist.prototype.identify(e,void 0,i)),o&&o.status&&o.errors&&"error"==o.status&&"Validation failed: Email is invalid"==o.errors&&(gtGist.prototype.setCookie("gist_id_"+gist.options.applicationId,a),gtGist.prototype.setCookie("gist_identified_"+gist.options.applicationId,0)),null!=r&&""!=r&&r(o)}))}}else null!=r&&""!=r&&r(),console.error("Identify email structure is invalid");else null!=r&&""!=r&&r(),console.error("Identify call structure is invalid");clearInterval(t.identifyClearInterval)}else t.trackPageViewCalled||(clearInterval(t.identifyClearInterval),t.identifyClearInterval=setInterval((function(){t.trackPageViewCalled&&s.identify(e,o)}),1e3))},gtGist.prototype.removeCfId=function(){if(-1!=Object.keys(gtGist.prototype.getQueryParams).indexOf("cf_id")){delete gtGist.prototype.getQueryParams.cf_id;var e=gtGist.prototype.cfRemoveURLParameter(t.location.href,"cf_id");t.history.pushState({urlPath:e},"",e)}},gtGist.prototype.cfRemoveURLParameter=function(t,e){var o=t.split("?");if(o.length>=2){for(var i=encodeURIComponent(e)+"=",n=o[1].split(/[&;]/g),r=n.length;r-- >0;)-1!==n[r].lastIndexOf(i,0)&&n.splice(r,1);return t=o[0]+(n.length>0?"?"+n.join("&"):"")}return t},gtGist.prototype.track=function(e,o){var i=JSON.parse(sessionStorage.getItem("gt-session-id"));if(t.trackPageViewCalled&&null!=e&&"string"==typeof e){null!=o&&"object"==typeof o||(o={});var n={project_secret_key:gist.options.applicationId,random_id:gist.getCookie("gist_id_"+gist.options.applicationId),page_view:!1,page_url:t.location.href,title:document.title,custom_event_name:e,event_data:o,window_width:Math.floor(t.innerWidth),session_id:i},r={method:"POST",url:_cfCommonFunctions.prototype.cfConstructBasicUrl(gist.options.serverProtocol,"events",gist.options.serverDomain)+"/event_data",data:n,contentType:"application/json"};_cfCommonFunctions.prototype.gtGistAjaxCall(r,(function(t){}),(function(){}))}}}())}(window);