mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
54 KiB
JSON
1 line
54 KiB
JSON
{"ast":null,"code":"import * as Sentry from '@sentry/browser';\nimport { SDK_VERSION, init as init$1, setContext, captureException, getCurrentHub } from '@sentry/browser';\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/router';\nexport * from '@sentry/browser';\nimport * as i0 from '@angular/core';\nimport { VERSION, Injectable, Inject, Directive, Input, NgModule } from '@angular/core';\nimport { logger, addExceptionMechanism, getGlobalObject, stripUrlQueryAndFragment, timestampWithMs } from '@sentry/utils';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport * as i1 from '@angular/router';\nimport { NavigationStart, ResolveEnd, NavigationEnd, Router } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { filter, tap } from 'rxjs/operators';\nconst ANGULAR_ROUTING_OP = 'ui.angular.routing';\nconst ANGULAR_INIT_OP = 'ui.angular.init';\nconst ANGULAR_OP = 'ui.angular';\n/**\n * Minimum Angular version this SDK supports\n */\nconst ANGULAR_MINIMUM_VERSION = 10;\n\n/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * We define \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during our, or the user's\n * build process. Take care when introducing new flags - they must not throw if they are not replaced. See the Debug\n * Build Flags section in CONTRIBUTING.md.\n */\n/** Flag that is true for debug builds, false otherwise. */\nconst IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;\n\n/**\n * Inits the Angular SDK\n */\nfunction init(options) {\n options._metadata = options._metadata || {};\n options._metadata.sdk = {\n name: 'sentry.javascript.angular',\n packages: [{\n name: 'npm:@sentry/angular',\n version: SDK_VERSION\n }],\n version: SDK_VERSION\n };\n checkAndSetAngularVersion();\n init$1(options);\n}\nfunction checkAndSetAngularVersion() {\n const angularVersion = VERSION && VERSION.major ? parseInt(VERSION.major, 10) : undefined;\n if (angularVersion) {\n if (angularVersion < ANGULAR_MINIMUM_VERSION) {\n IS_DEBUG_BUILD && logger.warn(`The Sentry SDK does not officially support Angular ${angularVersion}.`, `This version of the Sentry SDK supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`, 'Please consider upgrading your Angular version or downgrading the Sentry SDK.');\n }\n setContext('angular', {\n version: angularVersion\n });\n }\n}\n\n// There're 2 types of Angular applications:\n// 1) zone-full (by default)\n// 2) zone-less\n// The developer can avoid importing the `zone.js` package and tells Angular that\n// he is responsible for running the change detection by himself. This is done by\n// \"nooping\" the zone through `CompilerOptions` when bootstrapping the root module.\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nconst isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current;\n/**\n * The function that does the same job as `NgZone.runOutsideAngular`.\n */\nfunction runOutsideAngular(callback) {\n // The `Zone.root.run` basically will run the `callback` in the most parent zone.\n // Any asynchronous API used inside the `callback` won't catch Angular's zone\n // since `Zone.current` will reference `Zone.root`.\n // The Angular's zone is forked from the `Zone.root`. In this case, `zone.js` won't\n // trigger change detection, and `ApplicationRef.tick()` will not be run.\n // Caretaker note: we're using `Zone.root` except `NgZone.runOutsideAngular` since this\n // will require injecting the `NgZone` facade. That will create a breaking change for\n // projects already using the `@sentry/angular`.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return isNgZoneEnabled ? Zone.root.run(callback) : callback();\n}\n\n/**\n * Implementation of Angular's ErrorHandler provider that can be used as a drop-in replacement for the stock one.\n */\nclass SentryErrorHandler {\n constructor(options) {\n this._options = Object.assign({\n logErrors: true\n }, options);\n }\n /**\n * Method called for every value captured through the ErrorHandler\n */\n handleError(error) {\n const extractedError = this._extractError(error) || 'Handled unknown error';\n // Capture handled exception and send it to Sentry.\n const eventId = runOutsideAngular(() => captureException(extractedError, scope => {\n scope.addEventProcessor(event => {\n addExceptionMechanism(event, {\n type: 'angular',\n handled: false\n });\n return event;\n });\n return scope;\n }));\n // When in development mode, log the error to console for immediate feedback.\n if (this._options.logErrors) {\n // eslint-disable-next-line no-console\n console.error(extractedError);\n }\n // Optionally show user dialog to provide details on what happened.\n if (this._options.showDialog) {\n Sentry.showReportDialog(Object.assign(Object.assign({}, this._options.dialogOptions), {\n eventId\n }));\n }\n }\n /**\n * Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.\n */\n _extractError(error) {\n // Allow custom overrides of extracting function\n if (this._options.extractor) {\n const defaultExtractor = this._defaultExtractor.bind(this);\n return this._options.extractor(error, defaultExtractor);\n }\n return this._defaultExtractor(error);\n }\n /**\n * Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.\n */\n _defaultExtractor(errorCandidate) {\n let error = errorCandidate;\n // Try to unwrap zone.js error.\n // https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts\n if (error && error.ngOriginalError) {\n error = error.ngOriginalError;\n }\n // We can handle messages and Error objects directly.\n if (typeof error === 'string' || error instanceof Error) {\n return error;\n }\n // If it's http module error, extract as much information from it as we can.\n if (error instanceof HttpErrorResponse) {\n // The `error` property of http exception can be either an `Error` object, which we can use directly...\n if (error.error instanceof Error) {\n return error.error;\n }\n // ... or an`ErrorEvent`, which can provide us with the message but no stack...\n if (error.error instanceof ErrorEvent && error.error.message) {\n return error.error.message;\n }\n // ...or the request body itself, which we can use as a message instead.\n if (typeof error.error === 'string') {\n return `Server returned code ${error.status} with body \"${error.error}\"`;\n }\n // If we don't have any detailed information, fallback to the request message itself.\n return error.message;\n }\n // Nothing was extracted, fallback to default error message.\n return null;\n }\n}\nSentryErrorHandler.ɵfac = function SentryErrorHandler_Factory(t) {\n return new (t || SentryErrorHandler)(ɵngcc0.ɵɵinject('errorHandlerOptions'));\n};\nSentryErrorHandler.ɵprov = i0.ɵɵdefineInjectable({\n factory: function SentryErrorHandler_Factory() {\n return new SentryErrorHandler(i0.ɵɵinject(\"errorHandlerOptions\"));\n },\n token: SentryErrorHandler,\n providedIn: \"root\"\n});\nSentryErrorHandler.ctorParameters = () => [{\n type: undefined,\n decorators: [{\n type: Inject,\n args: ['errorHandlerOptions']\n }]\n}];\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(SentryErrorHandler, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], function () {\n return [{\n type: undefined,\n decorators: [{\n type: Inject,\n args: ['errorHandlerOptions']\n }]\n }];\n }, null);\n})();\n/**\n * Factory function that creates an instance of a preconfigured ErrorHandler provider.\n */\nfunction createErrorHandler(config) {\n return new SentryErrorHandler(config);\n}\n\n/* eslint-disable max-lines */\nlet instrumentationInitialized;\nlet stashedStartTransaction;\nlet stashedStartTransactionOnLocationChange;\nconst global = getGlobalObject();\n/**\n * Creates routing instrumentation for Angular Router.\n */\nfunction routingInstrumentation(customStartTransaction, startTransactionOnPageLoad = true, startTransactionOnLocationChange = true) {\n instrumentationInitialized = true;\n stashedStartTransaction = customStartTransaction;\n stashedStartTransactionOnLocationChange = startTransactionOnLocationChange;\n if (startTransactionOnPageLoad && global && global.location) {\n customStartTransaction({\n name: global.location.pathname,\n op: 'pageload',\n metadata: {\n source: 'url'\n }\n });\n }\n}\nconst instrumentAngularRouting = routingInstrumentation;\n/**\n * Grabs active transaction off scope\n */\nfunction getActiveTransaction() {\n const currentHub = getCurrentHub();\n if (currentHub) {\n const scope = currentHub.getScope();\n if (scope) {\n return scope.getTransaction();\n }\n }\n return undefined;\n}\n/**\n * Angular's Service responsible for hooking into Angular Router and tracking current navigation process.\n * Creates a new transaction for every route change and measures a duration of routing process.\n */\nclass TraceService {\n constructor(_router) {\n this._router = _router;\n this.navStart$ = this._router.events.pipe(filter(event => event instanceof NavigationStart), tap(navigationEvent => {\n if (!instrumentationInitialized) {\n IS_DEBUG_BUILD && logger.error('Angular integration has tracing enabled, but Tracing integration is not configured');\n return;\n }\n const strippedUrl = stripUrlQueryAndFragment(navigationEvent.url);\n let activeTransaction = getActiveTransaction();\n if (!activeTransaction && stashedStartTransactionOnLocationChange) {\n activeTransaction = stashedStartTransaction({\n name: strippedUrl,\n op: 'navigation',\n metadata: {\n source: 'url'\n }\n });\n }\n if (activeTransaction) {\n if (this._routingSpan) {\n this._routingSpan.finish();\n }\n this._routingSpan = activeTransaction.startChild({\n description: `${navigationEvent.url}`,\n op: ANGULAR_ROUTING_OP,\n tags: Object.assign({\n 'routing.instrumentation': '@sentry/angular',\n url: strippedUrl\n }, navigationEvent.navigationTrigger && {\n navigationTrigger: navigationEvent.navigationTrigger\n })\n });\n }\n }));\n // The ResolveEnd event is fired when the Angular router has resolved the URL and\n // the parameter<->value mapping. It holds the new resolved router state with\n // the mapping and the new URL.\n // Only After this event, the route is activated, meaning that the transaction\n // can be updated with the parameterized route name before e.g. the route's root\n // component is initialized. This should be early enough before outgoing requests\n // are made from the new route, with the exceptions of requests being made during\n // a navigation.\n this.resEnd$ = this._router.events.pipe(filter(event => event instanceof ResolveEnd), tap(event => {\n const route = getParameterizedRouteFromSnapshot(event.state.root);\n const transaction = getActiveTransaction();\n // TODO (v8 / #5416): revisit the source condition. Do we want to make the parameterized route the default?\n if (transaction && transaction.metadata.source === 'url') {\n transaction.setName(route, 'route');\n }\n }));\n this.navEnd$ = this._router.events.pipe(filter(event => event instanceof NavigationEnd), tap(() => {\n if (this._routingSpan) {\n runOutsideAngular(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._routingSpan.finish();\n });\n this._routingSpan = null;\n }\n }));\n this._routingSpan = null;\n this._subscription = new Subscription();\n this._subscription.add(this.navStart$.subscribe());\n this._subscription.add(this.resEnd$.subscribe());\n this._subscription.add(this.navEnd$.subscribe());\n }\n /**\n * This is used to prevent memory leaks when the root view is created and destroyed multiple times,\n * since `subscribe` callbacks capture `this` and prevent many resources from being GC'd.\n */\n ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n}\nTraceService.ɵfac = function TraceService_Factory(t) {\n return new (t || TraceService)(ɵngcc0.ɵɵinject(ɵngcc1.Router));\n};\nTraceService.ɵprov = i0.ɵɵdefineInjectable({\n factory: function TraceService_Factory() {\n return new TraceService(i0.ɵɵinject(i1.Router));\n },\n token: TraceService,\n providedIn: \"root\"\n});\nTraceService.ctorParameters = () => [{\n type: Router\n}];\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceService, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], function () {\n return [{\n type: ɵngcc1.Router\n }];\n }, null);\n})();\nconst UNKNOWN_COMPONENT = 'unknown';\n/**\n * A directive that can be used to capture initialization lifecycle of the whole component.\n */\nclass TraceDirective {\n constructor() {\n this.componentName = UNKNOWN_COMPONENT;\n }\n /**\n * Implementation of OnInit lifecycle method\n * @inheritdoc\n */\n ngOnInit() {\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n this._tracingSpan = activeTransaction.startChild({\n description: `<${this.componentName}>`,\n op: ANGULAR_INIT_OP\n });\n }\n }\n /**\n * Implementation of AfterViewInit lifecycle method\n * @inheritdoc\n */\n ngAfterViewInit() {\n if (this._tracingSpan) {\n this._tracingSpan.finish();\n }\n }\n}\nTraceDirective.ɵfac = function TraceDirective_Factory(t) {\n return new (t || TraceDirective)();\n};\nTraceDirective.ɵdir = /*@__PURE__*/ɵngcc0.ɵɵdefineDirective({\n type: TraceDirective,\n selectors: [[\"\", \"trace\", \"\"]],\n inputs: {\n componentName: [\"trace\", \"componentName\"]\n }\n});\nTraceDirective.propDecorators = {\n componentName: [{\n type: Input,\n args: ['trace']\n }]\n};\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceDirective, [{\n type: Directive,\n args: [{\n selector: '[trace]'\n }]\n }], function () {\n return [];\n }, {\n componentName: [{\n type: Input,\n args: ['trace']\n }]\n });\n})();\n/**\n * A module serves as a single compilation unit for the `TraceDirective` and can be re-used by any other module.\n */\nclass TraceModule {}\nTraceModule.ɵfac = function TraceModule_Factory(t) {\n return new (t || TraceModule)();\n};\nTraceModule.ɵmod = /*@__PURE__*/ɵngcc0.ɵɵdefineNgModule({\n type: TraceModule\n});\nTraceModule.ɵinj = /*@__PURE__*/ɵngcc0.ɵɵdefineInjector({});\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceModule, [{\n type: NgModule,\n args: [{\n declarations: [TraceDirective],\n exports: [TraceDirective]\n }]\n }], null, null);\n})();\n(function () {\n (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(TraceModule, {\n declarations: [TraceDirective],\n exports: [TraceDirective]\n });\n})();\n/**\n * Decorator function that can be used to capture initialization lifecycle of the whole component.\n */\nfunction TraceClassDecorator() {\n let tracingSpan;\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n return target => {\n const originalOnInit = target.prototype.ngOnInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngOnInit = function (...args) {\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n tracingSpan = activeTransaction.startChild({\n description: `<${target.name}>`,\n op: ANGULAR_INIT_OP\n });\n }\n if (originalOnInit) {\n return originalOnInit.apply(this, args);\n }\n };\n const originalAfterViewInit = target.prototype.ngAfterViewInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngAfterViewInit = function (...args) {\n if (tracingSpan) {\n tracingSpan.finish();\n }\n if (originalAfterViewInit) {\n return originalAfterViewInit.apply(this, args);\n }\n };\n };\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n}\n/**\n * Decorator function that can be used to capture a single lifecycle methods of the component.\n */\nfunction TraceMethodDecorator() {\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/ban-types\n return (target, propertyKey, descriptor) => {\n const originalMethod = descriptor.value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor.value = function (...args) {\n const now = timestampWithMs();\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n activeTransaction.startChild({\n description: `<${target.constructor.name}>`,\n endTimestamp: now,\n op: `${ANGULAR_OP}.${String(propertyKey)}`,\n startTimestamp: now\n });\n }\n if (originalMethod) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalMethod.apply(this, args);\n }\n };\n return descriptor;\n };\n}\n/**\n * Takes the parameterized route from a given ActivatedRouteSnapshot and concatenates the snapshot's\n * child route with its parent to produce the complete parameterized URL of the activated route.\n * This happens recursively until the last child (i.e. the end of the URL) is reached.\n *\n * @param route the ActivatedRouteSnapshot of which its path and its child's path is concantenated\n *\n * @returns the concatenated parameterzited route string\n */\nfunction getParameterizedRouteFromSnapshot(route) {\n const path = route && route.firstChild && route.firstChild.routeConfig && route.firstChild.routeConfig.path;\n if (!path) {\n return '/';\n }\n return `/${path}${getParameterizedRouteFromSnapshot(route && route.firstChild)}`;\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SentryErrorHandler, TraceClassDecorator, TraceDirective, TraceMethodDecorator, TraceModule, TraceService, createErrorHandler, getActiveTransaction, init, instrumentAngularRouting, routingInstrumentation };","map":{"version":3,"names":["Sentry","SDK_VERSION","init","init$1","setContext","captureException","getCurrentHub","ɵngcc0","ɵngcc1","i0","VERSION","Injectable","Inject","Directive","Input","NgModule","logger","addExceptionMechanism","getGlobalObject","stripUrlQueryAndFragment","timestampWithMs","HttpErrorResponse","i1","NavigationStart","ResolveEnd","NavigationEnd","Router","Subscription","filter","tap","ANGULAR_ROUTING_OP","ANGULAR_INIT_OP","ANGULAR_OP","ANGULAR_MINIMUM_VERSION","IS_DEBUG_BUILD","__SENTRY_DEBUG__","options","_metadata","sdk","name","packages","version","checkAndSetAngularVersion","angularVersion","major","parseInt","undefined","warn","isNgZoneEnabled","Zone","current","runOutsideAngular","callback","root","run","SentryErrorHandler","constructor","_options","Object","assign","logErrors","handleError","error","extractedError","_extractError","eventId","scope","addEventProcessor","event","type","handled","console","showDialog","showReportDialog","dialogOptions","extractor","defaultExtractor","_defaultExtractor","bind","errorCandidate","ngOriginalError","Error","ErrorEvent","message","status","ɵfac","SentryErrorHandler_Factory","t","ɵɵinject","ɵprov","ɵɵdefineInjectable","factory","token","providedIn","ctorParameters","decorators","args","ngDevMode","ɵsetClassMetadata","createErrorHandler","config","instrumentationInitialized","stashedStartTransaction","stashedStartTransactionOnLocationChange","global","routingInstrumentation","customStartTransaction","startTransactionOnPageLoad","startTransactionOnLocationChange","location","pathname","op","metadata","source","instrumentAngularRouting","getActiveTransaction","currentHub","getScope","getTransaction","TraceService","_router","navStart$","events","pipe","navigationEvent","strippedUrl","url","activeTransaction","_routingSpan","finish","startChild","description","tags","navigationTrigger","resEnd$","route","getParameterizedRouteFromSnapshot","state","transaction","setName","navEnd$","_subscription","add","subscribe","ngOnDestroy","unsubscribe","TraceService_Factory","UNKNOWN_COMPONENT","TraceDirective","componentName","ngOnInit","_tracingSpan","ngAfterViewInit","TraceDirective_Factory","ɵdir","ɵɵdefineDirective","selectors","inputs","propDecorators","selector","TraceModule","TraceModule_Factory","ɵmod","ɵɵdefineNgModule","ɵinj","ɵɵdefineInjector","declarations","exports","ngJitMode","ɵɵsetNgModuleScope","TraceClassDecorator","tracingSpan","target","originalOnInit","prototype","apply","originalAfterViewInit","TraceMethodDecorator","propertyKey","descriptor","originalMethod","value","now","endTimestamp","String","startTimestamp","path","firstChild","routeConfig"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/angular/__ivy_ngcc__/fesm2015/sentry-angular.js"],"sourcesContent":["import * as Sentry from '@sentry/browser';\nimport { SDK_VERSION, init as init$1, setContext, captureException, getCurrentHub } from '@sentry/browser';\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/router';\nexport * from '@sentry/browser';\nimport * as i0 from '@angular/core';\nimport { VERSION, Injectable, Inject, Directive, Input, NgModule } from '@angular/core';\nimport { logger, addExceptionMechanism, getGlobalObject, stripUrlQueryAndFragment, timestampWithMs } from '@sentry/utils';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport * as i1 from '@angular/router';\nimport { NavigationStart, ResolveEnd, NavigationEnd, Router } from '@angular/router';\nimport { Subscription } from 'rxjs';\nimport { filter, tap } from 'rxjs/operators';\n\nconst ANGULAR_ROUTING_OP = 'ui.angular.routing';\nconst ANGULAR_INIT_OP = 'ui.angular.init';\nconst ANGULAR_OP = 'ui.angular';\n/**\n * Minimum Angular version this SDK supports\n */\nconst ANGULAR_MINIMUM_VERSION = 10;\n\n/*\n * This file defines flags and constants that can be modified during compile time in order to facilitate tree shaking\n * for users.\n *\n * We define \"magic strings\" like `__SENTRY_DEBUG__` that may get replaced with actual values during our, or the user's\n * build process. Take care when introducing new flags - they must not throw if they are not replaced. See the Debug\n * Build Flags section in CONTRIBUTING.md.\n */\n/** Flag that is true for debug builds, false otherwise. */\nconst IS_DEBUG_BUILD = typeof __SENTRY_DEBUG__ === 'undefined' ? true : __SENTRY_DEBUG__;\n\n/**\n * Inits the Angular SDK\n */\nfunction init(options) {\n options._metadata = options._metadata || {};\n options._metadata.sdk = {\n name: 'sentry.javascript.angular',\n packages: [\n {\n name: 'npm:@sentry/angular',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n checkAndSetAngularVersion();\n init$1(options);\n}\nfunction checkAndSetAngularVersion() {\n const angularVersion = VERSION && VERSION.major ? parseInt(VERSION.major, 10) : undefined;\n if (angularVersion) {\n if (angularVersion < ANGULAR_MINIMUM_VERSION) {\n IS_DEBUG_BUILD &&\n logger.warn(`The Sentry SDK does not officially support Angular ${angularVersion}.`, `This version of the Sentry SDK supports Angular ${ANGULAR_MINIMUM_VERSION} and above.`, 'Please consider upgrading your Angular version or downgrading the Sentry SDK.');\n }\n setContext('angular', { version: angularVersion });\n }\n}\n\n// There're 2 types of Angular applications:\n// 1) zone-full (by default)\n// 2) zone-less\n// The developer can avoid importing the `zone.js` package and tells Angular that\n// he is responsible for running the change detection by himself. This is done by\n// \"nooping\" the zone through `CompilerOptions` when bootstrapping the root module.\n// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\nconst isNgZoneEnabled = typeof Zone !== 'undefined' && !!Zone.current;\n/**\n * The function that does the same job as `NgZone.runOutsideAngular`.\n */\nfunction runOutsideAngular(callback) {\n // The `Zone.root.run` basically will run the `callback` in the most parent zone.\n // Any asynchronous API used inside the `callback` won't catch Angular's zone\n // since `Zone.current` will reference `Zone.root`.\n // The Angular's zone is forked from the `Zone.root`. In this case, `zone.js` won't\n // trigger change detection, and `ApplicationRef.tick()` will not be run.\n // Caretaker note: we're using `Zone.root` except `NgZone.runOutsideAngular` since this\n // will require injecting the `NgZone` facade. That will create a breaking change for\n // projects already using the `@sentry/angular`.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return isNgZoneEnabled ? Zone.root.run(callback) : callback();\n}\n\n/**\n * Implementation of Angular's ErrorHandler provider that can be used as a drop-in replacement for the stock one.\n */\nclass SentryErrorHandler {\n constructor(options) {\n this._options = Object.assign({ logErrors: true }, options);\n }\n /**\n * Method called for every value captured through the ErrorHandler\n */\n handleError(error) {\n const extractedError = this._extractError(error) || 'Handled unknown error';\n // Capture handled exception and send it to Sentry.\n const eventId = runOutsideAngular(() => captureException(extractedError, scope => {\n scope.addEventProcessor(event => {\n addExceptionMechanism(event, {\n type: 'angular',\n handled: false,\n });\n return event;\n });\n return scope;\n }));\n // When in development mode, log the error to console for immediate feedback.\n if (this._options.logErrors) {\n // eslint-disable-next-line no-console\n console.error(extractedError);\n }\n // Optionally show user dialog to provide details on what happened.\n if (this._options.showDialog) {\n Sentry.showReportDialog(Object.assign(Object.assign({}, this._options.dialogOptions), { eventId }));\n }\n }\n /**\n * Used to pull a desired value that will be used to capture an event out of the raw value captured by ErrorHandler.\n */\n _extractError(error) {\n // Allow custom overrides of extracting function\n if (this._options.extractor) {\n const defaultExtractor = this._defaultExtractor.bind(this);\n return this._options.extractor(error, defaultExtractor);\n }\n return this._defaultExtractor(error);\n }\n /**\n * Default implementation of error extraction that handles default error wrapping, HTTP responses, ErrorEvent and few other known cases.\n */\n _defaultExtractor(errorCandidate) {\n let error = errorCandidate;\n // Try to unwrap zone.js error.\n // https://github.com/angular/angular/blob/master/packages/core/src/util/errors.ts\n if (error && error.ngOriginalError) {\n error = error.ngOriginalError;\n }\n // We can handle messages and Error objects directly.\n if (typeof error === 'string' || error instanceof Error) {\n return error;\n }\n // If it's http module error, extract as much information from it as we can.\n if (error instanceof HttpErrorResponse) {\n // The `error` property of http exception can be either an `Error` object, which we can use directly...\n if (error.error instanceof Error) {\n return error.error;\n }\n // ... or an`ErrorEvent`, which can provide us with the message but no stack...\n if (error.error instanceof ErrorEvent && error.error.message) {\n return error.error.message;\n }\n // ...or the request body itself, which we can use as a message instead.\n if (typeof error.error === 'string') {\n return `Server returned code ${error.status} with body \"${error.error}\"`;\n }\n // If we don't have any detailed information, fallback to the request message itself.\n return error.message;\n }\n // Nothing was extracted, fallback to default error message.\n return null;\n }\n}\nSentryErrorHandler.ɵfac = function SentryErrorHandler_Factory(t) { return new (t || SentryErrorHandler)(ɵngcc0.ɵɵinject('errorHandlerOptions')); };\nSentryErrorHandler.ɵprov = i0.ɵɵdefineInjectable({ factory: function SentryErrorHandler_Factory() { return new SentryErrorHandler(i0.ɵɵinject(\"errorHandlerOptions\")); }, token: SentryErrorHandler, providedIn: \"root\" });\nSentryErrorHandler.ctorParameters = () => [\n { type: undefined, decorators: [{ type: Inject, args: ['errorHandlerOptions',] }] }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(SentryErrorHandler, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], function () { return [{ type: undefined, decorators: [{\n type: Inject,\n args: ['errorHandlerOptions']\n }] }]; }, null); })();\n/**\n * Factory function that creates an instance of a preconfigured ErrorHandler provider.\n */\nfunction createErrorHandler(config) {\n return new SentryErrorHandler(config);\n}\n\n/* eslint-disable max-lines */\nlet instrumentationInitialized;\nlet stashedStartTransaction;\nlet stashedStartTransactionOnLocationChange;\nconst global = getGlobalObject();\n/**\n * Creates routing instrumentation for Angular Router.\n */\nfunction routingInstrumentation(customStartTransaction, startTransactionOnPageLoad = true, startTransactionOnLocationChange = true) {\n instrumentationInitialized = true;\n stashedStartTransaction = customStartTransaction;\n stashedStartTransactionOnLocationChange = startTransactionOnLocationChange;\n if (startTransactionOnPageLoad && global && global.location) {\n customStartTransaction({\n name: global.location.pathname,\n op: 'pageload',\n metadata: { source: 'url' },\n });\n }\n}\nconst instrumentAngularRouting = routingInstrumentation;\n/**\n * Grabs active transaction off scope\n */\nfunction getActiveTransaction() {\n const currentHub = getCurrentHub();\n if (currentHub) {\n const scope = currentHub.getScope();\n if (scope) {\n return scope.getTransaction();\n }\n }\n return undefined;\n}\n/**\n * Angular's Service responsible for hooking into Angular Router and tracking current navigation process.\n * Creates a new transaction for every route change and measures a duration of routing process.\n */\nclass TraceService {\n constructor(_router) {\n this._router = _router;\n this.navStart$ = this._router.events.pipe(filter((event) => event instanceof NavigationStart), tap(navigationEvent => {\n if (!instrumentationInitialized) {\n IS_DEBUG_BUILD &&\n logger.error('Angular integration has tracing enabled, but Tracing integration is not configured');\n return;\n }\n const strippedUrl = stripUrlQueryAndFragment(navigationEvent.url);\n let activeTransaction = getActiveTransaction();\n if (!activeTransaction && stashedStartTransactionOnLocationChange) {\n activeTransaction = stashedStartTransaction({\n name: strippedUrl,\n op: 'navigation',\n metadata: { source: 'url' },\n });\n }\n if (activeTransaction) {\n if (this._routingSpan) {\n this._routingSpan.finish();\n }\n this._routingSpan = activeTransaction.startChild({\n description: `${navigationEvent.url}`,\n op: ANGULAR_ROUTING_OP,\n tags: Object.assign({ 'routing.instrumentation': '@sentry/angular', url: strippedUrl }, (navigationEvent.navigationTrigger && {\n navigationTrigger: navigationEvent.navigationTrigger,\n })),\n });\n }\n }));\n // The ResolveEnd event is fired when the Angular router has resolved the URL and\n // the parameter<->value mapping. It holds the new resolved router state with\n // the mapping and the new URL.\n // Only After this event, the route is activated, meaning that the transaction\n // can be updated with the parameterized route name before e.g. the route's root\n // component is initialized. This should be early enough before outgoing requests\n // are made from the new route, with the exceptions of requests being made during\n // a navigation.\n this.resEnd$ = this._router.events.pipe(filter((event) => event instanceof ResolveEnd), tap(event => {\n const route = getParameterizedRouteFromSnapshot(event.state.root);\n const transaction = getActiveTransaction();\n // TODO (v8 / #5416): revisit the source condition. Do we want to make the parameterized route the default?\n if (transaction && transaction.metadata.source === 'url') {\n transaction.setName(route, 'route');\n }\n }));\n this.navEnd$ = this._router.events.pipe(filter(event => event instanceof NavigationEnd), tap(() => {\n if (this._routingSpan) {\n runOutsideAngular(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this._routingSpan.finish();\n });\n this._routingSpan = null;\n }\n }));\n this._routingSpan = null;\n this._subscription = new Subscription();\n this._subscription.add(this.navStart$.subscribe());\n this._subscription.add(this.resEnd$.subscribe());\n this._subscription.add(this.navEnd$.subscribe());\n }\n /**\n * This is used to prevent memory leaks when the root view is created and destroyed multiple times,\n * since `subscribe` callbacks capture `this` and prevent many resources from being GC'd.\n */\n ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n}\nTraceService.ɵfac = function TraceService_Factory(t) { return new (t || TraceService)(ɵngcc0.ɵɵinject(ɵngcc1.Router)); };\nTraceService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TraceService_Factory() { return new TraceService(i0.ɵɵinject(i1.Router)); }, token: TraceService, providedIn: \"root\" });\nTraceService.ctorParameters = () => [\n { type: Router }\n];\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceService, [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }], function () { return [{ type: ɵngcc1.Router }]; }, null); })();\nconst UNKNOWN_COMPONENT = 'unknown';\n/**\n * A directive that can be used to capture initialization lifecycle of the whole component.\n */\nclass TraceDirective {\n constructor() {\n this.componentName = UNKNOWN_COMPONENT;\n }\n /**\n * Implementation of OnInit lifecycle method\n * @inheritdoc\n */\n ngOnInit() {\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n this._tracingSpan = activeTransaction.startChild({\n description: `<${this.componentName}>`,\n op: ANGULAR_INIT_OP,\n });\n }\n }\n /**\n * Implementation of AfterViewInit lifecycle method\n * @inheritdoc\n */\n ngAfterViewInit() {\n if (this._tracingSpan) {\n this._tracingSpan.finish();\n }\n }\n}\nTraceDirective.ɵfac = function TraceDirective_Factory(t) { return new (t || TraceDirective)(); };\nTraceDirective.ɵdir = /*@__PURE__*/ ɵngcc0.ɵɵdefineDirective({ type: TraceDirective, selectors: [[\"\", \"trace\", \"\"]], inputs: { componentName: [\"trace\", \"componentName\"] } });\nTraceDirective.propDecorators = {\n componentName: [{ type: Input, args: ['trace',] }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceDirective, [{\n type: Directive,\n args: [{ selector: '[trace]' }]\n }], function () { return []; }, { componentName: [{\n type: Input,\n args: ['trace']\n }] }); })();\n/**\n * A module serves as a single compilation unit for the `TraceDirective` and can be re-used by any other module.\n */\nclass TraceModule {\n}\nTraceModule.ɵfac = function TraceModule_Factory(t) { return new (t || TraceModule)(); };\nTraceModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: TraceModule });\nTraceModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({});\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(TraceModule, [{\n type: NgModule,\n args: [{\n declarations: [TraceDirective],\n exports: [TraceDirective]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(TraceModule, { declarations: [TraceDirective], exports: [TraceDirective] }); })();\n/**\n * Decorator function that can be used to capture initialization lifecycle of the whole component.\n */\nfunction TraceClassDecorator() {\n let tracingSpan;\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n return target => {\n const originalOnInit = target.prototype.ngOnInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngOnInit = function (...args) {\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n tracingSpan = activeTransaction.startChild({\n description: `<${target.name}>`,\n op: ANGULAR_INIT_OP,\n });\n }\n if (originalOnInit) {\n return originalOnInit.apply(this, args);\n }\n };\n const originalAfterViewInit = target.prototype.ngAfterViewInit;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n target.prototype.ngAfterViewInit = function (...args) {\n if (tracingSpan) {\n tracingSpan.finish();\n }\n if (originalAfterViewInit) {\n return originalAfterViewInit.apply(this, args);\n }\n };\n };\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n}\n/**\n * Decorator function that can be used to capture a single lifecycle methods of the component.\n */\nfunction TraceMethodDecorator() {\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/ban-types\n return (target, propertyKey, descriptor) => {\n const originalMethod = descriptor.value;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n descriptor.value = function (...args) {\n const now = timestampWithMs();\n const activeTransaction = getActiveTransaction();\n if (activeTransaction) {\n activeTransaction.startChild({\n description: `<${target.constructor.name}>`,\n endTimestamp: now,\n op: `${ANGULAR_OP}.${String(propertyKey)}`,\n startTimestamp: now,\n });\n }\n if (originalMethod) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalMethod.apply(this, args);\n }\n };\n return descriptor;\n };\n}\n/**\n * Takes the parameterized route from a given ActivatedRouteSnapshot and concatenates the snapshot's\n * child route with its parent to produce the complete parameterized URL of the activated route.\n * This happens recursively until the last child (i.e. the end of the URL) is reached.\n *\n * @param route the ActivatedRouteSnapshot of which its path and its child's path is concantenated\n *\n * @returns the concatenated parameterzited route string\n */\nfunction getParameterizedRouteFromSnapshot(route) {\n const path = route && route.firstChild && route.firstChild.routeConfig && route.firstChild.routeConfig.path;\n if (!path) {\n return '/';\n }\n return `/${path}${getParameterizedRouteFromSnapshot(route && route.firstChild)}`;\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SentryErrorHandler, TraceClassDecorator, TraceDirective, TraceMethodDecorator, TraceModule, TraceService, createErrorHandler, getActiveTransaction, init, instrumentAngularRouting, routingInstrumentation };\n\n"],"mappings":"AAAA,OAAO,KAAKA,MAAM,MAAM,iBAAiB;AACzC,SAASC,WAAW,EAAEC,IAAI,IAAIC,MAAM,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,aAAa,QAAQ,iBAAiB;AAC1G,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,MAAM,MAAM,iBAAiB;AACzC,cAAc,iBAAiB;AAC/B,OAAO,KAAKC,EAAE,MAAM,eAAe;AACnC,SAASC,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,eAAe;AACvF,SAASC,MAAM,EAAEC,qBAAqB,EAAEC,eAAe,EAAEC,wBAAwB,EAAEC,eAAe,QAAQ,eAAe;AACzH,SAASC,iBAAiB,QAAQ,sBAAsB;AACxD,OAAO,KAAKC,EAAE,MAAM,iBAAiB;AACrC,SAASC,eAAe,EAAEC,UAAU,EAAEC,aAAa,EAAEC,MAAM,QAAQ,iBAAiB;AACpF,SAASC,YAAY,QAAQ,MAAM;AACnC,SAASC,MAAM,EAAEC,GAAG,QAAQ,gBAAgB;AAE5C,MAAMC,kBAAkB,GAAG,oBAAoB;AAC/C,MAAMC,eAAe,GAAG,iBAAiB;AACzC,MAAMC,UAAU,GAAG,YAAY;AAC/B;AACA;AACA;AACA,MAAMC,uBAAuB,GAAG,EAAE;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;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