{"version":3,"sources":["webpack:///C:/a/2/s/Cognito.Web.Client/node_modules/.pnpm/@microsoft+applicationinsights-web@2.5.4/node_modules/@microsoft/applicationinsights-web/dist-esm/Initialization.js","webpack:///C:/a/2/s/Cognito.Web.Client/node_modules/.pnpm/@microsoft+applicationinsights-web@2.5.4/node_modules/@microsoft/applicationinsights-web/dist-esm/ApplicationInsightsDeprecated.js","webpack:///C:/a/2/s/Cognito.Web.Client/node_modules/.pnpm/@microsoft+applicationinsights-web@2.5.4/node_modules/@microsoft/applicationinsights-web/dist-esm/ApplicationInsightsContainer.js"],"names":["Telemetry","Initialization","snippet","queue","version","config","connectionString","cs","parse","ingest","ingestionendpoint","endpointUrl","instrumentationKey","instrumentationkey","this","appInsights","ApplicationInsights","properties","PropertiesPlugin","dependencies","core","AppInsightsCore","getSKUDefaults","prototype","trackEvent","event","customProperties","trackPageView","pageView","inPv","trackPageViewPerformance","pageViewPerformance","inPvp","trackException","exception","error","_onerror","trackTrace","trace","trackMetric","metric","startTrackPage","name","stopTrackPage","url","measurements","startTrackEvent","stopTrackEvent","addTelemetryInitializer","telemetryInitializer","setAuthenticatedUserContext","authenticatedUserId","accountId","storeInCookie","context","user","clearAuthenticatedUserContext","trackDependencyData","dependency","flush","async","CoreUtils","arrForEach","getTransmissionControls","channels","channel","onunloadFlush","loadAppInsights","legacyMode","_this","extensions","length","Error","appInsightsChannel","Sender","push","initialize","field","isString","isFunction","substring","_updateSnippetProperties","emptyQueue","pollInternalLogs","addHousekeepingBeforeUnload","updateSnippetDefinitions","isArray","length_1","i","call","undefined","toString","appInsightsInstance","performHousekeeping","ext","_sessionManager","backup","disableFlushOnBeforeUnload","added","addEventHandler","logger","throwInternal","CRITICAL","FailedToAddHandlerForOnBeforeUnload","disableFlushOnUnload","diagnosticLogInterval","AppInsightsDeprecated","appInsightsNew","_hasLegacyInitializers","_queue","getDefaultConfig","addTelemetryInitializers","bind","sessionRenewalMs","sessionExpirationMs","maxBatchSizeInBytes","maxBatchInterval","isNaN","enableDebug","Util","stringToBoolOrDefault","disableExceptionTracking","disableTelemetry","verboseLogging","emitLineDelimitedJson","autoTrackPageVisitTime","samplingPercentage","disableAjaxTracking","maxAjaxCallsPerView","isBeaconApiDisabled","disableCorrelationHeaders","correlationHeaderExcludedDomains","enableSessionStorageBuffer","isRetryDisabled","isCookieUseDisabled","isStorageUseDisabled","isBrowserLinkTrackingEnabled","enableCorsCorrelation","callBack","item","_processLegacyInitializers","duration","telemetry","uri","trackDependency","id","method","absoluteUrl","pathName","totalTime","success","resultCode","target","type","HttpMethod","responseCode","handledAt","severityLevel","average","sampleCount","min","max","message","lineNumber","columnNumber","downloadAndSetup","originalTrackPageView_1","pagePath","apply","props","tags","ApplicationInsightsContainer","getAppInsights","initialization","legacy"],"mappings":"+oCAiBWA,EAAY,EAMnB,EAAgC,WAChC,SAASC,EAAeC,GAGpBA,EAAQC,MAAQD,EAAQC,OAAS,GACjCD,EAAQE,QAAUF,EAAQE,SAAW,EACrC,IAAIC,EAASH,EAAQG,QAAU,GAC/B,GAAIA,EAAOC,iBAAkB,CACzB,IAAIC,EAAK,IAA8BC,MAAMH,EAAOC,kBAChDG,EAASF,EAAGG,kBAChBL,EAAOM,YAAcF,EAASA,EAAS,YAAcJ,EAAOM,YAC5DN,EAAOO,mBAAqBL,EAAGM,oBAAsBR,EAAOO,mBATpDE,KAWNC,YAAc,IAAIC,EAAA,EAXZF,KAYNG,WAAa,IAAIC,EAAA,EAZXJ,KAaNK,aAAe,IAAI,IAbbL,KAcNM,KAAO,IAAIC,EAAA,EAdLP,KAeNZ,QAAUA,EAfJY,KAgBNT,OAASA,EAhBHS,KAiBNQ,iBAgTV,OAvSArB,EAAesB,UAAUC,WAAa,SAAUC,EAAOC,GACnDZ,KAAKC,YAAYS,WAAWC,EAAOC,IAOvCzB,EAAesB,UAAUI,cAAgB,SAAUC,GAC/C,IAAIC,EAAOD,GAAY,GACvBd,KAAKC,YAAYY,cAAcE,IAOnC5B,EAAesB,UAAUO,y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C2K,EAAe1G,gBAAgBC,GACxB0G,GAGRH,EAtBsC,G","file":"npm.microsoft+applicationinsights-web@2.5.4.719e981b6edc8854ced6.js","sourcesContent":["/*!\n * Application Insights JavaScript SDK - Web, 2.5.4\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\n\r\n\r\nimport { CoreUtils, AppInsightsCore, LoggingSeverity, _InternalMessageId, hasWindow, hasDocument } from \"@microsoft/applicationinsights-core-js\";\r\nimport { ApplicationInsights } from \"@microsoft/applicationinsights-analytics-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { PropertiesPlugin } from \"@microsoft/applicationinsights-properties-js\";\r\nimport { AjaxPlugin as DependenciesPlugin } from '@microsoft/applicationinsights-dependencies-js';\r\nimport * as Common from \"@microsoft/applicationinsights-common\";\r\n\"use strict\";\r\n;\r\n/**\r\n * Telemetry type classes, e.g. PageView, Exception, etc\r\n */\r\nexport var Telemetry = Common;\r\n/**\r\n * Application Insights API\r\n * @class Initialization\r\n * @implements {IApplicationInsights}\r\n */\r\nvar Initialization = /** @class */ (function () {\r\n function Initialization(snippet) {\r\n var _this = this;\r\n // initialize the queue and config in case they are undefined\r\n snippet.queue = snippet.queue || [];\r\n snippet.version = snippet.version || 2.0; // Default to new version\r\n var config = snippet.config || {};\r\n if (config.connectionString) {\r\n var cs = Common.ConnectionStringParser.parse(config.connectionString);\r\n var ingest = cs.ingestionendpoint;\r\n config.endpointUrl = ingest ? ingest + \"/v2/track\" : config.endpointUrl; // only add /v2/track when from connectionstring\r\n config.instrumentationKey = cs.instrumentationkey || config.instrumentationKey;\r\n }\r\n _this.appInsights = new ApplicationInsights();\r\n _this.properties = new PropertiesPlugin();\r\n _this.dependencies = new DependenciesPlugin();\r\n _this.core = new AppInsightsCore();\r\n _this.snippet = snippet;\r\n _this.config = config;\r\n _this.getSKUDefaults();\r\n }\r\n // Analytics Plugin\r\n /**\r\n * Log a user action or other occurrence.\r\n * @param {IEventTelemetry} event\r\n * @param {ICustomProperties} [customProperties]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackEvent = function (event, customProperties) {\r\n this.appInsights.trackEvent(event, customProperties);\r\n };\r\n /**\r\n * Logs that a page, or similar container was displayed to the user.\r\n * @param {IPageViewTelemetry} pageView\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackPageView = function (pageView) {\r\n var inPv = pageView || {};\r\n this.appInsights.trackPageView(inPv);\r\n };\r\n /**\r\n * Log a bag of performance information via the customProperties field.\r\n * @param {IPageViewPerformanceTelemetry} pageViewPerformance\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackPageViewPerformance = function (pageViewPerformance) {\r\n var inPvp = pageViewPerformance || {};\r\n this.appInsights.trackPageViewPerformance(inPvp);\r\n };\r\n /**\r\n * Log an exception that you have caught.\r\n * @param {IExceptionTelemetry} exception\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackException = function (exception) {\r\n if (!exception.exception && exception.error) {\r\n exception.exception = exception.error;\r\n }\r\n this.appInsights.trackException(exception);\r\n };\r\n /**\r\n * Manually send uncaught exception telemetry. This method is automatically triggered\r\n * on a window.onerror event.\r\n * @param {IAutoExceptionTelemetry} exception\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype._onerror = function (exception) {\r\n this.appInsights._onerror(exception);\r\n };\r\n /**\r\n * Log a diagnostic scenario such entering or leaving a function.\r\n * @param {ITraceTelemetry} trace\r\n * @param {ICustomProperties} [customProperties]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackTrace = function (trace, customProperties) {\r\n this.appInsights.trackTrace(trace, customProperties);\r\n };\r\n /**\r\n * Log a numeric value that is not associated with a specific event. Typically used\r\n * to send regular reports of performance indicators.\r\n *\r\n * To send a single measurement, just use the `name` and `average` fields\r\n * of {@link IMetricTelemetry}.\r\n *\r\n * If you take measurements frequently, you can reduce the telemetry bandwidth by\r\n * aggregating multiple measurements and sending the resulting average and modifying\r\n * the `sampleCount` field of {@link IMetricTelemetry}.\r\n * @param {IMetricTelemetry} metric input object argument. Only `name` and `average` are mandatory.\r\n * @param {ICustomProperties} [customProperties]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackMetric = function (metric, customProperties) {\r\n this.appInsights.trackMetric(metric, customProperties);\r\n };\r\n /**\r\n * Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,\r\n * but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view\r\n * and send the event.\r\n * @param name A string that idenfities this item, unique within this HTML document. Defaults to the document title.\r\n */\r\n Initialization.prototype.startTrackPage = function (name) {\r\n this.appInsights.startTrackPage(name);\r\n };\r\n /**\r\n * Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.\r\n * The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.\r\n * @param name The string you used as the name in startTrackPage. Defaults to the document title.\r\n * @param url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.\r\n * @param properties map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\r\n Initialization.prototype.stopTrackPage = function (name, url, customProperties, measurements) {\r\n this.appInsights.stopTrackPage(name, url, customProperties, measurements);\r\n };\r\n Initialization.prototype.startTrackEvent = function (name) {\r\n this.appInsights.startTrackEvent(name);\r\n };\r\n /**\r\n * Log an extended event that you started timing with `startTrackEvent`.\r\n * @param name The string you used to identify this event in `startTrackEvent`.\r\n * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.\r\n * @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.\r\n */\r\n Initialization.prototype.stopTrackEvent = function (name, properties, measurements) {\r\n this.appInsights.stopTrackEvent(name, properties, measurements); // Todo: Fix to pass measurements once type is updated\r\n };\r\n Initialization.prototype.addTelemetryInitializer = function (telemetryInitializer) {\r\n return this.appInsights.addTelemetryInitializer(telemetryInitializer);\r\n };\r\n // Properties Plugin\r\n /**\r\n * Set the authenticated user id and the account id. Used for identifying a specific signed-in user. Parameters must not contain whitespace or ,;=|\r\n *\r\n * The method will only set the `authenticatedUserId` and `accountId` in the current page view. To set them for the whole session, you should set `storeInCookie = true`\r\n * @param {string} authenticatedUserId\r\n * @param {string} [accountId]\r\n * @param {boolean} [storeInCookie=false]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.setAuthenticatedUserContext = function (authenticatedUserId, accountId, storeInCookie) {\r\n if (storeInCookie === void 0) { storeInCookie = false; }\r\n this.properties.context.user.setAuthenticatedUserContext(authenticatedUserId, accountId, storeInCookie);\r\n };\r\n /**\r\n * Clears the authenticated user id and account id. The associated cookie is cleared, if present.\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.clearAuthenticatedUserContext = function () {\r\n this.properties.context.user.clearAuthenticatedUserContext();\r\n };\r\n // Dependencies Plugin\r\n /**\r\n * Log a dependency call (e.g. ajax)\r\n * @param {IDependencyTelemetry} dependency\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.trackDependencyData = function (dependency) {\r\n this.dependencies.trackDependencyData(dependency);\r\n };\r\n // Misc\r\n /**\r\n * Manually trigger an immediate send of all telemetry still in the buffer.\r\n * @param {boolean} [async=true]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n CoreUtils.arrForEach(this.core.getTransmissionControls(), function (channels) {\r\n CoreUtils.arrForEach(channels, function (channel) {\r\n channel.flush(async);\r\n });\r\n });\r\n };\r\n /**\r\n * Manually trigger an immediate send of all telemetry still in the buffer using beacon Sender.\r\n * Fall back to xhr sender if beacon is not supported.\r\n * @param {boolean} [async=true]\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.onunloadFlush = function (async) {\r\n if (async === void 0) { async = true; }\r\n CoreUtils.arrForEach(this.core.getTransmissionControls(), function (channels) {\r\n CoreUtils.arrForEach(channels, function (channel) {\r\n if (channel.onunloadFlush) {\r\n channel.onunloadFlush();\r\n }\r\n else {\r\n channel.flush(async);\r\n }\r\n });\r\n });\r\n };\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n * @returns {IApplicationInsights}\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.loadAppInsights = function (legacyMode) {\r\n if (legacyMode === void 0) { legacyMode = false; }\r\n var _this = this;\r\n function _updateSnippetProperties(snippet) {\r\n if (snippet) {\r\n // apply updated properties to the global instance (snippet)\r\n for (var field in _this) {\r\n if (CoreUtils.isString(field) &&\r\n !CoreUtils.isFunction(_this[field]) &&\r\n field.substring(0, 1) !== \"_\") {\r\n snippet[field] = _this[field];\r\n }\r\n }\r\n }\r\n }\r\n // dont allow additional channels/other extensions for legacy mode; legacy mode is only to allow users to switch with no code changes!\r\n if (legacyMode && _this.config.extensions && _this.config.extensions.length > 0) {\r\n throw new Error(\"Extensions not allowed in legacy mode\");\r\n }\r\n var extensions = [];\r\n var appInsightsChannel = new Sender();\r\n extensions.push(appInsightsChannel);\r\n extensions.push(_this.properties);\r\n extensions.push(_this.dependencies);\r\n extensions.push(_this.appInsights);\r\n // initialize core\r\n _this.core.initialize(_this.config, extensions);\r\n _this.context = _this.properties.context;\r\n _updateSnippetProperties(_this.snippet);\r\n // Empty queue of all api calls logged prior to sdk download\r\n _this.emptyQueue();\r\n _this.pollInternalLogs();\r\n _this.addHousekeepingBeforeUnload(this);\r\n return _this;\r\n };\r\n /**\r\n * Overwrite the lazy loaded fields of global window snippet to contain the\r\n * actual initialized API methods\r\n * @param {Snippet} snippet\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.updateSnippetDefinitions = function (snippet) {\r\n // apply full appInsights to the global instance\r\n // Note: This must be called before loadAppInsights is called\r\n for (var field in this) {\r\n if (CoreUtils.isString(field)) {\r\n snippet[field] = this[field];\r\n }\r\n }\r\n };\r\n /**\r\n * Call any functions that were queued before the main script was loaded\r\n * @memberof Initialization\r\n */\r\n Initialization.prototype.emptyQueue = function () {\r\n var _this = this;\r\n // call functions that were queued before the main script was loaded\r\n try {\r\n if (Common.Util.isArray(_this.snippet.queue)) {\r\n // note: do not check length in the for-loop conditional in case something goes wrong and the stub methods are not overridden.\r\n var length_1 = _this.snippet.queue.length;\r\n for (var i = 0; i < length_1; i++) {\r\n var call = _this.snippet.queue[i];\r\n call();\r\n }\r\n _this.snippet.queue = undefined;\r\n delete _this.snippet.queue;\r\n }\r\n }\r\n catch (exception) {\r\n var properties = {};\r\n if (exception && CoreUtils.isFunction(exception.toString)) {\r\n properties.exception = exception.toString();\r\n }\r\n // need from core\r\n // Microsoft.ApplicationInsights._InternalLogging.throwInternal(\r\n // LoggingSeverity.WARNING,\r\n // _InternalMessageId.FailedToSendQueuedTelemetry,\r\n // \"Failed to send queued telemetry\",\r\n // properties);\r\n }\r\n };\r\n Initialization.prototype.pollInternalLogs = function () {\r\n this.core.pollInternalLogs();\r\n };\r\n Initialization.prototype.addHousekeepingBeforeUnload = function (appInsightsInstance) {\r\n // Add callback to push events when the user navigates away\r\n if (hasWindow() || hasDocument()) {\r\n var performHousekeeping = function () {\r\n // Adds the ability to flush all data before the page unloads.\r\n // Note: This approach tries to push a sync request with all the pending events onbeforeunload.\r\n // Firefox does not respect this.Other browsers DO push out the call with < 100% hit rate.\r\n // Telemetry here will help us analyze how effective this approach is.\r\n // Another approach would be to make this call sync with a acceptable timeout to reduce the\r\n // impact on user experience.\r\n // appInsightsInstance.context._sender.triggerSend();\r\n appInsightsInstance.onunloadFlush(false);\r\n // Back up the current session to local storage\r\n // This lets us close expired sessions after the cookies themselves expire\r\n var ext = appInsightsInstance.appInsights.core['_extensions'][Common.PropertiesPluginIdentifier];\r\n if (ext && ext.context && ext.context._sessionManager) {\r\n ext.context._sessionManager.backup();\r\n }\r\n };\r\n if (!appInsightsInstance.appInsights.config.disableFlushOnBeforeUnload) {\r\n // Hook the unload event for the document, window and body to ensure that the client events are flushed to the server\r\n // As just hooking the window does not always fire (on chrome) for page navigations.\r\n var added = CoreUtils.addEventHandler('beforeunload', performHousekeeping);\r\n added = CoreUtils.addEventHandler('pagehide', performHousekeeping) || added;\r\n if (!added) {\r\n appInsightsInstance.appInsights.core.logger.throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.FailedToAddHandlerForOnBeforeUnload, 'Could not add handler for beforeunload and pagehide');\r\n }\r\n }\r\n // We also need to hook the pagehide event as not all versions of Safari support load/unload events.\r\n if (!appInsightsInstance.appInsights.config.disableFlushOnUnload) {\r\n // Not adding any telemetry as pagehide as it's not supported on all browsers\r\n CoreUtils.addEventHandler('pagehide', performHousekeeping);\r\n }\r\n }\r\n };\r\n Initialization.prototype.getSKUDefaults = function () {\r\n var _this = this;\r\n _this.config.diagnosticLogInterval =\r\n _this.config.diagnosticLogInterval && _this.config.diagnosticLogInterval > 0 ? _this.config.diagnosticLogInterval : 10000;\r\n };\r\n return Initialization;\r\n}());\r\nexport { Initialization };\r\n//# sourceMappingURL=Initialization.js.map","/*!\n * Application Insights JavaScript SDK - Web, 2.5.4\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { Util, ProcessLegacy } from \"@microsoft/applicationinsights-common\";\r\n// ToDo: fix properties and measurements once updates are done to common\r\nvar AppInsightsDeprecated = /** @class */ (function () {\r\n function AppInsightsDeprecated(snippet, appInsightsNew) {\r\n this._hasLegacyInitializers = false;\r\n this._queue = [];\r\n this.config = AppInsightsDeprecated.getDefaultConfig(snippet.config);\r\n this.appInsightsNew = appInsightsNew;\r\n this.context = { addTelemetryInitializer: this.addTelemetryInitializers.bind(this) };\r\n }\r\n AppInsightsDeprecated.getDefaultConfig = function (config) {\r\n if (!config) {\r\n config = {};\r\n }\r\n // set default values\r\n config.endpointUrl = config.endpointUrl || \"https://dc.services.visualstudio.com/v2/track\";\r\n config.sessionRenewalMs = 30 * 60 * 1000;\r\n config.sessionExpirationMs = 24 * 60 * 60 * 1000;\r\n config.maxBatchSizeInBytes = config.maxBatchSizeInBytes > 0 ? config.maxBatchSizeInBytes : 102400; // 100kb\r\n config.maxBatchInterval = !isNaN(config.maxBatchInterval) ? config.maxBatchInterval : 15000;\r\n config.enableDebug = Util.stringToBoolOrDefault(config.enableDebug);\r\n config.disableExceptionTracking = Util.stringToBoolOrDefault(config.disableExceptionTracking);\r\n config.disableTelemetry = Util.stringToBoolOrDefault(config.disableTelemetry);\r\n config.verboseLogging = Util.stringToBoolOrDefault(config.verboseLogging);\r\n config.emitLineDelimitedJson = Util.stringToBoolOrDefault(config.emitLineDelimitedJson);\r\n config.diagnosticLogInterval = config.diagnosticLogInterval || 10000;\r\n config.autoTrackPageVisitTime = Util.stringToBoolOrDefault(config.autoTrackPageVisitTime);\r\n if (isNaN(config.samplingPercentage) || config.samplingPercentage <= 0 || config.samplingPercentage >= 100) {\r\n config.samplingPercentage = 100;\r\n }\r\n config.disableAjaxTracking = Util.stringToBoolOrDefault(config.disableAjaxTracking);\r\n config.maxAjaxCallsPerView = !isNaN(config.maxAjaxCallsPerView) ? config.maxAjaxCallsPerView : 500;\r\n config.isBeaconApiDisabled = Util.stringToBoolOrDefault(config.isBeaconApiDisabled, true);\r\n config.disableCorrelationHeaders = Util.stringToBoolOrDefault(config.disableCorrelationHeaders);\r\n config.correlationHeaderExcludedDomains = config.correlationHeaderExcludedDomains || [\r\n \"*.blob.core.windows.net\",\r\n \"*.blob.core.chinacloudapi.cn\",\r\n \"*.blob.core.cloudapi.de\",\r\n \"*.blob.core.usgovcloudapi.net\"\r\n ];\r\n config.disableFlushOnBeforeUnload = Util.stringToBoolOrDefault(config.disableFlushOnBeforeUnload);\r\n config.disableFlushOnUnload = Util.stringToBoolOrDefault(config.disableFlushOnUnload, config.disableFlushOnBeforeUnload);\r\n config.enableSessionStorageBuffer = Util.stringToBoolOrDefault(config.enableSessionStorageBuffer, true);\r\n config.isRetryDisabled = Util.stringToBoolOrDefault(config.isRetryDisabled);\r\n config.isCookieUseDisabled = Util.stringToBoolOrDefault(config.isCookieUseDisabled);\r\n config.isStorageUseDisabled = Util.stringToBoolOrDefault(config.isStorageUseDisabled);\r\n config.isBrowserLinkTrackingEnabled = Util.stringToBoolOrDefault(config.isBrowserLinkTrackingEnabled);\r\n config.enableCorsCorrelation = Util.stringToBoolOrDefault(config.enableCorsCorrelation);\r\n return config;\r\n };\r\n /**\r\n * The array of telemetry initializers to call before sending each telemetry item.\r\n */\r\n AppInsightsDeprecated.prototype.addTelemetryInitializers = function (callBack) {\r\n var _this = this;\r\n // Add initializer to current processing only if there is any old telemetry initializer\r\n if (!this._hasLegacyInitializers) {\r\n this.appInsightsNew.addTelemetryInitializer(function (item) {\r\n _this._processLegacyInitializers(item); // setup call back for each legacy processor\r\n });\r\n this._hasLegacyInitializers = true;\r\n }\r\n this._queue.push(callBack);\r\n };\r\n AppInsightsDeprecated.prototype.startTrackPage = function (name) {\r\n this.appInsightsNew.startTrackPage(name);\r\n };\r\n AppInsightsDeprecated.prototype.stopTrackPage = function (name, url, properties, measurements) {\r\n this.appInsightsNew.stopTrackPage(name, url, properties); // update\r\n };\r\n AppInsightsDeprecated.prototype.trackPageView = function (name, url, properties, measurements, duration) {\r\n var telemetry = {\r\n name: name,\r\n uri: url,\r\n properties: properties,\r\n measurements: measurements\r\n };\r\n // fix for props, measurements, duration\r\n this.appInsightsNew.trackPageView(telemetry);\r\n };\r\n AppInsightsDeprecated.prototype.trackEvent = function (name, properties, measurements) {\r\n this.appInsightsNew.trackEvent({ name: name });\r\n };\r\n AppInsightsDeprecated.prototype.trackDependency = function (id, method, absoluteUrl, pathName, totalTime, success, resultCode) {\r\n this.appInsightsNew.trackDependencyData({\r\n id: id,\r\n target: absoluteUrl,\r\n type: pathName,\r\n duration: totalTime,\r\n properties: { HttpMethod: method },\r\n success: success,\r\n responseCode: resultCode\r\n });\r\n };\r\n AppInsightsDeprecated.prototype.trackException = function (exception, handledAt, properties, measurements, severityLevel) {\r\n this.appInsightsNew.trackException({\r\n exception: exception\r\n });\r\n };\r\n AppInsightsDeprecated.prototype.trackMetric = function (name, average, sampleCount, min, max, properties) {\r\n this.appInsightsNew.trackMetric({ name: name, average: average, sampleCount: sampleCount, min: min, max: max });\r\n };\r\n AppInsightsDeprecated.prototype.trackTrace = function (message, properties, severityLevel) {\r\n this.appInsightsNew.trackTrace({ message: message, severityLevel: severityLevel });\r\n };\r\n AppInsightsDeprecated.prototype.flush = function (async) {\r\n this.appInsightsNew.flush(async);\r\n };\r\n AppInsightsDeprecated.prototype.setAuthenticatedUserContext = function (authenticatedUserId, accountId, storeInCookie) {\r\n this.appInsightsNew.context.user.setAuthenticatedUserContext(authenticatedUserId, accountId, storeInCookie);\r\n };\r\n AppInsightsDeprecated.prototype.clearAuthenticatedUserContext = function () {\r\n this.appInsightsNew.context.user.clearAuthenticatedUserContext();\r\n };\r\n AppInsightsDeprecated.prototype._onerror = function (message, url, lineNumber, columnNumber, error) {\r\n this.appInsightsNew._onerror({ message: message, url: url, lineNumber: lineNumber, columnNumber: columnNumber, error: error });\r\n };\r\n AppInsightsDeprecated.prototype.startTrackEvent = function (name) {\r\n this.appInsightsNew.startTrackEvent(name);\r\n };\r\n AppInsightsDeprecated.prototype.stopTrackEvent = function (name, properties, measurements) {\r\n this.appInsightsNew.stopTrackEvent(name, properties, measurements);\r\n };\r\n AppInsightsDeprecated.prototype.downloadAndSetup = function (config) {\r\n throw new Error(\"downloadAndSetup not implemented in web SKU\");\r\n };\r\n AppInsightsDeprecated.prototype.updateSnippetDefinitions = function (snippet) {\r\n // apply full appInsights to the global instance\r\n // Note: This must be called before loadAppInsights is called\r\n for (var field in this) {\r\n if (typeof field === 'string') {\r\n snippet[field] = this[field];\r\n }\r\n }\r\n };\r\n // note: these are split into methods to enable unit tests\r\n AppInsightsDeprecated.prototype.loadAppInsights = function () {\r\n // initialize global instance of appInsights\r\n // var appInsights = new Microsoft.ApplicationInsights.AppInsights(this.config);\r\n var _this = this;\r\n // implement legacy version of trackPageView for 0.10<\r\n if (this.config[\"iKey\"]) {\r\n var originalTrackPageView_1 = this.trackPageView;\r\n this.trackPageView = function (pagePath, properties, measurements) {\r\n originalTrackPageView_1.apply(_this, [null, pagePath, properties, measurements]);\r\n };\r\n }\r\n // implement legacy pageView interface if it is present in the snippet\r\n var legacyPageView = \"logPageView\";\r\n if (typeof this.snippet[legacyPageView] === \"function\") {\r\n this[legacyPageView] = function (pagePath, properties, measurements) {\r\n _this.trackPageView(null, pagePath, properties, measurements);\r\n };\r\n }\r\n // implement legacy event interface if it is present in the snippet\r\n var legacyEvent = \"logEvent\";\r\n if (typeof this.snippet[legacyEvent] === \"function\") {\r\n this[legacyEvent] = function (name, props, measurements) {\r\n _this.trackEvent(name, props, measurements);\r\n };\r\n }\r\n return this;\r\n };\r\n AppInsightsDeprecated.prototype._processLegacyInitializers = function (item) {\r\n // instead of mapping new to legacy and then back again and repeating in channel, attach callback for channel to call\r\n item.tags[ProcessLegacy] = this._queue;\r\n return item;\r\n };\r\n return AppInsightsDeprecated;\r\n}());\r\nexport { AppInsightsDeprecated };\r\n//# sourceMappingURL=ApplicationInsightsDeprecated.js.map","/*!\n * Application Insights JavaScript SDK - Web, 2.5.4\n * Copyright (c) Microsoft and contributors. All rights reserved.\n */\nimport { AppInsightsDeprecated } from \"./ApplicationInsightsDeprecated\";\r\nimport { Initialization as ApplicationInsights } from \"./Initialization\";\r\nvar ApplicationInsightsContainer = /** @class */ (function () {\r\n function ApplicationInsightsContainer() {\r\n }\r\n ApplicationInsightsContainer.getAppInsights = function (snippet, version) {\r\n var initialization = new ApplicationInsights(snippet);\r\n var legacyMode = version !== 2.0 ? true : false;\r\n // Two target scenarios:\r\n // 1. Customer runs v1 snippet + runtime. If customer updates just cdn location to new SDK, it will run in compat mode so old apis work\r\n // 2. Customer updates to new snippet (that uses cdn location to new SDK. This is same as a new customer onboarding\r\n // and all api signatures are expected to map to new SDK. Note new snippet specifies version\r\n if (version === 2.0) {\r\n initialization.updateSnippetDefinitions(snippet);\r\n initialization.loadAppInsights(legacyMode);\r\n return initialization; // default behavior with new snippet\r\n }\r\n else {\r\n var legacy = new AppInsightsDeprecated(snippet, initialization); // target scenario old snippet + updated endpoint\r\n legacy.updateSnippetDefinitions(snippet);\r\n initialization.loadAppInsights(legacyMode);\r\n return legacy;\r\n }\r\n };\r\n return ApplicationInsightsContainer;\r\n}());\r\nexport { ApplicationInsightsContainer };\r\n//# sourceMappingURL=ApplicationInsightsContainer.js.map"],"sourceRoot":""}