@newrelic/browser-agent 0.0.9 → 0.1.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -207
- package/dist/cjs/cdn/lite.js +14 -0
- package/dist/cjs/cdn/polyfills/lite.js +4 -0
- package/dist/cjs/cdn/polyfills/pro.js +4 -0
- package/dist/cjs/cdn/polyfills/spa.js +4 -0
- package/dist/cjs/cdn/polyfills.js +14 -0
- package/dist/cjs/cdn/pro.js +19 -0
- package/dist/cjs/cdn/spa.js +19 -0
- package/dist/cjs/cdn/worker.js +16 -0
- package/dist/cjs/common/aggregate/aggregator.js +168 -0
- package/dist/cjs/common/browser-version/firefox-version.js +17 -0
- package/dist/cjs/common/browser-version/ios-version.js +18 -0
- package/dist/cjs/common/config/config.js +76 -0
- package/dist/cjs/common/config/state/configurable.js +32 -0
- package/dist/cjs/common/config/state/info.js +50 -0
- package/dist/cjs/common/config/state/init.js +86 -0
- package/dist/cjs/common/config/state/loader-config.js +28 -0
- package/dist/cjs/common/config/state/originals.js +9 -0
- package/dist/cjs/common/config/state/runtime.js +50 -0
- package/dist/cjs/common/constants/environment-variables.js +20 -0
- package/dist/cjs/common/context/shared-context.js +25 -0
- package/dist/cjs/common/deny-list/deny-list.js +108 -0
- package/dist/cjs/common/drain/drain.js +126 -0
- package/dist/cjs/common/event-emitter/contextual-ee.js +149 -0
- package/dist/cjs/common/event-emitter/handle.js +24 -0
- package/dist/cjs/common/event-emitter/register-handler.js +24 -0
- package/dist/cjs/common/event-listener/event-listener-opts.js +46 -0
- package/dist/cjs/common/harvest/harvest-scheduler.js +111 -0
- package/dist/cjs/common/harvest/harvest.js +236 -0
- package/dist/cjs/common/ids/id.js +30 -0
- package/dist/cjs/common/ids/unique-id.js +84 -0
- package/dist/cjs/common/metrics/framework-detection.js +72 -0
- package/dist/cjs/common/metrics/paint-metrics.js +13 -0
- package/dist/cjs/common/serialize/bel-serializer.js +89 -0
- package/dist/cjs/common/timing/nav-timing.js +77 -0
- package/dist/cjs/common/timing/now.js +15 -0
- package/dist/cjs/common/unload/eol.js +69 -0
- package/dist/cjs/common/url/clean-url.js +16 -0
- package/dist/cjs/common/url/encode.js +79 -0
- package/dist/cjs/common/url/location.js +14 -0
- package/dist/cjs/common/url/parse-url.js +66 -0
- package/dist/cjs/common/url/protocol.js +25 -0
- package/dist/cjs/common/util/console.js +17 -0
- package/dist/cjs/common/util/data-size.js +25 -0
- package/dist/cjs/common/util/feature-flags.js +42 -0
- package/dist/cjs/common/util/get-or-set.js +39 -0
- package/dist/cjs/common/util/global-scope.js +56 -0
- package/dist/cjs/common/util/map-own.js +24 -0
- package/dist/cjs/common/util/obfuscate.js +76 -0
- package/dist/cjs/common/util/reduce.js +22 -0
- package/dist/cjs/common/util/s-hash.js +19 -0
- package/dist/cjs/common/util/single.js +23 -0
- package/dist/cjs/common/util/stringify.js +47 -0
- package/dist/cjs/common/util/submit-data.js +99 -0
- package/dist/cjs/common/util/traverse.js +41 -0
- package/dist/cjs/common/util/user-agent.js +57 -0
- package/dist/cjs/common/window/load.js +19 -0
- package/dist/cjs/common/window/nreum.js +107 -0
- package/dist/cjs/common/window/page-visibility.js +28 -0
- package/dist/cjs/common/window/session-storage.js +42 -0
- package/dist/cjs/common/window/supports-performance-observer.js +15 -0
- package/dist/cjs/common/window/top-level-callers.js +23 -0
- package/dist/cjs/common/wrap/index.js +68 -0
- package/dist/cjs/common/wrap/wrap-events.js +105 -0
- package/dist/cjs/common/wrap/wrap-fetch.js +114 -0
- package/dist/cjs/common/wrap/wrap-function.js +269 -0
- package/dist/cjs/common/wrap/wrap-history.js +56 -0
- package/dist/cjs/common/wrap/wrap-jsonp.js +129 -0
- package/dist/cjs/common/wrap/wrap-mutation.js +61 -0
- package/dist/cjs/common/wrap/wrap-promise.js +160 -0
- package/dist/cjs/common/wrap/wrap-raf.js +55 -0
- package/dist/cjs/common/wrap/wrap-timer.js +70 -0
- package/dist/cjs/common/wrap/wrap-xhr.js +206 -0
- package/dist/cjs/features/ajax/aggregate/index.js +226 -0
- package/dist/cjs/features/ajax/constants.js +9 -0
- package/dist/cjs/features/ajax/index.js +12 -0
- package/dist/cjs/features/ajax/instrument/distributed-tracing.js +145 -0
- package/dist/cjs/features/ajax/instrument/index.js +338 -0
- package/dist/cjs/features/ajax/instrument/response-size.js +26 -0
- package/dist/cjs/features/jserrors/aggregate/canonical-function-name.js +18 -0
- package/dist/cjs/features/jserrors/aggregate/canonical-function-name.test.js +30 -0
- package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.js +216 -0
- package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.test.js +257 -0
- package/dist/cjs/features/jserrors/aggregate/format-stack-trace.js +36 -0
- package/dist/cjs/features/jserrors/aggregate/format-stack-trace.test.js +39 -0
- package/dist/cjs/features/jserrors/aggregate/index.js +267 -0
- package/dist/cjs/features/jserrors/aggregate/string-hash-code.js +23 -0
- package/dist/cjs/features/jserrors/aggregate/string-hash-code.test.js +26 -0
- package/dist/cjs/features/jserrors/constants.js +11 -0
- package/dist/cjs/features/jserrors/index.js +12 -0
- package/dist/cjs/features/jserrors/instrument/debug.js +40 -0
- package/dist/cjs/features/jserrors/instrument/index.js +158 -0
- package/dist/cjs/features/metrics/aggregate/index.js +136 -0
- package/dist/cjs/features/metrics/constants.js +17 -0
- package/dist/cjs/features/metrics/index.js +12 -0
- package/dist/cjs/features/metrics/instrument/index.js +20 -0
- package/dist/cjs/features/metrics/instrument/workers-helper.js +121 -0
- package/dist/cjs/features/page_action/aggregate/index.js +112 -0
- package/dist/cjs/features/page_action/constants.js +9 -0
- package/dist/cjs/features/page_action/index.js +12 -0
- package/dist/cjs/features/page_action/instrument/index.js +21 -0
- package/dist/cjs/features/page_view_event/aggregate/index.js +133 -0
- package/dist/cjs/features/page_view_event/aggregate/initialized-features.js +39 -0
- package/dist/cjs/features/page_view_event/constants.js +15 -0
- package/dist/cjs/features/page_view_event/index.js +12 -0
- package/dist/cjs/features/page_view_event/instrument/index.js +38 -0
- package/dist/cjs/features/page_view_timing/aggregate/index.js +265 -0
- package/dist/cjs/features/page_view_timing/constants.js +9 -0
- package/dist/cjs/features/page_view_timing/first-paint.js +50 -0
- package/dist/cjs/features/page_view_timing/index.js +12 -0
- package/dist/cjs/features/page_view_timing/instrument/index.js +36 -0
- package/dist/cjs/features/page_view_timing/long-tasks.js +75 -0
- package/dist/cjs/features/session_trace/aggregate/index.js +375 -0
- package/dist/cjs/features/session_trace/constants.js +32 -0
- package/dist/cjs/features/session_trace/index.js +12 -0
- package/dist/cjs/features/session_trace/instrument/index.js +133 -0
- package/dist/cjs/features/spa/aggregate/index.js +684 -0
- package/dist/cjs/features/spa/aggregate/interaction-node.js +84 -0
- package/dist/cjs/features/spa/aggregate/interaction-node.test.js +16 -0
- package/dist/cjs/features/spa/aggregate/interaction.js +98 -0
- package/dist/cjs/features/spa/aggregate/serializer.js +147 -0
- package/dist/cjs/features/spa/constants.js +53 -0
- package/dist/cjs/features/spa/index.js +12 -0
- package/dist/cjs/features/spa/instrument/index.js +114 -0
- package/dist/cjs/features/utils/aggregate-base.js +13 -0
- package/dist/cjs/features/utils/feature-base.js +58 -0
- package/dist/cjs/features/utils/handler-cache.js +64 -0
- package/dist/cjs/features/utils/instrument-base.js +71 -0
- package/dist/cjs/features/utils/lazy-loader.js +44 -0
- package/dist/cjs/index.js +81 -58
- package/dist/cjs/loaders/agent.js +86 -0
- package/dist/cjs/loaders/api/api.js +109 -0
- package/dist/cjs/loaders/api/apiAsync.js +94 -0
- package/dist/cjs/loaders/browser-agent.js +29 -0
- package/dist/cjs/loaders/configure/configure.js +47 -0
- package/dist/cjs/loaders/features/enabled-features.js +19 -0
- package/dist/cjs/loaders/features/featureDependencies.js +32 -0
- package/dist/cjs/loaders/features/features.js +33 -0
- package/dist/cjs/loaders/micro-agent.js +93 -0
- package/dist/cjs/loaders/worker-agent.js +24 -0
- package/dist/esm/cdn/lite.js +12 -0
- package/dist/esm/cdn/polyfills/lite.js +7 -0
- package/dist/esm/cdn/polyfills/pro.js +7 -0
- package/dist/esm/cdn/polyfills/spa.js +7 -0
- package/dist/esm/cdn/polyfills.js +17 -0
- package/dist/esm/cdn/pro.js +17 -0
- package/dist/esm/cdn/spa.js +17 -0
- package/dist/esm/cdn/worker.js +14 -0
- package/dist/esm/common/aggregate/aggregator.js +161 -0
- package/dist/esm/common/browser-version/firefox-version.js +10 -0
- package/dist/esm/common/browser-version/ios-version.js +10 -0
- package/dist/esm/common/config/config.js +11 -0
- package/dist/esm/common/config/state/configurable.js +25 -0
- package/dist/esm/common/config/state/info.js +42 -0
- package/dist/esm/common/config/state/init.js +78 -0
- package/dist/esm/common/config/state/loader-config.js +21 -0
- package/dist/esm/common/config/state/originals.js +2 -0
- package/dist/esm/common/config/state/runtime.js +41 -0
- package/dist/esm/common/constants/environment-variables.js +11 -0
- package/dist/esm/common/context/shared-context.js +18 -0
- package/dist/esm/common/deny-list/deny-list.js +101 -0
- package/dist/esm/common/drain/drain.js +119 -0
- package/dist/esm/common/event-emitter/contextual-ee.js +142 -0
- package/dist/esm/common/event-emitter/handle.js +16 -0
- package/dist/esm/common/event-emitter/register-handler.js +19 -0
- package/dist/esm/common/event-listener/event-listener-opts.js +39 -0
- package/dist/esm/common/harvest/harvest-scheduler.js +105 -0
- package/dist/esm/common/harvest/harvest.js +228 -0
- package/dist/esm/common/ids/id.js +23 -0
- package/dist/esm/common/ids/unique-id.js +75 -0
- package/dist/esm/common/metrics/framework-detection.js +66 -0
- package/dist/esm/common/metrics/paint-metrics.js +6 -0
- package/dist/esm/common/serialize/bel-serializer.js +80 -0
- package/dist/esm/common/timing/nav-timing.js +67 -0
- package/dist/esm/common/timing/now.js +9 -0
- package/dist/esm/common/unload/eol.js +62 -0
- package/dist/esm/common/url/clean-url.js +10 -0
- package/dist/esm/common/url/encode.js +71 -0
- package/dist/esm/common/url/location.js +8 -0
- package/dist/esm/common/url/parse-url.js +60 -0
- package/dist/esm/common/url/protocol.js +17 -0
- package/dist/esm/common/util/console.js +11 -0
- package/dist/esm/common/util/data-size.js +19 -0
- package/dist/esm/common/util/feature-flags.js +33 -0
- package/dist/esm/common/util/get-or-set.js +33 -0
- package/dist/esm/common/util/global-scope.js +44 -0
- package/dist/esm/common/util/map-own.js +18 -0
- package/dist/esm/common/util/obfuscate.js +67 -0
- package/dist/esm/common/util/reduce.js +16 -0
- package/dist/esm/common/util/s-hash.js +13 -0
- package/dist/esm/common/util/single.js +16 -0
- package/dist/esm/common/util/stringify.js +42 -0
- package/dist/esm/common/util/submit-data.js +91 -0
- package/dist/esm/common/util/traverse.js +35 -0
- package/dist/esm/common/util/user-agent.js +48 -0
- package/dist/esm/common/window/load.js +12 -0
- package/dist/esm/common/window/nreum.js +91 -0
- package/dist/esm/common/window/page-visibility.js +23 -0
- package/dist/esm/common/window/session-storage.js +36 -0
- package/dist/esm/common/window/supports-performance-observer.js +9 -0
- package/dist/esm/common/window/top-level-callers.js +17 -0
- package/dist/esm/common/wrap/index.js +14 -0
- package/dist/esm/common/wrap/wrap-events.js +97 -0
- package/dist/esm/common/wrap/wrap-fetch.js +105 -0
- package/dist/esm/common/wrap/wrap-function.js +257 -0
- package/dist/esm/common/wrap/wrap-history.js +48 -0
- package/dist/esm/common/wrap/wrap-jsonp.js +122 -0
- package/dist/esm/common/wrap/wrap-mutation.js +54 -0
- package/dist/esm/common/wrap/wrap-promise.js +153 -0
- package/dist/esm/common/wrap/wrap-raf.js +48 -0
- package/dist/esm/common/wrap/wrap-timer.js +63 -0
- package/dist/esm/common/wrap/wrap-xhr.js +199 -0
- package/dist/esm/features/ajax/aggregate/index.js +218 -0
- package/dist/esm/features/ajax/constants.js +2 -0
- package/dist/esm/features/ajax/index.js +1 -0
- package/dist/esm/features/ajax/instrument/distributed-tracing.js +137 -0
- package/dist/esm/features/ajax/instrument/index.js +330 -0
- package/dist/esm/features/ajax/instrument/response-size.js +19 -0
- package/dist/esm/features/jserrors/aggregate/canonical-function-name.js +12 -0
- package/dist/esm/features/jserrors/aggregate/canonical-function-name.test.js +28 -0
- package/dist/esm/features/jserrors/aggregate/compute-stack-trace.js +209 -0
- package/dist/esm/features/jserrors/aggregate/compute-stack-trace.test.js +255 -0
- package/dist/esm/features/jserrors/aggregate/format-stack-trace.js +29 -0
- package/dist/esm/features/jserrors/aggregate/format-stack-trace.test.js +37 -0
- package/dist/esm/features/jserrors/aggregate/index.js +260 -0
- package/dist/esm/features/jserrors/aggregate/string-hash-code.js +17 -0
- package/dist/esm/features/jserrors/aggregate/string-hash-code.test.js +24 -0
- package/dist/esm/features/jserrors/constants.js +3 -0
- package/dist/esm/features/jserrors/index.js +1 -0
- package/dist/esm/features/jserrors/instrument/debug.js +38 -0
- package/dist/esm/features/jserrors/instrument/index.js +150 -0
- package/dist/esm/features/metrics/aggregate/index.js +129 -0
- package/dist/esm/features/metrics/constants.js +6 -0
- package/dist/esm/features/metrics/index.js +1 -0
- package/dist/esm/features/metrics/instrument/index.js +13 -0
- package/dist/esm/features/metrics/instrument/workers-helper.js +116 -0
- package/dist/esm/features/page_action/aggregate/index.js +105 -0
- package/dist/esm/features/page_action/constants.js +2 -0
- package/dist/esm/features/page_action/index.js +1 -0
- package/dist/esm/features/page_action/instrument/index.js +14 -0
- package/dist/esm/features/page_view_event/aggregate/index.js +124 -0
- package/dist/esm/features/page_view_event/aggregate/initialized-features.js +34 -0
- package/dist/esm/features/page_view_event/constants.js +5 -0
- package/dist/esm/features/page_view_event/index.js +1 -0
- package/dist/esm/features/page_view_event/instrument/index.js +29 -0
- package/dist/esm/features/page_view_timing/aggregate/index.js +258 -0
- package/dist/esm/features/page_view_timing/constants.js +2 -0
- package/dist/esm/features/page_view_timing/first-paint.js +43 -0
- package/dist/esm/features/page_view_timing/index.js +1 -0
- package/dist/esm/features/page_view_timing/instrument/index.js +28 -0
- package/dist/esm/features/page_view_timing/long-tasks.js +69 -0
- package/dist/esm/features/session_trace/aggregate/index.js +366 -0
- package/dist/esm/features/session_trace/constants.js +14 -0
- package/dist/esm/features/session_trace/index.js +1 -0
- package/dist/esm/features/session_trace/instrument/index.js +123 -0
- package/dist/esm/features/spa/aggregate/index.js +674 -0
- package/dist/esm/features/spa/aggregate/interaction-node.js +78 -0
- package/dist/esm/features/spa/aggregate/interaction-node.test.js +14 -0
- package/dist/esm/features/spa/aggregate/interaction.js +92 -0
- package/dist/esm/features/spa/aggregate/serializer.js +139 -0
- package/dist/esm/features/spa/constants.js +25 -0
- package/dist/esm/features/spa/index.js +1 -0
- package/dist/esm/features/spa/instrument/index.js +104 -0
- package/dist/esm/features/utils/aggregate-base.js +6 -0
- package/dist/esm/features/utils/feature-base.js +51 -0
- package/dist/esm/features/utils/handler-cache.js +57 -0
- package/dist/esm/features/utils/instrument-base.js +69 -0
- package/dist/esm/features/utils/lazy-loader.js +37 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/loaders/agent.js +77 -0
- package/dist/esm/loaders/api/api.js +104 -0
- package/dist/esm/loaders/api/apiAsync.js +88 -0
- package/dist/esm/loaders/browser-agent.js +23 -0
- package/dist/esm/loaders/configure/configure.js +41 -0
- package/dist/esm/loaders/features/enabled-features.js +13 -0
- package/dist/esm/loaders/features/featureDependencies.js +25 -0
- package/dist/esm/loaders/features/features.js +25 -0
- package/dist/esm/loaders/micro-agent.js +86 -0
- package/dist/esm/loaders/worker-agent.js +18 -0
- package/package.json +204 -71
- package/types.ts +221 -0
- package/dist/bundled/es5/index.js +0 -2
- package/dist/bundled/es5/index.js.map +0 -1
- package/dist/bundled/es6/index.js +0 -2
- package/dist/bundled/es6/index.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -19
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types.d.ts +0 -94
- package/dist/cjs/types.js +0 -28
- package/dist/cjs/types.js.map +0 -1
- package/dist/cjs/utils/api/api.d.ts +0 -10
- package/dist/cjs/utils/api/api.js +0 -40
- package/dist/cjs/utils/api/api.js.map +0 -1
- package/dist/cjs/utils/config/build-configs.d.ts +0 -6
- package/dist/cjs/utils/config/build-configs.js +0 -68
- package/dist/cjs/utils/config/build-configs.js.map +0 -1
- package/dist/cjs/utils/features/features.d.ts +0 -5
- package/dist/cjs/utils/features/features.js +0 -14
- package/dist/cjs/utils/features/features.js.map +0 -1
- package/dist/cjs/utils/features/initialize.d.ts +0 -5
- package/dist/cjs/utils/features/initialize.js +0 -51
- package/dist/cjs/utils/features/initialize.js.map +0 -1
- package/dist/es/index.d.ts +0 -19
- package/dist/es/index.js +0 -55
- package/dist/es/index.js.map +0 -1
- package/dist/es/types.d.ts +0 -94
- package/dist/es/types.js +0 -24
- package/dist/es/types.js.map +0 -1
- package/dist/es/utils/api/api.d.ts +0 -10
- package/dist/es/utils/api/api.js +0 -36
- package/dist/es/utils/api/api.js.map +0 -1
- package/dist/es/utils/config/build-configs.d.ts +0 -6
- package/dist/es/utils/config/build-configs.js +0 -64
- package/dist/es/utils/config/build-configs.js.map +0 -1
- package/dist/es/utils/features/features.d.ts +0 -5
- package/dist/es/utils/features/features.js +0 -10
- package/dist/es/utils/features/features.js.map +0 -1
- package/dist/es/utils/features/initialize.d.ts +0 -5
- package/dist/es/utils/features/initialize.js +0 -24
- package/dist/es/utils/features/initialize.js.map +0 -1
- package/dist/umd/index.d.ts +0 -19
- package/dist/umd/index.js +0 -69
- package/dist/umd/index.js.map +0 -1
- package/dist/umd/types.d.ts +0 -94
- package/dist/umd/types.js +0 -38
- package/dist/umd/types.js.map +0 -1
- package/dist/umd/utils/api/api.d.ts +0 -10
- package/dist/umd/utils/api/api.js +0 -50
- package/dist/umd/utils/api/api.js.map +0 -1
- package/dist/umd/utils/config/build-configs.d.ts +0 -6
- package/dist/umd/utils/config/build-configs.js +0 -78
- package/dist/umd/utils/config/build-configs.js.map +0 -1
- package/dist/umd/utils/features/features.d.ts +0 -5
- package/dist/umd/utils/features/features.js +0 -24
- package/dist/umd/utils/features/features.js.map +0 -1
- package/dist/umd/utils/features/initialize.d.ts +0 -5
- package/dist/umd/utils/features/initialize.js +0 -63
- package/dist/umd/utils/features/initialize.js.map +0 -1
- package/dist/webpack-analysis.html +0 -38
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(()=>(()=>{var e={4460:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregator:()=>s});var n=r(6469),i=r(1558);class s extends n.w{constructor(e){super(e),this.aggregatedData={}}store(e,t,r,n,s){var a=this.getBucket(e,t,r,s);return a.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,r){t[e]=o(r,t[e])})),t}(n,a.metrics),a}merge(e,t,r,n,s){var c=this.getBucket(e,t,n,s);if(c.metrics){var u=c.metrics;u.count+=r.count,(0,i.D)(r,(function(e,t){if("count"!==e){var n=u[e],i=r[e];i&&!i.c?u[e]=o(i.t,n):u[e]=function(e,t){return t?(t.c||(t=a(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,u[e])}}))}else c.metrics=r}storeMetric(e,t,r,n){var i=this.getBucket(e,t,r);return i.stats=o(n,i.stats),i}getBucket(e,t,r,n){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:r||{}},n&&(i.custom=n)),i}get(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}take(e){for(var t={},r="",n=!1,s=0;s<e.length;s++)t[r=e[s]]="object"!=typeof(o=this.aggregatedData[r])?[]:(0,i.D)(o,c),t[r].length&&(n=!0),delete this.aggregatedData[r];var o;return n?t:null}}function o(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=a(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function a(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function c(e,t){return t}},2572:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var n=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(n=+i[1])},3821:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=document.createElement("div");n.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,s=n.getElementsByTagName("div").length;i=4===s?6:3===s?7:2===s?8:1===s?9:0},9230:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getConfiguration:()=>i.P_,getConfigurationValue:()=>i.Mt,getInfo:()=>n.C,getLoaderConfig:()=>s.D,getRuntime:()=>a.O,originals:()=>o.Y,setConfiguration:()=>i.Dg,setInfo:()=>n.L,setLoaderConfig:()=>s.G,setRuntime:()=>a.s});var n=r(9729),i=r(6061),s=r(5501),o=r(5307),a=r(2909)},9754:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});class n{constructor(e,t){return e&&"object"==typeof e?t&&"object"==typeof t?(Object.assign(this,t),void Object.entries(e).forEach((([e,r])=>{Object.keys(t).includes(e)&&(this[e]=r)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}}},9729:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,L:()=>c});var n=r(8240),i=r(9754);const s={beacon:n.defaults.beacon,errorBeacon:n.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Info for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"info")}},6061:(e,t,r)=>{"use strict";r.d(t,{Dg:()=>c,Mt:()=>u,P_:()=>a});var n=r(8240),i=r(9754);const s={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`Configuration for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"config")}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var r=a(e);if(r){for(var n=t.split("."),i=0;i<n.length-1;i++)if("object"!=typeof(r=r[n[i]]))return;r=r[n[n.length-1]]}return r}},5501:(e,t,r)=>{"use strict";r.d(t,{D:()=>a,G:()=>c});var n=r(8240),i=r(9754);const s={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},o={};function a(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!o[e])throw new Error(`LoaderConfig for ${e} was never set`);return o[e]}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");o[e]=new i.I(t,s),(0,n.gosNREUMInitializedAgents)(e,o[e],"loader_config")}},5307:(e,t,r)=>{"use strict";r.d(t,{Y:()=>n});const n=(0,r(8240).gosNREUMOriginals)().o},2909:(e,t,r)=>{"use strict";r.d(t,{O:()=>m,s:()=>b});var n={};r.r(n),r.d(n,{agent:()=>o,match:()=>d,version:()=>a});var i=r(3821),s=r(2997),o=null,a=null;if(navigator.userAgent){var c=navigator.userAgent,u=c.match(/Version\/(\S+)\s+Safari/);u&&-1===c.indexOf("Chrome")&&-1===c.indexOf("Chromium")&&(o="Safari",a=u[1])}function d(e,t){if(!o)return!1;if(e!==o)return!1;if(!t)return!0;if(!a)return!1;for(var r=a.split("."),n=t.split("."),i=0;i<n.length;i++)if(n[i]!==r[i])return!1;return!0}var h=r(9754),l=r(8240),f=window.XMLHttpRequest,v=f&&f.prototype;const g={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,s.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:f&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:n},p={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!p[e])throw new Error(`Runtime for ${e} was never set`);return p[e]}function b(e,t){if(!e)throw new Error("All config objects require an agent identifier!");p[e]=new h.I(t,g),(0,l.gosNREUMInitializedAgents)(e,p[e],"runtime")}},6469:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});const n={agentIdentifier:""};class i{constructor(e){if("object"!=typeof e)return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,n),Object.entries(e).forEach((([e,t])=>{Object.keys(n).includes(e)&&(this.sharedContext[e]=t)}))}}},2755:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,ee:()=>c});var n=r(8240),i=r(9381),s=r(1558);let o=(0,n.gosNREUM)();var a;o.ee?a=o.ee:(a=d(void 0,"globalEE"),o.ee=a);var c=d(void 0,"baseEE");function u(){}function d(e,t){var r={},n={},o={},a={on:v,addEventListener:v,removeEventListener:function(e,t){var n=r[e];if(n)for(var i=0;i<n.length;i++)n[i]===t&&n.splice(i,1)},emit:function(t,r,i,s,o){if(!1!==o&&(o=!0),!c.aborted||s){e&&o&&e.emit(t,r,i);for(var u=f(i),d=g(t),h=d.length,l=0;l<h;l++)d[l].apply(u,r);var v=p()[n[t]];return v&&v.push([a,t,r,u]),u}},get:function(e){return o[e]=o[e]||d(a,e)},listeners:g,context:f,buffer:function(e,t){var r=p();a.aborted||(0,s.D)(e,(function(e,i){t=t||"feature",n[i]=t,t in r||(r[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!p()[n[e]]},debugId:t};return e||(a.backlog={}),a;function f(e){return e&&e instanceof u?e:e?(0,i.X)(e,"nr@context",h):h()}function v(e,t){r[e]=g(e).concat(t)}function g(e){return r[e]||[]}function p(){return e?e.backlog:a.backlog}}function h(){return new u}function l(){(c.backlog.api||c.backlog.feature)&&(c.aborted=!0,c.backlog={})}},2995:(e,t,r)=>{"use strict";r.d(t,{EM:()=>i,l_:()=>s,pr:()=>o});var n=r(2755),i=n.ee.get("handle"),s=n.C.get("handle");function o(e,t,r,n,s){s?(s.buffer([e],n),s.emit(e,t,r)):(i.buffer([e],n),i.emit(e,t,r))}},3406:(e,t,r)=>{"use strict";r.d(t,{XN:()=>o,rP:()=>o});var n=r(2995);o.on=a;var i=o.handlers={},s=function(e,t,r){a(n.l_,s,e,t,r)}.handlers={};function o(e,t,r,s){a(s||n.EM,i,e,t,r)}function a(e,t,r,i,s){if(s||(s="feature"),e||(e=n.EM),e.isBuffering(r)){var o=t[s]=t[s]||{};(o[r]=o[r]||[]).push([e,i])}else e.on(r,i)}},4518:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function s(e){return n?{passive:!0,capture:!!e}:!!e}},2848:(e,t,r)=>{"use strict";r.d(t,{o:()=>d});var n=r(870),i=r(6469),s=r(6943),o=r(9391),a=r(3233),c=r(3706),u=r(6061);class d extends i.w{constructor(e,t,r){super(r),this.endpoint=e,this.opts=t||{},this.started=!1,this.timeoutHandle=null,this.harvest=new s.Mu(this.sharedContext),(0,o.l)((()=>{var e,t;this.opts.onUnload&&this.opts.onUnload(),this.harvest.sendFinal(),e=this.sharedContext.agentIdentifier,t=(0,u.Mt)(e,"privacy.cookies_enabled"),c.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,a.u)(document.location.href)+"&p="+(0,a.u)(document.referrer)+"; path=/")}))}startTimer(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}stopTimer(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}scheduleHarvest(e,t){if(!this.timeoutHandle){var r=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((()=>{r.timeoutHandle=null,r.runHarvest(t)}),1e3*e)}}runHarvest(e){var t=this;if(this.opts.getPayload){var r=this.harvest.getSubmitMethod(this.endpoint,e);if(!r)return!1;var i=r.method===n.T.xhr,s=this.opts.getPayload({retry:i});if(s){s="[object Array]"===Object.prototype.toString.call(s)?s:[s];for(var o=0;o<s.length;o++)this.harvest.send(this.endpoint,s[o],e,r,a,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,a,this.sharedContext.agentIdentifier);function a(r){t.onHarvestFinished(e,r)}this.started&&this.scheduleHarvest()}onHarvestFinished(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var r=t.delay||this.opts.retryDelay;this.started&&r?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(r,e)):!this.started&&r&&this.scheduleHarvest(r,e)}}}},6943:(e,t,r)=>{"use strict";r.d(t,{Mu:()=>x,y0:()=>y});var n=r(1558),i=r(353),s=r(1240),o=r(870),a=r(8354);function c(){return""+location}var u=r(6061),d=r(9729),h=r(2909),l=r(5988),f=r(2997),v=r(4518),g=r(3821),p=r(2781),m=r(6469);const b=JSON.parse('{"i8":"0.0.9-beta.121"}').i8;var w=!!navigator.sendBeacon,y=g.H>9||0===g.H;class x extends m.w{constructor(e){super(e),this.tooManyRequestsDelay=(0,u.Mt)(this.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,this.obfuscator=new p.R(this.sharedContext),this.getScheme=()=>!1===(0,u.Mt)(this.sharedContext.agentIdentifier,"ssl")?"http":"https",this._events={}}sendFinal(){var e=(0,n.D)(this._events,(e=>this.sendX(e,{unload:!0})));return(0,a.u)(e,E)}sendX(e,t,r){var n=S(e,t);if(!n)return!1;var i={retry:n.method===o.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,n,r):this._send(e,this.createPayload(e,i),t,n,r)}send(e,t,r,i,s){var o=O(),a=O();t.body&&(0,n.D)(t.body,o),t.qs&&(0,n.D)(t.qs,a);var c={body:o(),qs:a()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,c,r,i,s)}obfuscateAndSend(e,t,r,n,i){return function(e,t,r,n){return e&&"object"==typeof e?(r=r||"string",n=n||[],function e(n){for(var s in n)n.hasOwnProperty(s)&&("object"==typeof n[s]?e(n[s]):typeof n[s]!==r||i(s)||(n[s]=t(n[s])));return n}(e)):e;function i(e){for(var t=!1,r=0;r<n.length;r++)if(n[r]===e){t=!0;break}return t}}(t,((...e)=>this.obfuscator.obfuscateString(...e)),"string",["e"]),this._send(e,t,r,n,i)}_send(e,t,r,n,a){var c=(0,d.C)(this.sharedContext.agentIdentifier);if(!c.errorBeacon)return!1;if(!t.body)return a&&a({sent:!1}),!1;r||(r={});var u=this.getScheme()+"://"+c.errorBeacon+"/"+e+"/1/"+c.licenseKey+this.baseQueryString();t.qs&&(u+=(0,i.j6)(t.qs,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes)),n||(n=S(e,r));var l,f=n.method,g=n.useBody,p=u;g&&"events"===e?l=t.body.e:g?l=(0,s.P)(t.body):p=u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes);var m=f(p,l);return a&&f===o.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),r.needResponse&&(e.responseText=this.responseText),a(e)}),(0,v.m)(!1)),m||f!==o.T.beacon||(m=(f=o.T.img)(u+(0,i.j6)(t.body,(0,h.O)(this.sharedContext.agentIdentifier).maxBytes))),m}baseQueryString(){var e=!0;const t=(0,u.P_)(this.sharedContext.agentIdentifier);var r=(0,h.O)(this.sharedContext.agentIdentifier),n=(0,d.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var s=(0,l.f)(c()),o=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(s):s;return["?a="+n.applicationID,(0,i.wu)("sa",n.sa?""+n.sa:""),(0,i.wu)("v",b),T(n),(0,i.wu)("ct",r.customTransaction),"&rst="+(0,f.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",o),(0,i.wu)("ptid",r.ptid?""+r.ptid:"")].join("")}createPayload(e,t){for(var r=O(),i=O(),s=this._events[e]&&this._events[e]||[],o=0;o<s.length;o++){var a=s[o](t);a&&(a.body&&(0,n.D)(a.body,r),a.qs&&(0,n.D)(a.qs,i))}return{body:r(),qs:i()}}on(e,t){(this._events[e]||(this._events[e]=[])).push(t)}resetListeners(){(0,n.D)(this._events,(function(e){this._events[e]=[]}))}}function E(e,t){return e||t}function S(e,t){var r,n;if((t=t||{}).needResponse){if(!y)return!1;n=!0,r=o.T.xhr}else if(t.unload)n=w,r=w?o.T.beacon:o.T.img;else if(y)n=!0,r=o.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;r=o.T.img}return{method:r,useBody:n}}function T(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function O(){var e={},t=!1;return function(r,n){if(n&&n.length&&(e[r]=n,t=!0),t)return e}}},8053:(e,t,r)=>{"use strict";function n(){var e=null,t=0,r=window.crypto||window.msCrypto;function n(){return e?15&e[t++]:16*Math.random()|0}r&&r.getRandomValues&&(e=r.getRandomValues(new Uint8Array(31)));for(var i,s="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",o="",a=0;a<s.length;a++)o+="x"===(i=s[a])?n().toString(16):"y"===i?(i=3&n()|8).toString(16):i;return o}function i(){return o(16)}function s(){return o(32)}function o(e){var t=null,r=0,n=window.crypto||window.msCrypto;n&&n.getRandomValues&&Uint8Array&&(t=n.getRandomValues(new Uint8Array(31)));for(var i=[],s=0;s<e;s++)i.push((t?15&t[r++]:16*Math.random()|0).toString(16));return i.join("")}r.r(t),r.d(t,{generateRandomHexString:()=>o,generateSpanId:()=>i,generateTraceId:()=>s,generateUuid:()=>n})},4202:(e,t,r)=>{"use strict";r.d(t,{VB:()=>i});var n=r(2995);function i(e,t){var r=["sm",e,{name:e},t];return(0,n.pr)("storeMetric",r,null,"api"),r}},151:(e,t,r)=>{"use strict";r.d(t,{AG:()=>a,FX:()=>u,n1:()=>d,uR:()=>c});var n=r(1558),i=r(1240),s=r(2781),o=Object.prototype.hasOwnProperty;function a(e,t,r){return e||0===e||""===e?t(e)+(r?",":""):"!"}function c(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function u(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},r=0;return function(n){if(void 0===n||""===n)return"";var i=new s.R({agentIdentifier:e});return n=String(n),i.shouldObfuscate()&&(n=i.obfuscateString(n)),o.call(t,n)?c(t[n],!0):(t[n]=r++,function(e){return"'"+e.replace(h,"\\$1")}(n))}}function d(e,t){var r=[];return(0,n.D)(e,(function(e,n){if(!(r.length>=64)){var s,o=5;switch(e=t(e),typeof n){case"object":n?s=t((0,i.P)(n)):o=9;break;case"number":o=6,s=n%1?n:n+".";break;case"boolean":o=n?7:8;break;case"undefined":o=9;break;default:s=t(n)}r.push([o,e+(s?","+s:"")])}})),r}var h=/([,\\;])/g},2997:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getLastTimestamp:()=>a,getOffset:()=>u,now:()=>o,setOffset:()=>c});var n=r(9335),i=(new Date).getTime(),s=i;function o(){return n.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-s}function a(){return i}function c(e){s=e}function u(){return s}},9335:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:(e,t,r)=>{"use strict";r.d(t,{s:()=>c,v:()=>u});var n=r(3233),i=r(232),s=r(2572),o=r(2997),a=r(9335);let c=!0;function u(){var e=function(){if(!(s.I&&s.I<9))return a.G?(c=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var r,i,s,o,a=e[t].substring("NREUM=".length).split("&"),c=0;c<a.length;c++)0===a[c].indexOf("s=")?s=a[c].substring(2):0===a[c].indexOf("p=")?";"===(i=a[c].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===a[c].indexOf("r=")&&";"===(r=a[c].substring(2)).charAt(r.length-1)&&(r=r.substr(0,r.length-1));if(r){var u=(0,n.u)(document.referrer);(o=u==r)||(o=(0,n.u)(document.location.href)==r&&u==i)}if(o&&s){if((new Date).getTime()-s>6e4)return;return s}}}();e&&((0,i.B)("starttime",e),(0,o.setOffset)(e))}u()},232:(e,t,r)=>{"use strict";r.d(t,{B:()=>s,L:()=>o});var n=r(2997),i={};function s(e,t){void 0===t&&(t=(0,n.now)()+(0,n.getOffset)()),i[e]=t}function o(e,t,r,n){var s=i[r],o=i[n];void 0!==s&&void 0!==o&&e.store("measures",t,{value:o-s})}},9391:(e,t,r)=>{"use strict";r.d(t,{l:()=>c});var n=r(2572),i=r(7957),s=r.n(i),o=r(4518);function a(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,o.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function c(e){var t,r,i,o=(t=e,i=!1,function(){return i?r:(i=!0,r=t.apply(this,s()(arguments)))});!n.I||navigator.sendBeacon?a("pagehide",o):a("beforeunload",o),a("unload",o)}},5988:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});var n=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function s(e,t){return e.replace(t?n:i,"$1$2")}},353:(e,t,r)=>{"use strict";r.d(t,{j6:()=>h,nI:()=>d,wu:()=>l});var n=r(1558),i=r(1240),s={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},o=(0,n.D)(s,(function(e){return e})),a=new RegExp(o.join("|"),"g");function c(e){return s[e]}function u(e){return null==e?"null":encodeURIComponent(e).replace(a,c)}function d(e,t){for(var r=0,n=0;n<e.length;n++)if((r+=e[n].length)>t)return e.slice(0,n).join("");return e.join("")}function h(e,t){var r=0,s="";return(0,n.D)(e,(function(e,n){var o,a,c=[];if("string"==typeof n)o="&"+e+"="+u(n),r+=o.length,s+=o;else if(n.length){for(r+=9,a=0;a<n.length&&(o=u((0,i.P)(n[a])),r+=o.length,!(void 0!==t&&r>=t));a++)c.push(o);s+="&"+e+"=%5B"+c.join(",")+"%5D"}})),s}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+u(t):""}},4017:(e,t,r)=>{"use strict";r.d(t,{e:()=>i});var n={};function i(e){if(e in n)return n[e];var t=document.createElement("a"),r=window.location,i={};t.href=e,i.port=t.port;var s=t.href.split("://");!i.port&&s[1]&&(i.port=s[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===s[0]?"443":"80"),i.hostname=t.hostname||r.hostname,i.pathname=t.pathname,i.protocol=s[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var o=!t.protocol||":"===t.protocol||t.protocol===r.protocol,a=t.hostname===document.domain&&t.port===r.port;return i.sameOrigin=o&&(!t.hostname||a),"/"===i.pathname&&(n[e]=i),i}},1839:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r(2755);class i{constructor(e,t){this.agentIdentifier=e,this.aggregator=t,this.ee=n.ee.get(e)}}},9381:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(n.call(e,t))return e[t];var i=r();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=Object.prototype.hasOwnProperty;function i(e,t){var r=[],i="",s=0;for(i in e)n.call(e,i)&&(r[s]=t(i,e[i]),s+=1);return r}},2781:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var n=r(6061),i=r(6469),s=r(4202),o=window;function a(){return o}const c={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a();return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,s.VB)("Generic/FileProtocol/Detected"),c.supportabilityMetricSent=!0);var d={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"};let h=!1;class l extends i.w{constructor(e){super(e),h||(this.shouldObfuscate()&&(0,s.VB)("Generic/Obfuscate/Detected"),this.shouldObfuscate()&&!this.validateRules(this.getRules())&&(0,s.VB)("Generic/Obfuscate/Invalid"),h=!0)}shouldObfuscate(){return this.getRules().length>0}getRules(){var e=[],t=(0,n.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),c.isFileProtocol()&&e.push(d),e}validateRules(e){for(var t=!1,r=!1,n=0;n<e.length;n++){"regex"in e[n]?"string"!=typeof e[n].regex&&e[n].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),r=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),r=!0);var i=e[n].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!r}obfuscateString(e,t){if(!e||"string"!=typeof e)return e;for(var r=this.getRules(t),n=e,i=0;i<r.length;i++){var s=r[i].regex,o=r[i].replacement||"*";n=n.replace(s,o)}return n}}},8354:(e,t,r)=>{"use strict";function n(e,t,r){var n=0;for(void 0===r&&(r=e[0],n=1);n<e.length;n++)r=t(r,e[n]);return r}r.d(t,{u:()=>n})},3233:(e,t,r)=>{"use strict";function n(e){var t,r=0;for(t=0;t<e.length;t++)r+=(t+1)*e.charCodeAt(t);return Math.abs(r)}r.d(t,{u:()=>n})},1240:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(1558),i=r(2755),s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){try{return u("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function c(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function u(e,t){var r=t[e];switch(typeof r){case"string":return c(r);case"number":return isFinite(r)?String(r):"null";case"boolean":return String(r);case"object":if(!r)return"null";var i=[];if(r instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(r)){for(var s=r.length,o=0;o<s;o+=1)i[o]=u(o,r)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,n.D)(r,(function(e){var t=u(e,r);t&&i.push(c(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});const n={jsonp:function(e,t){var r=document.createElement("script");r.type="text/javascript",r.src=e+"&jsonp="+t;var n=document.getElementsByTagName("script")[0];return n.parentNode.insertBefore(r,n),r},xhr:function(e,t,r){var n=new XMLHttpRequest;n.open("POST",e,!r);try{"withCredentials"in n&&(n.withCredentials=!0)}catch(e){}return n.setRequestHeader("content-type","text/plain"),n.send(t),n},xhrSync:function(e,t){return n.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:(e,t,r)=>{"use strict";r.r(t),r.d(t,{NREUMinitialized:()=>l,addToNREUM:()=>h,defaults:()=>i,gosCDN:()=>f,gosNREUM:()=>s,gosNREUMInfo:()=>o,gosNREUMInit:()=>c,gosNREUMInitializedAgents:()=>d,gosNREUMLoaderConfig:()=>a,gosNREUMOriginals:()=>u});var n=r(2997);const i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function s(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function o(){let e=s();const t=e.info||{};return e.info={beacon:i.beacon,errorBeacon:i.errorBeacon,...t},e}function a(){let e=s();const t=e.loader_config||{};return e.loader_config={...t},e}function c(){let e=s();const t=e.init||{};return e.init={...t},e}function u(){let e=s();if(!e.o){var t=window,r=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:r,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function d(e,t,r){let i=s();const o=i.initializedAgents||{},a=o[e]||{};return Object.keys(a).length||(a.initializedAt={ms:(0,n.now)(),date:new Date}),i.initializedAgents={...o,[e]:{...a,[r]:t}},i}function h(e,t){s()[e]=t}function l(){s().initialized=!0}function f(){return o(),c(),u(),a(),s()}},6219:(e,t,r)=>{"use strict";function n(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}r.d(t,{W:()=>n})},3097:(e,t,r)=>{"use strict";r.d(t,{em:()=>b,u5:()=>w,QU:()=>y,gy:()=>x,BV:()=>E,Kf:()=>S});var n=r(2755),i=r(7957),s=r.n(i),o=r(5307),a=window,c=(a.Request,a.Response,"nr@context");function u(e){var t=o.Y.FETCH,r=e||n.ee,i=function(e,t,r){return function(){var n,i=s()(arguments),o={};e.emit(r+"before-start",[i],o),o[c]&&o[c].dt&&(n=o[c].dt);var a=t.apply(this,i);return e.emit(r+"start",[i,n],a),a.then((function(t){return e.emit(r+"end",[null,t],a),t}),(function(t){throw e.emit(r+"end",[t],a),t}))}}(r,t,"fetch-");return r.on("fetch-end",(function(e,t){var n=this;if(t){var i=t.headers.get("content-length");null!==i&&(n.rxSize=i),r.emit("fetch-done",[null,t],n)}else r.emit("fetch-done",[e],n)})),i}var d="nr@original",h=Object.prototype.hasOwnProperty,l=!1;function f(e,t){return e||(e=n.ee),r.inPlace=function(e,t,n,i,s){n||(n="");var o,a,c,u="-"===n.charAt(0);for(c=0;c<t.length;c++)g(o=e[a=t[c]])||(e[a]=r(o,u?a+n:n,i,a,s))},r.flag=d,r;function r(t,r,n,o,a){return g(t)?t:(r||(r=""),c[d]=t,function(e,t,r){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(r){Object.defineProperty(t,r,{get:function(){return e[r]},set:function(t){return e[r]=t,t}})})),t}catch(e){v([e],r)}for(var n in e)h.call(e,n)&&(t[n]=e[n])}(t,c,e),c);function c(){var c,u,d,h;try{u=this,c=s()(arguments),d="function"==typeof n?n(c,u):n||{}}catch(t){v([t,"",[c,u,o],d],e)}i(r+"start",[c,u,o],d,a);try{return h=t.apply(u,c)}catch(e){throw i(r+"err",[c,u,e],d,a),e}finally{i(r+"end",[c,u,h],d,a)}}}function i(r,n,i,s){if(!l||t){var o=l;l=!0;try{e.emit(r,n,i,t,s)}catch(t){v([t,r,n,i],e)}l=o}}}function v(e,t){t||(t=n.ee);try{t.emit("internal-error",e)}catch(e){}}function g(e){return!(e&&e instanceof Function&&e.apply&&!e[d])}var p=r(4518);var m=r(9381);function b(e){return function(e){var t=function(e){return(e||n.ee).get("events")}(e),r=f(t,!0),i=XMLHttpRequest,s="addEventListener";function o(e){for(var t=e;t&&!t.hasOwnProperty(s);)t=Object.getPrototypeOf(t);t&&a(t)}function a(e){r.inPlace(e,[s,"removeEventListener"],"-",c)}function c(e,t){return e[1]}return"getPrototypeOf"in Object?(o(document),o(window),o(i.prototype)):i.prototype.hasOwnProperty(s)&&(a(window),a(i.prototype)),t.on("addEventListener-start",(function(e,t){var n=e[1];if(null!==n&&("function"==typeof n||"object"==typeof n)){var i=(0,m.X)(n,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)},function:n}[typeof n];return e?r(e,"fn-",null,e.name||"anonymous"):n}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function w(e){return u(e)}function y(e){return function(e){var t=function(e){return(e||n.ee).get("history")}(e),r=f(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,s=window.history;return i&&i.pushState&&i.replaceState&&(s=i),r.inPlace(s,["pushState","replaceState"],"-"),t}(e)}function x(e){return function(e){var t=function(e){return(e||n.ee).get("raf")}(e),r=f(t);return r.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=r(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||n.ee).get("timer")}(e),r=f(t),i="setTimeout",s="setInterval",o="-start";return r.inPlace(window,[i,"setImmediate"],"setTimeout-"),r.inPlace(window,[s],"setInterval-"),r.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(s+o,(function(e,t,n){e[0]=r(e[0],"fn-",null,n)})),t.on(i+o,(function(e,t,n){this.method=n,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=r(e[0],"fn-",this,n)})),t}(e)}function S(e){return function(e){var t=e||n.ee,r=function(e){return(e||n.ee).get("events")}(t),i=f(r),s=o.Y.XHR,a=o.Y.MO,c=o.Y.PR,u=o.Y.SI,d="readystatechange",h=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],l=[],v=window.XMLHttpRequest=function(e){var t=new s(e);try{r.emit("new-xhr",[t],t),t.addEventListener(d,m,(0,p.m)(!1))}catch(e){try{r.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=r.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,r.emit("xhr-resolved",[],e)),i.inPlace(e,h,"fn-",E)}if(function(e,t){for(var r in e)t[r]=e[r]}(s,v),v.prototype=s.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),r.on("send-xhr-start",(function(e,t){g(0,t),function(e){l.push(e),a&&(b?b.then(x):u?u(x):(w=-w,y.data=w))}(t)})),r.on("open-xhr-start",g),a){var b=c&&c.resolve();if(!u&&!c){var w=1,y=document.createTextNode(w);new a(x).observe(y,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===d||x()}));function x(){for(var e=0;e<l.length;e++)g(0,l[e]);l.length&&(l=[])}function E(e,t){return t}return r}(e)}},74:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>g});var n=r(3406),i=r(1240),s=r(151),o=r(2995),a=r(6061),c=r(9729),u=r(2848),d=r(9391),h=r(4202),l=[];function f(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var v=r(1839);class g extends v.W{constructor(e,t){super(e,t),this.ajaxEvents=[],this.spaAjaxEvents={},this.sentAjaxEvents=[],this.scheduler,this.harvestTimeSeconds=(0,a.Mt)(this.agentIdentifier,"ajax.harvestTimeSeconds")||10,this.MAX_PAYLOAD_SIZE=(0,a.Mt)(this.agentIdentifier,"ajax.maxPayloadSize")||1e6,this.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),this.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),this.allAjaxIsEnabled()&&function(e){if(l=[],e&&e.length)for(var t=0;t<e.length;t++){var r=e[t];0===r.indexOf("http://")?r=r.substring(7):0===r.indexOf("https://")&&(r=r.substring(8));var n=r.indexOf("/");n>0?l.push({hostname:r.substring(0,n),pathname:r.substring(n)}):l.push({hostname:r,pathname:""})}}((0,a.Mt)(this.agentIdentifier,"ajax.deny_list")),(0,n.XN)("xhr",((...e)=>this.storeXhr(...e)),void 0,this.ee),this.allAjaxIsEnabled()&&(this.scheduler=new u.o("events",{onFinished:(...e)=>this.onEventsHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e)}),this.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),this.scheduler.startTimer(this.harvestTimeSeconds),(0,d.l)(((...e)=>this.finalHarvest(...e))))}getStoredEvents(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}storeXhr(e,t,r,n,s){var a;if("localhost"!==e.hostname&&(t.time=r,a=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,o.pr)("bstXhrAgg",["xhr",a,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",a,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===l.length)return!0;for(var t=0;t<l.length;t++){var r=l[t];if("*"===r.hostname)return!1;if(n=r.hostname,i=e.hostname,!(n.length>i.length)&&i.indexOf(n)===i.length-n.length&&f(r.pathname,e.pathname))return!1}var n,i;return!0}(e)){var u=this,d={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:s,startTime:r,endTime:n,callbackDuration:t.cbTime};if(u.dt&&(d.spanId=u.dt.spanId,d.traceId=u.dt.traceId,d.spanTimestamp=u.dt.timestamp),this.spaNode){var v=this.spaNode.interaction.id;this.spaAjaxEvents[v]=this.spaAjaxEvents[v]||[],this.spaAjaxEvents[v].push(d)}else this.ajaxEvents.push(d)}else e.hostname===(0,c.C)(this.agentIdentifier).errorBeacon?(0,h.VB)("Ajax/Events/Excluded/Agent"):(0,h.VB)("Ajax/Events/Excluded/App")}prepareHarvest(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),r=[],n=0;n<t.length;n++)r.push({body:{e:t[n]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],r}getPayload(e,t,r){r=r||1;for(var n=[],i=e.length/r,s=this.splitChunks(e,i),o=!1,a=0;a<s.length;a++){var c=s[a];if(c.tooBig(t)){if(1!==c.events.length){o=!0;break}}else n.push(c.payload)}return o?this.getPayload(e,t,++r):n}onEventsHarvestFinished(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}splitChunks(e,t){t=t||e.length;for(var r=[],n=0,i=e.length;n<i;n+=t)r.push(new this.Chunk(e.slice(n,n+t)));return r}Chunk(e){this.addString=(0,s.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var r=this.events[t],n=[(0,s.uR)(r.startTime),(0,s.uR)(r.endTime-r.startTime),(0,s.uR)(0),(0,s.uR)(0),this.addString(r.method),(0,s.uR)(r.status),this.addString(r.domain),this.addString(r.path),(0,s.uR)(r.requestSize),(0,s.uR)(r.responseSize),"fetch"===r.type?1:"",this.addString(0),(0,s.AG)(r.spanId,this.addString,!0)+(0,s.AG)(r.traceId,this.addString,!0)+(0,s.AG)(r.spanTimestamp,s.uR,!1)],i="2,",o=(0,s.n1)((0,c.C)(this.agentIdentifier).jsAttributes||{},this.addString);n.unshift((0,s.uR)(o.length)),i+=n.join(","),o&&o.length>0&&(i+=";"+o.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}allAjaxIsEnabled(){return!1!==(0,a.Mt)(this.agentIdentifier,"ajax.enabled")}}},9770:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>O,getWrappedFetch:()=>j});var n=r(5307),i=r(2909),s=r(5501),o=r(2995),a=r(2755),c=r(9381),u=1;function d(e){var t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,c.X)(e,"nr@id",(function(){return u++}))}var h=r(2572);function l(e){if("string"==typeof e&&e.length)return e.length;if("object"==typeof e){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var f=r(4518),v=r(2997),g=r(3097),p=r(4017),m=r(6061),b=r(8053);class w{constructor(e){this.agentIdentifier=e}generateTracePayload(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,s.D)(this.agentIdentifier);if(!t)return null;var r=(t.accountID||"").toString()||null,n=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!r||!n)return null;var o=(0,b.generateSpanId)(),a=(0,b.generateTraceId)(),c=Date.now(),u={spanId:o,traceId:a,timestamp:c};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(u.traceContextParentHeader=this.generateTraceContextParentHeader(o,a),u.traceContextStateHeader=this.generateTraceContextStateHeader(o,c,r,n,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(u.newrelicHeader=this.generateTraceHeader(o,a,c,r,n,i)),u}generateTraceContextParentHeader(e,t){return"00-"+t+"-"+e+"-01"}generateTraceContextStateHeader(e,t,r,n,i){return i+"@nr=0-1-"+r+"-"+n+"-"+e+"----"+t}generateTraceHeader(e,t,r,n,i,s){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var o={v:[0,1],d:{ty:"Browser",ac:n,ap:i,id:e,tr:t,ti:r}};return s&&n!==s&&(o.d.tk=s),btoa(JSON.stringify(o))}shouldGenerateTrace(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}isAllowedOrigin(e){var t=!1,r={};if((0,m.Mt)("distributed_tracing")&&(r=(0,m.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(r.allowed_origins instanceof Array)for(var n=0;n<r.allowed_origins.length;n++){var i=(0,p.e)(r.allowed_origins[n]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}isDtEnabled(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}excludeNewrelicHeader(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}useNewrelicHeaderForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}useTraceContextHeadersForCors(){var e=(0,m.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}var y=r(1839),x=["load","error","abort","timeout"],E=x.length,S=n.Y.REQ,T=window.XMLHttpRequest;class O extends y.W{constructor(e){super(e),(0,i.O)(this.agentIdentifier).xhrWrappable&&!(0,i.O)(this.agentIdentifier).disabled&&(this.dt=new w(this.agentIdentifier))}}function j(){var e=(0,g.u5)(a.ee);return function(e,t){function r(e){var r=this.params,n=this.metrics;if(!this.ended){this.ended=!0;for(var s=0;s<E;s++)e.removeEventListener(x[s],this.listener,!1);r.aborted||(n.duration=(0,v.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==r.status&&(r.status=0):i(this,e),n.cbTime=this.cbTime,t("xhr",[r,n,this.startTime,this.endTime,"xhr"],this))}}function n(e,t){var r=(0,p.e)(t),n=e.params;n.hostname=r.hostname,n.port=r.port,n.protocol=r.protocol,n.host=r.hostname+":"+r.port,n.pathname=r.pathname,e.parsedOrigin=r,e.sameOrigin=r.sameOrigin}function i(e,t){e.params.status=t.status;var r=function(e,t){var r=e.responseType;return"json"===r&&null!==t?t:"arraybuffer"===r||"blob"===r||"json"===r?l(e.response):"text"===r||""===r||void 0===r?l(e.responseText):void 0}(t,e.lastSize);if(r&&(e.metrics.rxSize=r),e.sameOrigin){var n=t.getResponseHeader("X-NewRelic-App-Data");n&&(e.params.cat=n.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=r,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(r){i(t,e)}),(0,f.m)(!1)),h.I&&(h.I>34||h.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,f.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},n(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var r=(0,s.D)();"xpid"in r&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",r.xpid);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n){var i=!1;n.newrelicHeader&&(t.setRequestHeader("newrelic",n.newrelicHeader),i=!0),n.traceContextParentHeader&&(t.setRequestHeader("traceparent",n.traceContextParentHeader),n.traceContextStateHeader&&t.setRequestHeader("tracestate",n.traceContextStateHeader),i=!0),i&&(this.dt=n)}})),e.on("send-xhr-start",(function(t,r){var n=this.metrics,i=t[0],s=this;if(n&&i){var o=l(i);o&&(n.txSize=o)}this.startTime=(0,v.now)(),this.listener=function(t){try{"abort"!==t.type||s.loadCaptureCalled||(s.params.aborted=!0),("load"!==t.type||s.called===s.totalCbs&&(s.onloadCalled||"function"!=typeof r.onload))&&s.end(r)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var a=0;a<E;a++)r.addEventListener(x[a],this.listener,(0,f.m)(!1))})),e.on("xhr-cb-time",(function(e,t,r){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof r.onload||this.end(r)})),e.on("xhr-load-added",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&!this.xhrGuids[r]&&(this.xhrGuids[r]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var r=""+d(e)+!!t;this.xhrGuids&&this.xhrGuids[r]&&(delete this.xhrGuids[r],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,v.now)()})),e.on("addEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],r)})),e.on("removeEventListener-end",(function(t,r){r instanceof T&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],r)})),e.on("fn-end",(function(t,r){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,v.now)()-this.xhrCbStart,this.onload,r],r)})),e.on("fetch-before-start",(function(e){var t,r=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,p.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var n=this.dt.generateTracePayload(this.parsedOrigin);if(n&&(n.newrelicHeader||n.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var s in r)i[s]=r[s];i.headers=new Headers(r.headers||{}),o(i.headers,n)&&(this.dt=n),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&o(e[0].headers,n)&&(this.dt=n);function o(e,t){var r=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),r=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),r=!0),r}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,v.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var r,i=this.opts||{},s=this.target;"string"==typeof s?r=s:"object"==typeof s&&s instanceof S?r=s.url:window.URL&&"object"==typeof s&&s instanceof URL&&(r=s.href),n(this,r);var o=(""+(s&&s instanceof S&&s.method||i.method||"GET")).toUpperCase();this.params.method=o,this.txSize=l(i.body)||0})),e.on("fn-start",(function(e,t,r){t instanceof T&&("onload"===r&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,v.now)()))})),e.on("fetch-done",(function(e,r){var n;this.endTime=(0,v.now)(),this.params||(this.params={}),this.params.status=r?r.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(n=+this.rxSize);var i={txSize:this.txSize,rxSize:n,duration:(0,v.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(a.ee,o.pr),e}},7326:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>j});var n=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(n);return t?t[1]:void 0}}var s=r(8354),o=/^\n+|\n+$/g;var a=/function (.+?)\s*\(/,c=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,u=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,d=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,h=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function l(e,t){var r,n=function(e){var t=e.match(u);return t||(t=e.match(c)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(d)||e.match(h)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return n?((r=n.func)&&r.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(n),e):(e.stackLines.push(t),e)}function f(e){var t=a.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function v(e){var t=0;if(!e||!e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var g=r(3406),p=r(2848),m=r(1240),b=r(2995),w=r(1558),y=r(6061),x=r(2909),E=r(9729),S=r(2997),T=r(5988),O=r(1839);class j extends O.W{constructor(e,t){super(e,t),this.stackReported={},this.pageviewReported={},this.errorCache={},this.currentBody,this.errorOnPage=!1,this.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];s.browserInteractionId=e.root.attrs.id,delete s._interactionId,s._interactionNodeId&&(s.parentNodeId=s._interactionNodeId.toString(),delete s._interactionNodeId);var o=t[1]+e.root.attrs.id+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,s,t[3],r)})),delete this.errorCache[e.id])})),this.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var r={},n=t[4],i=t[5];(0,w.D)(n,a),(0,w.D)(e.root.attrs.custom,a),(0,w.D)(i,a);var s=t[2];delete s._interactionId,delete s._interactionNodeId;var o=t[1]+":"+v((0,m.P)(r));function a(e,t){r[e]=t&&"object"==typeof t?(0,m.P)(t):t}this.aggregator.store(t[0],o,t[2],t[3],r)})),delete this.errorCache[e.id])})),(0,g.XN)("err",((...e)=>this.storeError(...e)),void 0,this.ee),(0,g.XN)("ierr",((...e)=>this.storeError(...e)),void 0,this.ee);var r=(0,y.Mt)(this.agentIdentifier,"jserrors.harvestTimeSeconds")||10,n=new p.o("jserrors",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);n.harvest.on("jserrors",((...e)=>this.onHarvestStarted(...e))),n.startTimer(r)}onHarvestStarted(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var r={body:t,qs:{}},n=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);return"{}"!==n&&(r.qs.ri=n),t&&t.err&&t.err.length&&!this.errorOnPage&&(r.qs.pve="1",this.errorOnPage=!0),r}onHarvestFinished(e){e.retry&&this.currentBody&&((0,w.D)(this.currentBody,(function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=this.getBucketName(n.params,n.custom);this.aggregator.merge(e,i,n.metrics,n.params,n.custom)}})),this.currentBody=null)}nameHash(e){return v(e.exceptionClass)^e.stackHash}getBucketName(e,t){return this.nameHash(e)+":"+v((0,m.P)(t))}canonicalizeURL(e,t){if("string"!=typeof e)return"";var r=(0,T.f)(e);return r===t?"<inline>":r}buildCanonicalStackString(e,t){for(var r="",n=0;n<e.frames.length;n++){var s=e.frames[n],o=i(s.func);r&&(r+="\n"),o&&(r+=o+"@"),"string"==typeof s.url&&(r+=s.url),s.line&&(r+=":"+s.line)}return r}canonicalizeStackURLs(e){for(var t=(0,T.f)((0,x.O)(this.agentIdentifier).origin),r=0;r<e.frames.length;r++){var n=e.frames[r],i=n.url,s=this.canonicalizeURL(i,t);s&&s!==n.url&&(n.url=s,e.stackString=e.stackString.split(i).join(s))}return e}storeError(e,t,r,n){if(t=t||(0,S.now)(),r||!(0,x.O)(this.agentIdentifier).onerror||!(0,x.O)(this.agentIdentifier).onerror(e)){var i,a=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,r=(0,s.u)(e.stack.split("\n"),l,{frames:[],stackLines:[],wrapperSeen:!1});return r.frames.length?{mode:"stack",name:e.name||f(e),message:e.message,stackString:(t=r.stackLines,function(e){var t;if(e.length>100){var r=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+r+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(o,"")),frames:r.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||f(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:f(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var r=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(r+=":"+e.line,e.column&&(r+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:r,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||f(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),c={stackHash:v(this.buildCanonicalStackString(a)),exceptionClass:a.name,request_uri:window.location.pathname};a.message&&(c.message=""+a.message),this.stackReported[c.stackHash]?c.browser_stack_hash=v(a.stackString):(this.stackReported[c.stackHash]=!0,c.stack_trace=(i=a.stackString).length>65530?i.substr(0,65530):i),c.releaseIds=(0,m.P)((0,x.O)(this.agentIdentifier).releaseIds);var u=this.nameHash(c);this.pageviewReported[u]||(c.pageview=1,this.pageviewReported[u]=!0);var d=r?"ierr":"err",h={time:t};if((0,b.pr)("errorAgg",[d,u,c,h],void 0,void 0,this.ee),null!=c._interactionId)this.errorCache[c._interactionId]=this.errorCache[c._interactionId]||[],this.errorCache[c._interactionId].push([d,u,c,h,p,n]);else{var g={},p=(0,E.C)(this.agentIdentifier).jsAttributes;(0,w.D)(p,T),n&&(0,w.D)(n,T);var y=u+":"+v((0,m.P)(g));this.aggregator.store(d,y,c,h,g)}}function T(e,t){g[e]=t&&"object"==typeof t?(0,m.P)(t):t}}}},3825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>v});var n=r(2995),i=r(2909),s=r(2997),o=r(9381),a=r(3097),c=r(7957),u=r.n(c),d=r(1839),h=window.onerror,l=!1,f="nr@seenError";class v extends d.W{constructor(e){super(e),this.skipNext=0;const t=this;this.ee.on("fn-start",(function(e,t,r){l&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),this.ee.on("fn-err",(function(e,r,n){l&&!n[f]&&((0,o.X)(n,f,(function(){return!0})),this.thrown=!0,p(n,void 0,t.ee))})),this.ee.on("fn-end",(function(){l&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),this.ee.on("internal-error",(e=>{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}));const r=window.onerror;window.onerror=(...e)=>(r&&r(...e),this.onerrorHandler(...e),!1);try{window.addEventListener("unhandledrejection",(e=>{this.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,a.BV)(this.ee),(0,a.gy)(this.ee),"addEventListener"in window&&(0,a.em)(this.ee),(0,i.O)(this.agentIdentifier).xhrWrappable&&(0,a.Kf)(this.ee),l=!0)}}onerrorHandler(e,t,r,i,o){try{this.skipNext?this.skipNext-=1:p(o||new g(e,t,r),!0,this.ee)}catch(e){try{(0,n.pr)("ierr",[e,(0,s.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof h&&h.apply(this,u()(arguments))}}function g(e,t,r){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=r}function p(e,t,r){var i=t?null:(0,s.now)();(0,n.pr)("err",[e,i],void 0,void 0,r)}},9098:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(1558),i=r(1240),s=r(3406),o=r(2848),a=r(5988),c=r(6061),u=r(9729),d=r(2909),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.eventsPerMinute=240,this.harvestTimeSeconds=(0,c.Mt)("ins.harvestTimeSeconds")||30,this.eventsPerHarvest=this.eventsPerMinute*this.harvestTimeSeconds/60,this.referrerUrl,this.currentEvents,this.events=[],this.att={},(0,u.L)(this.agentIdentifier,{jsAttributes:this.att}),document.referrer&&(this.referrerUrl=(0,a.f)(document.referrer)),(0,s.XN)("api-setCustomAttribute",((...e)=>this.setCustomAttribute(...e)),"api",this.ee),this.ee.on("feat-ins",(function(){(0,s.XN)("api-addPageAction",((...e)=>this.addPageAction(...e)),void 0,this.ee);var e=new o.o("ins",{onFinished:(...e)=>this.onHarvestFinished(...e)},this);e.harvest.on("ins",((...e)=>this.onHarvestStarted(...e))),e.startTimer(this.harvestTimeSeconds,0)}))}onHarvestStarted(e){const{userAttributes:t,atts:r}=(0,u.C)(this.agentIdentifier);var n={qs:{ua:t,at:r},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}onHarvestFinished(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}addPageAction(e,t,r){if(!(this.events.length>=this.eventsPerHarvest)){var s,o,c={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(s=window.document.documentElement.clientWidth,o=window.document.documentElement.clientHeight);var u={timestamp:e+(0,d.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:s,browserHeight:o,referrerUrl:this.referrerUrl,currentUrl:(0,a.f)(""+location),pageUrl:(0,a.f)((0,d.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,n.D)(u,h),(0,n.D)(this.att,h),r&&"object"==typeof r&&(0,n.D)(r,h),c.actionName=t||"",this.events.push(c)}function h(e,t){c[e]=t&&"object"==typeof t?(0,i.P)(t):t}}setCustomAttribute(e,t,r){this.att[t]=r}}},2895:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>s});var n=r(2909),i=r(1839);class s extends i.W{constructor(e){super(e),(0,n.O)(this.agentIdentifier).disabled||((0,n.O)(this.agentIdentifier).features.ins=!0)}}},3887:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>m});var n=r(232),i=r(1558),s=r(353),o=[];function a(e,t){return c(e.type,0,t,"ty"),c(e.redirectCount,0,t,"rc"),t}function c(e,t,r,n){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),r[n]=i),o.push(i)}var u=r(1240),d={},h=r(870),l=r(6061),f=r(9729),v=r(2909),g=r(2848),p=r(1839);class m extends p.W{constructor(e,t){super(e,t),this.getScheme=()=>!1===(0,l.Mt)(this.agentIdentifier,"ssl")?"http":"https";const r=(0,f.C)(this.agentIdentifier);if(r.beacon){r.queueTime&&this.aggregator.store("measures","qt",{value:r.queueTime}),r.applicationTime&&this.aggregator.store("measures","ap",{value:r.applicationTime}),(0,n.L)(this.aggregator,"be","starttime","firstbyte"),(0,n.L)(this.aggregator,"fe","firstbyte","onload"),(0,n.L)(this.aggregator,"dc","firstbyte","domContent");var o,p,m,b=this.aggregator.get("measures"),w=(0,i.D)(b,(function(e,t){return"&"+e+"="+t.params.value})).join(""),y=[new g.o("page-view-event",{},this).harvest.baseQueryString()];if(y.push(w),y.push((0,s.wu)("tt",r.ttGuid)),y.push((0,s.wu)("us",r.user)),y.push((0,s.wu)("ac",r.account)),y.push((0,s.wu)("pr",r.product)),y.push((0,s.wu)("af",(0,i.D)((0,v.O)(this.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var x={timing:(o=window.performance.timing,p={},m=o.navigationStart,p.of=m,c(m,m,p,"n"),c(o.unloadEventStart,m,p,"u"),c(o.redirectStart,m,p,"r"),c(o.unloadEventEnd,m,p,"ue"),c(o.redirectEnd,m,p,"re"),c(o.fetchStart,m,p,"f"),c(o.domainLookupStart,m,p,"dn"),c(o.domainLookupEnd,m,p,"dne"),c(o.connectStart,m,p,"c"),c(o.secureConnectionStart,m,p,"s"),c(o.connectEnd,m,p,"ce"),c(o.requestStart,m,p,"rq"),c(o.responseStart,m,p,"rp"),c(o.responseEnd,m,p,"rpe"),c(o.domLoading,m,p,"dl"),c(o.domInteractive,m,p,"di"),c(o.domContentLoadedEventStart,m,p,"ds"),c(o.domContentLoadedEventEnd,m,p,"de"),c(o.domComplete,m,p,"dc"),c(o.loadEventStart,m,p,"l"),c(o.loadEventEnd,m,p,"le"),p),navigation:a(window.performance.navigation,{})};y.push((0,s.wu)("perf",(0,u.P)(x)))}if(window.performance&&window.performance.getEntriesByType){var E=window.performance.getEntriesByType("paint");E&&E.length>0&&E.forEach((function(e){var t,r;!e.startTime||e.startTime<=0||("first-paint"===e.name?y.push((0,s.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&y.push((0,s.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,r=Math.floor(e.startTime),d[t]=r)}))}y.push((0,s.wu)("xx",r.extra)),y.push((0,s.wu)("ua",r.userAttributes)),y.push((0,s.wu)("at",r.atts));var S=(0,u.P)(r.jsAttributes);y.push((0,s.wu)("ja","{}"===S?null:S));var T=(0,s.nI)(y,(0,v.O)(this.agentIdentifier).maxBytes);h.T.jsonp(this.getScheme()+"://"+r.beacon+"/1/"+r.licenseKey+T,"NREUM.setToken")}}}},8161:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>d});var n=r(2995),i=r(2997),s=r(1839),o=r(4518);const a=window,c=a.document;function u(e){"complete"===c.readyState&&e()}class d extends s.W{constructor(e){var t;super(e),(0,n.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",this.ee),t=()=>this.measureWindowLoaded(),c.addEventListener?a.addEventListener("load",t,(0,o.m)(!1)):a.attachEvent("onload",t),function(e){c.addEventListener?c.addEventListener("DOMContentLoaded",e,(0,o.m)(!1)):c.attachEvent("onreadystatechange",u)}((()=>this.measureDomContentLoaded()))}measureWindowLoaded(){var e=(0,i.now)();(0,n.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,n.pr)("timing",["load",e],void 0,void 0,this.ee)}measureDomContentLoaded(){(0,n.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}},8617:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>l});var n=r(151),i=r(2997),s=r(1558),o=r(2848),a=r(3406),c=r(5988),u=r(2995),d=r(9729),h=r(1839);class l extends h.W{constructor(e,t){super(e,t),this.timings=[],this.timingsSent=[],this.lcpRecorded=!1,this.lcp=null,this.clsSupported=!1,this.cls=0,this.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},this.pageHideRecorded=!1,this.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}this.options||(this.options={});var r=this.options.maxLCPTimeSeconds||60,n=this.options.initialHarvestSeconds||10;this.harvestTimeSeconds=this.options.harvestTimeSeconds||30,this.scheduler=new o.o("events",{onFinished:(...e)=>this.onHarvestFinished(...e),getPayload:(...e)=>this.prepareHarvest(...e),onUnload:()=>this.finalHarvest()},this),(0,a.rP)("timing",((...e)=>this.processTiming(...e)),void 0,this.ee),(0,a.rP)("lcp",((...e)=>this.updateLatestLcp(...e)),void 0,this.ee),(0,a.rP)("cls",((...e)=>this.updateClsScore(...e)),void 0,this.ee),(0,a.rP)("pageHide",((...e)=>this.updatePageHide(...e)),void 0,this.ee),setTimeout((()=>{this.recordLcp(),this.lcpRecorded=!0}),1e3*r),this.scheduler.startTimer(this.harvestTimeSeconds,n)}recordLcp(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],r=this.lcp[2],n={size:e.size,eid:e.id};r&&(r["net-type"]&&(n["net-type"]=r["net-type"]),r["net-etype"]&&(n["net-etype"]=r["net-etype"]),r["net-rtt"]&&(n["net-rtt"]=r["net-rtt"]),r["net-dlink"]&&(n["net-dlink"]=r["net-dlink"])),e.url&&(n.elUrl=(0,c.f)(e.url)),e.element&&e.element.tagName&&(n.elTag=e.element.tagName),(t>0||this.clsSupported)&&(n.cls=t),this.addTiming("lcp",Math.floor(e.startTime),n,!1),this.lcpRecorded=!0}}updateLatestLcp(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}updateClsScore(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}updatePageHide(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}recordUnload(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}addTiming(e,t,r,n){r=r||{},(this.cls>0||this.clsSupported)&&n&&(r.cls=this.cls),this.timings.push({name:e,value:t,attrs:r}),(0,u.pr)("pvtAdded",[e,t,r])}processTiming(e,t,r){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,r,!0)}onHarvestFinished(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}finalHarvest(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}appendGlobalCustomAttributes(e){var t=e.attrs||{},r=(0,d.C)(this.agentIdentifier).jsAttributes||{},n=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,s.D)(r,(function(e,r){n.indexOf(e)<0&&(t[e]=r)}))}prepareHarvest(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var r=0;r<this.timings.length;r++)this.timingsSent.push(this.timings[r]);return this.timings=[],{body:{e:t}}}}getPayload(e){for(var t=(0,n.FX)(),r="bel.6;",i=0;i<e.length;i++){var s=e[i];r+="e,",r+=t(s.name)+",",r+=(0,n.AG)(s.value,n.uR,!1)+",",this.appendGlobalCustomAttributes(s);var o=(0,n.n1)(s.attrs,t);o&&o.length>0&&(r+=(0,n.uR)(o.length)+";"+o.join(";")),i+1<e.length&&(r+=";")}return r}}},8396:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>l});var n,i,s,o=r(2995),a=r(4518);void 0!==document.hidden?(n="hidden",i="visibilitychange",s="visibilityState"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange",s="webkitVisibilityState");var c=r(8240),u=r(2997),d=r(6061),h=r(1839);class l extends h.W{constructor(e){if(super(e),this.pageHiddenTime,this.performanceObserver,this.lcpPerformanceObserver,this.clsPerformanceObserver,this.fiRecorded=!1,this.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){this.performanceObserver=new PerformanceObserver(perfObserver);try{this.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}this.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{this.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}this.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{this.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(this.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((e=>{document.addEventListener(e,((...e)=>this.captureInteraction(...e)),(0,a.m)(!1))}))),t=(...e)=>this.captureVisibilityChange(...e),"addEventListener"in document&&i&&document.addEventListener(i,(function(){s&&document[s]?t(document[s]):document[n]?t("hidden"):t("visible")}),(0,a.m)(!1))}var t}isEnabled(){return!1!==(0,d.Mt)(this.agentIdentifier,"page_view_timing.enabled")}perfObserver(e,t){e.getEntries().forEach((e=>{"first-paint"===e.name?(0,o.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,this.ee):"first-contentful-paint"===e.name&&(0,o.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,this.ee)}))}lcpObserver(e,t){var r=e.getEntries();if(r.length>0){var n=r[r.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<n.startTime)return;var i=[n],s=this.addConnectionAttributes({});s&&i.push(s),(0,o.pr)("lcp",i,void 0,void 0,this.ee)}}clsObserver(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,o.pr)("cls",[e],void 0,void 0,this.ee)}))}addConnectionAttributes(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}captureInteraction(e){if(e instanceof(0,c.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),r={type:e.type};this.addConnectionAttributes(r),t<=(0,u.now)()?r.fid=(0,u.now)()-t:t>(0,u.getOffset)()&&t<=Date.now()?(t-=(0,u.getOffset)(),r.fid=(0,u.now)()-t):t=(0,u.now)(),this.fiRecorded=!0,(0,o.pr)("timing",["fi",t,r],void 0,void 0,this.ee)}}captureVisibilityChange(e){"hidden"===e&&(this.pageHiddenTime=(0,u.now)(),(0,o.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}},842:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Aggregate:()=>w});var n=r(3406),i=r(6943),s=r(2848),o=r(1558),a=r(8354),c=r(1240),u=r(4017),d=r(6219),h=r(7957),l=r.n(h),f=r(6061),v=r(2909),g=r(9729),p=r(3706),m=r(2997),b=r(1839);class w extends b.W{constructor(e,t){if(super(e,t),this.ptid="",this.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},this.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},this.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},this.trace={},this.nodeCount=0,this.sentTrace=null,this.harvestTimeSeconds=(0,f.Mt)(this.agentIdentifier,"stn.harvestTimeSeconds")||10,this.maxNodesPerHarvest=(0,f.Mt)(this.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,this.laststart=0,(0,p.v)(),i.y0&&(0,v.O)(this.agentIdentifier).features.stn){this.storeTiming(window.performance.timing);var r=new s.o("resources",{onFinished:(...e)=>function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,v.O)(this.agentIdentifier).ptid=this.ptid,r.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,o.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}(...e),retryDelay:(...e)=>this.harvestTimeSeconds(...e)});r.runHarvest({needResponse:!0}),r.harvest.on("resources",((...e)=>function(e){return(0,m.now)()>9e5?(r.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}(...e))),(0,n.XN)("bst",((...e)=>this.storeEvent(...e)),void 0,this.ee),(0,n.XN)("bstTimer",((...e)=>this.storeTimer(...e)),void 0,this.ee),(0,n.XN)("bstResource",((...e)=>this.storeResources(...e)),void 0,this.ee),(0,n.XN)("bstHist",((...e)=>this.storeHist(...e)),void 0,this.ee),(0,n.XN)("bstXhrAgg",((...e)=>this.storeXhrAgg(...e)),void 0,this.ee),(0,n.XN)("bstApi",((...e)=>this.storeSTN(...e)),void 0,this.ee),(0,n.XN)("errorAgg",((...e)=>this.storeErrorAgg(...e)),void 0,this.ee),(0,n.XN)("pvtAdded",((...e)=>this.processPVT(...e)),void 0,this.ee)}}processPVT(e,t,r){var n={};n[e]=t,this.storeTiming(n,!0),this.hasFID(e,r)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+r.fid)}storeTiming(e,t){var r,n,i,s=Date.now();for(r in e)"number"==typeof(n=e[r])&&n>0&&n<s&&(i=t?e[r]:e[r]-(0,v.O)(this.agentIdentifier).offset,this.storeSTN({n:r,s:i,e:i,o:"document",t:"timing"}))}storeTimer(e,t,r,n){var i="timer";"requestAnimationFrame"===n&&(i=n);var s={n,s:t,e:r,o:"window",t:i};this.storeSTN(s)}storeEvent(e,t,r,n){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:r,e:n,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}evtName(e){var t=e;return(0,o.D)(this.rename,(function(r,n){e in n&&(t=r)})),t}evtOrigin(e,t){var r="unknown";if(e&&e instanceof XMLHttpRequest){var n=this.ee.context(e).params;r=n.status+" "+n.method+": "+n.host+n.pathname}else e&&"string"==typeof e.tagName&&(r=e.tagName.toLowerCase(),e.id&&(r+="#"+e.id),e.className&&(r+="."+l()(e.classList).join(".")));return"unknown"===r&&("string"==typeof t?r=t:t===document?r="document":t===window?r="window":t instanceof FileReader&&(r="FileReader")),r}storeHist(e,t,r){var n={n:"history.pushState",s:r,e:r,o:e,t};this.storeSTN(n)}storeResources(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,u.e)(e.name),r={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};r.s<=this.laststart||this.storeSTN(r)})),this.laststart=0|e[e.length-1].fetchStart)}storeErrorAgg(e,t,r,n){if("err"===e){var i={n:"error",s:n.time,e:n.time,o:r.message,t:r.stackHash};this.storeSTN(i)}}storeXhrAgg(e,t,r,n){if("xhr"===e){var i={n:"Ajax",s:n.time,e:n.time+n.duration,o:r.status+" "+r.method+": "+r.host+r.pathname,t:"ajax"};this.storeSTN(i)}}storeSTN(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}mergeSTNs(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var r=this.trace[e];r||(r=this.trace[e]=[]),this.trace[e]=t.concat(r),this.nodeCount+=t.length}}takeSTNs(e){(0,d.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,a.u)((0,o.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,a.u)((0,o.D)((0,a.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var r={qs:{st:""+(0,v.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){const{userAttributes:e,atts:t,jsAttributes:i}=(0,g.C)(this.agentIdentifier);r.qs.ua=e,r.qs.at=t;var n=(0,c.P)(i);r.qs.ja="{}"===n?null:n}return r}byStart(e,t){return e.s-t.s}smearEvtsByOrigin(e){var t=this.toAggregate[e][0],r=this.toAggregate[e][1],n={};return function(i,s){var o=i[s.o];o||(o=i[s.o]=[]);var a=n[s.o];return"scrolling"!==e||this.trivial(s)?a&&s.s-a.s<r&&a.e>s.s-t?a.e=s.e:(n[s.o]=s,o.push(s)):(n[s.o]=null,s.n="scroll",o.push(s)),i}}val(e,t){return t}flatten(e,t){return e.concat(t)}hasFID(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}trivial(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}shouldIgnoreEvent(e,t){var r=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[r]||!(e.type in this.ignoredEvents[r]))}}},5873:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Instrument:()=>m});var n=r(2995),i=r(3097),s=r(6219),o=r(4518),a=r(5307),c=r(2909),u=r(2997),d=r(1839),h="resourcetimingbufferfull",l="bstResource",f="fn-start",v="fn-end",g="bstTimer",p=a.Y.EV;class m extends d.W{constructor(e){super(e),(0,c.O)(this.agentIdentifier).features.stn=!0,this.timerEE=(0,i.BV)(this.ee),this.rafEE=(0,i.gy)(this.ee),(0,i.QU)(this.ee),(0,i.em)(this.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(this.ee.on(f,(function(e,t){e[0]instanceof p&&(this.bstStart=(0,u.now)())})),this.ee.on(v,(function(e,t){var r=e[0];r instanceof p&&(0,n.pr)("bst",[r,t,this.bstStart,(0,u.now)()])})),this.timerEE.on(f,(function(e,t,r){this.bstStart=(0,u.now)(),this.bstType=r})),this.timerEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),this.bstType])})),this.rafEE.on(f,(function(){this.bstStart=(0,u.now)()})),this.rafEE.on(v,(function(e,t){(0,n.pr)(g,[t,this.bstStart,(0,u.now)(),"requestAnimationFrame"])})),this.ee.on("pushState-start",(function(e){this.time=(0,u.now)(),this.startPath=location.pathname+location.hash})),this.ee.on("pushState-end",(function(e){(0,n.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,s.W)()?((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),this.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(h,this.onResourceTimingBufferFull,(0,o.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,(0,o.m)(!1))),document.addEventListener("scroll",this.noOp,(0,o.m)(!1)),document.addEventListener("keypress",this.noOp,(0,o.m)(!1)),document.addEventListener("click",this.noOp,(0,o.m)(!1)))}observeResourceTimings(){var e=new PerformanceObserver((function(e,t){var r=e.getEntries();(0,n.pr)(l,[r])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}onResourceTimingBufferFull(e){if((0,n.pr)(l,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(h,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}noOp(e){}}},7957:e=>{e.exports=function(e,t,r){t||(t=0),void 0===r&&(r=e?e.length:0);for(var n=-1,i=r-t||0,s=Array(i<0?0:i);++n<i;)s[n]=e[t+n];return s}},3648:(e,t,r)=>{var n={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=3648},8346:(e,t,r)=>{var n={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=8346},3607:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var s=r(9230),o=r(8149),a=r(3263),c=r(418),u=r(3831),d=r(8240),h=r(8053),l=r(4460),f=function(){function e(){var e=this;this._initialized=!1,this._id=(0,h.generateRandomHexString)(16),this._api=new o.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new c.Features,this.start=function(t){return n(e,void 0,void 0,(function(){var e,r,n,o,c;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,a.buildConfigs)(t),r=e.info,n=e.config,o=e.loader_config,r&&(0,s.setInfo)(this._id,r),n&&(0,s.setConfiguration)(this._id,n),o&&(0,s.setLoaderConfig)(this._id,n),(0,s.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,u.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return c=i.sent(),(0,d.gosNREUMInitializedAgents)(this._id,c,"features"),[2,!0]}}))}))},this.noticeError=function(t,r){return e._api.noticeError(t,r)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,s.getInfo)(this._id),config:(0,s.getConfiguration)(this._id),loader_config:(0,s.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=f,t.default=f},9699:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var r=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=r,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var n=r(9699),i=r(2997),s=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return"noticeError",s=e,"Error | String",void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(s,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var r=(0,i.now)();return this.importedMethods.storeError(e,r,!1,t)}var s,o,a;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,r){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,n.NrFeatures.JSERRORS):void 0:(o=this._parent.id,a=n.NrFeatures.JSERRORS,void console.warn("Agent ".concat(o," is calling a ").concat(a," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=s},3263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},r={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},n={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(n)||console.warn("Missing required config data"),{info:t,config:r,loader_config:n}}},418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var n=r(9699),i=function(){function e(){this.errors=new n.NrFeature(n.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var c=r(9699);t.initializeFeatures=function(e,t,n,i){var u=this;return Promise.all(i.getEnabledFeatures().map((function(i){return o(u,void 0,void 0,(function(){var o,u;return a(this,(function(a){switch(a.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return s(r(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,a.sent().Instrument)(e),a.label=2;case 2:return[4,Promise.resolve().then((function(){return s(r(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return o=a.sent().Aggregate,u=new o(e,n),i.name===c.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.storeError.apply(u,e)}),[2,i.name]}}))}))})))}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}return r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(3607)})()));
|
|
2
|
-
//# sourceMappingURL=index.js.map
|