var mitch_script,website="60f7d2ccefc9640001cf1b73",tenant="60f7d2160b49bb0001c18856",hostUrl="https://brain.plezi.co",lp_id="";void 0===mitch_script&&((mitch_script={}).script=function(){"use strict";var a,b,c=[];return a=function(b,d){var a;c[b]=!1,(a=document.createElement("script")).type="text/javascript",a.src=b,a.async=!1,a.charset="utf-8",a.onerror=function(a){throw d(),new URIError("The script "+a.target.src+" is not accessible.")},a.onload=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c[b]=!0,d&&d(),a.onload=null)},document.getElementsByTagName("head")[0].appendChild(a)},b=function(d,e){var f,b,g;for(b=0,f=document.getElementsByTagName("script");b<f.length;++b){var h=f[b].src,i=h.substring(h.lastIndexOf("/")+1);if(d.substring(d.lastIndexOf("/")+1)===i){g=!0;break}}g?!1!==c[d]?e&&e():f[b].addEventListener("load",e):a(d,e)},{mitch_script_require:a,mitch_script_require_once:b}}());var mitchScriptDocCookies={getItem:function(a){return a&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(c,f,a,d,e,g){if(!c||/^(?:expires|max\-age|path|domain|secure)$/i.test(c))return!1;var b="";if(a)switch(a.constructor){case Number:b=a===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+a;break;case String:b="; expires="+a;break;case Date:b="; expires="+a.toUTCString()}return document.cookie=encodeURIComponent(c)+"="+encodeURIComponent(f)+b+(e?"; domain="+e:"")+(d?"; path="+d:"")+"; SameSite=none"+(g?"; secure":""),!0}};function mitchScriptQueryString(d){var b=location.search.substring(1).split("&");if(""===b)return"undefined";var c=0;do{var a=b[c].split("=");if(a[0]===d){if(-1!==a[1].indexOf("%20"))return decodeURIComponent(a[1]);return a[1]}c+=1}while(c<b.length)}function mitchScriptGetUniqueID(){var a=new Date().getTime();return Math.random().toString().slice(2)+a+Math.floor(1e5*Math.random())}function mitchScriptGenerateUUID(){var a=new Date().getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(a+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var b=(a+16*Math.random())%16|0;return a=Math.floor(a/16),("x"===c?b:3&b|8).toString(36)})}function mitchScriptImgCreate(d,b,c){var a=document.createElement("img");return a.src=encodeURI(d),a.id="ossTrackImg",null!==b&&(a.alt=b),null!==c&&(a.title=c),a.setAttribute("style","overflow: hidden; position: absolute; top: 0px; left: 0px; z-index: 9999; display: none !important; background-color: transparent;"),a.setAttribute("width","1"),a.setAttribute("height","1"),a.setAttribute("content-type","image/gif"),a}function mitchScriptExtractHostname(a){return(0,(a.indexOf("//")> -1?a.split("/")[2]:a.split("/")[0]).split("?")[0]).split(":")[0]}function mitchScriptGetDomain(d){var c=mitchScriptExtractHostname(d),a=c.split("."),b=a.length;return b>2&&(c=a[b-2]+"."+a[b-1],2===a[b-2].length&&2===a[b-1].length&&(c=a[b-3]+"."+c)),c}function mitchScriptCreatePixel(){console.log("creating pixel");var a,b,c,h=void 0===(a=mitchScriptQueryString("utm_source"))?"":a,i=void 0===(a=mitchScriptQueryString("utm_medium"))?"":a,j=void 0===(a=mitchScriptQueryString("utm_term"))?"":a,k=void 0===(a=mitchScriptQueryString("utm_content"))?"":a,l=void 0===(a=mitchScriptQueryString("utm_campaign"))?"":a,m=void 0===(a=mitchScriptQueryString("gclid"))?"":a,n=void 0===(a=mitchScriptQueryString("cid"))?"":a,o=void 0===(a=mitchScriptQueryString("utm_plz_email_id"))?"":a,d=mitchScriptDocCookies.getItem("visitor"),e=mitchScriptDocCookies.getItem("visit"),f=mitchScriptGetDomain(window.location.host),p="enjoy.plezi.co"!==document.domain,g="https:"==window.location.protocol;c=null!==d?d.split("---")[0]:mitchScriptGetUniqueID(),mitchScriptDocCookies.setItem("visitor",c+"---"+tenant,33696e3,"/","."+f,g),null!==e?b=e:(b=mitchScriptGenerateUUID(),mitchScriptDocCookies.setItem("visit",b,1800,"/","."+f,g));var q=document.title.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,""),r=encodeURIComponent(window.location.href),s=hostUrl+"/api/v1/analytics/create?hit="+p+"&tenant="+tenant+"&tw="+website+"&landing_page_id="+lp_id+"&origin_url="+document.referrer+"&visitor="+c+"&visit="+b+"&title="+q+"&gclid="+m+"&utm_source="+h+"&utm_medium="+i+"&utm_term="+j+"&utm_content="+k+"&utm_campaign="+l+"&cid="+n+"&utm_plz_email_id="+o+"&current_url="+r;document.body.appendChild(mitchScriptImgCreate(s,"","Just a hidden pixel"))}mitchScriptCreatePixel()