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

Function r

scripts/new-relic.runtime.js:620–683  ·  view source on GitHub ↗
(t, r, n, c, d)

Source from the content-addressed store, hash-verified

618 r
619 )
620 function r(t, r, n, c, d) {
621 return l(t)
622 ? t
623 : (r || (r = ''),
624 (nrWrapper[s] = t),
625 (function (e, t, r) {
626 if (Object.defineProperty && Object.keys)
627 try {
628 return (
629 Object.keys(e).forEach(function (r) {
630 Object.defineProperty(t, r, {
631 get: function () {
632 return e[r]
633 },
634 set: function (t) {
635 return (e[r] = t), t
636 },
637 })
638 }),
639 t
640 )
641 } catch (e) {
642 u([e], r)
643 }
644 for (var n in e) a.call(e, n) && (t[n] = e[n])
645 })(t, nrWrapper, e),
646 nrWrapper)
647 function nrWrapper() {
648 var s, a, l, f
649 let h
650 try {
651 ;(a = this),
652 (s = [...arguments]),
653 (l = 'function' == typeof n ? n(s, a) : n || {})
654 } catch (t) {
655 u([t, '', [s, a, c], l], e)
656 }
657 i(r + 'start', [s, a, c], l, d)
658 const p = performance.now()
659 let g
660 try {
661 return (f = t.apply(a, s)), (g = performance.now()), f
662 } catch (e) {
663 throw (
664 ((g = performance.now()),
665 i(r + 'err', [s, a, e], l, d),
666 (h = e),
667 h)
668 )
669 } finally {
670 const e = g - p,
671 t = {
672 start: p,
673 end: g,
674 duration: e,
675 isLongTask: e >= o,
676 methodName: c,
677 thrownError: h,

Callers 7

dFunction · 0.70
oFunction · 0.70
fFunction · 0.70
iFunction · 0.70
yFunction · 0.70
beFunction · 0.70

Calls 2

lFunction · 0.85
uFunction · 0.85

Tested by

no test coverage detected