MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / X

Function X

scripts/new-relic.runtime.js:2459–2531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2457 }).observe({ type: 'resource', buffered: !0 })
2458 }
2459 function X() {
2460 const e = {
2461 registeredAt: (0, o.t)(),
2462 reportedAt: void 0,
2463 fetchStart: 0,
2464 fetchEnd: 0,
2465 asset: void 0,
2466 type: 'unknown',
2467 },
2468 t = (function () {
2469 let e
2470 try {
2471 const t = Error.stackTraceLimit
2472 ;(Error.stackTraceLimit = 50),
2473 (e = new Error().stack),
2474 (Error.stackTraceLimit = t)
2475 } catch (t) {
2476 e = new Error().stack
2477 }
2478 return e
2479 })()
2480 if (!t) return e
2481 const r =
2482 f.gm.performance
2483 ?.getEntriesByType('navigation')
2484 ?.find((e) => 'navigation' === e.initiatorType)?.name || ''
2485 try {
2486 const n = (function (e) {
2487 if (!e || 'string' != typeof e) return []
2488 const t = new Set(),
2489 r = e.split('\n')
2490 for (const e of r) {
2491 const r = e.match(Y.cn) || e.match(Y.hB)
2492 r && r[2] && t.add((0, z.L)(r[2]))
2493 }
2494 return [...t]
2495 })(t).at(-1)
2496 if (!n) return e
2497 if (r.includes(n))
2498 return (e.asset = (0, z.L)(r)), (e.type = 'inline'), e
2499 const i =
2500 performance.getEntriesByType('resource').find(s) || [...q].find(s)
2501 function s(e) {
2502 const t = (0, z.L)(e.name)
2503 return t.endsWith(n) || n.endsWith(t)
2504 }
2505 function a(t) {
2506 ;(e.fetchStart = Math.floor(t.startTime)),
2507 (e.fetchEnd = Math.floor(t.responseEnd)),
2508 (e.asset = t.name),
2509 (e.type = t.initiatorType)
2510 }
2511 i
2512 ? a(i)
2513 : (function (e) {
2514 if (!e || !f.gm.document) return !1
2515 try {
2516 const t = f.gm.document.querySelectorAll(

Callers 1

eeFunction · 0.85

Calls 3

aFunction · 0.85
sFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected