1(function loadMechrevoTrack(win, doc) { 2 try { 3 var currentScript = doc.currentScript; 4 var params = new URLSearchParams(currentScript && currentScript.src ? currentScript.src.split('?')[1] || '' : ''); 5 var appId = params.get('app_id') || 'mechrevo_official_site'; 6 var site = params.get('site') || ''; 7 var base = params.get('base') || 'https://track.mechrevo.com/sdk'; 8 var version = params.get('v') || 'latest'; 9 var configUrl = params.get('config') || 'https://track.mechrevo.com/sdk/config/' + appId + '.json'; 10 var runtimeBuild = '20260718-event-id-cache-bust'; 11 var sdkUrl = base + '/' + version + '/web-track.js?build=' + runtimeBuild; 12 13 win.MechrevoTrackConfig = Object.assign({ 14 appId: appId, 15 site: site, 16 configUrl: configUrl, 17 sdkBaseUrl: base, 18 sdkVersion: version 19 }, win.MechrevoTrackConfig || {}); 20 21 var sdk = doc.createElement('script'); 22 sdk.async = true; 23 sdk.src = sdkUrl; 24 sdk.onload = function () { 25 if (win.MechrevoTrack && typeof win.MechrevoTrack.init === 'function') { 26 win.MechrevoTrack.init(win.MechrevoTrackConfig).catch(function (_error) {}); 27 } 28 }; 29 var first = doc.getElementsByTagName('script')[0]; 30 first.parentNode.insertBefore(sdk, first); 31 } catch (_error) {} 32})(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.