1const g="Documents.DownloadTracking",r="/api/document-view";function c(){return window.FeatureFlags?.[g]===!0}function d(){const e=document.querySelector('meta[name="page-id"]'),t=document.querySelector('meta[name="nav-level"]');return{pageId:e&&parseInt(e.content,10)||null,navLevel:t&&parseInt(t.content,10)||null}}function l(){const e=window.getDeviceInfo?.();return e?e.isMobile||e.isTablet:/Mobi|Android|iPhone|iPad/i.test(navigator.userAgent)}function a(e){try{const t=JSON.stringify(e);if(navigator.sendBeacon){const n=new Blob([t],{type:"application/json"});navigator.sendBeacon(r,n)}else fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:t,keepalive:!0})}catch{}}function v(e){try{const n=new URL(e,window.location.origin).pathname.split("/");return n[n.length-1]||null}catch{return null}}function s(e,t){const n=d();return{document_drawer_id:parseInt(e.getAttribute("data-drawer-id")??"0",10),source_table:e.getAttribute("data-source-table")??"",source_id:parseInt(e.getAttribute("data-source-id")??"0",10)||0,display_mode:t,page_id:n.pageId,nav_level:n.navLevel,is_mobile:l()}}function p(e,t){const n=d();return{doc_ref:e,source_table:"documents",source_id:0,display_mode:t,page_id:n.pageId,nav_level:n.navLevel,is_mobile:l()}}function b(e){const t=e.currentTarget;if(!t.hasAttribute("data-drawer-id"))return;const n=s(t,"link_click");a(n)}function m(e){const n=e.target.closest("a[href]");if(!n||n.hasAttribute("data-drawer-id"))return;const u=n.getAttribute("href")??"";if(!/\.pdf$/i.test(u.split("?")[0].split("#")[0]))return;const i=v(n.href);if(!i)return;const f=p(i,"link_click");a(f)}function w(){document.querySelectorAll("a[data-drawer-id]").forEach(t=>{t.addEventListener("click",b)}),document.addEventListener("click",m)}function k(e){if(!c()||!e?.hasAttribute("data-drawer-id"))return;const t=s(e,"embed_view");a(t)}function o(){c()&&w()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o();window.trackDocumentEmbedView=k; 2//# sourceMappingURL=documentTracking-DpFeUOWR.js.map
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.