PageSourceSearch

https://eosone.com/assets/crossDomainTracking-CW7sdTqf.js

js eosone.com collected 2026-10-05 22:13:50 UTC 2,605 bytes, 1 lines download raw bytes

1import{T as r}from"./posthog-B85mjfOH.js";const P=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id","gclid","gbraid","wbraid","fbclid","msclkid","ttclid","li_fat_id","twclid","irclid","mc_cid","mc_eid","ref","referrer"],_="eosone.com",l=typeof window<"u"?window.location.hostname:"",g=()=>{const t={};if(typeof window>"u")return t;const e=new URLSearchParams(window.location.search);return P.forEach(s=>{const n=e.get(s);n&&(t[s]=n)}),t},k=()=>{if(typeof window>"u")return;const t=g();Object.keys(t).length!==0&&(r.register(t),r.setPersonProperties(t,t))},w=new Set(["app.eosone.com","app.eosone.ca","app.eosone.co.uk","app.eosone.eu","app.eosone.com.au","app.eosone-br.com","app.eosone-sg.com","app.eosone.co.za"]),b=t=>w.has(t.toLowerCase()),S=t=>!t||t===l?!1:b(t)?!0:t===_||t.endsWith(`.${_}`),A=()=>{var t,e;try{(e=(t=r).createPersonProfile)==null||e.call(t)}catch{}},R=t=>{var a,f,u,m;if(!t||/^(mailto:|tel:|javascript:|#)/i.test(t)||typeof window>"u")return t;let e;try{e=new URL(t,window.location.origin)}catch{return t}if(!S(e.hostname))return t;const s=g();Object.entries(s).forEach(([d,h])=>{e.searchParams.has(d)||e.searchParams.set(d,h)}),e.searchParams.has("ref_site")||e.searchParams.set("ref_site",l||"eosone.com");try{const d=typeof document<"u"?document.cookie:"",h=d.match(/(?:^|;\s*)_fbp=([^;]+)/),p=d.match(/(?:^|;\s*)_fbc=([^;]+)/);h&&!e.searchParams.has("_fbp")&&e.searchParams.set("_fbp",decodeURIComponent(h[1])),p&&!e.searchParams.has("_fbc")&&e.searchParams.set("_fbc",decode
1URIComponent(p[1]))}catch{}let n,i;try{n=(f=(a=r).get_distinct_id)==null?void 0:f.call(a),i=(m=(u=r).get_session_id)==null?void 0:m.call(u)}catch{}n&&A();const o=new URLSearchParams(e.hash.startsWith("#")?e.hash.slice(1):e.hash);n&&!o.has("distinct_id")&&o.set("distinct_id",n),i&&!o.has("session_id")&&o.set("session_id",i);const c=o.toString();return e.hash=c?`#${c}`:"",n||e.searchParams.set("ph_did_missing","1"),i||e.searchParams.set("ph_sid_missing","1"),e.toString()},I=(t=1500)=>new Promise(e=>{const s=Date.now(),n=()=>{var i,o,c,a;try{const f=(o=(i=r).get_distinct_id)==null?void 0:o.call(i),u=(a=(c=r).get_session_id)==null?void 0:a.call(c);if(f&&u)return e(!0)}catch{}if(Date.now()-s>=t)return e(!1);setTimeout(n,50)};n()}),y=t=>{const e=t.getAttribute("href");if(!e)return;const s=R(e);s!==e&&t.setAttribute("href",s)},T=()=>{typeof document>"u"||document.addEventListener("click",t=>{const e=t.target;if(!e)return;const s=e.closest("a[href]");s&&y(s)},!0)};export{k as captureIncomingAttribution,R as decorateUrl,T as installClickInterceptor,I as waitForPosthog};

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.