Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/applicationinsights-analytics-js

Package Overview
Dependencies
Maintainers
5
Versions
601
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-analytics-js - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

4

browser/applicationinsights-analytics-js.min.js
/*!
* Application Insights JavaScript SDK - Web Analytics, 2.3.0
* Application Insights JavaScript SDK - Web Analytics, 2.3.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r,n,d,o,a,s,c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};(n=r=r||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",(o=d=d||{})[o.Default=0]="Default",o[o.Required=1]="Required",o[o.Array=2]="Array",o[o.Hidden=4]="Hidden",(s=a=a||{})[s.AI=0]="AI",s[s.AI_AND_W3C=1]="AI_AND_W3C",s[s.W3C=2]="W3C";var l=2,f=(u.isNullOrUndefined=function(e){return null==e},u.disableCookies=function(){u._canUseCookies=!1},u.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},u);function u(){}var g=/[xy]/g,p=(h.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(h.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),h.prototype.initialize=function(n,i,r){var o,a=this;n.isCookieUseDisabled&&f.disableCookies(),this.channelQueue=new Array,n.channels&&n.channels.forEach(function(e){if(e&&0<e.length){e=e.sort(function(e,t){return e.priority-t.priority});for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);if(e.forEach(function(e){e.priority<500&&(o=e.identifier),e.initialize(n,i,r)}),o)throw Error("Channel has invalid priority"+o);a.channelQueue.push(e)}});for(var e=new Array,t=0;t<r.length;t++){var s=r[t];500<s.priority&&e.push(s)}if(0<e.length){for(e=e.sort(function(e,t){return e.priority-t.priority}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);e.forEach(function(e){return e.initialize(n,i,r)}),this.channelQueue.push(e)}},h);function h(){this.identifier="ChannelControllerPlugin",this.priority=500}var m=(v.prototype.initialize=function(e,t,n,i){var r=this;if(this._isInitialized)throw Error("Core should not be initialized more than once");if(!e||f.isNullOrUndefined(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e,this._notificationManager=i,this._notificationManager||(this._notificationManager=Object.create({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this.config.extensions=f.isNullOrUndefined(this.config.extensions)?[]:this.config.extensions,this.config.extensionConfig=f.isNullOrUndefined(this.config.extensionConfig)?{}:this.config.extensionConfig,this._notificationManager&&(this.config.extensionConfig.NotificationManager=this._notificationManager),this.logger=n,this.logger||(this.logger=Object.create({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),(a=this._extensions).push.apply(a,t.concat(this.config.extensions)),this._extensions.forEach(function(e){var t=!0;if((f.isNullOrUndefined(e)||f.isNullOrUndefined(e.initialize))&&(t=!1),!t)throw Error("Extensions must provide callback to initialize")}),this._extensions.push(this._channelController),this._extensions=this._extensions.sort(function(e,t){var n=e,i=t,r=typeof n.processTelemetry,o=typeof i.processTelemetry;return"function"==r&&"function"==o?n.priority-i.priority:"function"==r&&"function"!=o?1:"function"!=r&&"function"==o?-1:void 0});var o={};this._extensions.forEach(function(e){var t=e;t&&t.priority&&(f.isNullOrUndefined(o[t.priority])?o[t.priority]=t.identifier:r.logger&&r.logger.warnToConsole("Two extensions have same priority"+o[t.priority]+", "+t.identifier))});for(var a,s=-1,c=0;c<this._extensions.length-1;c++){var l=this._extensions[c];if(!l||"function"==typeof l.processTelemetry){if(l.priority===this._channelController.priority){s=c+1;break}this._extensions[c].setNextPlugin(this._extensions[c+1])}}if(this._channelController.initialize(this.config,this,this._extensions),this._extensions.forEach(function(e){e&&e.priority<r._channelController.priority&&e.initialize(r.config,r,r._extensions)}),s<this._extensions.length&&this._extensions.splice(s),0===this.getTransmissionControls().length)throw new Error("No channels available");this._isInitialized=!0},v.prototype.getTransmissionControls=function(){return this._channelController.ChannelControls},v.prototype.track=function(e){e.iKey||(e.iKey=this.config.instrumentationKey),e.time||(e.time=(new Date).toISOString()),f.isNullOrUndefined(e.ver)&&(e.ver="4.0"),0===this._extensions.length&&this._channelController.processTelemetry(e);for(var t=0;t<this._extensions.length;){if(this._extensions[t].processTelemetry){this._extensions[t].processTelemetry(e);break}t++}},v);function v(){this._isInitialized=!1,this._extensions=new Array,this._channelController=new p}var y,w,_=(I.prototype.addNotificationListener=function(e){this.listeners.push(e)},I.prototype.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);-1<t;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},I.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},I.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},I);function I(){this.listeners=[]}(w=y=y||{})[w.CRITICAL=1]="CRITICAL",w[w.WARNING=2]="WARNING";var S=1,T=2,N=3,E=4,x=5,D=6,b=8,k=10,P=11,C=23,A=25,M=29,L=30,U=31,R=32,O=35,z=36,V=37,G=38,j=39,q=45,B=49,W=52,H=56,X=57,K=61,F=62,J=63,Q=64,Y=66,$=68,Z=69,ee=(te.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},te.dataType="MessageData",te.AiNonUserActionablePrefix="AI (Internal): ",te.AiUserActionablePrefix="AI: ",te);function te(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?te.AiUserActionablePrefix:te.AiNonUserActionablePrefix)+e;var r=(t?" message:"+te.sanitizeDiagnosticText(t):"")+(i?" props:"+te.sanitizeDiagnosticText(JSON.stringify(i)):"");this.message+=r}var ne=(ie.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ee(t,n,r,i);if(this.enableDebugExceptions())throw o;if(void 0!==o&&o&&void 0!==o.message){if(r){var a=+o.messageId;(!this._messageLogged[a]||this.consoleLoggingLevel()>=y.WARNING)&&(this.warnToConsole(o.message),this._messageLogged[a]=!0)}else this.consoleLoggingLevel()>=y.WARNING&&this.warnToConsole(o.message);this.logInternalMessage(e,o)}},ie.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},ie.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ie.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,i=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[i]?n=!1:this._messageLogged[i]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var r="Internal events throttle limit per PageView reached for this app.",o=new ee(C,r,!1);this.queue.push(o),this.warnToConsole(r)}}},ie.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ie);function ie(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},f.isNullOrUndefined(e)||(f.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),f.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),f.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),f.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var re;t(oe,re=m),oe.prototype.initialize=function(e,t){this._notificationManager=new _,this.logger=new ne(e),this.config=e,re.prototype.initialize.call(this,e,t,this.logger,this._notificationManager)},oe.prototype.getTransmissionControls=function(){return re.prototype.getTransmissionControls.call(this)},oe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),re.prototype.track.call(this,e)},oe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},oe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},oe.prototype.pollInternalLogs=function(n){var i=this,e=this.config.diagnosticLogInterval;return 0<e||(e=1e4),setInterval(function(){var e=i.logger?i.logger.queue:[];e.forEach(function(e){var t={name:n||"InternalMessageId: "+e.messageId,iKey:i.config.instrumentationKey,time:(new Date).toISOString(),baseType:ee.dataType,baseData:{message:e.message}};i.track(t)}),e.length=0},e)},oe.prototype._validateTelemetryItem=function(e){if(f.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},oe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],l)};function oe(){return re.call(this)||this}var ae=(se.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=se.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;void 0!==n[a];)o++,a=r.substring(0,se.MAX_NAME_LENGTH-3)+se.padNumber(o);r=a}return r},se.sanitizeKey=function(e,t){var n;return t&&(t=se.trim(t.toString())).length>se.MAX_NAME_LENGTH&&(n=t.substring(0,se.MAX_NAME_LENGTH),e.throwInternal(y.WARNING,X,"name is too long. It has been truncated to "+se.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},se.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=se.MAX_STRING_LENGTH),t&&(n=n||se.MAX_STRING_LENGTH,(t=se.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(y.WARNING,K,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},se.sanitizeUrl=function(e,t){return se.sanitizeInput(e,t,se.MAX_URL_LENGTH,Y)},se.sanitizeMessage=function(e,t){var n;return t&&t.length>se.MAX_MESSAGE_LENGTH&&(n=t.substring(0,se.MAX_MESSAGE_LENGTH),e.throwInternal(y.WARNING,H,"message is too long, it has been truncated to "+se.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},se.sanitizeException=function(e,t){var n;return t&&t.length>se.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,se.MAX_EXCEPTION_LENGTH),e.throwInternal(y.WARNING,W,"exception is too long, it has been truncated to "+se.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},se.sanitizeProperties=function(t,e){if(e){var n={};for(var i in e){var r=e[i];if("object"==typeof r&&"undefined"!=typeof JSON)try{r=JSON.stringify(r)}catch(e){t.throwInternal(y.WARNING,B,"custom property is not valid",{exception:e},!0)}r=se.sanitizeString(t,r,se.MAX_PROPERTY_LENGTH),n[i=se.sanitizeKeyAndAddUniqueness(t,i,n)]=r}e=n}return e},se.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=se.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},se.sanitizeId=function(e,t){return t?se.sanitizeInput(e,t,se.MAX_ID_LENGTH,Z).toString():t},se.sanitizeInput=function(e,t,n,i){var r;return t&&(t=se.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(y.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},se.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},se.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},se.MAX_NAME_LENGTH=150,se.MAX_ID_LENGTH=128,se.MAX_PROPERTY_LENGTH=8192,se.MAX_STRING_LENGTH=1024,se.MAX_URL_LENGTH=2048,se.MAX_MESSAGE_LENGTH=32768,se.MAX_EXCEPTION_LENGTH=32768,se);function se(){}var ce=(le.createDomEvent=function(e){var t=null;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},le.disableStorage=function(){le._canUseLocalStorage=!1,le._canUseSessionStorage=!1},le._getLocalStorageObject=function(){return le.canUseLocalStorage()?le._getVerifiedStorageObject(r.LocalStorage):null},le._getVerifiedStorageObject=function(e){var t,n,i=null;try{if("undefined"==typeof window)return null;n=new Date,(i=e===r.LocalStorage?window.localStorage:window.sessionStorage).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(e){i=null}return i},le.isInternalApplicationInsightsEndpoint=function(e){return-1!==le._internalEndpoints.indexOf(e.toLowerCase())},le.canUseLocalStorage=function(){return void 0===le._canUseLocalStorage&&(le._canUseLocalStorage=!!le._getVerifiedStorageObject(r.LocalStorage)),le._canUseLocalStorage},le.getStorage=function(t,e){var n=le._getLocalStorageObject();if(null!==n)try{return n.getItem(e)}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,S,"Browser failed read of local storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return null},le.setStorage=function(t,e,n){var i=le._getLocalStorageObject();if(null!==i)try{return i.setItem(e,n),!0}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,N,"Browser failed write to local storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.removeStorage=function(t,e){var n=le._getLocalStorageObject();if(null!==n)try{return n.removeItem(e),!0}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,x,"Browser failed removal of local storage item. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le._getSessionStorageObject=function(){return le.canUseSessionStorage()?le._getVerifiedStorageObject(r.SessionStorage):null},le.canUseSessionStorage=function(){return void 0===le._canUseSessionStorage&&(le._canUseSessionStorage=!!le._getVerifiedStorageObject(r.SessionStorage)),le._canUseSessionStorage},le.getSessionStorageKeys=function(){var e=[];if(le.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},le.getSessionStorage=function(t,e){var n=le._getSessionStorageObject();if(null!==n)try{return n.getItem(e)}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,T,"Browser failed read of session storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return null},le.setSessionStorage=function(t,e,n){var i=le._getSessionStorageObject();if(null!==i)try{return i.setItem(e,n),!0}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,E,"Browser failed write to session storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.removeSessionStorage=function(t,e){var n=le._getSessionStorageObject();if(null!==n)try{return n.removeItem(e),!0}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,D,"Browser failed removal of session storage item. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.disableCookies=function(){f.disableCookies()},le.canUseCookies=function(t){if(void 0===f._canUseCookies){f._canUseCookies=!1;try{f._canUseCookies=void 0!==le.document.cookie}catch(e){t.throwInternal(y.WARNING,$,"Cannot access document.cookie - "+le.getExceptionName(e),{exception:le.dump(e)})}}return f._canUseCookies},le.setCookie=function(e,t,n,i){n+=";SameSite=None";var r="",o="";i&&(r=";domain="+i),le.document.location&&"https:"===le.document.location.protocol&&(o=";secure"),le.canUseCookies(e)&&(le.document.cookie=t+"="+n+r+";path=/"+o)},le.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},le.getCookie=function(e,t){if(le.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=le.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=le.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},le.deleteCookie=function(e,t){le.canUseCookies(e)&&(le.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},le.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},le.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},le.random32=function(){return 4294967296*Math.random()|0},le.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=le.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},le.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},le.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},le.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},le.toISOStringForIE8=function(e){if(le.isDate(e)){if(Date.prototype.toISOString)return e.toISOString();var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},le.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},le.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},le.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},le.dump=function(e){var t=Object.prototype.toString.call(e),n=JSON.stringify(e);return"[object Error]"===t&&(n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+n},le.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},le.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var n="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(n,t)}return!0},le.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},le.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},le.document="undefined"!=typeof document?document:{},le._canUseLocalStorage=void 0,le._canUseSessionStorage=void 0,le._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],le.NotSpecified="not_specified",le);function le(){}var ue=(ge.parseUrl=function(e){return ge.htmlAnchorElement||(ge.htmlAnchorElement=ge.document.createElement?ge.document.createElement("a"):{host:ge.parseHost(e)}),ge.htmlAnchorElement.href=e,ge.htmlAnchorElement},ge.getAbsoluteUrl=function(e){var t,n=ge.parseUrl(e);return n&&(t=n.href),t},ge.getPathName=function(e){var t,n=ge.parseUrl(e);return n&&(t=n.pathname),t},ge.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},ge.parseHost=function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null},ge.document="undefined"!=typeof document?document:{},ge);function ge(){}var fe=(pe.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=ue.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=ae.sanitizeString(e,n?n+" "+c:c)}else o=ae.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},pe);function pe(){}var de=(he.Now="undefined"==typeof window?function(){return(new Date).getTime()}:window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},he.GetDuration=function(e,t){var n=null;return 0===e||0===t||f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||(n=t-e),n},he);function he(){}var me,ve=(t(ye,me=function(){}),ye);function ye(){return me.call(this)||this}var we;t(_e,we=function(){this.ver=1,this.sampleRate=100,this.tags={}});function _e(e,t,n){var i=we.call(this)||this;return i.name=ae.sanitizeString(e,n)||ce.NotSpecified,i.data=t,i.time=ce.toISOStringForIE8(new Date),i.aiDataContract={time:d.Required,iKey:d.Required,name:d.Required,sampleRate:function(){return 100===i.sampleRate?d.Hidden:d.Required},tags:d.Required,data:d.Required},i}function Ie(){}var Se,Te=(t(Ne,Se=Ie),Ne);function Ne(){var e=Se.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ee,xe=(t(De,Ee=Te),De.envelopeType="Microsoft.ApplicationInsights.{0}.Event",De.dataType="EventData",De);function De(e,t,n,i){var r=Ee.call(this)||this;return r.aiDataContract={ver:d.Required,name:d.Required,properties:d.Default,measurements:d.Default},r.name=ae.sanitizeString(e,t)||ce.NotSpecified,r.properties=ae.sanitizeProperties(e,n),r.measurements=ae.sanitizeMeasurements(e,i),r}function be(){}var ke,Pe=(t(Ce,ke=Ie),Ce);function Ce(){var e=ke.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function Ae(){this.hasFullStack=!0,this.parsedStack=[]}var Me,Le=(t(Ue,Me=Pe),Ue.CreateFromInterface=function(t,e){var n=e.exceptions&&e.exceptions.map(function(e){return Oe.CreateFromInterface(t,e)});return new Ue(t,c({},e,{exceptions:n}))},Ue.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},Ue.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Ue.dataType="ExceptionData",Ue);function Ue(e,t,n,i,r,o){var a=Me.call(this)||this;return a.aiDataContract={ver:d.Required,exceptions:d.Required,severityLevel:d.Default,properties:d.Default,measurements:d.Default},t instanceof Error?(a.exceptions=[new Oe(e,t)],a.properties=ae.sanitizeProperties(e,n),a.measurements=ae.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,f.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var Re,Oe=(t(ze,Re=Ae),ze.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&this.parsedStack.map(function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},ze.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return Ge.CreateFromInterface(e)})||t.parsedStack;return new ze(e,c({},t,{parsedStack:n}))},ze.parseStack=function(e){var t;if("string"==typeof e){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Ge.regex.test(a)){var s=new Ge(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,l=t.length-1,u=0,g=c,f=l;c<l;){if(32768<(u+=t[c].sizeInBytes+t[l].sizeInBytes)){var p=f-g+1;t.splice(g,p);break}g=c,f=l,c++,l--}}return t},ze);function ze(e,t){var n=Re.call(this)||this;if(n.aiDataContract={id:d.Default,outerId:d.Default,typeName:d.Required,message:d.Required,hasFullStack:d.Default,stack:d.Default,parsedStack:d.Array},t instanceof Error){n.typeName=ae.sanitizeString(e,t.name)||ce.NotSpecified,n.message=ae.sanitizeMessage(e,t.message)||ce.NotSpecified;var i=t.stack;n.parsedStack=ze.parseStack(i),n.stack=ae.sanitizeException(e,i),n.hasFullStack=ce.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var Ve,Ge=(t(je,Ve=be),je.CreateFromInterface=function(e){return new je(e,null)},je.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},je.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,je.baseSize=58,je);function je(e,t){var n=Ve.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:d.Required,method:d.Required,assembly:d.Default,fileName:d.Default,line:d.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=ce.trim(i),n.fileName="",n.line=0;var r=i.match(je.regex);r&&5<=r.length&&(n.method=ce.trim(r[2])||n.method,n.fileName=ce.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=je.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var qe,Be,We,He=(t(Xe,qe=Ie),Xe);function Xe(){var e=qe.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(We=Be=Be||{})[We.Measurement=0]="Measurement",We[We.Aggregation=1]="Aggregation";var Ke,Fe=(t(Je,Ke=function(){this.kind=Be.Measurement}),Je);function Je(){var e=null!==Ke&&Ke.apply(this,arguments)||this;return e.aiDataContract={name:d.Required,kind:d.Default,value:d.Required,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default},e}var Qe,Ye=(t($e,Qe=He),$e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$e.dataType="MetricData",$e);function $e(e,t,n,i,r,o,a,s){var c=Qe.call(this)||this;c.aiDataContract={ver:d.Required,metrics:d.Required,properties:d.Default};var l=new Fe;return l.count=0<i?i:void 0,l.max=isNaN(o)||null===o?void 0:o,l.min=isNaN(r)||null===r?void 0:r,l.name=ae.sanitizeString(e,t)||ce.NotSpecified,l.value=n,c.metrics=[l],c.properties=ae.sanitizeProperties(e,a),c.measurements=ae.sanitizeMeasurements(e,s),c}var Ze,et=(t(tt,Ze=Te),tt);function tt(){var e=Ze.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var nt,it=(t(rt,nt=et),rt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",rt.dataType="PageviewData",rt);function rt(e,t,n,i,r,o,a){var s=nt.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,properties:d.Default,measurements:d.Default,id:d.Default},s.id=ae.sanitizeId(e,a),s.url=ae.sanitizeUrl(e,n),s.name=ae.sanitizeString(e,t)||ce.NotSpecified,isNaN(i)||(s.duration=ce.msToTimeSpan(i)),s.properties=ae.sanitizeProperties(e,r),s.measurements=ae.sanitizeMeasurements(e,o),s}var ot,at=(t(st,ot=Ie),st);function st(){var e=ot.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var ct,lt=(t(ut,ct=at),ut.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ut.dataType="RemoteDependencyData",ut);function ut(e,t,n,i,r,o,a,s,c,l,u,g){void 0===c&&(c="Ajax");var f=ct.call(this)||this;f.aiDataContract={id:d.Required,ver:d.Required,name:d.Default,resultCode:d.Default,duration:d.Default,success:d.Default,data:d.Default,target:d.Default,type:d.Default,properties:d.Default,measurements:d.Default,kind:d.Default,value:d.Default,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default,dependencyKind:d.Default,dependencySource:d.Default,commandName:d.Default,dependencyTypeName:d.Default},f.id=t,f.duration=ce.msToTimeSpan(r),f.success=o,f.resultCode=a+"",f.type=ae.sanitizeString(e,c);var p=fe.ParseDependencyPath(e,n,s,i);return f.data=ae.sanitizeUrl(e,i)||p.data,f.target=ae.sanitizeString(e,p.target),l&&(f.target=f.target+" | "+l),f.name=ae.sanitizeString(e,p.name),f.properties=ae.sanitizeProperties(e,u),f.measurements=ae.sanitizeMeasurements(e,g),f}var gt,ft=(t(pt,gt=Ie),pt);function pt(){var e=gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var dt,ht=(t(mt,dt=ft),mt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",mt.dataType="MessageData",mt);function mt(e,t,n,i,r){var o=dt.call(this)||this;return o.aiDataContract={ver:d.Required,message:d.Required,severityLevel:d.Default,properties:d.Default},t=t||ce.NotSpecified,o.message=ae.sanitizeMessage(e,t),o.properties=ae.sanitizeProperties(e,i),o.measurements=ae.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var vt,yt=(t(wt,vt=et),wt);function wt(){var e=vt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _t,It=(t(St,_t=yt),St.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",St.dataType="PageviewPerformanceData",St);function St(e,t,n,i,r,o,a){var s=_t.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,perfTotal:d.Default,networkConnect:d.Default,sentRequest:d.Default,receivedResponse:d.Default,domProcessing:d.Default,properties:d.Default,measurements:d.Default},s.url=ae.sanitizeUrl(e,n),s.name=ae.sanitizeString(e,t)||ce.NotSpecified,s.properties=ae.sanitizeProperties(e,r),s.measurements=ae.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Tt,Nt,Et;t(xt,Tt=ve);function xt(e,t){var n=Tt.call(this)||this;return n.aiDataContract={baseType:d.Required,baseData:d.Required},n.baseType=e,n.baseData=t,n}(Et=Nt=Nt||{})[Et.Verbose=0]="Verbose",Et[Et.Information=1]="Information",Et[Et.Warning=2]="Warning",Et[Et.Error=3]="Error",Et[Et.Critical=4]="Critical";var Dt=(bt.getConfig=function(e,t,n,i){var r;return void 0===i&&(i=!1),r=n&&e.extensionConfig&&e.extensionConfig[n]&&!f.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],f.isNullOrUndefined(r)?i:r},bt);function bt(){}var kt=(Pt.create=function(e,t,n,i,r,o){if(n=ae.sanitizeString(i,n)||ce.NotSpecified,f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||f.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:(new Date).toISOString(),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!f.isNullOrUndefined(r))for(var s in r)r.hasOwnProperty(s)&&(a.data[s]=r[s]);return a},Pt);function Pt(){}var Ct=(At.prototype.trackPageView=function(t,n){var i=this,r=t.name;!f.isNullOrUndefined(r)&&"string"==typeof r||(r=t.name="object"==typeof window&&window.document&&window.document.title||"");var o=t.uri;if(!f.isNullOrUndefined(o)&&"string"==typeof o||(o=t.uri="object"==typeof window&&window.location&&window.location.href||""),!this._pageViewPerformanceManager.isPerformanceTimingSupported())return this.appInsights.sendPageViewInternal(t,n),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),void this._logger.throwInternal(y.WARNING,A,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var a,e,s=!1,c=this._pageViewPerformanceManager.getPerformanceTiming().navigationStart;a=de.GetDuration(c,+new Date),this._pageViewPerformanceManager.shouldCollectDuration(a)||(a=void 0),f.isNullOrUndefined(n)||f.isNullOrUndefined(n.duration)||(e=n.duration),!this.overridePageViewDuration&&isNaN(e)||(isNaN(e)&&((n=n||{}).duration=a),this.appInsights.sendPageViewInternal(t,n),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),s=!0),n=n||{};var l=setInterval(function(){try{if(i._pageViewPerformanceManager.isPerformanceTimingDataReady()){clearInterval(l);var e={name:r,uri:o};i._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),e.isValid||s?(s||(n.duration=e.durationMs,i.appInsights.sendPageViewInternal(t,n)),i.pageViewPerformanceSent||(i.appInsights.sendPageViewPerformanceInternal(e,n),i.pageViewPerformanceSent=!0),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})):(n.duration=a,i.appInsights.sendPageViewInternal(t,n),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}))}else 6e4<de.GetDuration(c,+new Date)&&(clearInterval(l),s||(n.duration=6e4,i.appInsights.sendPageViewInternal(t,n),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})))}catch(e){i._logger.throwInternal(y.CRITICAL,G,"trackPageView failed on page load calculation: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},100)},At);function At(e,t,n,i){this.pageViewPerformanceSent=!1,this.overridePageViewDuration=!1,this.overridePageViewDuration=t,this.appInsights=e,this._pageViewPerformanceManager=i,n&&(this._channel=function(){return n.getTransmissionControls()},this._logger=n.logger)}var Mt=(Lt.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ce.dump(e))}},Lt.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(e){return this._logger.warnToConsole("Call to restart failed: "+ce.dump(e)),null}},Lt.prototype.startPageVisitTimer=function(e,t){try{if(ce.canUseSessionStorage()){if(null!=ce.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Ut(e,t),i=JSON.stringify(n);ce.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(e){this._logger.warnToConsole("Call to start failed: "+ce.dump(e))}},Lt.prototype.stopPageVisitTimer=function(){try{if(ce.canUseSessionStorage()){var e=Date.now(),t=ce.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t){var n=JSON.parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,ce.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+ce.dump(e)),null}},Lt);function Lt(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Ut=function(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},Rt=(Ot.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var i=t.duration,r=de.GetDuration(t.startTime,t.connectEnd),o=de.GetDuration(t.requestStart,t.responseStart),a=de.GetDuration(t.responseStart,t.responseEnd),s=de.GetDuration(t.responseEnd,t.loadEventEnd);else i=de.GetDuration(n.navigationStart,n.loadEventEnd),r=de.GetDuration(n.navigationStart,n.connectEnd),o=de.GetDuration(n.requestStart,n.responseStart),a=de.GetDuration(n.responseStart,n.responseEnd),s=de.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(y.WARNING,k,"error calculating page view performance.",{total:i,network:r,request:o,response:a,dom:s}):this.shouldCollectDuration(i,r,o,a,s)?i<Math.floor(r)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(y.WARNING,b,"client performance math error.",{total:i,network:r,request:o,response:a,dom:s}):(e.durationMs=i,e.perfTotal=e.duration=ce.msToTimeSpan(i),e.networkConnect=ce.msToTimeSpan(r),e.sentRequest=ce.msToTimeSpan(o),e.receivedResponse=ce.msToTimeSpan(a),e.domProcessing=ce.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(y.WARNING,q,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:r,request:o,response:a,dom:s})}},Ot.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?window.performance.timing:null},Ot.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?window.performance.getEntriesByType("navigation")[0]:null},Ot.prototype.isPerformanceNavigationTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByType&&0<window.performance.getEntriesByType("navigation").length},Ot.prototype.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},Ot.prototype.isPerformanceTimingDataReady=function(){var e="object"==typeof window&&window.performance.timing;return"object"==typeof window&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Ot.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=navigator.userAgent,r=!1;if(i)for(var o=0;o<n.length;o++)r=r||-1!==i.toLowerCase().indexOf(n[o]);if(r)return!1;for(o=0;o<e.length;o++)if(e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Ot);function Ot(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var zt="duration",Vt=(Gt.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ce.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ce.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ce.stringToBoolOrDefault(e.overridePageViewDuration),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ce.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ce.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ce.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ce.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},Gt.prototype.processTelemetry=function(e){for(var t=!1,n=this._telemetryInitializers.length,i=0;i<n;++i){var r=this._telemetryInitializers[i];if(r)try{if(!1===r.apply(null,[e])){t=!0;break}}catch(e){this._logger.throwInternal(y.CRITICAL,Q,"One of telemetry initializers failed, telemetry item will not be sent: "+ce.getExceptionName(e),{exception:ce.dump(e)},!0)}}t||f.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)},Gt.prototype.setNextPlugin=function(e){this._nextPlugin=e},Gt.prototype.trackEvent=function(e,t){try{var n=kt.create(e,xe.dataType,xe.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.WARNING,j,"trackTrace failed, trace will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this._logger.throwInternal(y.CRITICAL,M,"startTrackEvent failed, event will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(e){this._logger.throwInternal(y.CRITICAL,L,"stopTrackEvent failed, event will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackTrace=function(e,t){try{var n=kt.create(e,ht.dataType,ht.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.WARNING,j,"trackTrace failed, trace will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackMetric=function(e,t){try{var n=kt.create(e,Ye.dataType,Ye.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.CRITICAL,z,"trackMetric failed, metric will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,c({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(e){this._logger.throwInternal(y.CRITICAL,V,"trackPageView failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.sendPageViewInternal=function(e,t,n){"undefined"!=typeof document&&(e.refUri=void 0===e.refUri?document.referrer:e.refUri);var i=kt.create(e,it.dataType,it.envelopeType,this._logger,t,n);this.core.track(i),this._trackAjaxAttempts=0},Gt.prototype.sendPageViewPerformanceInternal=function(e,t,n){var i=kt.create(e,It.dataType,It.envelopeType,this._logger,t,n);this.core.track(i)},Gt.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,V,"trackPageViewPerformance failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.startTrackPage=function(e){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),this._pageTracking.start(e)}catch(e){this._logger.throwInternal(y.CRITICAL,U,"startTrackPage failed, page view may not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.stopTrackPage=function(e,t,n,i){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),"string"!=typeof t&&(t="object"==typeof window&&window.location&&window.location.href||""),this._pageTracking.stop(e,t,n,i),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,R,"stopTrackPage failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.sendExceptionInternal=function(e,t,n){var i=new Le(this._logger,e.exception||new Error(ce.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),r=kt.create(i,Le.dataType,Le.envelopeType,this._logger,t,n);this.core.track(r)},Gt.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,O,"trackException failed, exception will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype._onerror=function(t){try{var e={url:t&&t.url||document.URL,lineNumber:t.lineNumber,columnNumber:t.columnNumber,message:t.message};if(ce.isCrossOriginError(t.message,t.url,t.lineNumber,t.columnNumber,t.error))this._sendCORSException(e.url);else{if(!ce.isError(t.error)){var n="window.onerror@"+e.url+":"+t.lineNumber+":"+(t.columnNumber||0);t.error=new Error(t.message),t.error.stack=n}this.trackException({exception:t.error,severityLevel:Nt.Error},e)}}catch(e){var i=t.error?t.error.name+", "+t.error.message:"null";this._logger.throwInternal(y.CRITICAL,P,"_onError threw exception while logging error, error will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e),errorString:i})}},Gt.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Gt.prototype._initialize=function(e,t,n){var a=this;if(!this._isInitialized){if(f.isNullOrUndefined(t))throw Error("Error initializing");this.core=t,this._logger=t.logger,this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{};var i=Gt.getDefaultConfig();if(void 0!==i){for(var r in i)this.config[r]=Dt.getConfig(e,r,this.identifier,i[r]);if(this._globalconfig)for(var r in i)void 0===this._globalconfig[r]&&(this._globalconfig[r]=i[r])}this.config.isCookieUseDisabled&&ce.disableCookies(),this.config.isStorageUseDisabled&&ce.disableStorage();var o={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return a.config.accountId||e.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||e.appId}};this._pageViewPerformanceManager=new Rt(this.core),this._pageViewManager=new Ct(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Mt(this._logger,function(e,t,n){return a.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=[],this._addDefaultTelemetryInitializers(o),this._eventTracking=new jt(this._logger,"trackEvent"),this._eventTracking.action=function(e,t,n,i){(i=i||{})[zt]=n.toString(),a.trackEvent({name:e,properties:i})},this._pageTracking=new jt(this._logger,"trackPageView"),this._pageTracking.action=function(e,t,n,i,r){f.isNullOrUndefined(i)&&(i={}),i[zt]=n.toString();var o={name:e,uri:t,properties:i,measurements:r};a.sendPageViewInternal(o)};var s,c,l=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&"object"==typeof window){var u=window.onerror;window.onerror=function(e,t,n,i,r){var o=u&&u(e,t,n,i,r);return!0!==o&&l._onerror({message:e,url:t,lineNumber:n,columnNumber:i,error:r}),o},this.config.autoExceptionInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&"object"==typeof history&&"function"==typeof history.pushState&&"function"==typeof history.replaceState&&"object"==typeof window&&"undefined"!=typeof Event){var g=this;n.forEach(function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)}),history.pushState=(c=history.pushState,function(){var e=c.apply(this,arguments);return window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"pushState")),window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange")),e}),history.replaceState=(s=history.replaceState,function(){var e=s.apply(this,arguments);return window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"replaceState")),window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange")),e}),window.addEventListener(g.config.namePrefix+"popstate",function(){window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange"))}),window.addEventListener(g.config.namePrefix+"locationchange",function(){g._properties&&g._properties.context&&g._properties.context.telemetryTrace&&(g._properties.context.telemetryTrace.traceID=ce.generateW3CId(),g._properties.context.telemetryTrace.name=window.location&&window.location.pathname||"_unknown_"),a._currUri&&(a._prevUri=a._currUri),a._currUri=window.location&&window.location.href||"",setTimeout(function(e){g.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),g.autoRoutePVDelay)})}this._isInitialized=!0}},Gt.prototype.trackPageVisitTime=function(e,t,n){var i={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},i)},Gt.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var i=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer(function(e){if(e.baseType===lt.dataType){var t=e.baseData;if(t)for(var n=0;n<i.length;n++)if(t.target&&0<=t.target.indexOf(i[n]))return!1}return!0})}},Gt.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Gt.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=kt.create(t,Le.dataType,Le.envelopeType,this._logger,{url:e});this.core.track(n)},Gt.Version="2.3.0",Gt);function Gt(){this.identifier="ApplicationInsightsAnalytics",this.priority=180,this.autoRoutePVDelay=500,this._isInitialized=!1,this._trackAjaxAttempts=0,this._prevUri="object"==typeof window&&window.location&&window.location.href||"",this.initialize=this._initialize.bind(this)}var jt=(qt.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(y.WARNING,F,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},qt.prototype.stop=function(e,t,n,i){var r=this._events[e];if(isNaN(r))this._logger.throwInternal(y.WARNING,J,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=de.GetDuration(r,o);this.action(e,t,a,n,i)}delete this._events[e],this._events[e]=void 0},qt);function qt(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Vt,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o,n,d,r,a,s,c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};(n=o=o||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",(r=d=d||{})[r.Default=0]="Default",r[r.Required=1]="Required",r[r.Array=2]="Array",r[r.Hidden=4]="Hidden",(s=a=a||{})[s.AI=0]="AI",s[s.AI_AND_W3C=1]="AI_AND_W3C",s[s.W3C=2]="W3C";var l=2,u="prototype",f=(g.isNullOrUndefined=function(e){return null===e||e===undefined},g.isDate=function(e){return"[object Date]"===Object[u].toString.call(e)},g.disableCookies=function(){g._canUseCookies=!1},g.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},g.toISOString=function(e){if(g.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},g.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},g.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},g.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},g.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},g.objCreate=function(e){if(null==e)return{};var t=typeof e;if("object"!=t&&"function"!=t)throw new TypeError("Object prototype may only be an Object: "+e);function n(){}return n[u]=e,new n},g.objKeys=function(e){var t=Object[u].hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),i=typeof e;if("function"!=i&&("object"!=i||null===e))throw new TypeError("objKeys called on non-object");var r=[];for(var o in e)t.call(e,o)&&r.push(o);if(n)for(var a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=a.length,c=0;c<s;c++)t.call(e,a[c])&&r.push(a[c]);return r},g.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},g);function g(){}var p=/[xy]/g,h=(m.prototype.processTelemetry=function(t){f.arrForEach(this.channelQueue,function(e){0<e.length&&e[0].processTelemetry(t)})},m.prototype.getChannelControls=function(){return this.channelQueue},m.prototype.initialize=function(n,i,r){var o,a=this;n.isCookieUseDisabled&&f.disableCookies(),this.channelQueue=new Array,n.channels&&f.arrForEach(n.channels,function(e){if(e&&0<e.length){e=e.sort(function(e,t){return e.priority-t.priority});for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);if(f.arrForEach(e,function(e){e.priority<500&&(o=e.identifier),e.initialize(n,i,r)}),o)throw Error("Channel has invalid priority"+o);a.channelQueue.push(e)}});for(var e=new Array,t=0;t<r.length;t++){var s=r[t];500<s.priority&&e.push(s)}if(0<e.length){for(e=e.sort(function(e,t){return e.priority-t.priority}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);f.arrForEach(e,function(e){return e.initialize(n,i,r)}),this.channelQueue.push(e)}},m._staticInit=void f.objDefineAccessors(m.prototype,"ChannelControls",m.prototype.getChannelControls),m);function m(){this.identifier="ChannelControllerPlugin",this.priority=500}var v=(y.prototype.initialize=function(e,t,n,i){var r=this;if(this._isInitialized)throw Error("Core should not be initialized more than once");if(!e||f.isNullOrUndefined(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e,this._notificationManager=i,this._notificationManager||(this._notificationManager=f.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this.config.extensions=f.isNullOrUndefined(this.config.extensions)?[]:this.config.extensions,this.config.extensionConfig=f.isNullOrUndefined(this.config.extensionConfig)?{}:this.config.extensionConfig,this._notificationManager&&(this.config.extensionConfig.NotificationManager=this._notificationManager),this.logger=n,this.logger||(this.logger=f.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),(a=this._extensions).push.apply(a,t.concat(this.config.extensions)),f.arrForEach(this._extensions,function(e){var t=!0;if((f.isNullOrUndefined(e)||f.isNullOrUndefined(e.initialize))&&(t=!1),!t)throw Error("Extensions must provide callback to initialize")}),this._extensions.push(this._channelController),this._extensions=this._extensions.sort(function(e,t){var n=e,i=t,r=typeof n.processTelemetry,o=typeof i.processTelemetry;return"function"==r&&"function"==o?n.priority-i.priority:"function"==r&&"function"!=o?1:"function"!=r&&"function"==o?-1:void 0});var o={};f.arrForEach(this._extensions,function(e){var t=e;t&&t.priority&&(f.isNullOrUndefined(o[t.priority])?o[t.priority]=t.identifier:r.logger&&r.logger.warnToConsole("Two extensions have same priority"+o[t.priority]+", "+t.identifier))});for(var a,s=-1,c=0;c<this._extensions.length-1;c++){var l=this._extensions[c];if(!l||"function"==typeof l.processTelemetry){if(l.priority===this._channelController.priority){s=c+1;break}this._extensions[c].setNextPlugin(this._extensions[c+1])}}if(this._channelController.initialize(this.config,this,this._extensions),f.arrForEach(this._extensions,function(e){e&&e.priority<r._channelController.priority&&e.initialize(r.config,r,r._extensions)}),s<this._extensions.length&&this._extensions.splice(s),0===this.getTransmissionControls().length)throw new Error("No channels available");this._isInitialized=!0},y.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},y.prototype.track=function(e){e.iKey||(e.iKey=this.config.instrumentationKey),e.time||(e.time=f.toISOString(new Date)),f.isNullOrUndefined(e.ver)&&(e.ver="4.0"),0===this._extensions.length&&this._channelController.processTelemetry(e);for(var t=0;t<this._extensions.length;){if(this._extensions[t].processTelemetry){this._extensions[t].processTelemetry(e);break}t++}},y);function y(){this._isInitialized=!1,this._extensions=new Array,this._channelController=new h}var w,_,I=(S.prototype.addNotificationListener=function(e){this.listeners.push(e)},S.prototype.removeNotificationListener=function(e){for(var t=f.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=f.arrIndexOf(this.listeners,e)},S.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},S.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},S);function S(){this.listeners=[]}(_=w=w||{})[_.CRITICAL=1]="CRITICAL",_[_.WARNING=2]="WARNING";var T=1,N=2,E=3,x=4,b=5,D=6,k=8,C=10,P=11,A=23,M=25,L=29,U=30,O=31,R=32,z=35,V=36,G=37,j=38,q=39,B=45,F=49,W=52,H=56,X=57,K=61,J=62,Q=63,Y=64,$=66,Z=68,ee=69,te=(ne.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},ne.dataType="MessageData",ne.AiNonUserActionablePrefix="AI (Internal): ",ne.AiUserActionablePrefix="AI: ",ne);function ne(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?ne.AiUserActionablePrefix:ne.AiNonUserActionablePrefix)+e;var r=(t?" message:"+ne.sanitizeDiagnosticText(t):"")+(i?" props:"+ne.sanitizeDiagnosticText(JSON.stringify(i)):"");this.message+=r}var ie=(re.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new te(t,n,r,i);if(this.enableDebugExceptions())throw o;if(void 0!==o&&o&&"undefined"!=typeof o.message){if(r){var a=+o.messageId;(!this._messageLogged[a]||this.consoleLoggingLevel()>=w.WARNING)&&(this.warnToConsole(o.message),this._messageLogged[a]=!0)}else this.consoleLoggingLevel()>=w.WARNING&&this.warnToConsole(o.message);this.logInternalMessage(e,o)}},re.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},re.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},re.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,i=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[i]?n=!1:this._messageLogged[i]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var r="Internal events throttle limit per PageView reached for this app.",o=new te(A,r,!1);this.queue.push(o),this.warnToConsole(r)}}},re.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},re);function re(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},f.isNullOrUndefined(e)||(f.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),f.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),f.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),f.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var oe;t(ae,oe=v),ae.prototype.initialize=function(e,t){this._notificationManager=new I,this.logger=new ie(e),this.config=e,oe.prototype.initialize.call(this,e,t,this.logger,this._notificationManager)},ae.prototype.getTransmissionControls=function(){return oe.prototype.getTransmissionControls.call(this)},ae.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),oe.prototype.track.call(this,e)},ae.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},ae.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},ae.prototype.pollInternalLogs=function(n){var i=this,e=this.config.diagnosticLogInterval;return 0<e||(e=1e4),setInterval(function(){var e=i.logger?i.logger.queue:[];f.arrForEach(e,function(e){var t={name:n||"InternalMessageId: "+e.messageId,iKey:i.config.instrumentationKey,time:f.toISOString(new Date),baseType:te.dataType,baseData:{message:e.message}};i.track(t)}),e.length=0},e)},ae.prototype._validateTelemetryItem=function(e){if(f.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},ae.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],l)};function ae(){return oe.call(this)||this}var se=(ce.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=ce.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,ce.MAX_NAME_LENGTH-3)+ce.padNumber(o);r=a}return r},ce.sanitizeKey=function(e,t){var n;return t&&(t=ce.trim(t.toString())).length>ce.MAX_NAME_LENGTH&&(n=t.substring(0,ce.MAX_NAME_LENGTH),e.throwInternal(w.WARNING,X,"name is too long. It has been truncated to "+ce.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},ce.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=ce.MAX_STRING_LENGTH),t&&(n=n||ce.MAX_STRING_LENGTH,(t=ce.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(w.WARNING,K,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},ce.sanitizeUrl=function(e,t){return ce.sanitizeInput(e,t,ce.MAX_URL_LENGTH,$)},ce.sanitizeMessage=function(e,t){var n;return t&&t.length>ce.MAX_MESSAGE_LENGTH&&(n=t.substring(0,ce.MAX_MESSAGE_LENGTH),e.throwInternal(w.WARNING,H,"message is too long, it has been truncated to "+ce.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},ce.sanitizeException=function(e,t){var n;return t&&t.length>ce.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,ce.MAX_EXCEPTION_LENGTH),e.throwInternal(w.WARNING,W,"exception is too long, it has been truncated to "+ce.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},ce.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if("object"==typeof r&&"undefined"!=typeof JSON)try{r=JSON.stringify(r)}catch(o){e.throwInternal(w.WARNING,F,"custom property is not valid",{exception:o},!0)}r=ce.sanitizeString(e,r,ce.MAX_PROPERTY_LENGTH),n[i=ce.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},ce.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=ce.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},ce.sanitizeId=function(e,t){return t?ce.sanitizeInput(e,t,ce.MAX_ID_LENGTH,ee).toString():t},ce.sanitizeInput=function(e,t,n,i){var r;return t&&(t=ce.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(w.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},ce.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},ce.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},ce.MAX_NAME_LENGTH=150,ce.MAX_ID_LENGTH=128,ce.MAX_PROPERTY_LENGTH=8192,ce.MAX_STRING_LENGTH=1024,ce.MAX_URL_LENGTH=2048,ce.MAX_MESSAGE_LENGTH=32768,ce.MAX_EXCEPTION_LENGTH=32768,ce);function ce(){}var le="prototype",ue=(ge.createDomEvent=function(e){var t=null;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},ge.disableStorage=function(){ge._canUseLocalStorage=!1,ge._canUseSessionStorage=!1},ge._getLocalStorageObject=function(){return ge.canUseLocalStorage()?ge._getVerifiedStorageObject(o.LocalStorage):null},ge._getVerifiedStorageObject=function(e){var t,n,i=null;try{if("undefined"==typeof window)return null;n=new Date,(i=e===o.LocalStorage?window.localStorage:window.sessionStorage).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},ge.isInternalApplicationInsightsEndpoint=function(e){return-1!==ge._internalEndpoints.indexOf(e.toLowerCase())},ge.canUseLocalStorage=function(){return ge._canUseLocalStorage===undefined&&(ge._canUseLocalStorage=!!ge._getVerifiedStorageObject(o.LocalStorage)),ge._canUseLocalStorage},ge.getStorage=function(e,t){var n=ge._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,T,"Browser failed read of local storage. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return null},ge.setStorage=function(e,t,n){var i=ge._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,E,"Browser failed write to local storage. "+ge.getExceptionName(r),{exception:ge.dump(r)})}return!1},ge.removeStorage=function(e,t){var n=ge._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,b,"Browser failed removal of local storage item. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return!1},ge._getSessionStorageObject=function(){return ge.canUseSessionStorage()?ge._getVerifiedStorageObject(o.SessionStorage):null},ge.canUseSessionStorage=function(){return ge._canUseSessionStorage===undefined&&(ge._canUseSessionStorage=!!ge._getVerifiedStorageObject(o.SessionStorage)),ge._canUseSessionStorage},ge.getSessionStorageKeys=function(){var e=[];if(ge.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},ge.getSessionStorage=function(e,t){var n=ge._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,N,"Browser failed read of session storage. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return null},ge.setSessionStorage=function(e,t,n){var i=ge._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,x,"Browser failed write to session storage. "+ge.getExceptionName(r),{exception:ge.dump(r)})}return!1},ge.removeSessionStorage=function(e,t){var n=ge._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,D,"Browser failed removal of session storage item. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return!1},ge.disableCookies=function(){f.disableCookies()},ge.canUseCookies=function(e){if(f._canUseCookies===undefined){f._canUseCookies=!1;try{f._canUseCookies=ge.document.cookie!==undefined}catch(t){e.throwInternal(w.WARNING,Z,"Cannot access document.cookie - "+ge.getExceptionName(t),{exception:ge.dump(t)})}}return f._canUseCookies},ge.setCookie=function(e,t,n,i){n+=";SameSite=None";var r="",o="";i&&(r=";domain="+i),ge.document.location&&"https:"===ge.document.location.protocol&&(o=";secure"),ge.canUseCookies(e)&&(ge.document.cookie=t+"="+n+r+";path=/"+o)},ge.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},ge.getCookie=function(e,t){if(ge.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=ge.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=ge.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},ge.deleteCookie=function(e,t){ge.canUseCookies(e)&&(ge.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ge.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},ge.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},ge.random32=function(){return 4294967296*Math.random()|0},ge.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=ge.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},ge.isArray=function(e){return"[object Array]"===Object[le].toString.call(e)},ge.isError=function(e){return"[object Error]"===Object[le].toString.call(e)},ge.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},ge.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},ge.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},ge.dump=function(e){var t=Object[le].toString.call(e),n=JSON.stringify(e);return"[object Error]"===t&&(n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+n},ge.getExceptionName=function(e){return"[object Error]"===Object[le].toString.call(e)?e.name:""},ge.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var n="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(n,t)}return!0},ge.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},ge.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},ge.document="undefined"!=typeof document?document:{},ge._canUseLocalStorage=undefined,ge._canUseSessionStorage=undefined,ge._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ge.NotSpecified="not_specified",ge.isDate=f.isDate,ge.toISOStringForIE8=f.toISOString,ge);function ge(){}var fe=(pe.parseUrl=function(e){return pe.htmlAnchorElement||(pe.htmlAnchorElement=pe.document.createElement?pe.document.createElement("a"):{host:pe.parseHost(e)}),pe.htmlAnchorElement.href=e,pe.htmlAnchorElement},pe.getAbsoluteUrl=function(e){var t,n=pe.parseUrl(e);return n&&(t=n.href),t},pe.getPathName=function(e){var t,n=pe.parseUrl(e);return n&&(t=n.pathname),t},pe.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},pe.parseHost=function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null},pe.document="undefined"!=typeof document?document:{},pe);function pe(){}var de=(he.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=fe.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=se.sanitizeString(e,n?n+" "+c:c)}else o=se.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},he);function he(){}var me=(ve.Now="undefined"==typeof window?function(){return(new Date).getTime()}:window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},ve.GetDuration=function(e,t){var n=null;return 0===e||0===t||f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||(n=t-e),n},ve);function ve(){}var ye,we=(t(_e,ye=function Wt(){}),_e);function _e(){return ye.call(this)||this}var Ie;t(Se,Ie=function Ht(){this.ver=1,this.sampleRate=100,this.tags={}});function Se(e,t,n){var i=Ie.call(this)||this;return i.name=se.sanitizeString(e,n)||ue.NotSpecified,i.data=t,i.time=f.toISOString(new Date),i.aiDataContract={time:d.Required,iKey:d.Required,name:d.Required,sampleRate:function(){return 100===i.sampleRate?d.Hidden:d.Required},tags:d.Required,data:d.Required},i}var Te,Ne=function Xt(){},Ee=(t(xe,Te=Ne),xe);function xe(){var e=Te.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var be,De=(t(ke,be=Ee),ke.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ke.dataType="EventData",ke);function ke(e,t,n,i){var r=be.call(this)||this;return r.aiDataContract={ver:d.Required,name:d.Required,properties:d.Default,measurements:d.Default},r.name=se.sanitizeString(e,t)||ue.NotSpecified,r.properties=se.sanitizeProperties(e,n),r.measurements=se.sanitizeMeasurements(e,i),r}var Ce,Pe=function Kt(){},Ae=(t(Me,Ce=Ne),Me);function Me(){var e=Ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Le,Ue=function Jt(){this.hasFullStack=!0,this.parsedStack=[]},Oe=(t(Re,Le=Ae),Re.CreateFromInterface=function(t,e){var n=e.exceptions&&f.arrMap(e.exceptions,function(e){return Ve.CreateFromInterface(t,e)});return new Re(t,c({},e,{exceptions:n}))},Re.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&f.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},Re.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},Re.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Re.dataType="ExceptionData",Re);function Re(e,t,n,i,r,o){var a=Le.call(this)||this;return a.aiDataContract={ver:d.Required,exceptions:d.Required,severityLevel:d.Default,properties:d.Default,measurements:d.Default},t instanceof Error?(a.exceptions=[new Ve(e,t)],a.properties=se.sanitizeProperties(e,n),a.measurements=se.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,f.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var ze,Ve=(t(Ge,ze=Ue),Ge.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&f.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},Ge.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&f.arrMap(t.parsedStack,function(e){return qe.CreateFromInterface(e)})||t.parsedStack;return new Ge(e,c({},t,{parsedStack:n}))},Ge.parseStack=function(e){var t;if("string"==typeof e){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(qe.regex.test(a)){var s=new qe(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,l=t.length-1,u=0,g=c,f=l;c<l;){if(32768<(u+=t[c].sizeInBytes+t[l].sizeInBytes)){var p=f-g+1;t.splice(g,p);break}g=c,f=l,c++,l--}}return t},Ge);function Ge(e,t){var n=ze.call(this)||this;if(n.aiDataContract={id:d.Default,outerId:d.Default,typeName:d.Required,message:d.Required,hasFullStack:d.Default,stack:d.Default,parsedStack:d.Array},t instanceof Error){n.typeName=se.sanitizeString(e,t.name)||ue.NotSpecified,n.message=se.sanitizeMessage(e,t.message)||ue.NotSpecified;var i=t.stack;n.parsedStack=Ge.parseStack(i),n.stack=se.sanitizeException(e,i),n.hasFullStack=ue.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var je,qe=(t(Be,je=Pe),Be.CreateFromInterface=function(e){return new Be(e,null)},Be.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Be.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,Be.baseSize=58,Be);function Be(e,t){var n=je.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:d.Required,method:d.Required,assembly:d.Default,fileName:d.Default,line:d.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=ue.trim(i),n.fileName="",n.line=0;var r=i.match(Be.regex);r&&5<=r.length&&(n.method=ue.trim(r[2])||n.method,n.fileName=ue.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=Be.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Fe,We,He,Xe=(t(Ke,Fe=Ne),Ke);function Ke(){var e=Fe.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(He=We=We||{})[He.Measurement=0]="Measurement",He[He.Aggregation=1]="Aggregation";var Je,Qe=(t(Ye,Je=function Qt(){this.kind=We.Measurement}),Ye);function Ye(){var e=null!==Je&&Je.apply(this,arguments)||this;return e.aiDataContract={name:d.Required,kind:d.Default,value:d.Required,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default},e}var $e,Ze=(t(et,$e=Xe),et.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",et.dataType="MetricData",et);function et(e,t,n,i,r,o,a,s){var c=$e.call(this)||this;c.aiDataContract={ver:d.Required,metrics:d.Required,properties:d.Default};var l=new Qe;return l.count=0<i?i:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(r)||null===r?undefined:r,l.name=se.sanitizeString(e,t)||ue.NotSpecified,l.value=n,c.metrics=[l],c.properties=se.sanitizeProperties(e,a),c.measurements=se.sanitizeMeasurements(e,s),c}var tt,nt=(t(it,tt=Ee),it);function it(){var e=tt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rt,ot=(t(at,rt=nt),at.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",at.dataType="PageviewData",at);function at(e,t,n,i,r,o,a){var s=rt.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,properties:d.Default,measurements:d.Default,id:d.Default},s.id=se.sanitizeId(e,a),s.url=se.sanitizeUrl(e,n),s.name=se.sanitizeString(e,t)||ue.NotSpecified,isNaN(i)||(s.duration=ue.msToTimeSpan(i)),s.properties=se.sanitizeProperties(e,r),s.measurements=se.sanitizeMeasurements(e,o),s}var st,ct=(t(lt,st=Ne),lt);function lt(){var e=st.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var ut,gt=(t(ft,ut=ct),ft.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ft.dataType="RemoteDependencyData",ft);function ft(e,t,n,i,r,o,a,s,c,l,u,g){void 0===c&&(c="Ajax");var f=ut.call(this)||this;f.aiDataContract={id:d.Required,ver:d.Required,name:d.Default,resultCode:d.Default,duration:d.Default,success:d.Default,data:d.Default,target:d.Default,type:d.Default,properties:d.Default,measurements:d.Default,kind:d.Default,value:d.Default,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default,dependencyKind:d.Default,dependencySource:d.Default,commandName:d.Default,dependencyTypeName:d.Default},f.id=t,f.duration=ue.msToTimeSpan(r),f.success=o,f.resultCode=a+"",f.type=se.sanitizeString(e,c);var p=de.ParseDependencyPath(e,n,s,i);return f.data=se.sanitizeUrl(e,i)||p.data,f.target=se.sanitizeString(e,p.target),l&&(f.target=f.target+" | "+l),f.name=se.sanitizeString(e,p.name),f.properties=se.sanitizeProperties(e,u),f.measurements=se.sanitizeMeasurements(e,g),f}var pt,dt=(t(ht,pt=Ne),ht);function ht(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt,vt=(t(yt,mt=dt),yt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",yt.dataType="MessageData",yt);function yt(e,t,n,i,r){var o=mt.call(this)||this;return o.aiDataContract={ver:d.Required,message:d.Required,severityLevel:d.Default,properties:d.Default},t=t||ue.NotSpecified,o.message=se.sanitizeMessage(e,t),o.properties=se.sanitizeProperties(e,i),o.measurements=se.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var wt,_t=(t(It,wt=nt),It);function It(){var e=wt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var St,Tt=(t(Nt,St=_t),Nt.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Nt.dataType="PageviewPerformanceData",Nt);function Nt(e,t,n,i,r,o,a){var s=St.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,perfTotal:d.Default,networkConnect:d.Default,sentRequest:d.Default,receivedResponse:d.Default,domProcessing:d.Default,properties:d.Default,measurements:d.Default},s.url=se.sanitizeUrl(e,n),s.name=se.sanitizeString(e,t)||ue.NotSpecified,s.properties=se.sanitizeProperties(e,r),s.measurements=se.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Et,xt,bt;t(Dt,Et=we);function Dt(e,t){var n=Et.call(this)||this;return n.aiDataContract={baseType:d.Required,baseData:d.Required},n.baseType=e,n.baseData=t,n}(bt=xt=xt||{})[bt.Verbose=0]="Verbose",bt[bt.Information=1]="Information",bt[bt.Warning=2]="Warning",bt[bt.Error=3]="Error",bt[bt.Critical=4]="Critical";var kt=(Ct.getConfig=function(e,t,n,i){var r;return void 0===i&&(i=!1),r=n&&e.extensionConfig&&e.extensionConfig[n]&&!f.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],f.isNullOrUndefined(r)?i:r},Ct);function Ct(){}var Pt=(At.create=function(e,t,n,i,r,o){if(n=se.sanitizeString(i,n)||ue.NotSpecified,f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||f.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:f.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!f.isNullOrUndefined(r))for(var s in r)r.hasOwnProperty(s)&&(a.data[s]=r[s]);return a},At);function At(){}var Mt=(Lt.prototype.trackPageView=function(n,i){var r=this,o=n.name;!f.isNullOrUndefined(o)&&"string"==typeof o||(o=n.name="object"==typeof window&&window.document&&window.document.title||"");var a=n.uri;if(!f.isNullOrUndefined(a)&&"string"==typeof a||(a=n.uri="object"==typeof window&&window.location&&window.location.href||""),!this._pageViewPerformanceManager.isPerformanceTimingSupported())return this.appInsights.sendPageViewInternal(n,i),f.arrForEach(this._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}),void this._logger.throwInternal(w.WARNING,M,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,e,c=!1,l=this._pageViewPerformanceManager.getPerformanceTiming().navigationStart;s=me.GetDuration(l,+new Date),this._pageViewPerformanceManager.shouldCollectDuration(s)||(s=undefined),f.isNullOrUndefined(i)||f.isNullOrUndefined(i.duration)||(e=i.duration),!this.overridePageViewDuration&&isNaN(e)||(isNaN(e)&&((i=i||{}).duration=s),this.appInsights.sendPageViewInternal(n,i),f.arrForEach(this._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}),c=!0),i=i||{};var u=setInterval(function(){try{if(r._pageViewPerformanceManager.isPerformanceTimingDataReady()){clearInterval(u);var e={name:o,uri:a};r._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,r.appInsights.sendPageViewInternal(n,i)),r.pageViewPerformanceSent||(r.appInsights.sendPageViewPerformanceInternal(e,i),r.pageViewPerformanceSent=!0),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})})):(i.duration=s,r.appInsights.sendPageViewInternal(n,i),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}))}else 6e4<me.GetDuration(l,+new Date)&&(clearInterval(u),c||(i.duration=6e4,r.appInsights.sendPageViewInternal(n,i),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})})))}catch(t){r._logger.throwInternal(w.CRITICAL,j,"trackPageView failed on page load calculation: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},100)},Lt);function Lt(e,t,n,i){this.pageViewPerformanceSent=!1,this.overridePageViewDuration=!1,this.overridePageViewDuration=t,this.appInsights=e,this._pageViewPerformanceManager=i,n&&(this._channel=function(){return n.getTransmissionControls()},this._logger=n.logger)}var Ut=(Ot.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(i){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ue.dump(i))}},Ot.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(i){return this._logger.warnToConsole("Call to restart failed: "+ue.dump(i)),null}},Ot.prototype.startPageVisitTimer=function(e,t){try{if(ue.canUseSessionStorage()){if(null!=ue.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Rt(e,t),i=JSON.stringify(n);ue.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(r){this._logger.warnToConsole("Call to start failed: "+ue.dump(r))}},Ot.prototype.stopPageVisitTimer=function(){try{if(ue.canUseSessionStorage()){var e=Date.now(),t=ue.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t){var n=JSON.parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,ue.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(i){return this._logger.warnToConsole("Stop page visit timer failed: "+ue.dump(i)),null}},Ot);function Ot(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Rt=function Yt(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},zt=(Vt.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var i=t.duration,r=me.GetDuration(t.startTime,t.connectEnd),o=me.GetDuration(t.requestStart,t.responseStart),a=me.GetDuration(t.responseStart,t.responseEnd),s=me.GetDuration(t.responseEnd,t.loadEventEnd);else i=me.GetDuration(n.navigationStart,n.loadEventEnd),r=me.GetDuration(n.navigationStart,n.connectEnd),o=me.GetDuration(n.requestStart,n.responseStart),a=me.GetDuration(n.responseStart,n.responseEnd),s=me.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(w.WARNING,C,"error calculating page view performance.",{total:i,network:r,request:o,response:a,dom:s}):this.shouldCollectDuration(i,r,o,a,s)?i<Math.floor(r)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(w.WARNING,k,"client performance math error.",{total:i,network:r,request:o,response:a,dom:s}):(e.durationMs=i,e.perfTotal=e.duration=ue.msToTimeSpan(i),e.networkConnect=ue.msToTimeSpan(r),e.sentRequest=ue.msToTimeSpan(o),e.receivedResponse=ue.msToTimeSpan(a),e.domProcessing=ue.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(w.WARNING,B,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:r,request:o,response:a,dom:s})}},Vt.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?window.performance.timing:null},Vt.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?window.performance.getEntriesByType("navigation")[0]:null},Vt.prototype.isPerformanceNavigationTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByType&&0<window.performance.getEntriesByType("navigation").length},Vt.prototype.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},Vt.prototype.isPerformanceTimingDataReady=function(){var e="object"==typeof window&&window.performance.timing;return"object"==typeof window&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Vt.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=navigator.userAgent,r=!1;if(i)for(var o=0;o<n.length;o++)r=r||-1!==i.toLowerCase().indexOf(n[o]);if(r)return!1;for(o=0;o<e.length;o++)if(e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Vt);function Vt(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Gt="duration",jt=(qt.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ue.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ue.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ue.stringToBoolOrDefault(e.overridePageViewDuration),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ue.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ue.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ue.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ue.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},qt.prototype.processTelemetry=function(e){for(var t=!1,n=this._telemetryInitializers.length,i=0;i<n;++i){var r=this._telemetryInitializers[i];if(r)try{if(!1===r.apply(null,[e])){t=!0;break}}catch(o){this._logger.throwInternal(w.CRITICAL,Y,"One of telemetry initializers failed, telemetry item will not be sent: "+ue.getExceptionName(o),{exception:ue.dump(o)},!0)}}t||f.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)},qt.prototype.setNextPlugin=function(e){this._nextPlugin=e},qt.prototype.trackEvent=function(e,t){try{var n=Pt.create(e,De.dataType,De.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.WARNING,q,"trackTrace failed, trace will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this._logger.throwInternal(w.CRITICAL,L,"startTrackEvent failed, event will not be collected: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},qt.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(i){this._logger.throwInternal(w.CRITICAL,U,"stopTrackEvent failed, event will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackTrace=function(e,t){try{var n=Pt.create(e,vt.dataType,vt.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.WARNING,q,"trackTrace failed, trace will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackMetric=function(e,t){try{var n=Pt.create(e,Ze.dataType,Ze.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.CRITICAL,V,"trackMetric failed, metric will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,c({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(i){this._logger.throwInternal(w.CRITICAL,G,"trackPageView failed, page view will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.sendPageViewInternal=function(e,t,n){"undefined"!=typeof document&&(e.refUri=e.refUri===undefined?document.referrer:e.refUri);var i=Pt.create(e,ot.dataType,ot.envelopeType,this._logger,t,n);this.core.track(i),this._trackAjaxAttempts=0},qt.prototype.sendPageViewPerformanceInternal=function(e,t,n){var i=Pt.create(e,Tt.dataType,Tt.envelopeType,this._logger,t,n);this.core.track(i)},qt.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this._logger.throwInternal(w.CRITICAL,G,"trackPageViewPerformance failed, page view will not be collected: "+ue.getExceptionName(n),{exception:ue.dump(n)})}},qt.prototype.startTrackPage=function(e){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),this._pageTracking.start(e)}catch(t){this._logger.throwInternal(w.CRITICAL,O,"startTrackPage failed, page view may not be collected: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},qt.prototype.stopTrackPage=function(e,t,n,i){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),"string"!=typeof t&&(t="object"==typeof window&&window.location&&window.location.href||""),this._pageTracking.stop(e,t,n,i),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(r){this._logger.throwInternal(w.CRITICAL,R,"stopTrackPage failed, page view will not be collected: "+ue.getExceptionName(r),{exception:ue.dump(r)})}},qt.prototype.sendExceptionInternal=function(e,t,n){var i=new Oe(this._logger,e.exception||new Error(ue.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),r=Pt.create(i,Oe.dataType,Oe.envelopeType,this._logger,t,n);this.core.track(r)},qt.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this._logger.throwInternal(w.CRITICAL,z,"trackException failed, exception will not be collected: "+ue.getExceptionName(n),{exception:ue.dump(n)})}},qt.prototype._onerror=function(e){try{var t={url:e&&e.url||document.URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(ue.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!ue.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:xt.Error},t)}}catch(r){var i=e.error?e.error.name+", "+e.error.message:"null";this._logger.throwInternal(w.CRITICAL,P,"_onError threw exception while logging error, error will not be collected: "+ue.getExceptionName(r),{exception:ue.dump(r),errorString:i})}},qt.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},qt.prototype._initialize=function(e,t,n){var a=this;if(!this._isInitialized){if(f.isNullOrUndefined(t))throw Error("Error initializing");this.core=t,this._logger=t.logger,this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{};var i=qt.getDefaultConfig();if(i!==undefined){for(var r in i)this.config[r]=kt.getConfig(e,r,this.identifier,i[r]);if(this._globalconfig)for(var r in i)this._globalconfig[r]===undefined&&(this._globalconfig[r]=i[r])}this.config.isCookieUseDisabled&&ue.disableCookies(),this.config.isStorageUseDisabled&&ue.disableStorage();var o={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return a.config.accountId||e.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||e.appId}};this._pageViewPerformanceManager=new zt(this.core),this._pageViewManager=new Mt(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Ut(this._logger,function(e,t,n){return a.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=[],this._addDefaultTelemetryInitializers(o),this._eventTracking=new Bt(this._logger,"trackEvent"),this._eventTracking.action=function(e,t,n,i){(i=i||{})[Gt]=n.toString(),a.trackEvent({name:e,properties:i})},this._pageTracking=new Bt(this._logger,"trackPageView"),this._pageTracking.action=function(e,t,n,i,r){f.isNullOrUndefined(i)&&(i={}),i[Gt]=n.toString();var o={name:e,uri:t,properties:i,measurements:r};a.sendPageViewInternal(o)};var s,c,l=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&"object"==typeof window){var u=window.onerror;window.onerror=function(e,t,n,i,r){var o=u&&u(e,t,n,i,r);return!0!==o&&l._onerror({message:e,url:t,lineNumber:n,columnNumber:i,error:r}),o},this.config.autoExceptionInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&"object"==typeof history&&"function"==typeof history.pushState&&"function"==typeof history.replaceState&&"object"==typeof window&&"undefined"!=typeof Event){var g=this;f.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)}),history.pushState=(c=history.pushState,function(){var e=c.apply(this,arguments);return window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"pushState")),window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange")),e}),history.replaceState=(s=history.replaceState,function(){var e=s.apply(this,arguments);return window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"replaceState")),window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange")),e}),window.addEventListener(g.config.namePrefix+"popstate",function(){window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange"))}),window.addEventListener(g.config.namePrefix+"locationchange",function(){g._properties&&g._properties.context&&g._properties.context.telemetryTrace&&(g._properties.context.telemetryTrace.traceID=ue.generateW3CId(),g._properties.context.telemetryTrace.name=window.location&&window.location.pathname||"_unknown_"),a._currUri&&(a._prevUri=a._currUri),a._currUri=window.location&&window.location.href||"",setTimeout(function(e){g.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),g.autoRoutePVDelay)})}this._isInitialized=!0}},qt.prototype.trackPageVisitTime=function(e,t,n){var i={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},i)},qt.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var i=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer(function(e){if(e.baseType===gt.dataType){var t=e.baseData;if(t)for(var n=0;n<i.length;n++)if(t.target&&0<=t.target.indexOf(i[n]))return!1}return!0})}},qt.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},qt.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},n=Pt.create(t,Oe.dataType,Oe.envelopeType,this._logger,{url:e});this.core.track(n)},qt.Version="2.3.1",qt);function qt(){this.identifier="ApplicationInsightsAnalytics",this.priority=180,this.autoRoutePVDelay=500,this._isInitialized=!1,this._trackAjaxAttempts=0,this._prevUri="object"==typeof window&&window.location&&window.location.href||"",this.initialize=this._initialize.bind(this)}var Bt=(Ft.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal(w.WARNING,J,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},Ft.prototype.stop=function(e,t,n,i){var r=this._events[e];if(isNaN(r))this._logger.throwInternal(w.WARNING,Q,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=me.GetDuration(r,o);this.action(e,t,a,n,i)}delete this._events[e],this._events[e]=undefined},Ft);function Ft(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=jt,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map

@@ -415,3 +415,3 @@ /**

// Find the properties plugin
extensions.forEach(function (extension) {
CoreUtils.arrForEach(extensions, function (extension) {
if (extension.identifier === PropertiesPluginIdentifier) {

@@ -504,3 +504,3 @@ _this._properties = extension;

};
ApplicationInsights.Version = "2.3.0"; // Not currently used anywhere
ApplicationInsights.Version = "2.3.1"; // Not currently used anywhere
return ApplicationInsights;

@@ -507,0 +507,0 @@ }());

@@ -45,3 +45,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

this.appInsights.sendPageViewInternal(pageView, customProperties);
this._channel().forEach(function (queues) { queues.forEach(function (q) { return q.flush(true); }); });
CoreUtils.arrForEach(this._channel(), function (queues) { CoreUtils.arrForEach(queues, function (q) { return q.flush(true); }); });
// no navigation timing (IE 8, iOS Safari 8.4, Opera Mini 8 - see http://caniuse.com/#feat=nav-timing)

@@ -76,3 +76,3 @@ this._logger.throwInternal(LoggingSeverity.WARNING, _InternalMessageId.NavigationTimingNotSupported, "trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");

this.appInsights.sendPageViewInternal(pageView, customProperties);
this._channel().forEach(function (queues) { queues.forEach(function (q) { return q.flush(true); }); });
CoreUtils.arrForEach(this._channel(), function (queues) { CoreUtils.arrForEach(queues, function (q) { return q.flush(true); }); });
pageViewSent = true;

@@ -99,3 +99,3 @@ }

_this.appInsights.sendPageViewInternal(pageView, customProperties);
_this._channel().forEach(function (queues) { queues.forEach(function (q) { return q.flush(true); }); });
CoreUtils.arrForEach(_this._channel(), function (queues) { CoreUtils.arrForEach(queues, function (q) { return q.flush(true); }); });
}

@@ -111,3 +111,3 @@ else {

}
_this._channel().forEach(function (queues) { queues.forEach(function (q) { return q.flush(true); }); });
CoreUtils.arrForEach(_this._channel(), function (queues) { CoreUtils.arrForEach(queues, function (q) { return q.flush(true); }); });
}

@@ -122,3 +122,3 @@ }

_this.appInsights.sendPageViewInternal(pageView, customProperties);
_this._channel().forEach(function (queues) { queues.forEach(function (q) { return q.flush(true); }); });
CoreUtils.arrForEach(_this._channel(), function (queues) { CoreUtils.arrForEach(queues, function (q) { return q.flush(true); }); });
}

@@ -125,0 +125,0 @@ }

/*!
* Application Insights JavaScript SDK - Web Analytics, 2.3.0
* Application Insights JavaScript SDK - Web Analytics, 2.3.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r,n,d,o,a,s,c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};(n=r=r||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",(o=d=d||{})[o.Default=0]="Default",o[o.Required=1]="Required",o[o.Array=2]="Array",o[o.Hidden=4]="Hidden",(s=a=a||{})[s.AI=0]="AI",s[s.AI_AND_W3C=1]="AI_AND_W3C",s[s.W3C=2]="W3C";var l=2,f=(u.isNullOrUndefined=function(e){return null==e},u.disableCookies=function(){u._canUseCookies=!1},u.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},u);function u(){}var g=/[xy]/g,p=(h.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(h.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),h.prototype.initialize=function(n,i,r){var o,a=this;n.isCookieUseDisabled&&f.disableCookies(),this.channelQueue=new Array,n.channels&&n.channels.forEach(function(e){if(e&&0<e.length){e=e.sort(function(e,t){return e.priority-t.priority});for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);if(e.forEach(function(e){e.priority<500&&(o=e.identifier),e.initialize(n,i,r)}),o)throw Error("Channel has invalid priority"+o);a.channelQueue.push(e)}});for(var e=new Array,t=0;t<r.length;t++){var s=r[t];500<s.priority&&e.push(s)}if(0<e.length){for(e=e.sort(function(e,t){return e.priority-t.priority}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);e.forEach(function(e){return e.initialize(n,i,r)}),this.channelQueue.push(e)}},h);function h(){this.identifier="ChannelControllerPlugin",this.priority=500}var m=(v.prototype.initialize=function(e,t,n,i){var r=this;if(this._isInitialized)throw Error("Core should not be initialized more than once");if(!e||f.isNullOrUndefined(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e,this._notificationManager=i,this._notificationManager||(this._notificationManager=Object.create({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this.config.extensions=f.isNullOrUndefined(this.config.extensions)?[]:this.config.extensions,this.config.extensionConfig=f.isNullOrUndefined(this.config.extensionConfig)?{}:this.config.extensionConfig,this._notificationManager&&(this.config.extensionConfig.NotificationManager=this._notificationManager),this.logger=n,this.logger||(this.logger=Object.create({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),(a=this._extensions).push.apply(a,t.concat(this.config.extensions)),this._extensions.forEach(function(e){var t=!0;if((f.isNullOrUndefined(e)||f.isNullOrUndefined(e.initialize))&&(t=!1),!t)throw Error("Extensions must provide callback to initialize")}),this._extensions.push(this._channelController),this._extensions=this._extensions.sort(function(e,t){var n=e,i=t,r=typeof n.processTelemetry,o=typeof i.processTelemetry;return"function"==r&&"function"==o?n.priority-i.priority:"function"==r&&"function"!=o?1:"function"!=r&&"function"==o?-1:void 0});var o={};this._extensions.forEach(function(e){var t=e;t&&t.priority&&(f.isNullOrUndefined(o[t.priority])?o[t.priority]=t.identifier:r.logger&&r.logger.warnToConsole("Two extensions have same priority"+o[t.priority]+", "+t.identifier))});for(var a,s=-1,c=0;c<this._extensions.length-1;c++){var l=this._extensions[c];if(!l||"function"==typeof l.processTelemetry){if(l.priority===this._channelController.priority){s=c+1;break}this._extensions[c].setNextPlugin(this._extensions[c+1])}}if(this._channelController.initialize(this.config,this,this._extensions),this._extensions.forEach(function(e){e&&e.priority<r._channelController.priority&&e.initialize(r.config,r,r._extensions)}),s<this._extensions.length&&this._extensions.splice(s),0===this.getTransmissionControls().length)throw new Error("No channels available");this._isInitialized=!0},v.prototype.getTransmissionControls=function(){return this._channelController.ChannelControls},v.prototype.track=function(e){e.iKey||(e.iKey=this.config.instrumentationKey),e.time||(e.time=(new Date).toISOString()),f.isNullOrUndefined(e.ver)&&(e.ver="4.0"),0===this._extensions.length&&this._channelController.processTelemetry(e);for(var t=0;t<this._extensions.length;){if(this._extensions[t].processTelemetry){this._extensions[t].processTelemetry(e);break}t++}},v);function v(){this._isInitialized=!1,this._extensions=new Array,this._channelController=new p}var y,w,_=(I.prototype.addNotificationListener=function(e){this.listeners.push(e)},I.prototype.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);-1<t;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},I.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},I.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},I);function I(){this.listeners=[]}(w=y=y||{})[w.CRITICAL=1]="CRITICAL",w[w.WARNING=2]="WARNING";var S=1,T=2,N=3,E=4,x=5,D=6,b=8,k=10,P=11,C=23,A=25,M=29,L=30,U=31,R=32,O=35,z=36,V=37,G=38,j=39,q=45,B=49,W=52,H=56,X=57,K=61,F=62,J=63,Q=64,Y=66,$=68,Z=69,ee=(te.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},te.dataType="MessageData",te.AiNonUserActionablePrefix="AI (Internal): ",te.AiUserActionablePrefix="AI: ",te);function te(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?te.AiUserActionablePrefix:te.AiNonUserActionablePrefix)+e;var r=(t?" message:"+te.sanitizeDiagnosticText(t):"")+(i?" props:"+te.sanitizeDiagnosticText(JSON.stringify(i)):"");this.message+=r}var ne=(ie.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ee(t,n,r,i);if(this.enableDebugExceptions())throw o;if(void 0!==o&&o&&void 0!==o.message){if(r){var a=+o.messageId;(!this._messageLogged[a]||this.consoleLoggingLevel()>=y.WARNING)&&(this.warnToConsole(o.message),this._messageLogged[a]=!0)}else this.consoleLoggingLevel()>=y.WARNING&&this.warnToConsole(o.message);this.logInternalMessage(e,o)}},ie.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},ie.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ie.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,i=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[i]?n=!1:this._messageLogged[i]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var r="Internal events throttle limit per PageView reached for this app.",o=new ee(C,r,!1);this.queue.push(o),this.warnToConsole(r)}}},ie.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ie);function ie(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},f.isNullOrUndefined(e)||(f.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),f.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),f.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),f.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var re;t(oe,re=m),oe.prototype.initialize=function(e,t){this._notificationManager=new _,this.logger=new ne(e),this.config=e,re.prototype.initialize.call(this,e,t,this.logger,this._notificationManager)},oe.prototype.getTransmissionControls=function(){return re.prototype.getTransmissionControls.call(this)},oe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),re.prototype.track.call(this,e)},oe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},oe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},oe.prototype.pollInternalLogs=function(n){var i=this,e=this.config.diagnosticLogInterval;return 0<e||(e=1e4),setInterval(function(){var e=i.logger?i.logger.queue:[];e.forEach(function(e){var t={name:n||"InternalMessageId: "+e.messageId,iKey:i.config.instrumentationKey,time:(new Date).toISOString(),baseType:ee.dataType,baseData:{message:e.message}};i.track(t)}),e.length=0},e)},oe.prototype._validateTelemetryItem=function(e){if(f.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},oe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],l)};function oe(){return re.call(this)||this}var ae=(se.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=se.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;void 0!==n[a];)o++,a=r.substring(0,se.MAX_NAME_LENGTH-3)+se.padNumber(o);r=a}return r},se.sanitizeKey=function(e,t){var n;return t&&(t=se.trim(t.toString())).length>se.MAX_NAME_LENGTH&&(n=t.substring(0,se.MAX_NAME_LENGTH),e.throwInternal(y.WARNING,X,"name is too long. It has been truncated to "+se.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},se.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=se.MAX_STRING_LENGTH),t&&(n=n||se.MAX_STRING_LENGTH,(t=se.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(y.WARNING,K,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},se.sanitizeUrl=function(e,t){return se.sanitizeInput(e,t,se.MAX_URL_LENGTH,Y)},se.sanitizeMessage=function(e,t){var n;return t&&t.length>se.MAX_MESSAGE_LENGTH&&(n=t.substring(0,se.MAX_MESSAGE_LENGTH),e.throwInternal(y.WARNING,H,"message is too long, it has been truncated to "+se.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},se.sanitizeException=function(e,t){var n;return t&&t.length>se.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,se.MAX_EXCEPTION_LENGTH),e.throwInternal(y.WARNING,W,"exception is too long, it has been truncated to "+se.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},se.sanitizeProperties=function(t,e){if(e){var n={};for(var i in e){var r=e[i];if("object"==typeof r&&"undefined"!=typeof JSON)try{r=JSON.stringify(r)}catch(e){t.throwInternal(y.WARNING,B,"custom property is not valid",{exception:e},!0)}r=se.sanitizeString(t,r,se.MAX_PROPERTY_LENGTH),n[i=se.sanitizeKeyAndAddUniqueness(t,i,n)]=r}e=n}return e},se.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=se.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},se.sanitizeId=function(e,t){return t?se.sanitizeInput(e,t,se.MAX_ID_LENGTH,Z).toString():t},se.sanitizeInput=function(e,t,n,i){var r;return t&&(t=se.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(y.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},se.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},se.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},se.MAX_NAME_LENGTH=150,se.MAX_ID_LENGTH=128,se.MAX_PROPERTY_LENGTH=8192,se.MAX_STRING_LENGTH=1024,se.MAX_URL_LENGTH=2048,se.MAX_MESSAGE_LENGTH=32768,se.MAX_EXCEPTION_LENGTH=32768,se);function se(){}var ce=(le.createDomEvent=function(e){var t=null;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},le.disableStorage=function(){le._canUseLocalStorage=!1,le._canUseSessionStorage=!1},le._getLocalStorageObject=function(){return le.canUseLocalStorage()?le._getVerifiedStorageObject(r.LocalStorage):null},le._getVerifiedStorageObject=function(e){var t,n,i=null;try{if("undefined"==typeof window)return null;n=new Date,(i=e===r.LocalStorage?window.localStorage:window.sessionStorage).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(e){i=null}return i},le.isInternalApplicationInsightsEndpoint=function(e){return-1!==le._internalEndpoints.indexOf(e.toLowerCase())},le.canUseLocalStorage=function(){return void 0===le._canUseLocalStorage&&(le._canUseLocalStorage=!!le._getVerifiedStorageObject(r.LocalStorage)),le._canUseLocalStorage},le.getStorage=function(t,e){var n=le._getLocalStorageObject();if(null!==n)try{return n.getItem(e)}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,S,"Browser failed read of local storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return null},le.setStorage=function(t,e,n){var i=le._getLocalStorageObject();if(null!==i)try{return i.setItem(e,n),!0}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,N,"Browser failed write to local storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.removeStorage=function(t,e){var n=le._getLocalStorageObject();if(null!==n)try{return n.removeItem(e),!0}catch(e){le._canUseLocalStorage=!1,t.throwInternal(y.WARNING,x,"Browser failed removal of local storage item. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le._getSessionStorageObject=function(){return le.canUseSessionStorage()?le._getVerifiedStorageObject(r.SessionStorage):null},le.canUseSessionStorage=function(){return void 0===le._canUseSessionStorage&&(le._canUseSessionStorage=!!le._getVerifiedStorageObject(r.SessionStorage)),le._canUseSessionStorage},le.getSessionStorageKeys=function(){var e=[];if(le.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},le.getSessionStorage=function(t,e){var n=le._getSessionStorageObject();if(null!==n)try{return n.getItem(e)}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,T,"Browser failed read of session storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return null},le.setSessionStorage=function(t,e,n){var i=le._getSessionStorageObject();if(null!==i)try{return i.setItem(e,n),!0}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,E,"Browser failed write to session storage. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.removeSessionStorage=function(t,e){var n=le._getSessionStorageObject();if(null!==n)try{return n.removeItem(e),!0}catch(e){le._canUseSessionStorage=!1,t.throwInternal(y.WARNING,D,"Browser failed removal of session storage item. "+le.getExceptionName(e),{exception:le.dump(e)})}return!1},le.disableCookies=function(){f.disableCookies()},le.canUseCookies=function(t){if(void 0===f._canUseCookies){f._canUseCookies=!1;try{f._canUseCookies=void 0!==le.document.cookie}catch(e){t.throwInternal(y.WARNING,$,"Cannot access document.cookie - "+le.getExceptionName(e),{exception:le.dump(e)})}}return f._canUseCookies},le.setCookie=function(e,t,n,i){n+=";SameSite=None";var r="",o="";i&&(r=";domain="+i),le.document.location&&"https:"===le.document.location.protocol&&(o=";secure"),le.canUseCookies(e)&&(le.document.cookie=t+"="+n+r+";path=/"+o)},le.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},le.getCookie=function(e,t){if(le.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=le.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=le.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},le.deleteCookie=function(e,t){le.canUseCookies(e)&&(le.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},le.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},le.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},le.random32=function(){return 4294967296*Math.random()|0},le.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=le.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},le.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},le.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},le.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},le.toISOStringForIE8=function(e){if(le.isDate(e)){if(Date.prototype.toISOString)return e.toISOString();var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},le.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},le.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},le.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},le.dump=function(e){var t=Object.prototype.toString.call(e),n=JSON.stringify(e);return"[object Error]"===t&&(n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+n},le.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},le.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var n="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(n,t)}return!0},le.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},le.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},le.document="undefined"!=typeof document?document:{},le._canUseLocalStorage=void 0,le._canUseSessionStorage=void 0,le._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],le.NotSpecified="not_specified",le);function le(){}var ue=(ge.parseUrl=function(e){return ge.htmlAnchorElement||(ge.htmlAnchorElement=ge.document.createElement?ge.document.createElement("a"):{host:ge.parseHost(e)}),ge.htmlAnchorElement.href=e,ge.htmlAnchorElement},ge.getAbsoluteUrl=function(e){var t,n=ge.parseUrl(e);return n&&(t=n.href),t},ge.getPathName=function(e){var t,n=ge.parseUrl(e);return n&&(t=n.pathname),t},ge.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},ge.parseHost=function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null},ge.document="undefined"!=typeof document?document:{},ge);function ge(){}var fe=(pe.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=ue.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=ae.sanitizeString(e,n?n+" "+c:c)}else o=ae.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},pe);function pe(){}var de=(he.Now="undefined"==typeof window?function(){return(new Date).getTime()}:window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},he.GetDuration=function(e,t){var n=null;return 0===e||0===t||f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||(n=t-e),n},he);function he(){}var me,ve=(t(ye,me=function(){}),ye);function ye(){return me.call(this)||this}var we;t(_e,we=function(){this.ver=1,this.sampleRate=100,this.tags={}});function _e(e,t,n){var i=we.call(this)||this;return i.name=ae.sanitizeString(e,n)||ce.NotSpecified,i.data=t,i.time=ce.toISOStringForIE8(new Date),i.aiDataContract={time:d.Required,iKey:d.Required,name:d.Required,sampleRate:function(){return 100===i.sampleRate?d.Hidden:d.Required},tags:d.Required,data:d.Required},i}function Ie(){}var Se,Te=(t(Ne,Se=Ie),Ne);function Ne(){var e=Se.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ee,xe=(t(De,Ee=Te),De.envelopeType="Microsoft.ApplicationInsights.{0}.Event",De.dataType="EventData",De);function De(e,t,n,i){var r=Ee.call(this)||this;return r.aiDataContract={ver:d.Required,name:d.Required,properties:d.Default,measurements:d.Default},r.name=ae.sanitizeString(e,t)||ce.NotSpecified,r.properties=ae.sanitizeProperties(e,n),r.measurements=ae.sanitizeMeasurements(e,i),r}function be(){}var ke,Pe=(t(Ce,ke=Ie),Ce);function Ce(){var e=ke.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function Ae(){this.hasFullStack=!0,this.parsedStack=[]}var Me,Le=(t(Ue,Me=Pe),Ue.CreateFromInterface=function(t,e){var n=e.exceptions&&e.exceptions.map(function(e){return Oe.CreateFromInterface(t,e)});return new Ue(t,c({},e,{exceptions:n}))},Ue.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},Ue.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Ue.dataType="ExceptionData",Ue);function Ue(e,t,n,i,r,o){var a=Me.call(this)||this;return a.aiDataContract={ver:d.Required,exceptions:d.Required,severityLevel:d.Default,properties:d.Default,measurements:d.Default},t instanceof Error?(a.exceptions=[new Oe(e,t)],a.properties=ae.sanitizeProperties(e,n),a.measurements=ae.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,f.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var Re,Oe=(t(ze,Re=Ae),ze.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&this.parsedStack.map(function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},ze.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return Ge.CreateFromInterface(e)})||t.parsedStack;return new ze(e,c({},t,{parsedStack:n}))},ze.parseStack=function(e){var t;if("string"==typeof e){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Ge.regex.test(a)){var s=new Ge(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,l=t.length-1,u=0,g=c,f=l;c<l;){if(32768<(u+=t[c].sizeInBytes+t[l].sizeInBytes)){var p=f-g+1;t.splice(g,p);break}g=c,f=l,c++,l--}}return t},ze);function ze(e,t){var n=Re.call(this)||this;if(n.aiDataContract={id:d.Default,outerId:d.Default,typeName:d.Required,message:d.Required,hasFullStack:d.Default,stack:d.Default,parsedStack:d.Array},t instanceof Error){n.typeName=ae.sanitizeString(e,t.name)||ce.NotSpecified,n.message=ae.sanitizeMessage(e,t.message)||ce.NotSpecified;var i=t.stack;n.parsedStack=ze.parseStack(i),n.stack=ae.sanitizeException(e,i),n.hasFullStack=ce.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var Ve,Ge=(t(je,Ve=be),je.CreateFromInterface=function(e){return new je(e,null)},je.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},je.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,je.baseSize=58,je);function je(e,t){var n=Ve.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:d.Required,method:d.Required,assembly:d.Default,fileName:d.Default,line:d.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=ce.trim(i),n.fileName="",n.line=0;var r=i.match(je.regex);r&&5<=r.length&&(n.method=ce.trim(r[2])||n.method,n.fileName=ce.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=je.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var qe,Be,We,He=(t(Xe,qe=Ie),Xe);function Xe(){var e=qe.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(We=Be=Be||{})[We.Measurement=0]="Measurement",We[We.Aggregation=1]="Aggregation";var Ke,Fe=(t(Je,Ke=function(){this.kind=Be.Measurement}),Je);function Je(){var e=null!==Ke&&Ke.apply(this,arguments)||this;return e.aiDataContract={name:d.Required,kind:d.Default,value:d.Required,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default},e}var Qe,Ye=(t($e,Qe=He),$e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$e.dataType="MetricData",$e);function $e(e,t,n,i,r,o,a,s){var c=Qe.call(this)||this;c.aiDataContract={ver:d.Required,metrics:d.Required,properties:d.Default};var l=new Fe;return l.count=0<i?i:void 0,l.max=isNaN(o)||null===o?void 0:o,l.min=isNaN(r)||null===r?void 0:r,l.name=ae.sanitizeString(e,t)||ce.NotSpecified,l.value=n,c.metrics=[l],c.properties=ae.sanitizeProperties(e,a),c.measurements=ae.sanitizeMeasurements(e,s),c}var Ze,et=(t(tt,Ze=Te),tt);function tt(){var e=Ze.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var nt,it=(t(rt,nt=et),rt.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",rt.dataType="PageviewData",rt);function rt(e,t,n,i,r,o,a){var s=nt.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,properties:d.Default,measurements:d.Default,id:d.Default},s.id=ae.sanitizeId(e,a),s.url=ae.sanitizeUrl(e,n),s.name=ae.sanitizeString(e,t)||ce.NotSpecified,isNaN(i)||(s.duration=ce.msToTimeSpan(i)),s.properties=ae.sanitizeProperties(e,r),s.measurements=ae.sanitizeMeasurements(e,o),s}var ot,at=(t(st,ot=Ie),st);function st(){var e=ot.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var ct,lt=(t(ut,ct=at),ut.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ut.dataType="RemoteDependencyData",ut);function ut(e,t,n,i,r,o,a,s,c,l,u,g){void 0===c&&(c="Ajax");var f=ct.call(this)||this;f.aiDataContract={id:d.Required,ver:d.Required,name:d.Default,resultCode:d.Default,duration:d.Default,success:d.Default,data:d.Default,target:d.Default,type:d.Default,properties:d.Default,measurements:d.Default,kind:d.Default,value:d.Default,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default,dependencyKind:d.Default,dependencySource:d.Default,commandName:d.Default,dependencyTypeName:d.Default},f.id=t,f.duration=ce.msToTimeSpan(r),f.success=o,f.resultCode=a+"",f.type=ae.sanitizeString(e,c);var p=fe.ParseDependencyPath(e,n,s,i);return f.data=ae.sanitizeUrl(e,i)||p.data,f.target=ae.sanitizeString(e,p.target),l&&(f.target=f.target+" | "+l),f.name=ae.sanitizeString(e,p.name),f.properties=ae.sanitizeProperties(e,u),f.measurements=ae.sanitizeMeasurements(e,g),f}var gt,ft=(t(pt,gt=Ie),pt);function pt(){var e=gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var dt,ht=(t(mt,dt=ft),mt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",mt.dataType="MessageData",mt);function mt(e,t,n,i,r){var o=dt.call(this)||this;return o.aiDataContract={ver:d.Required,message:d.Required,severityLevel:d.Default,properties:d.Default},t=t||ce.NotSpecified,o.message=ae.sanitizeMessage(e,t),o.properties=ae.sanitizeProperties(e,i),o.measurements=ae.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var vt,yt=(t(wt,vt=et),wt);function wt(){var e=vt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _t,It=(t(St,_t=yt),St.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",St.dataType="PageviewPerformanceData",St);function St(e,t,n,i,r,o,a){var s=_t.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,perfTotal:d.Default,networkConnect:d.Default,sentRequest:d.Default,receivedResponse:d.Default,domProcessing:d.Default,properties:d.Default,measurements:d.Default},s.url=ae.sanitizeUrl(e,n),s.name=ae.sanitizeString(e,t)||ce.NotSpecified,s.properties=ae.sanitizeProperties(e,r),s.measurements=ae.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Tt,Nt,Et;t(xt,Tt=ve);function xt(e,t){var n=Tt.call(this)||this;return n.aiDataContract={baseType:d.Required,baseData:d.Required},n.baseType=e,n.baseData=t,n}(Et=Nt=Nt||{})[Et.Verbose=0]="Verbose",Et[Et.Information=1]="Information",Et[Et.Warning=2]="Warning",Et[Et.Error=3]="Error",Et[Et.Critical=4]="Critical";var Dt=(bt.getConfig=function(e,t,n,i){var r;return void 0===i&&(i=!1),r=n&&e.extensionConfig&&e.extensionConfig[n]&&!f.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],f.isNullOrUndefined(r)?i:r},bt);function bt(){}var kt=(Pt.create=function(e,t,n,i,r,o){if(n=ae.sanitizeString(i,n)||ce.NotSpecified,f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||f.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:(new Date).toISOString(),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!f.isNullOrUndefined(r))for(var s in r)r.hasOwnProperty(s)&&(a.data[s]=r[s]);return a},Pt);function Pt(){}var Ct=(At.prototype.trackPageView=function(t,n){var i=this,r=t.name;!f.isNullOrUndefined(r)&&"string"==typeof r||(r=t.name="object"==typeof window&&window.document&&window.document.title||"");var o=t.uri;if(!f.isNullOrUndefined(o)&&"string"==typeof o||(o=t.uri="object"==typeof window&&window.location&&window.location.href||""),!this._pageViewPerformanceManager.isPerformanceTimingSupported())return this.appInsights.sendPageViewInternal(t,n),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),void this._logger.throwInternal(y.WARNING,A,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var a,e,s=!1,c=this._pageViewPerformanceManager.getPerformanceTiming().navigationStart;a=de.GetDuration(c,+new Date),this._pageViewPerformanceManager.shouldCollectDuration(a)||(a=void 0),f.isNullOrUndefined(n)||f.isNullOrUndefined(n.duration)||(e=n.duration),!this.overridePageViewDuration&&isNaN(e)||(isNaN(e)&&((n=n||{}).duration=a),this.appInsights.sendPageViewInternal(t,n),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),s=!0),n=n||{};var l=setInterval(function(){try{if(i._pageViewPerformanceManager.isPerformanceTimingDataReady()){clearInterval(l);var e={name:r,uri:o};i._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),e.isValid||s?(s||(n.duration=e.durationMs,i.appInsights.sendPageViewInternal(t,n)),i.pageViewPerformanceSent||(i.appInsights.sendPageViewPerformanceInternal(e,n),i.pageViewPerformanceSent=!0),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})):(n.duration=a,i.appInsights.sendPageViewInternal(t,n),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}))}else 6e4<de.GetDuration(c,+new Date)&&(clearInterval(l),s||(n.duration=6e4,i.appInsights.sendPageViewInternal(t,n),i._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})))}catch(e){i._logger.throwInternal(y.CRITICAL,G,"trackPageView failed on page load calculation: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},100)},At);function At(e,t,n,i){this.pageViewPerformanceSent=!1,this.overridePageViewDuration=!1,this.overridePageViewDuration=t,this.appInsights=e,this._pageViewPerformanceManager=i,n&&(this._channel=function(){return n.getTransmissionControls()},this._logger=n.logger)}var Mt=(Lt.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ce.dump(e))}},Lt.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(e){return this._logger.warnToConsole("Call to restart failed: "+ce.dump(e)),null}},Lt.prototype.startPageVisitTimer=function(e,t){try{if(ce.canUseSessionStorage()){if(null!=ce.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Ut(e,t),i=JSON.stringify(n);ce.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(e){this._logger.warnToConsole("Call to start failed: "+ce.dump(e))}},Lt.prototype.stopPageVisitTimer=function(){try{if(ce.canUseSessionStorage()){var e=Date.now(),t=ce.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t){var n=JSON.parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,ce.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+ce.dump(e)),null}},Lt);function Lt(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Ut=function(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},Rt=(Ot.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var i=t.duration,r=de.GetDuration(t.startTime,t.connectEnd),o=de.GetDuration(t.requestStart,t.responseStart),a=de.GetDuration(t.responseStart,t.responseEnd),s=de.GetDuration(t.responseEnd,t.loadEventEnd);else i=de.GetDuration(n.navigationStart,n.loadEventEnd),r=de.GetDuration(n.navigationStart,n.connectEnd),o=de.GetDuration(n.requestStart,n.responseStart),a=de.GetDuration(n.responseStart,n.responseEnd),s=de.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(y.WARNING,k,"error calculating page view performance.",{total:i,network:r,request:o,response:a,dom:s}):this.shouldCollectDuration(i,r,o,a,s)?i<Math.floor(r)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(y.WARNING,b,"client performance math error.",{total:i,network:r,request:o,response:a,dom:s}):(e.durationMs=i,e.perfTotal=e.duration=ce.msToTimeSpan(i),e.networkConnect=ce.msToTimeSpan(r),e.sentRequest=ce.msToTimeSpan(o),e.receivedResponse=ce.msToTimeSpan(a),e.domProcessing=ce.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(y.WARNING,q,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:r,request:o,response:a,dom:s})}},Ot.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?window.performance.timing:null},Ot.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?window.performance.getEntriesByType("navigation")[0]:null},Ot.prototype.isPerformanceNavigationTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByType&&0<window.performance.getEntriesByType("navigation").length},Ot.prototype.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},Ot.prototype.isPerformanceTimingDataReady=function(){var e="object"==typeof window&&window.performance.timing;return"object"==typeof window&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Ot.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=navigator.userAgent,r=!1;if(i)for(var o=0;o<n.length;o++)r=r||-1!==i.toLowerCase().indexOf(n[o]);if(r)return!1;for(o=0;o<e.length;o++)if(e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Ot);function Ot(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var zt="duration",Vt=(Gt.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ce.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ce.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ce.stringToBoolOrDefault(e.overridePageViewDuration),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ce.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ce.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ce.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ce.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},Gt.prototype.processTelemetry=function(e){for(var t=!1,n=this._telemetryInitializers.length,i=0;i<n;++i){var r=this._telemetryInitializers[i];if(r)try{if(!1===r.apply(null,[e])){t=!0;break}}catch(e){this._logger.throwInternal(y.CRITICAL,Q,"One of telemetry initializers failed, telemetry item will not be sent: "+ce.getExceptionName(e),{exception:ce.dump(e)},!0)}}t||f.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)},Gt.prototype.setNextPlugin=function(e){this._nextPlugin=e},Gt.prototype.trackEvent=function(e,t){try{var n=kt.create(e,xe.dataType,xe.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.WARNING,j,"trackTrace failed, trace will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this._logger.throwInternal(y.CRITICAL,M,"startTrackEvent failed, event will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(e){this._logger.throwInternal(y.CRITICAL,L,"stopTrackEvent failed, event will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackTrace=function(e,t){try{var n=kt.create(e,ht.dataType,ht.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.WARNING,j,"trackTrace failed, trace will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackMetric=function(e,t){try{var n=kt.create(e,Ye.dataType,Ye.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(y.CRITICAL,z,"trackMetric failed, metric will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,c({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(e){this._logger.throwInternal(y.CRITICAL,V,"trackPageView failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.sendPageViewInternal=function(e,t,n){"undefined"!=typeof document&&(e.refUri=void 0===e.refUri?document.referrer:e.refUri);var i=kt.create(e,it.dataType,it.envelopeType,this._logger,t,n);this.core.track(i),this._trackAjaxAttempts=0},Gt.prototype.sendPageViewPerformanceInternal=function(e,t,n){var i=kt.create(e,It.dataType,It.envelopeType,this._logger,t,n);this.core.track(i)},Gt.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,V,"trackPageViewPerformance failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.startTrackPage=function(e){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),this._pageTracking.start(e)}catch(e){this._logger.throwInternal(y.CRITICAL,U,"startTrackPage failed, page view may not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.stopTrackPage=function(e,t,n,i){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),"string"!=typeof t&&(t="object"==typeof window&&window.location&&window.location.href||""),this._pageTracking.stop(e,t,n,i),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,R,"stopTrackPage failed, page view will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype.sendExceptionInternal=function(e,t,n){var i=new Le(this._logger,e.exception||new Error(ce.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),r=kt.create(i,Le.dataType,Le.envelopeType,this._logger,t,n);this.core.track(r)},Gt.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this._logger.throwInternal(y.CRITICAL,O,"trackException failed, exception will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e)})}},Gt.prototype._onerror=function(t){try{var e={url:t&&t.url||document.URL,lineNumber:t.lineNumber,columnNumber:t.columnNumber,message:t.message};if(ce.isCrossOriginError(t.message,t.url,t.lineNumber,t.columnNumber,t.error))this._sendCORSException(e.url);else{if(!ce.isError(t.error)){var n="window.onerror@"+e.url+":"+t.lineNumber+":"+(t.columnNumber||0);t.error=new Error(t.message),t.error.stack=n}this.trackException({exception:t.error,severityLevel:Nt.Error},e)}}catch(e){var i=t.error?t.error.name+", "+t.error.message:"null";this._logger.throwInternal(y.CRITICAL,P,"_onError threw exception while logging error, error will not be collected: "+ce.getExceptionName(e),{exception:ce.dump(e),errorString:i})}},Gt.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Gt.prototype._initialize=function(e,t,n){var a=this;if(!this._isInitialized){if(f.isNullOrUndefined(t))throw Error("Error initializing");this.core=t,this._logger=t.logger,this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{};var i=Gt.getDefaultConfig();if(void 0!==i){for(var r in i)this.config[r]=Dt.getConfig(e,r,this.identifier,i[r]);if(this._globalconfig)for(var r in i)void 0===this._globalconfig[r]&&(this._globalconfig[r]=i[r])}this.config.isCookieUseDisabled&&ce.disableCookies(),this.config.isStorageUseDisabled&&ce.disableStorage();var o={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return a.config.accountId||e.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||e.appId}};this._pageViewPerformanceManager=new Rt(this.core),this._pageViewManager=new Ct(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Mt(this._logger,function(e,t,n){return a.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=[],this._addDefaultTelemetryInitializers(o),this._eventTracking=new jt(this._logger,"trackEvent"),this._eventTracking.action=function(e,t,n,i){(i=i||{})[zt]=n.toString(),a.trackEvent({name:e,properties:i})},this._pageTracking=new jt(this._logger,"trackPageView"),this._pageTracking.action=function(e,t,n,i,r){f.isNullOrUndefined(i)&&(i={}),i[zt]=n.toString();var o={name:e,uri:t,properties:i,measurements:r};a.sendPageViewInternal(o)};var s,c,l=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&"object"==typeof window){var u=window.onerror;window.onerror=function(e,t,n,i,r){var o=u&&u(e,t,n,i,r);return!0!==o&&l._onerror({message:e,url:t,lineNumber:n,columnNumber:i,error:r}),o},this.config.autoExceptionInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&"object"==typeof history&&"function"==typeof history.pushState&&"function"==typeof history.replaceState&&"object"==typeof window&&"undefined"!=typeof Event){var g=this;n.forEach(function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)}),history.pushState=(c=history.pushState,function(){var e=c.apply(this,arguments);return window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"pushState")),window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange")),e}),history.replaceState=(s=history.replaceState,function(){var e=s.apply(this,arguments);return window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"replaceState")),window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange")),e}),window.addEventListener(g.config.namePrefix+"popstate",function(){window.dispatchEvent(ce.createDomEvent(g.config.namePrefix+"locationchange"))}),window.addEventListener(g.config.namePrefix+"locationchange",function(){g._properties&&g._properties.context&&g._properties.context.telemetryTrace&&(g._properties.context.telemetryTrace.traceID=ce.generateW3CId(),g._properties.context.telemetryTrace.name=window.location&&window.location.pathname||"_unknown_"),a._currUri&&(a._prevUri=a._currUri),a._currUri=window.location&&window.location.href||"",setTimeout(function(e){g.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),g.autoRoutePVDelay)})}this._isInitialized=!0}},Gt.prototype.trackPageVisitTime=function(e,t,n){var i={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},i)},Gt.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var i=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer(function(e){if(e.baseType===lt.dataType){var t=e.baseData;if(t)for(var n=0;n<i.length;n++)if(t.target&&0<=t.target.indexOf(i[n]))return!1}return!0})}},Gt.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},Gt.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=kt.create(t,Le.dataType,Le.envelopeType,this._logger,{url:e});this.core.track(n)},Gt.Version="2.3.0",Gt);function Gt(){this.identifier="ApplicationInsightsAnalytics",this.priority=180,this.autoRoutePVDelay=500,this._isInitialized=!1,this._trackAjaxAttempts=0,this._prevUri="object"==typeof window&&window.location&&window.location.href||"",this.initialize=this._initialize.bind(this)}var jt=(qt.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(y.WARNING,F,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},qt.prototype.stop=function(e,t,n,i){var r=this._events[e];if(isNaN(r))this._logger.throwInternal(y.WARNING,J,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=de.GetDuration(r,o);this.action(e,t,a,n,i)}delete this._events[e],this._events[e]=void 0},qt);function qt(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=Vt,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o,n,d,r,a,s,c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};(n=o=o||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",(r=d=d||{})[r.Default=0]="Default",r[r.Required=1]="Required",r[r.Array=2]="Array",r[r.Hidden=4]="Hidden",(s=a=a||{})[s.AI=0]="AI",s[s.AI_AND_W3C=1]="AI_AND_W3C",s[s.W3C=2]="W3C";var l=2,u="prototype",f=(g.isNullOrUndefined=function(e){return null===e||e===undefined},g.isDate=function(e){return"[object Date]"===Object[u].toString.call(e)},g.disableCookies=function(){g._canUseCookies=!1},g.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(p,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},g.toISOString=function(e){if(g.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},g.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},g.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},g.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},g.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},g.objCreate=function(e){if(null==e)return{};var t=typeof e;if("object"!=t&&"function"!=t)throw new TypeError("Object prototype may only be an Object: "+e);function n(){}return n[u]=e,new n},g.objKeys=function(e){var t=Object[u].hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),i=typeof e;if("function"!=i&&("object"!=i||null===e))throw new TypeError("objKeys called on non-object");var r=[];for(var o in e)t.call(e,o)&&r.push(o);if(n)for(var a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=a.length,c=0;c<s;c++)t.call(e,a[c])&&r.push(a[c]);return r},g.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},g);function g(){}var p=/[xy]/g,h=(m.prototype.processTelemetry=function(t){f.arrForEach(this.channelQueue,function(e){0<e.length&&e[0].processTelemetry(t)})},m.prototype.getChannelControls=function(){return this.channelQueue},m.prototype.initialize=function(n,i,r){var o,a=this;n.isCookieUseDisabled&&f.disableCookies(),this.channelQueue=new Array,n.channels&&f.arrForEach(n.channels,function(e){if(e&&0<e.length){e=e.sort(function(e,t){return e.priority-t.priority});for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);if(f.arrForEach(e,function(e){e.priority<500&&(o=e.identifier),e.initialize(n,i,r)}),o)throw Error("Channel has invalid priority"+o);a.channelQueue.push(e)}});for(var e=new Array,t=0;t<r.length;t++){var s=r[t];500<s.priority&&e.push(s)}if(0<e.length){for(e=e.sort(function(e,t){return e.priority-t.priority}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);f.arrForEach(e,function(e){return e.initialize(n,i,r)}),this.channelQueue.push(e)}},m._staticInit=void f.objDefineAccessors(m.prototype,"ChannelControls",m.prototype.getChannelControls),m);function m(){this.identifier="ChannelControllerPlugin",this.priority=500}var v=(y.prototype.initialize=function(e,t,n,i){var r=this;if(this._isInitialized)throw Error("Core should not be initialized more than once");if(!e||f.isNullOrUndefined(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e,this._notificationManager=i,this._notificationManager||(this._notificationManager=f.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this.config.extensions=f.isNullOrUndefined(this.config.extensions)?[]:this.config.extensions,this.config.extensionConfig=f.isNullOrUndefined(this.config.extensionConfig)?{}:this.config.extensionConfig,this._notificationManager&&(this.config.extensionConfig.NotificationManager=this._notificationManager),this.logger=n,this.logger||(this.logger=f.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),(a=this._extensions).push.apply(a,t.concat(this.config.extensions)),f.arrForEach(this._extensions,function(e){var t=!0;if((f.isNullOrUndefined(e)||f.isNullOrUndefined(e.initialize))&&(t=!1),!t)throw Error("Extensions must provide callback to initialize")}),this._extensions.push(this._channelController),this._extensions=this._extensions.sort(function(e,t){var n=e,i=t,r=typeof n.processTelemetry,o=typeof i.processTelemetry;return"function"==r&&"function"==o?n.priority-i.priority:"function"==r&&"function"!=o?1:"function"!=r&&"function"==o?-1:void 0});var o={};f.arrForEach(this._extensions,function(e){var t=e;t&&t.priority&&(f.isNullOrUndefined(o[t.priority])?o[t.priority]=t.identifier:r.logger&&r.logger.warnToConsole("Two extensions have same priority"+o[t.priority]+", "+t.identifier))});for(var a,s=-1,c=0;c<this._extensions.length-1;c++){var l=this._extensions[c];if(!l||"function"==typeof l.processTelemetry){if(l.priority===this._channelController.priority){s=c+1;break}this._extensions[c].setNextPlugin(this._extensions[c+1])}}if(this._channelController.initialize(this.config,this,this._extensions),f.arrForEach(this._extensions,function(e){e&&e.priority<r._channelController.priority&&e.initialize(r.config,r,r._extensions)}),s<this._extensions.length&&this._extensions.splice(s),0===this.getTransmissionControls().length)throw new Error("No channels available");this._isInitialized=!0},y.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},y.prototype.track=function(e){e.iKey||(e.iKey=this.config.instrumentationKey),e.time||(e.time=f.toISOString(new Date)),f.isNullOrUndefined(e.ver)&&(e.ver="4.0"),0===this._extensions.length&&this._channelController.processTelemetry(e);for(var t=0;t<this._extensions.length;){if(this._extensions[t].processTelemetry){this._extensions[t].processTelemetry(e);break}t++}},y);function y(){this._isInitialized=!1,this._extensions=new Array,this._channelController=new h}var w,_,I=(S.prototype.addNotificationListener=function(e){this.listeners.push(e)},S.prototype.removeNotificationListener=function(e){for(var t=f.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=f.arrIndexOf(this.listeners,e)},S.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},S.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},S);function S(){this.listeners=[]}(_=w=w||{})[_.CRITICAL=1]="CRITICAL",_[_.WARNING=2]="WARNING";var T=1,N=2,E=3,x=4,b=5,D=6,k=8,C=10,P=11,A=23,M=25,L=29,U=30,O=31,R=32,z=35,V=36,G=37,j=38,q=39,B=45,F=49,W=52,H=56,X=57,K=61,J=62,Q=63,Y=64,$=66,Z=68,ee=69,te=(ne.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},ne.dataType="MessageData",ne.AiNonUserActionablePrefix="AI (Internal): ",ne.AiUserActionablePrefix="AI: ",ne);function ne(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?ne.AiUserActionablePrefix:ne.AiNonUserActionablePrefix)+e;var r=(t?" message:"+ne.sanitizeDiagnosticText(t):"")+(i?" props:"+ne.sanitizeDiagnosticText(JSON.stringify(i)):"");this.message+=r}var ie=(re.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new te(t,n,r,i);if(this.enableDebugExceptions())throw o;if(void 0!==o&&o&&"undefined"!=typeof o.message){if(r){var a=+o.messageId;(!this._messageLogged[a]||this.consoleLoggingLevel()>=w.WARNING)&&(this.warnToConsole(o.message),this._messageLogged[a]=!0)}else this.consoleLoggingLevel()>=w.WARNING&&this.warnToConsole(o.message);this.logInternalMessage(e,o)}},re.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},re.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},re.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,i=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[i]?n=!1:this._messageLogged[i]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var r="Internal events throttle limit per PageView reached for this app.",o=new te(A,r,!1);this.queue.push(o),this.warnToConsole(r)}}},re.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},re);function re(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},f.isNullOrUndefined(e)||(f.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),f.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),f.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),f.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var oe;t(ae,oe=v),ae.prototype.initialize=function(e,t){this._notificationManager=new I,this.logger=new ie(e),this.config=e,oe.prototype.initialize.call(this,e,t,this.logger,this._notificationManager)},ae.prototype.getTransmissionControls=function(){return oe.prototype.getTransmissionControls.call(this)},ae.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),oe.prototype.track.call(this,e)},ae.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},ae.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},ae.prototype.pollInternalLogs=function(n){var i=this,e=this.config.diagnosticLogInterval;return 0<e||(e=1e4),setInterval(function(){var e=i.logger?i.logger.queue:[];f.arrForEach(e,function(e){var t={name:n||"InternalMessageId: "+e.messageId,iKey:i.config.instrumentationKey,time:f.toISOString(new Date),baseType:te.dataType,baseData:{message:e.message}};i.track(t)}),e.length=0},e)},ae.prototype._validateTelemetryItem=function(e){if(f.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},ae.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],l)};function ae(){return oe.call(this)||this}var se=(ce.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=ce.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,ce.MAX_NAME_LENGTH-3)+ce.padNumber(o);r=a}return r},ce.sanitizeKey=function(e,t){var n;return t&&(t=ce.trim(t.toString())).length>ce.MAX_NAME_LENGTH&&(n=t.substring(0,ce.MAX_NAME_LENGTH),e.throwInternal(w.WARNING,X,"name is too long. It has been truncated to "+ce.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},ce.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=ce.MAX_STRING_LENGTH),t&&(n=n||ce.MAX_STRING_LENGTH,(t=ce.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(w.WARNING,K,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},ce.sanitizeUrl=function(e,t){return ce.sanitizeInput(e,t,ce.MAX_URL_LENGTH,$)},ce.sanitizeMessage=function(e,t){var n;return t&&t.length>ce.MAX_MESSAGE_LENGTH&&(n=t.substring(0,ce.MAX_MESSAGE_LENGTH),e.throwInternal(w.WARNING,H,"message is too long, it has been truncated to "+ce.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},ce.sanitizeException=function(e,t){var n;return t&&t.length>ce.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,ce.MAX_EXCEPTION_LENGTH),e.throwInternal(w.WARNING,W,"exception is too long, it has been truncated to "+ce.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},ce.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if("object"==typeof r&&"undefined"!=typeof JSON)try{r=JSON.stringify(r)}catch(o){e.throwInternal(w.WARNING,F,"custom property is not valid",{exception:o},!0)}r=ce.sanitizeString(e,r,ce.MAX_PROPERTY_LENGTH),n[i=ce.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},ce.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=ce.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},ce.sanitizeId=function(e,t){return t?ce.sanitizeInput(e,t,ce.MAX_ID_LENGTH,ee).toString():t},ce.sanitizeInput=function(e,t,n,i){var r;return t&&(t=ce.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(w.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},ce.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},ce.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},ce.MAX_NAME_LENGTH=150,ce.MAX_ID_LENGTH=128,ce.MAX_PROPERTY_LENGTH=8192,ce.MAX_STRING_LENGTH=1024,ce.MAX_URL_LENGTH=2048,ce.MAX_MESSAGE_LENGTH=32768,ce.MAX_EXCEPTION_LENGTH=32768,ce);function ce(){}var le="prototype",ue=(ge.createDomEvent=function(e){var t=null;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},ge.disableStorage=function(){ge._canUseLocalStorage=!1,ge._canUseSessionStorage=!1},ge._getLocalStorageObject=function(){return ge.canUseLocalStorage()?ge._getVerifiedStorageObject(o.LocalStorage):null},ge._getVerifiedStorageObject=function(e){var t,n,i=null;try{if("undefined"==typeof window)return null;n=new Date,(i=e===o.LocalStorage?window.localStorage:window.sessionStorage).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},ge.isInternalApplicationInsightsEndpoint=function(e){return-1!==ge._internalEndpoints.indexOf(e.toLowerCase())},ge.canUseLocalStorage=function(){return ge._canUseLocalStorage===undefined&&(ge._canUseLocalStorage=!!ge._getVerifiedStorageObject(o.LocalStorage)),ge._canUseLocalStorage},ge.getStorage=function(e,t){var n=ge._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,T,"Browser failed read of local storage. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return null},ge.setStorage=function(e,t,n){var i=ge._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,E,"Browser failed write to local storage. "+ge.getExceptionName(r),{exception:ge.dump(r)})}return!1},ge.removeStorage=function(e,t){var n=ge._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){ge._canUseLocalStorage=!1,e.throwInternal(w.WARNING,b,"Browser failed removal of local storage item. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return!1},ge._getSessionStorageObject=function(){return ge.canUseSessionStorage()?ge._getVerifiedStorageObject(o.SessionStorage):null},ge.canUseSessionStorage=function(){return ge._canUseSessionStorage===undefined&&(ge._canUseSessionStorage=!!ge._getVerifiedStorageObject(o.SessionStorage)),ge._canUseSessionStorage},ge.getSessionStorageKeys=function(){var e=[];if(ge.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},ge.getSessionStorage=function(e,t){var n=ge._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,N,"Browser failed read of session storage. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return null},ge.setSessionStorage=function(e,t,n){var i=ge._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,x,"Browser failed write to session storage. "+ge.getExceptionName(r),{exception:ge.dump(r)})}return!1},ge.removeSessionStorage=function(e,t){var n=ge._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){ge._canUseSessionStorage=!1,e.throwInternal(w.WARNING,D,"Browser failed removal of session storage item. "+ge.getExceptionName(i),{exception:ge.dump(i)})}return!1},ge.disableCookies=function(){f.disableCookies()},ge.canUseCookies=function(e){if(f._canUseCookies===undefined){f._canUseCookies=!1;try{f._canUseCookies=ge.document.cookie!==undefined}catch(t){e.throwInternal(w.WARNING,Z,"Cannot access document.cookie - "+ge.getExceptionName(t),{exception:ge.dump(t)})}}return f._canUseCookies},ge.setCookie=function(e,t,n,i){n+=";SameSite=None";var r="",o="";i&&(r=";domain="+i),ge.document.location&&"https:"===ge.document.location.protocol&&(o=";secure"),ge.canUseCookies(e)&&(ge.document.cookie=t+"="+n+r+";path=/"+o)},ge.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},ge.getCookie=function(e,t){if(ge.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=ge.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=ge.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},ge.deleteCookie=function(e,t){ge.canUseCookies(e)&&(ge.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},ge.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},ge.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},ge.random32=function(){return 4294967296*Math.random()|0},ge.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=ge.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},ge.isArray=function(e){return"[object Array]"===Object[le].toString.call(e)},ge.isError=function(e){return"[object Error]"===Object[le].toString.call(e)},ge.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},ge.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},ge.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},ge.dump=function(e){var t=Object[le].toString.call(e),n=JSON.stringify(e);return"[object Error]"===t&&(n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+n},ge.getExceptionName=function(e){return"[object Error]"===Object[le].toString.call(e)?e.name:""},ge.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var n="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(n,t)}return!0},ge.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},ge.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},ge.document="undefined"!=typeof document?document:{},ge._canUseLocalStorage=undefined,ge._canUseSessionStorage=undefined,ge._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],ge.NotSpecified="not_specified",ge.isDate=f.isDate,ge.toISOStringForIE8=f.toISOString,ge);function ge(){}var fe=(pe.parseUrl=function(e){return pe.htmlAnchorElement||(pe.htmlAnchorElement=pe.document.createElement?pe.document.createElement("a"):{host:pe.parseHost(e)}),pe.htmlAnchorElement.href=e,pe.htmlAnchorElement},pe.getAbsoluteUrl=function(e){var t,n=pe.parseUrl(e);return n&&(t=n.href),t},pe.getPathName=function(e){var t,n=pe.parseUrl(e);return n&&(t=n.pathname),t},pe.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},pe.parseHost=function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&2<t.length&&"string"==typeof t[2]&&0<t[2].length?t[2]:null},pe.document="undefined"!=typeof document?document:{},pe);function pe(){}var de=(he.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=fe.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=se.sanitizeString(e,n?n+" "+c:c)}else o=se.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},he);function he(){}var me=(ve.Now="undefined"==typeof window?function(){return(new Date).getTime()}:window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},ve.GetDuration=function(e,t){var n=null;return 0===e||0===t||f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||(n=t-e),n},ve);function ve(){}var ye,we=(t(_e,ye=function Wt(){}),_e);function _e(){return ye.call(this)||this}var Ie;t(Se,Ie=function Ht(){this.ver=1,this.sampleRate=100,this.tags={}});function Se(e,t,n){var i=Ie.call(this)||this;return i.name=se.sanitizeString(e,n)||ue.NotSpecified,i.data=t,i.time=f.toISOString(new Date),i.aiDataContract={time:d.Required,iKey:d.Required,name:d.Required,sampleRate:function(){return 100===i.sampleRate?d.Hidden:d.Required},tags:d.Required,data:d.Required},i}var Te,Ne=function Xt(){},Ee=(t(xe,Te=Ne),xe);function xe(){var e=Te.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var be,De=(t(ke,be=Ee),ke.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ke.dataType="EventData",ke);function ke(e,t,n,i){var r=be.call(this)||this;return r.aiDataContract={ver:d.Required,name:d.Required,properties:d.Default,measurements:d.Default},r.name=se.sanitizeString(e,t)||ue.NotSpecified,r.properties=se.sanitizeProperties(e,n),r.measurements=se.sanitizeMeasurements(e,i),r}var Ce,Pe=function Kt(){},Ae=(t(Me,Ce=Ne),Me);function Me(){var e=Ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Le,Ue=function Jt(){this.hasFullStack=!0,this.parsedStack=[]},Oe=(t(Re,Le=Ae),Re.CreateFromInterface=function(t,e){var n=e.exceptions&&f.arrMap(e.exceptions,function(e){return Ve.CreateFromInterface(t,e)});return new Re(t,c({},e,{exceptions:n}))},Re.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&f.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},Re.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},Re.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Re.dataType="ExceptionData",Re);function Re(e,t,n,i,r,o){var a=Le.call(this)||this;return a.aiDataContract={ver:d.Required,exceptions:d.Required,severityLevel:d.Default,properties:d.Default,measurements:d.Default},t instanceof Error?(a.exceptions=[new Ve(e,t)],a.properties=se.sanitizeProperties(e,n),a.measurements=se.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,f.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var ze,Ve=(t(Ge,ze=Ue),Ge.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&f.arrMap(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||undefined}},Ge.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&f.arrMap(t.parsedStack,function(e){return qe.CreateFromInterface(e)})||t.parsedStack;return new Ge(e,c({},t,{parsedStack:n}))},Ge.parseStack=function(e){var t;if("string"==typeof e){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(qe.regex.test(a)){var s=new qe(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,l=t.length-1,u=0,g=c,f=l;c<l;){if(32768<(u+=t[c].sizeInBytes+t[l].sizeInBytes)){var p=f-g+1;t.splice(g,p);break}g=c,f=l,c++,l--}}return t},Ge);function Ge(e,t){var n=ze.call(this)||this;if(n.aiDataContract={id:d.Default,outerId:d.Default,typeName:d.Required,message:d.Required,hasFullStack:d.Default,stack:d.Default,parsedStack:d.Array},t instanceof Error){n.typeName=se.sanitizeString(e,t.name)||ue.NotSpecified,n.message=se.sanitizeMessage(e,t.message)||ue.NotSpecified;var i=t.stack;n.parsedStack=Ge.parseStack(i),n.stack=se.sanitizeException(e,i),n.hasFullStack=ue.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var je,qe=(t(Be,je=Pe),Be.CreateFromInterface=function(e){return new Be(e,null)},Be.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Be.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,Be.baseSize=58,Be);function Be(e,t){var n=je.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:d.Required,method:d.Required,assembly:d.Default,fileName:d.Default,line:d.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=ue.trim(i),n.fileName="",n.line=0;var r=i.match(Be.regex);r&&5<=r.length&&(n.method=ue.trim(r[2])||n.method,n.fileName=ue.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=Be.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Fe,We,He,Xe=(t(Ke,Fe=Ne),Ke);function Ke(){var e=Fe.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(He=We=We||{})[He.Measurement=0]="Measurement",He[He.Aggregation=1]="Aggregation";var Je,Qe=(t(Ye,Je=function Qt(){this.kind=We.Measurement}),Ye);function Ye(){var e=null!==Je&&Je.apply(this,arguments)||this;return e.aiDataContract={name:d.Required,kind:d.Default,value:d.Required,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default},e}var $e,Ze=(t(et,$e=Xe),et.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",et.dataType="MetricData",et);function et(e,t,n,i,r,o,a,s){var c=$e.call(this)||this;c.aiDataContract={ver:d.Required,metrics:d.Required,properties:d.Default};var l=new Qe;return l.count=0<i?i:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(r)||null===r?undefined:r,l.name=se.sanitizeString(e,t)||ue.NotSpecified,l.value=n,c.metrics=[l],c.properties=se.sanitizeProperties(e,a),c.measurements=se.sanitizeMeasurements(e,s),c}var tt,nt=(t(it,tt=Ee),it);function it(){var e=tt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rt,ot=(t(at,rt=nt),at.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",at.dataType="PageviewData",at);function at(e,t,n,i,r,o,a){var s=rt.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,properties:d.Default,measurements:d.Default,id:d.Default},s.id=se.sanitizeId(e,a),s.url=se.sanitizeUrl(e,n),s.name=se.sanitizeString(e,t)||ue.NotSpecified,isNaN(i)||(s.duration=ue.msToTimeSpan(i)),s.properties=se.sanitizeProperties(e,r),s.measurements=se.sanitizeMeasurements(e,o),s}var st,ct=(t(lt,st=Ne),lt);function lt(){var e=st.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var ut,gt=(t(ft,ut=ct),ft.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ft.dataType="RemoteDependencyData",ft);function ft(e,t,n,i,r,o,a,s,c,l,u,g){void 0===c&&(c="Ajax");var f=ut.call(this)||this;f.aiDataContract={id:d.Required,ver:d.Required,name:d.Default,resultCode:d.Default,duration:d.Default,success:d.Default,data:d.Default,target:d.Default,type:d.Default,properties:d.Default,measurements:d.Default,kind:d.Default,value:d.Default,count:d.Default,min:d.Default,max:d.Default,stdDev:d.Default,dependencyKind:d.Default,dependencySource:d.Default,commandName:d.Default,dependencyTypeName:d.Default},f.id=t,f.duration=ue.msToTimeSpan(r),f.success=o,f.resultCode=a+"",f.type=se.sanitizeString(e,c);var p=de.ParseDependencyPath(e,n,s,i);return f.data=se.sanitizeUrl(e,i)||p.data,f.target=se.sanitizeString(e,p.target),l&&(f.target=f.target+" | "+l),f.name=se.sanitizeString(e,p.name),f.properties=se.sanitizeProperties(e,u),f.measurements=se.sanitizeMeasurements(e,g),f}var pt,dt=(t(ht,pt=Ne),ht);function ht(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt,vt=(t(yt,mt=dt),yt.envelopeType="Microsoft.ApplicationInsights.{0}.Message",yt.dataType="MessageData",yt);function yt(e,t,n,i,r){var o=mt.call(this)||this;return o.aiDataContract={ver:d.Required,message:d.Required,severityLevel:d.Default,properties:d.Default},t=t||ue.NotSpecified,o.message=se.sanitizeMessage(e,t),o.properties=se.sanitizeProperties(e,i),o.measurements=se.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var wt,_t=(t(It,wt=nt),It);function It(){var e=wt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var St,Tt=(t(Nt,St=_t),Nt.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Nt.dataType="PageviewPerformanceData",Nt);function Nt(e,t,n,i,r,o,a){var s=St.call(this)||this;return s.aiDataContract={ver:d.Required,name:d.Default,url:d.Default,duration:d.Default,perfTotal:d.Default,networkConnect:d.Default,sentRequest:d.Default,receivedResponse:d.Default,domProcessing:d.Default,properties:d.Default,measurements:d.Default},s.url=se.sanitizeUrl(e,n),s.name=se.sanitizeString(e,t)||ue.NotSpecified,s.properties=se.sanitizeProperties(e,r),s.measurements=se.sanitizeMeasurements(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}var Et,xt,bt;t(Dt,Et=we);function Dt(e,t){var n=Et.call(this)||this;return n.aiDataContract={baseType:d.Required,baseData:d.Required},n.baseType=e,n.baseData=t,n}(bt=xt=xt||{})[bt.Verbose=0]="Verbose",bt[bt.Information=1]="Information",bt[bt.Warning=2]="Warning",bt[bt.Error=3]="Error",bt[bt.Critical=4]="Critical";var kt=(Ct.getConfig=function(e,t,n,i){var r;return void 0===i&&(i=!1),r=n&&e.extensionConfig&&e.extensionConfig[n]&&!f.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],f.isNullOrUndefined(r)?i:r},Ct);function Ct(){}var Pt=(At.create=function(e,t,n,i,r,o){if(n=se.sanitizeString(i,n)||ue.NotSpecified,f.isNullOrUndefined(e)||f.isNullOrUndefined(t)||f.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:f.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!f.isNullOrUndefined(r))for(var s in r)r.hasOwnProperty(s)&&(a.data[s]=r[s]);return a},At);function At(){}var Mt=(Lt.prototype.trackPageView=function(n,i){var r=this,o=n.name;!f.isNullOrUndefined(o)&&"string"==typeof o||(o=n.name="object"==typeof window&&window.document&&window.document.title||"");var a=n.uri;if(!f.isNullOrUndefined(a)&&"string"==typeof a||(a=n.uri="object"==typeof window&&window.location&&window.location.href||""),!this._pageViewPerformanceManager.isPerformanceTimingSupported())return this.appInsights.sendPageViewInternal(n,i),f.arrForEach(this._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}),void this._logger.throwInternal(w.WARNING,M,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,e,c=!1,l=this._pageViewPerformanceManager.getPerformanceTiming().navigationStart;s=me.GetDuration(l,+new Date),this._pageViewPerformanceManager.shouldCollectDuration(s)||(s=undefined),f.isNullOrUndefined(i)||f.isNullOrUndefined(i.duration)||(e=i.duration),!this.overridePageViewDuration&&isNaN(e)||(isNaN(e)&&((i=i||{}).duration=s),this.appInsights.sendPageViewInternal(n,i),f.arrForEach(this._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}),c=!0),i=i||{};var u=setInterval(function(){try{if(r._pageViewPerformanceManager.isPerformanceTimingDataReady()){clearInterval(u);var e={name:o,uri:a};r._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,r.appInsights.sendPageViewInternal(n,i)),r.pageViewPerformanceSent||(r.appInsights.sendPageViewPerformanceInternal(e,i),r.pageViewPerformanceSent=!0),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})})):(i.duration=s,r.appInsights.sendPageViewInternal(n,i),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})}))}else 6e4<me.GetDuration(l,+new Date)&&(clearInterval(u),c||(i.duration=6e4,r.appInsights.sendPageViewInternal(n,i),f.arrForEach(r._channel(),function(e){f.arrForEach(e,function(e){return e.flush(!0)})})))}catch(t){r._logger.throwInternal(w.CRITICAL,j,"trackPageView failed on page load calculation: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},100)},Lt);function Lt(e,t,n,i){this.pageViewPerformanceSent=!1,this.overridePageViewDuration=!1,this.overridePageViewDuration=t,this.appInsights=e,this._pageViewPerformanceManager=i,n&&(this._channel=function(){return n.getTransmissionControls()},this._logger=n.logger)}var Ut=(Ot.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(i){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ue.dump(i))}},Ot.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(i){return this._logger.warnToConsole("Call to restart failed: "+ue.dump(i)),null}},Ot.prototype.startPageVisitTimer=function(e,t){try{if(ue.canUseSessionStorage()){if(null!=ue.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Rt(e,t),i=JSON.stringify(n);ue.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(r){this._logger.warnToConsole("Call to start failed: "+ue.dump(r))}},Ot.prototype.stopPageVisitTimer=function(){try{if(ue.canUseSessionStorage()){var e=Date.now(),t=ue.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t){var n=JSON.parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,ue.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(i){return this._logger.warnToConsole("Stop page visit timer failed: "+ue.dump(i)),null}},Ot);function Ot(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Rt=function Yt(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},zt=(Vt.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var i=t.duration,r=me.GetDuration(t.startTime,t.connectEnd),o=me.GetDuration(t.requestStart,t.responseStart),a=me.GetDuration(t.responseStart,t.responseEnd),s=me.GetDuration(t.responseEnd,t.loadEventEnd);else i=me.GetDuration(n.navigationStart,n.loadEventEnd),r=me.GetDuration(n.navigationStart,n.connectEnd),o=me.GetDuration(n.requestStart,n.responseStart),a=me.GetDuration(n.responseStart,n.responseEnd),s=me.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(w.WARNING,C,"error calculating page view performance.",{total:i,network:r,request:o,response:a,dom:s}):this.shouldCollectDuration(i,r,o,a,s)?i<Math.floor(r)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(w.WARNING,k,"client performance math error.",{total:i,network:r,request:o,response:a,dom:s}):(e.durationMs=i,e.perfTotal=e.duration=ue.msToTimeSpan(i),e.networkConnect=ue.msToTimeSpan(r),e.sentRequest=ue.msToTimeSpan(o),e.receivedResponse=ue.msToTimeSpan(a),e.domProcessing=ue.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(w.WARNING,B,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:r,request:o,response:a,dom:s})}},Vt.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?window.performance.timing:null},Vt.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?window.performance.getEntriesByType("navigation")[0]:null},Vt.prototype.isPerformanceNavigationTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByType&&0<window.performance.getEntriesByType("navigation").length},Vt.prototype.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},Vt.prototype.isPerformanceTimingDataReady=function(){var e="object"==typeof window&&window.performance.timing;return"object"==typeof window&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},Vt.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=navigator.userAgent,r=!1;if(i)for(var o=0;o<n.length;o++)r=r||-1!==i.toLowerCase().indexOf(n[o]);if(r)return!1;for(o=0;o<e.length;o++)if(e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},Vt);function Vt(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Gt="duration",jt=(qt.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ue.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ue.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ue.stringToBoolOrDefault(e.overridePageViewDuration),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ue.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ue.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ue.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ue.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},qt.prototype.processTelemetry=function(e){for(var t=!1,n=this._telemetryInitializers.length,i=0;i<n;++i){var r=this._telemetryInitializers[i];if(r)try{if(!1===r.apply(null,[e])){t=!0;break}}catch(o){this._logger.throwInternal(w.CRITICAL,Y,"One of telemetry initializers failed, telemetry item will not be sent: "+ue.getExceptionName(o),{exception:ue.dump(o)},!0)}}t||f.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)},qt.prototype.setNextPlugin=function(e){this._nextPlugin=e},qt.prototype.trackEvent=function(e,t){try{var n=Pt.create(e,De.dataType,De.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.WARNING,q,"trackTrace failed, trace will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this._logger.throwInternal(w.CRITICAL,L,"startTrackEvent failed, event will not be collected: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},qt.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,undefined,t)}catch(i){this._logger.throwInternal(w.CRITICAL,U,"stopTrackEvent failed, event will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackTrace=function(e,t){try{var n=Pt.create(e,vt.dataType,vt.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.WARNING,q,"trackTrace failed, trace will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackMetric=function(e,t){try{var n=Pt.create(e,Ze.dataType,Ze.envelopeType,this._logger,t);this.core.track(n)}catch(i){this._logger.throwInternal(w.CRITICAL,V,"trackMetric failed, metric will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,c({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(i){this._logger.throwInternal(w.CRITICAL,G,"trackPageView failed, page view will not be collected: "+ue.getExceptionName(i),{exception:ue.dump(i)})}},qt.prototype.sendPageViewInternal=function(e,t,n){"undefined"!=typeof document&&(e.refUri=e.refUri===undefined?document.referrer:e.refUri);var i=Pt.create(e,ot.dataType,ot.envelopeType,this._logger,t,n);this.core.track(i),this._trackAjaxAttempts=0},qt.prototype.sendPageViewPerformanceInternal=function(e,t,n){var i=Pt.create(e,Tt.dataType,Tt.envelopeType,this._logger,t,n);this.core.track(i)},qt.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this._logger.throwInternal(w.CRITICAL,G,"trackPageViewPerformance failed, page view will not be collected: "+ue.getExceptionName(n),{exception:ue.dump(n)})}},qt.prototype.startTrackPage=function(e){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),this._pageTracking.start(e)}catch(t){this._logger.throwInternal(w.CRITICAL,O,"startTrackPage failed, page view may not be collected: "+ue.getExceptionName(t),{exception:ue.dump(t)})}},qt.prototype.stopTrackPage=function(e,t,n,i){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),"string"!=typeof t&&(t="object"==typeof window&&window.location&&window.location.href||""),this._pageTracking.stop(e,t,n,i),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(r){this._logger.throwInternal(w.CRITICAL,R,"stopTrackPage failed, page view will not be collected: "+ue.getExceptionName(r),{exception:ue.dump(r)})}},qt.prototype.sendExceptionInternal=function(e,t,n){var i=new Oe(this._logger,e.exception||new Error(ue.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),r=Pt.create(i,Oe.dataType,Oe.envelopeType,this._logger,t,n);this.core.track(r)},qt.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this._logger.throwInternal(w.CRITICAL,z,"trackException failed, exception will not be collected: "+ue.getExceptionName(n),{exception:ue.dump(n)})}},qt.prototype._onerror=function(e){try{var t={url:e&&e.url||document.URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(ue.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!ue.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:xt.Error},t)}}catch(r){var i=e.error?e.error.name+", "+e.error.message:"null";this._logger.throwInternal(w.CRITICAL,P,"_onError threw exception while logging error, error will not be collected: "+ue.getExceptionName(r),{exception:ue.dump(r),errorString:i})}},qt.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},qt.prototype._initialize=function(e,t,n){var a=this;if(!this._isInitialized){if(f.isNullOrUndefined(t))throw Error("Error initializing");this.core=t,this._logger=t.logger,this._globalconfig={instrumentationKey:e.instrumentationKey,endpointUrl:e.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{};var i=qt.getDefaultConfig();if(i!==undefined){for(var r in i)this.config[r]=kt.getConfig(e,r,this.identifier,i[r]);if(this._globalconfig)for(var r in i)this._globalconfig[r]===undefined&&(this._globalconfig[r]=i[r])}this.config.isCookieUseDisabled&&ue.disableCookies(),this.config.isStorageUseDisabled&&ue.disableStorage();var o={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return a.config.accountId||e.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||e.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||e.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||e.appId}};this._pageViewPerformanceManager=new zt(this.core),this._pageViewManager=new Mt(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Ut(this._logger,function(e,t,n){return a.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=[],this._addDefaultTelemetryInitializers(o),this._eventTracking=new Bt(this._logger,"trackEvent"),this._eventTracking.action=function(e,t,n,i){(i=i||{})[Gt]=n.toString(),a.trackEvent({name:e,properties:i})},this._pageTracking=new Bt(this._logger,"trackPageView"),this._pageTracking.action=function(e,t,n,i,r){f.isNullOrUndefined(i)&&(i={}),i[Gt]=n.toString();var o={name:e,uri:t,properties:i,measurements:r};a.sendPageViewInternal(o)};var s,c,l=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&"object"==typeof window){var u=window.onerror;window.onerror=function(e,t,n,i,r){var o=u&&u(e,t,n,i,r);return!0!==o&&l._onerror({message:e,url:t,lineNumber:n,columnNumber:i,error:r}),o},this.config.autoExceptionInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&"object"==typeof history&&"function"==typeof history.pushState&&"function"==typeof history.replaceState&&"object"==typeof window&&"undefined"!=typeof Event){var g=this;f.arrForEach(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)}),history.pushState=(c=history.pushState,function(){var e=c.apply(this,arguments);return window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"pushState")),window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange")),e}),history.replaceState=(s=history.replaceState,function(){var e=s.apply(this,arguments);return window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"replaceState")),window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange")),e}),window.addEventListener(g.config.namePrefix+"popstate",function(){window.dispatchEvent(ue.createDomEvent(g.config.namePrefix+"locationchange"))}),window.addEventListener(g.config.namePrefix+"locationchange",function(){g._properties&&g._properties.context&&g._properties.context.telemetryTrace&&(g._properties.context.telemetryTrace.traceID=ue.generateW3CId(),g._properties.context.telemetryTrace.name=window.location&&window.location.pathname||"_unknown_"),a._currUri&&(a._prevUri=a._currUri),a._currUri=window.location&&window.location.href||"",setTimeout(function(e){g.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),g.autoRoutePVDelay)})}this._isInitialized=!0}},qt.prototype.trackPageVisitTime=function(e,t,n){var i={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},i)},qt.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var i=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer(function(e){if(e.baseType===gt.dataType){var t=e.baseData;if(t)for(var n=0;n<i.length;n++)if(t.target&&0<=t.target.indexOf(i[n]))return!1}return!0})}},qt.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},qt.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:undefined},n=Pt.create(t,Oe.dataType,Oe.envelopeType,this._logger,{url:e});this.core.track(n)},qt.Version="2.3.1",qt);function qt(){this.identifier="ApplicationInsightsAnalytics",this.priority=180,this.autoRoutePVDelay=500,this._isInitialized=!1,this._trackAjaxAttempts=0,this._prevUri="object"==typeof window&&window.location&&window.location.href||"",this.initialize=this._initialize.bind(this)}var Bt=(Ft.prototype.start=function(e){"undefined"!=typeof this._events[e]&&this._logger.throwInternal(w.WARNING,J,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},Ft.prototype.stop=function(e,t,n,i){var r=this._events[e];if(isNaN(r))this._logger.throwInternal(w.WARNING,Q,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=me.GetDuration(r,o);this.action(e,t,a,n,i)}delete this._events[e],this._events[e]=undefined},Ft);function Ft(e,t){this._name=t,this._events={},this._logger=e}e.ApplicationInsights=jt,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map
{
"name": "@microsoft/applicationinsights-analytics-js",
"version": "2.3.0",
"version": "2.3.1",
"description": "Microsoft Application Insights Javascript SDK apis",

@@ -21,3 +21,3 @@ "main": "dist/applicationinsights-analytics-js.js",

"devDependencies": {
"@microsoft/applicationinsights-properties-js": "2.3.0",
"@microsoft/applicationinsights-properties-js": "2.3.1",
"typescript": "2.5.3",

@@ -36,4 +36,4 @@ "rollup-plugin-node-resolve": "^3.4.0",

"dependencies": {
"@microsoft/applicationinsights-core-js": "2.3.0",
"@microsoft/applicationinsights-common": "2.3.0",
"@microsoft/applicationinsights-core-js": "2.3.1",
"@microsoft/applicationinsights-common": "2.3.1",
"tslib": "^1.9.3"

@@ -40,0 +40,0 @@ },

@@ -34,3 +34,3 @@ /**

export class ApplicationInsights implements IAppInsights, ITelemetryPlugin, IAppInsightsInternal {
public static Version = "2.3.0"; // Not currently used anywhere
public static Version = "2.3.1"; // Not currently used anywhere

@@ -589,3 +589,3 @@ public static getDefaultConfig(config?: IConfig): IConfig {

// Find the properties plugin
extensions.forEach(extension => {
CoreUtils.arrForEach(extensions, extension => {
if (extension.identifier === PropertiesPluginIdentifier) {

@@ -592,0 +592,0 @@ this._properties = extension as properties.PropertiesPlugin;

@@ -76,3 +76,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

);
this._channel().forEach(queues => { queues.forEach(q => q.flush(true)) })
CoreUtils.arrForEach(this._channel(), queues => { CoreUtils.arrForEach(queues, q => q.flush(true)) })

@@ -119,3 +119,3 @@ // no navigation timing (IE 8, iOS Safari 8.4, Opera Mini 8 - see http://caniuse.com/#feat=nav-timing)

);
this._channel().forEach(queues => { queues.forEach(q => q.flush(true)) })
CoreUtils.arrForEach(this._channel(), queues => { CoreUtils.arrForEach(queues, q => q.flush(true)) })
pageViewSent = true;

@@ -146,3 +146,3 @@ }

customProperties);
this._channel().forEach(queues => { queues.forEach(q => q.flush(true)) })
CoreUtils.arrForEach(this._channel(), queues => { CoreUtils.arrForEach(queues, q => q.flush(true)) })
} else {

@@ -160,3 +160,3 @@ if (!pageViewSent) {

}
this._channel().forEach(queues => { queues.forEach(q => q.flush(true)) })
CoreUtils.arrForEach(this._channel(), queues => { CoreUtils.arrForEach(queues, q => q.flush(true)) })
}

@@ -173,3 +173,3 @@ } else if (DateTimeUtils.GetDuration(start, +new Date) > maxDurationLimit) {

);
this._channel().forEach(queues => { queues.forEach(q => q.flush(true)) })
CoreUtils.arrForEach(this._channel(), queues => { CoreUtils.arrForEach(queues, q => q.flush(true)) })
}

@@ -176,0 +176,0 @@ }

@@ -8,3 +8,3 @@ {

"moduleResolution": "Node",
"target": "es5",
"target": "es3",
"alwaysStrict": true,

@@ -11,0 +11,0 @@ "suppressImplicitAnyIndexErrors": true,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc