(function(n){n._obq=[];n._init=function(){for(i=0;i<this._obq.length;i++)this._obq[i].call(this);const n=new Event("sopro.loaded"),t=new Event("outbase.loaded");window.dispatchEvent(n);window.dispatchEvent(t)};n._log=function(n){console.debug(n)};n.logVisit=function(){function c(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16))}function l(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function s(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"}function h(n,t){var i=new XMLHttpRequest;i.open("POST",n,!0);i.setRequestHeader("Content-type","application/json");i.onreadystatechange=function(){i.readyState==4&&i.status==200};i.send(JSON.stringify(t))}var v,n;let e=!0;document.addEventListener("visibilitychange",function(n){e=!e;console.debug(n)});let o=window.location.search,a=new URLSearchParams(o),t="_obid",i=undefined;if(o!=undefined&&o!=""&&a!=undefined&&o.includes(t))i=a.get(t),navigator.cookieEnabled&&s(t,i,365);else{let n=l(t);n!=""&&(i=n,navigator.cookieEnabled&&s(t,i,365))}if(i!=undefined&&i!=null){let r=l(t+"_visit");r==""?(r=c(),s(t+"_visit",r,.168)):s(t+"_visit",r,.168);let a=window.location.origin+window.location.pathname,u=c();v="https://weblytics.sopro.io/WebsiteWidget/PageVisit";n={};n.PageVisitId=u;n.VisitId=r;n.WidgetGuidId=i;n.WebSiteWidgetClientId="cbeb389b-2402-429f-8359-9ce21674f6a4";n.PageUrl=a;n.QueryString=o;n.Created=new Date;e&&h(v,n);let f=function(n){var t={};t.PageVisitId=n;t.LastTimeSeen=new Date;e&&h("https://weblytics.sopro.io/WebsiteWidget/PageVisitHeartBeat",t);setTimeout(f,5e3,n)};setTimeout(f,5e3,u)}else{var y=document.location.href;if(1){pagevisitid="";var r=1,u=0,f=0;let n=function(t){var i={};(r==1?(f=5e3,i.SecondsToIncrease=5,u+=5):r==2?(f=1e4,i.SecondsToIncrease=10,u+=10):r==3||r==4||r==5?(f=15e3,i.SecondsToIncrease=15,u+=15):r>=6&&u<300?(f=3e4,i.SecondsToIncrease=30,u+=30):(f=6e4,i.SecondsToIncrease=60,u+=60),i.PageVisitId=t,i.LastTimeSeen=new Date,i.IsAnonymous=!0,r++,e&&h("https://anonymous-api.azurewebsites.net/WebIntent/PageVisitHeartBeat",i),u>=3600)||setTimeout(n,f,pagevisitid)};pagevisitid!=undefined&&pagevisitid!=null&&pagevisitid!=""&&setTimeout(n,5e3,pagevisitid)}}};n._obq.push(n.logVisit);n.validateWidget=function(){var u,r;let t=window.location.search,i=new URLSearchParams(t),n=undefined;if(t!=undefined&&t!=""&&i!=undefined&&(n=i.get("_validateobw")),!(n===undefined||n==null)){u="https://portal.sopro.io/websiteplugin/PluginVerified";r={};r.Id=n;var f=document.currentScript,e=new URLSearchParams(f.src.replace(/^[^\?]+\??/,"")),o=e.get("key");window.location="https://portal.sopro.io/websiteplugin/PluginVerified?Id="+o}};n._obq.push(n.validateWidget);n.validateWidget=function(){let t=window.location.search,i=new URLSearchParams(t),n=undefined;if(t!=undefined&&t!=""&&i!=undefined&&(n=i.get("_validateobw")),!(n===undefined||n==null))({}).Id=n,window.location="https://portal.sopro.io/websiteplugin/PluginVerified?Id="+n};n._obq.push(n.validateWidget)})(window.outbase);window.outbase._init()