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

Method constructor

scripts/new-relic.runtime.js:3417–3469  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3415 class ze extends y {
3416 static featureName = Ue
3417 constructor(e) {
3418 var r
3419 super(e, Ue),
3420 (r = e),
3421 (0, c.Y)(
3422 a.U2,
3423 function (e) {
3424 if (!(e && 'object' == typeof e && e.name && e.start)) return
3425 const n = {
3426 n: e.name,
3427 s: e.start - f.WN,
3428 e: (e.end || e.start) - f.WN,
3429 o: e.origin || '',
3430 t: 'api',
3431 }
3432 n.s < 0 || n.e < 0 || n.e < n.s
3433 ? (0, h.R)(61, { start: n.s, end: n.e })
3434 : (0, s.p)('bstApi', [n], void 0, t.K7.sessionTrace, r.ee)
3435 },
3436 r
3437 ),
3438 Me(e)
3439 if (!(0, g.V)(e.init)) return void this.deregisterDrain()
3440 const n = this.ee
3441 let d
3442 je(n),
3443 (this.eventsEE = (0, oe.u)(n)),
3444 this.eventsEE.on(Ve, function (e, t) {
3445 this.bstStart = (0, o.t)()
3446 }),
3447 this.eventsEE.on(Fe, function (e, r) {
3448 ;(0,
3449 s.p)('bst', [e[0], r, this.bstStart, (0, o.t)()], void 0, t.K7.sessionTrace, n)
3450 }),
3451 n.on(Ge + Ke, function (e) {
3452 ;(this.time = (0, o.t)()),
3453 (this.startPath = location.pathname + location.hash)
3454 }),
3455 n.on(Ge + We, function (e) {
3456 ;(0,
3457 s.p)('bstHist', [location.pathname + location.hash, this.startPath, this.time], void 0, t.K7.sessionTrace, n)
3458 })
3459 try {
3460 ;(d = new PerformanceObserver((e) => {
3461 const r = e.getEntries()
3462 ;(0, s.p)(Be, [r], void 0, t.K7.sessionTrace, n)
3463 })),
3464 d.observe({ type: He, buffered: !0 })
3465 } catch (e) {}
3466 this.importAggregator(e, () => i.e(478).then(i.bind(i, 6974)), {
3467 resourceObserver: d,
3468 })
3469 }
3470 }
3471 var Ye = i(6344)
3472 class qe extends y {

Callers

nothing calls this directly

Calls 4

MeFunction · 0.85
jeFunction · 0.85
deregisterDrainMethod · 0.80
importAggregatorMethod · 0.80

Tested by

no test coverage detected