1(function (window, document) { 2 'use strict'; 3 4 function normalizeProjectId(projectId) { 5 projectId = (projectId || '').toString().trim(); 6 return /^[a-zA-Z0-9_-]{5,50}$/.test(projectId) ? projectId : ''; 7 } 8 9 function init(projectId) { 10 projectId = normalizeProjectId(projectId); 11 12 if (!projectId || window.__ticketnautaClarityProjectId) { 13 return window.__ticketnautaClarityProjectId || ''; 14 } 15 16 window.clarity = window.clarity || function () { 17 (window.clarity.q = window.clarity.q || []).push(arguments); 18 }; 19 20 var script = document.createElement('script'); 21 var firstScript = document.getElementsByTagName('script')[0]; 22 script.async = true; 23 script.src = 'https://www.clarity.ms/tag/' + encodeURIComponent(projectId); 24 firstScript.parentNode.insertBefore(script, firstScript); 25 26 window.__ticketnautaClarityProjectId = projectId; 27 return projectId; 28 } 29 30 window.TicketnautaClarity = { 31 init: init 32 }; 33})(window, document);
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.