let r="1.1.0";let n;if(document.currentScript){n=document.currentScript.src}else{var e=document.getElementsByTagName("script");var t=e[e.length-1];n=t.src}let o=new URL(n);let c=o.origin;let i=c+"/api/errors";function s(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function a(e,t,o="__UUID__"){e=String(e);if(e.includes(o)){e=e.replace(o,t)}return e}function l(){let e=[{'html_tag': 'script', 'attributes': [{'key': 'async', 'value': ''}, {'key': 'src', 'value': 'https://tag.prospectdesk.ai/ldc.js?pid=zvqbevovxvavf&aid=0eb9034a'}], 'content': ''}, {'html_tag': 'script', 'attributes': [], 'content': "window.ldcDataLayer = window.ldcDataLayer || []; function ldcConfig(){{ldcDataLayer.push(arguments);}}; ldcConfig('externalId', '__UUID__');"}];let o=Date.UTC().toString();try{o=s()}catch(e){console.error(e)}if(typeof e==="string"){e=JSON.parse(e)}e.forEach(e=>{let t=document.createElement(e.html_tag);e.attributes.forEach(e=>{e.value=a(e.value,o);t.setAttribute(e.key,e.value)});if(e.content){e.content=a(e.content,o);t.innerHTML=e.content}t.onerror=function(e){fetch(i,{method:"POST",headers:{t:"application/json"},body:JSON.stringify({message:`tags service ${r}: an error occured`,o:t.outerHTML,timestamp:Date.now(),i:e,l:n})}).then(e=>{console.log(`tags service ${r}: error reported to server: ${e.status}`)}).catch(e=>{console.error(e)})};document.body.appendChild(t)});console.log(`tags service ${r}: loaded!`)}if(document.readyState==="loading"){window.addEventListener("DOMContentLoaded",l)}else{l()}