Edit C:\Users\Administrator\AppData\Local\Microsoft\Windows\INetCache\IE\2KQ37U68\lana[1].js
/* eslint-disable no-param-reassign */ /* eslint-disable no-console */ (function iife() { const MSG_LIMIT = 2000; const defaultOptions = { clientId: '', endpoint: 'https://www.adobe.com/lana/ll', endpointStage: 'https://www.stage.adobe.com/lana/ll', errorType: 'e', sampleRate: 1, tags: '', implicitSampleRate: 1, useProd: true, isProdDomain: false, }; const VALID_SEVERITIES = new Set([ 'd', 'debug', 'i', 'info', 'w', 'warning', 'e', 'error', 'c', 'critical', ]); const w = window; function isProd() { const { host } = window.location; if (host.endsWith('.adobe.com') && !host.endsWith('.corp.adobe.com') && !host.endsWith('.stage.adobe.com')) { return true; } return ['sign.ing', 'edit.ing'].includes(host); } function mergeOptions(op1, op2) { if (!op1) { op1 = {}; } if (!op2) { op2 = {}; } function getOpt(key) { if (op1[key] !== undefined) { return op1[key]; } if (op2[key] !== undefined) { return op2[key]; } return defaultOptions[key]; } return Object.keys(defaultOptions).reduce((options, key) => { options[key] = getOpt(key); return options; }, {}); } function hasDebugParam() { return w.location.search.toLowerCase().indexOf('lanadebug') !== -1; } function isLocalhost() { return w.location.host.toLowerCase().indexOf('localhost') !== -1; } function log(msg, options) { msg = msg && msg.stack ? msg.stack : (msg || ''); if (msg.length > MSG_LIMIT) { msg = `${msg.slice(0, MSG_LIMIT)}<trunc>`; } const o = mergeOptions(options, w.lana.options); if (!o.clientId) { console.warn('LANA ClientID is not set in options.'); return; } let severity; if (options && options.severity !== undefined) { if (VALID_SEVERITIES.has(options.severity)) { severity = options.severity; } else { const isDebugMode = hasDebugParam() || w.lana.debug; const defaultSeverity = isDebugMode ? 'd' : 'i'; console.warn(`LANA: Invalid severity '${options.severity}'. Defaulting to '${defaultSeverity}'.`); severity = defaultSeverity; } } else if (w.lana.debug) { severity = 'd'; } const sampleRateParam = parseInt(new URL(window.location).searchParams.get('lana-sample'), 10); const sampleRate = sampleRateParam || (o.errorType === 'i' ? o.implicitSampleRate : o.sampleRate); if (!w.lana.debug && !w.lana.localhost && sampleRate <= Math.random() * 100) return; const isProdDomain = isProd() || o.isProdDomain; const endpoint = (!isProdDomain || !o.useProd) ? o.endpointStage : o.endpoint; const queryParams = [ `m=${encodeURIComponent(msg)}`, `c=${encodeURI(o.clientId)}`, `s=${sampleRate}`, `t=${encodeURI(o.errorType)}`, ]; if (severity) { queryParams.push(`r=${encodeURI(severity)}`); } if (o.tags) { queryParams.push(`tags=${encodeURI(o.tags)}`); } if (!isProdDomain || w.lana.debug || w.lana.localhost) console.log('LANA Msg: ', msg, '\nOpts:', o); if (!w.lana.localhost || w.lana.debug) { const xhr = new XMLHttpRequest(); if (w.lana.debug) { queryParams.push('d'); xhr.addEventListener('load', () => { console.log('LANA response:', xhr.responseText); }); } xhr.open('GET', `${endpoint}?${queryParams.join('&')}`); xhr.send(); // eslint-disable-next-line consistent-return return xhr; } } function sendUnhandledError(type, e) { const error = e.reason || e.error || e.message; let stack = error?.stack; if (!stack) { const o = {}; Error.captureStackTrace?.(o, sendUnhandledError); stack = o.stack; } log( `${type}: ${String(error)} : ${stack || 'no stack'}`, { errorType: 'i', severity: 'error' }, ); } w.lana = { debug: false, log, options: mergeOptions(w.lana && w.lana.options), }; /* c8 ignore next */ if (hasDebugParam()) w.lana.debug = true; if (isLocalhost()) w.lana.localhost = true; w.addEventListener('error', (e) => sendUnhandledError('unhandled-error', e)); w.addEventListener('unhandledrejection', (e) => sendUnhandledError('unhandled-rejection', e)); }());
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de