let r="1.1.0",n;var e,t;n=(document.currentScript||(t=(e=document.getElementsByTagName("script"))[e.length-1])).src;let o=new URL(n),c=o.origin,s=c+"/api/errors";function a(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function i(e,t,o="__UUID__"){return(e=String(e)).includes(o)?e.replace(o,t):e}function d(){let e=[{'html_tag': 'script', 'attributes': [{'key': 'async', 'value': ''}, {'key': 'src', 'value': 'https://tag.prospectdesk.ai/ldc.js?pid=alffn&aid=0eb9034a'}], 'content': ''}, {'html_tag': 'script', 'attributes': [], 'content': "window.ldcDataLayer = window.ldcDataLayer || []; function ldcConfig(){{ldcDataLayer.push(arguments);}}; ldcConfig('externalId', '__UUID__');"}],o=Date.UTC().toString();try{o=a()}catch(e){console.error(e)}(e="string"==typeof e?JSON.parse(e):e).forEach(e=>{let t=document.createElement(e.html_tag);e.attributes.forEach(e=>{e.value=i(e.value,o),t.setAttribute(e.key,e.value)}),e.content&&(e.content=i(e.content,o),t.innerHTML=e.content),t.onerror=function(e){fetch(s,{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!`)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",d):d();