1var e={lead:`lead_created`,appointment:`appointment_scheduled`,registration:`registration_completed`,purchase:`order_created`,contact:`contact_requested`,download:`whitepaper_download`,employeeCreated:`ai_employee_created`};function t(e,t={},n){if(typeof window>`u`)return;let r=(e??``).trim();if(r){t.type===`contents`&&!Array.isArray(t.contents)&&t.amount==null&&(t={...t,type:`customer_action`});try{let e=window.oaiq??((...e)=>{let t=window;t.oaiq=t.oaiq??((...e)=>{(t.oaiq.q=t.oaiq.q||[]).push(e)}),(t.oaiq.q=t.oaiq.q||[]).push(e)});n?e(`measure`,r,t,{event_id:n}):e(`measure`,r,t)}catch{}}}function n(t){switch(t){case`Lead`:return e.lead;case`Schedule`:return e.appointment;case`CompleteRegistration`:return e.registration;case`Purchase`:return e.purchase;case`Contact`:return e.contact;case`WhitepaperDownload`:return e.download;default:return}}var r=`493678743649102`,i=`tt_fbc`,a=`tt_fbp`,o=`tt_meta_identity`,s=7776e3,c=!1;function l(e){if(typeof document>`u`)return;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]??``):void 0}function u(e,t){if(!(typeof document>`u`))try{let n=window.location.hostname.split(`.`),r=n.length>2?`.${n.slice(-2).join(`.`)}`:void 0,i=`${e}=${/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/.test(t)?t:encodeURIComponent(t)}; path=/; max-age=${s}; SameSite=Lax`;document.cookie=r&&!/^\d+$/.test(n[n.length-1]??``)?`${i}; domain=${r}`:i}catch{}}function d(e){try{return window.localStorage.getItem(e)??void 0}catch{return}}function f(e,t){try{window.localStorage.setItem(e,t)}catch{}}function p(){if(!(typeof window>`u`))try{let e=new URLSearchParams(window.location.search),t=e.get(`fbc`),n=e.get(`fbclid`),r=l(`_fbc`)??d(i),a,o=e=>e?e.split(`.`).slice(3).join(`.`):void 0;if(t&&t.startsWith(`fb.`)?a=o(r)===o(t)?r:t:n&&(a=o(r)===n?r:`fb.1.${Date.now()}.${n}`),a)return l(`_fbc`)!==a&&u(`_fbc`,a),f(i,a),a;let s=l(`_fbc`),c=d(i);return!s&&c&&u(`_fbc`,c),s??c}catch{return}}function m(){if(!(typeof window>`u`))return l(`_fbc`)??d(i)}function h(){if(typeof window>`u`)return;let e=l(`_fbp`);if(e)return f(a,e),e;let t=(()=>{try{return new URLSearchParams(window.location.search).get(`fbp`)??void 0}catch{return}})();return t?(u(`_fbp`,t),f(a,t),t):d(a)}function g(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`string`&&r.trim()&&(t[n]=r.trim())}),t}function _(e){if(typeof window>`u`)return;let t={...v(),...g(e)};f(o,JSON.stringify(t)),y(t)}function v(){if(typeof window>`u`)return{};try{let e=d(o);return e?JSON.parse(e):{}}catch{return{}}}function y(e){let t={};if(e.email&&(t.em=e.email.toLowerCase()),e.phone&&(t.ph=e.phone.replace(/[^\d]/g,``)),e.firstName&&(t.fn=e.firstName.toLowerCase()),e.lastName&&(t.ln=e.lastName.toLowerCase()),e.city&&(t.ct=e.city.toLowerCase()),e.zip&&(t.zp=e.zip),e.country&&(t.country=e.country.toLowerCase()),Object.keys(t).length!==0)try{window.fbq?.(`init`,r,t)}catch{}}function b(){c||typeof window>`u`||(c=!0,!window.fbq&&((function(e,t,n,r){if(e.fbq)return;let i=e.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)};e._fbq||=i,i.push=i,i.loaded=!0,i.version=`2.0`,i.queue=[];let a=t.createElement(n);a.async=!0,a.src=r;let o=t.getElementsByTagName(n)[0];o.parentNode.insertBefore(a,o)})(window,document,`script`,`https://connect.facebook.net/en_US/fbevents.js`),window.fbq?.(`init`,r)))}function x(){p(),b();let e=v();Object.keys(e).length&&y(e)}function S(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`evt-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function C(e,r={}){if(typeof window>`u`)return;let i=(e??``).trim();if(!i){console.warn(`trackMeta called without event_name â ignored`);return}b(),p();let a=r.eventId??S(),o=r.customData??{},s={...v(),...g(r.userData??{})};r.userData&&Object.keys(g(r.userData)).length?_(r.userData):Object.keys(s).length&&y(s);try{window.fbq?.(r.custom?`trackCustom`:`track`,i,o,{eventID:a})}catch{}let c=n(i);if(c){let e=Number(o.value);t(c,c===`order_created`&&Number.isFinite(e)&&e>0?{type:`contents`,amount:Math.round(e*100),currency:String(o.currency??`EUR`)}:{type:`contents`},a)}let l={events:[{event_name:i,event_id:a,event_time:Math.floor(Date.now()/1e3),event_source_url:window.location.href,action_source:`website`,custom_data:o,user_data:{...s,fbp:h(),fbc:m()}}]};try{let e=JSON.stringify(l);if(navigator.sendBeacon){let t=new Blob([e],{type:`application/json`});if(navigator.sendBeacon(`/api/meta-capi`,t))return}fetch(`/api/meta-capi`,{method:`POST`,headers:{"content-type":`application/json`},body:e,keepalive:!0}
1).catch(()=>{})}catch{}}export{_ as a,t as c,x as i,m as n,C as o,h as r,e as s,p as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.