New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/applicationinsights-properties-js

Package Overview
Dependencies
Maintainers
5
Versions
606
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.1.0 to 2.1.1

4

browser/applicationinsights-properties-js.min.js
/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.1.0
* Application Insights JavaScript SDK - Properties Plugin, 2.1.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 c=(t.isNullOrUndefined=function(e){return null==e},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t);function t(){}var s,i,n=/[xy]/g;(i=s||(s={}))[i.CRITICAL=1]="CRITICAL",i[i.WARNING=2]="WARNING";var o=0,a=1,r=2,u=3,l=4,p=5,h=6,d=9,f=23,g=27,m=49,v=52,y=56,x=57,S=60,I=61,N=66,w=68,D=69,C=(E.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},E.dataType="MessageData",E.AiNonUserActionablePrefix="AI (Internal): ",E.AiUserActionablePrefix="AI: ",E);function E(e,t,i,n){void 0===i&&(i=!1),this.messageId=e,this.message=(i?E.AiUserActionablePrefix:E.AiNonUserActionablePrefix)+e;var o=(t?" message:"+E.sanitizeDiagnosticText(t):"")+(n?" props:"+E.sanitizeDiagnosticText(JSON.stringify(n)):"");this.message+=o}var _=(A.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new C(t,i,o,n);if(this.enableDebugExceptions())throw a;if(void 0!==a&&a&&void 0!==a.message){if(o){var r=+a.messageId;(!this._messageLogged[r]||this.consoleLoggingLevel()>=s.WARNING)&&(this.warnToConsole(a.message),this._messageLogged[r]=!0)}else this.consoleLoggingLevel()>=s.WARNING&&this.warnToConsole(a.message);this.logInternalMessage(e,a)}},A.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},A.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},A.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var i=!0,n=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[n]?i=!1:this._messageLogged[n]=!0,i&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount==this.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new C(f,o,!1);this.queue.push(a),this.warnToConsole(o)}}},A.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},A);function A(e){this.AIInternalMessagePrefix="AITR_",this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 1},this.telemetryLoggingLevel=function(){return 0},this.maxInternalMessageLimit=function(){return 25},this.queue=[],this._messageCount=0,this._messageLogged={},c.isNullOrUndefined(e)||(c.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),c.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),c.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),c.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var b,k,T,U;M.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(M.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),M.prototype.initialize=function(i,n,o){var a=this;if(i.isCookieUseDisabled&&c.disableCookies(),this.channelQueue=new Array,i.channels){var r=void 0;i.channels.forEach(function(e){if(e&&0<e.length){if((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){e.priority<500&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error("Channel has invalid priority"+r);for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);a.channelQueue.push(e)}})}for(var e=new Array,t=0;t<o.length;t++){var s=o[t];500<s.priority&&e.push(s)}if(0<e.length){for((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){return e.initialize(i,n,o)}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);this.channelQueue.push(e)}};function M(){this.identifier="ChannelControllerPlugin",this.priority=500}(k=b||(b={}))[k.LocalStorage=0]="LocalStorage",k[k.SessionStorage=1]="SessionStorage",(U=T||(T={}))[U.Default=0]="Default",U[U.Required=1]="Required",U[U.Array=2]="Array",U[U.Hidden=4]="Hidden";var L=(R.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=R.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,R.MAX_NAME_LENGTH-3)+R.padNumber(a);o=r}return o},R.sanitizeKey=function(e,t){var i;return t&&(t=R.trim(t.toString())).length>R.MAX_NAME_LENGTH&&(i=t.substring(0,R.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+R.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},R.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=R.MAX_STRING_LENGTH),t&&(i=i||R.MAX_STRING_LENGTH,(t=R.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,I,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},R.sanitizeUrl=function(e,t){return R.sanitizeInput(e,t,R.MAX_URL_LENGTH,N)},R.sanitizeMessage=function(e,t){var i;return t&&t.length>R.MAX_MESSAGE_LENGTH&&(i=t.substring(0,R.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+R.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},R.sanitizeException=function(e,t){var i;return t&&t.length>R.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,R.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+R.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},R.sanitizeProperties=function(t,e){if(e){var i={};for(var n in e){var o=e[n];if("object"==typeof o&&"undefined"!=typeof JSON)try{o=JSON.stringify(o)}catch(e){t.throwInternal(s.WARNING,m,"custom property is not valid",{exception:e},!0)}o=R.sanitizeString(t,o,R.MAX_PROPERTY_LENGTH),i[n=R.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},R.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=R.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},R.sanitizeId=function(e,t){return t?R.sanitizeInput(e,t,R.MAX_ID_LENGTH,D).toString():t},R.sanitizeInput=function(e,t,i,n){var o;return t&&(t=R.trim(t)).length>i&&(o=t.substring(0,i),e.throwInternal(s.WARNING,n,"input is too long, it has been truncated to "+i+" characters.",{data:t},!0)),o||t},R.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},R.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},R.MAX_NAME_LENGTH=150,R.MAX_ID_LENGTH=128,R.MAX_PROPERTY_LENGTH=8192,R.MAX_STRING_LENGTH=1024,R.MAX_URL_LENGTH=2048,R.MAX_MESSAGE_LENGTH=32768,R.MAX_EXCEPTION_LENGTH=32768,R);function R(){}var O=(z.disableStorage=function(){z._canUseLocalStorage=!1,z._canUseSessionStorage=!1},z._getLocalStorageObject=function(){return z.canUseLocalStorage()?z._getVerifiedStorageObject(b.LocalStorage):null},z._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===b.LocalStorage?window.localStorage:window.sessionStorage).setItem(i,i),t=n.getItem(i)!=i,n.removeItem(i),t&&(n=null)}catch(e){n=null}return n},z.isInternalApplicationInsightsEndpoint=function(e){return-1!==z._internalEndpoints.indexOf(e.toLowerCase())},z.canUseLocalStorage=function(){return void 0===z._canUseLocalStorage&&(z._canUseLocalStorage=!!z._getVerifiedStorageObject(b.LocalStorage)),z._canUseLocalStorage},z.getStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setStorage=function(t,e,i){var n=z._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z._getSessionStorageObject=function(){return z.canUseSessionStorage()?z._getVerifiedStorageObject(b.SessionStorage):null},z.canUseSessionStorage=function(){return void 0===z._canUseSessionStorage&&(z._canUseSessionStorage=!!z._getVerifiedStorageObject(b.SessionStorage)),z._canUseSessionStorage},z.getSessionStorageKeys=function(){var e=[];if(z.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},z.getSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setSessionStorage=function(t,e,i){var n=z._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.disableCookies=function(){c.disableCookies()},z.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==z.document.cookie}catch(e){t.throwInternal(s.WARNING,w,"Cannot access document.cookie - "+z.getExceptionName(e),{exception:z.dump(e)})}}return c._canUseCookies},z.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),z.document.location&&"https:"===z.document.location.protocol&&(a=";secure"),z.canUseCookies(e)&&(z.document.cookie=t+"="+i+o+";path=/"+a)},z.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},z.getCookie=function(e,t){if(z.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=z.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=z.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},z.deleteCookie=function(e,t){z.canUseCookies(e)&&(z.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},z.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},z.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},z.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},z.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},z.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},z.toISOStringForIE8=function(e){if(z.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"}},z.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},z.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,i=""+Math.floor(e/1e3)%60,n=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,i=i.length<2?"0"+i:i,n=n.length<2?"0"+n:n,(0<a?a+".":"")+(o=o.length<2?"0"+o:o)+":"+n+":"+i+"."+t},z.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},z.dump=function(e){var t=Object.prototype.toString.call(e),i=JSON.stringify(e);return"[object Error]"===t&&(i="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+i},z.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},z.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var i="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(i,t)}return!0},z.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},z.getExtension=function(e,t){for(var i=null,n=0;!i&&n<e.length;)e[n]&&e[n].identifier===t&&(i=e[n]),n++;return i},z.document="undefined"!=typeof document?document:{},z._canUseLocalStorage=void 0,z._canUseSessionStorage=void 0,z._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],z.NotSpecified="not_specified",z);function z(){}var P=(G.parseUrl=function(e){return G.htmlAnchorElement||(G.htmlAnchorElement=G.document.createElement?G.document.createElement("a"):{host:G.parseHost(e)}),G.htmlAnchorElement.href=e,G.htmlAnchorElement},G.getAbsoluteUrl=function(e){var t,i=G.parseUrl(e);return i&&(t=i.href),t},G.getPathName=function(e){var t,i=G.parseUrl(e);return i&&(t=i.pathname),t},G.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},G.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},G.document="undefined"!=typeof document?document:{},G);function G(){}var q=(j.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=P.parseUrl(t);if(o=s.host,!a)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),r=s.pathname,a=L.sanitizeString(e,i?i+" "+c:c)}else a=L.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},j);function j(){}var W=(V.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()},V.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},V);function V(){}var H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function B(e,t){function i(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var X,F=function(){return(F=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=(B(J,X=function(){}),J);function J(){return X.call(this)||this}var Q;B(Y,Q=function(){this.ver=1,this.sampleRate=100,this.tags={}});function Y(e,t,i){var n=Q.call(this)||this;return n.name=L.sanitizeString(e,i)||O.NotSpecified,n.data=t,n.time=O.toISOStringForIE8(new Date),n.aiDataContract={time:T.Required,iKey:T.Required,name:T.Required,sampleRate:function(){return 100==n.sampleRate?T.Hidden:T.Required},tags:T.Required,data:T.Required},n}function $(){}var Z,ee=(B(te,Z=$),te);function te(){var e=Z.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ie;B(ne,ie=ee),ne.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ne.dataType="EventData";function ne(e,t,i,n){var o=ie.call(this)||this;return o.aiDataContract={ver:T.Required,name:T.Required,properties:T.Default,measurements:T.Default},o.name=L.sanitizeString(e,t)||O.NotSpecified,o.properties=L.sanitizeProperties(e,i),o.measurements=L.sanitizeMeasurements(e,n),o}function oe(){}var ae,re=(B(se,ae=$),se);function se(){var e=ae.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function ce(){this.hasFullStack=!0,this.parsedStack=[]}var ue;B(le,ue=re),le.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return he.CreateFromInterface(t,e)});return new le(t,F({},e,{exceptions:i}))},le.prototype.toInterface=function(){var e=this,t=e.exceptions,i=e.properties,n=e.measurements,o=e.severityLevel,a=e.ver,r=e.problemGroup,s=e.id,c=e.isManual;return{ver:a,exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:o,properties:i,measurements:n,problemGroup:r,id:s,isManual:c}},le.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},le.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",le.dataType="ExceptionData";function le(e,t,i,n,o,a){var r=ue.call(this)||this;return r.aiDataContract={ver:T.Required,exceptions:T.Required,severityLevel:T.Default,properties:T.Default,measurements:T.Default},t instanceof Error?(r.exceptions=[new he(e,t)],r.properties=L.sanitizeProperties(e,i),r.measurements=L.sanitizeMeasurements(e,n),o&&(r.severityLevel=o),a&&(r.id=a)):(r.exceptions=t.exceptions,r.properties=t.properties,r.measurements=t.measurements,t.severityLevel&&(r.severityLevel=t.severityLevel),t.id&&(r.id=t.id),t.problemGroup&&(r.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(r.ver=t.ver),c.isNullOrUndefined(t.isManual)||(r.isManual=t.isManual)),r}var pe,he=(B(de,pe=ce),de.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}},de.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ge.CreateFromInterface(e)})||t.parsedStack;return new de(e,F({},t,{parsedStack:i}))},de.parseStack=function(e){var t=void 0;if("string"==typeof e){var i=e.split("\n");t=[];for(var n=0,o=0,a=0;a<=i.length;a++){var r=i[a];if(ge.regex.test(r)){var s=new ge(i[a],n++);o+=s.sizeInBytes,t.push(s)}}if(32768<o)for(var c=0,u=t.length-1,l=0,p=c,h=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var d=h-p+1;t.splice(p,d);break}p=c,h=u,c++,u--}}return t},de);function de(e,t){var i=pe.call(this)||this;if(i.aiDataContract={id:T.Default,outerId:T.Default,typeName:T.Required,message:T.Required,hasFullStack:T.Default,stack:T.Default,parsedStack:T.Array},t instanceof Error){i.typeName=L.sanitizeString(e,t.name)||O.NotSpecified,i.message=L.sanitizeMessage(e,t.message)||O.NotSpecified;var n=t.stack;i.parsedStack=de.parseStack(n),i.stack=L.sanitizeException(e,n),i.hasFullStack=O.isArray(i.parsedStack)&&0<i.parsedStack.length}else i.typeName=t.typeName,i.message=t.message,i.stack=t.stack,i.parsedStack=t.parsedStack,i.hasFullStack=t.hasFullStack;return i}var fe,ge=(B(me,fe=oe),me.CreateFromInterface=function(e){return new me(e,null)},me.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},me.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,me.baseSize=58,me);function me(e,t){var i=fe.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:T.Required,method:T.Required,assembly:T.Default,fileName:T.Default,line:T.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=O.trim(n),i.fileName="",i.line=0;var o=n.match(me.regex);o&&5<=o.length&&(i.method=O.trim(o[2])||i.method,i.fileName=O.trim(o[4]),i.line=parseInt(o[5])||0)}else i.level=e.level,i.method=e.method,i.assembly=e.assembly,i.fileName=e.fileName,i.line=e.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=me.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var ve,ye,xe,Se=(B(Ie,ve=$),Ie);function Ie(){var e=ve.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(xe=ye||(ye={}))[xe.Measurement=0]="Measurement",xe[xe.Aggregation=1]="Aggregation";var Ne,we=(B(De,Ne=function(){this.kind=ye.Measurement}),De);function De(){var e=null!==Ne&&Ne.apply(this,arguments)||this;return e.aiDataContract={name:T.Required,kind:T.Default,value:T.Required,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default},e}var Ce;B(Ee,Ce=Se),Ee.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ee.dataType="MetricData";function Ee(e,t,i,n,o,a,r){var s=Ce.call(this)||this;s.aiDataContract={ver:T.Required,metrics:T.Required,properties:T.Default};var c=new we;return c.count=0<n?n:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=L.sanitizeString(e,t)||O.NotSpecified,c.value=i,s.metrics=[c],s.properties=L.sanitizeProperties(e,r),s}var _e,Ae=(B(be,_e=ee),be);function be(){var e=_e.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ke,Te=(B(Ue,ke=Ae),Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ue.dataType="PageviewData",Ue);function Ue(e,t,i,n,o,a,r){var s=ke.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,properties:T.Default,measurements:T.Default,id:T.Default},s.id=L.sanitizeId(e,r),s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,isNaN(n)||(s.duration=O.msToTimeSpan(n)),s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),s}var Me,Le=(B(Re,Me=$),Re);function Re(){var e=Me.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Oe;B(ze,Oe=Le),ze.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ze.dataType="RemoteDependencyData";function ze(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Oe.call(this)||this;p.aiDataContract={id:T.Required,ver:T.Required,name:T.Default,resultCode:T.Default,duration:T.Default,success:T.Default,data:T.Default,target:T.Default,type:T.Default,properties:T.Default,measurements:T.Default,kind:T.Default,value:T.Default,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default,dependencyKind:T.Default,dependencySource:T.Default,commandName:T.Default,dependencyTypeName:T.Default},p.id=t,p.duration=O.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=L.sanitizeString(e,c);var h=q.ParseDependencyPath(e,i,s,n);return p.data=L.sanitizeUrl(e,n)||h.data,p.target=L.sanitizeString(e,h.target),p.name=L.sanitizeString(e,h.name),p.properties=L.sanitizeProperties(e,u),p.measurements=L.sanitizeMeasurements(e,l),p}var Pe,Ge=(B(qe,Pe=$),qe);function qe(){var e=Pe.call(this)||this;return e.ver=2,e.properties={},e}var je;B(We,je=Ge),We.envelopeType="Microsoft.ApplicationInsights.{0}.Message",We.dataType="MessageData";function We(e,t,i,n){var o=je.call(this)||this;return o.aiDataContract={ver:T.Required,message:T.Required,severityLevel:T.Default,properties:T.Default},t=t||O.NotSpecified,o.message=L.sanitizeMessage(e,t),o.properties=L.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Ve,He=(B(Be,Ve=Ae),Be);function Be(){var e=Ve.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Xe;B(Fe,Xe=He),Fe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Fe.dataType="PageviewPerformanceData";function Fe(e,t,i,n,o,a,r){var s=Xe.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,perfTotal:T.Default,networkConnect:T.Default,sentRequest:T.Default,receivedResponse:T.Default,domProcessing:T.Default,properties:T.Default,measurements:T.Default},s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),r&&(s.domProcessing=r.domProcessing,s.duration=r.duration,s.networkConnect=r.networkConnect,s.perfTotal=r.perfTotal,s.receivedResponse=r.receivedResponse,s.sentRequest=r.sentRequest),s}var Ke,Je,Qe;B(Ye,Ke=K);function Ye(e,t){var i=Ke.call(this)||this;return i.aiDataContract={baseType:T.Required,baseData:T.Required},i.baseType=e,i.baseData=t,i}(Qe=Je||(Je={}))[Qe.Verbose=0]="Verbose",Qe[Qe.Information=1]="Information",Qe[Qe.Warning=2]="Warning",Qe[Qe.Error=3]="Error",Qe[Qe.Critical=4]="Critical";var $e=(Ze.getConfig=function(e,t,i,n){var o;return void 0===n&&(n=!1),o=i&&e.extensionConfig&&e.extensionConfig[i]&&!c.isNullOrUndefined(e.extensionConfig[i][t])?e.extensionConfig[i][t]:e[t],c.isNullOrUndefined(o)?n:o},Ze);function Ze(){}var et=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},tt=(it.UserExt="user",it.DeviceExt="device",it.TraceExt="trace",it.WebExt="web",it.AppExt="app",it.OSExt="os",it.SessionExt="ses",it.SDKExt="sdk",it);function it(){}var nt=new et,ot=function(){},at=(rt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=W.Now(),t=e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),i=e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||i?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>rt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},rt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},rt.prototype.initializeAutomaticSession=function(){var e=O.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=O.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},rt.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var i=+t[1];this.automaticSession.acquisitionDate=+new Date(i),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var n=+t[2];this.automaticSession.renewalDate=+new Date(n),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(s.CRITICAL,d,"Error parsing ai_session cookie, session will be reset: "+O.getExceptionName(e),{exception:O.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,g,"AI session renewal date is 0, session will be reset.")},rt.prototype.renew=function(){var e=W.Now();this.automaticSession.id=O.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),O.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},rt.prototype.setCookie=function(e,t,i){var n=t+this.config.sessionExpirationMs(),o=i+this.config.sessionRenewalMs(),a=new Date,r=[e,t,i];n<o?a.setTime(n):a.setTime(o);var s=this.config.cookieDomain?this.config.cookieDomain():null;O.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=W.Now()},rt.prototype.setStorage=function(e,t,i){O.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},rt.acquisitionSpan=864e5,rt.renewalSpan=18e5,rt.cookieUpdateInterval=6e4,rt.cookieNameConst="ai_session",rt);function rt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new _:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return rt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return rt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?rt.cookieNameConst+i.config.namePrefix():rt.cookieNameConst},this.automaticSession=new ot}var st=function(){},ct=function(){this.id="browser",this.deviceClass="Browser"},ut=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.1.0"},lt=(pt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,S,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var n=this.authenticatedId;t&&(this.accountId=t,n=[this.authenticatedId,this.accountId].join(pt.cookieSeparator)),i&&O.setCookie(this._logger,pt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},pt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,O.deleteCookie(this._logger,pt.authUserCookieName)},pt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},pt.cookieSeparator="|",pt.userCookieName="ai_user",pt.authUserCookieName="ai_authUser",pt);function pt(e,t){this._logger=t;var i=O.getCookie(this._logger,pt.userCookieName);if(i){var n=i.split(pt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=O.newId();var o=new Date,a=O.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;O.setCookie(this._logger,pt.userCookieName,r.join(pt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";O.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=O.getCookie(this._logger,pt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(pt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var ht=function(){},dt=function(e,t,i){this.traceID=e||O.newId(),this.parentID=t,this.name=i,window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)},ft=(gt.prototype.applySessionContext=function(e){var t=this.session||this.sessionManager.automaticSession;t&&"string"==typeof t.id&&(e.ext.app.sesId=t.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},gt.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},gt.prototype.applyApplicationContext=function(e){this.application&&("string"==typeof this.application.ver&&(e.tags[nt.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[nt.applicationBuild]=this.application.build))},gt.prototype.applyDeviceContext=function(e){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},gt.prototype.applyInternalContext=function(e){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[nt.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[nt.internalSdkVersion]=this.internal.sdkVersion))},gt.prototype.applyLocationContext=function(e){this.location&&"string"==typeof this.location.ip&&(e.tags[nt.locationIp]=this.location.ip)},gt.prototype.applyOperationContext=function(e){if(this.telemetryTrace){var t=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(t.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(t.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(t.parentID=this.telemetryTrace.parentID),e.ext.trace=t}},gt.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},gt.prototype.applyUserContext=function(e){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[nt.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},gt.prototype.cleanUp=function(e){e.ext[tt.DeviceExt]&&0===Object.keys(e.ext[tt.DeviceExt]).length&&delete e.ext[tt.DeviceExt],e.ext[tt.UserExt]&&0===Object.keys(e.ext[tt.UserExt]).length&&delete e.ext[tt.UserExt],e.ext[tt.WebExt]&&0===Object.keys(e.ext[tt.WebExt]).length&&delete e.ext[tt.WebExt],e.ext[tt.OSExt]&&0===Object.keys(e.ext[tt.OSExt]).length&&delete e.ext[tt.OSExt],e.ext[tt.AppExt]&&0===Object.keys(e.ext[tt.AppExt]).length&&delete e.ext[tt.AppExt],e.ext[tt.TraceExt]&&0===Object.keys(e.ext[tt.TraceExt]).length&&delete e.ext[tt.TraceExt]},gt);function gt(e,t){"undefined"!=typeof window&&(this.sessionManager=new at(t,e),this.application=new st,this.device=new ct,this.internal=new ut(t),this.location=new ht,this.user=new lt(t,e),this.telemetryTrace=new dt,this.session=new ot),this.appId=function(){return null}}var mt=(vt.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},vt.prototype.initialize=function(t,e,i){var n=this,o=vt.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return $e.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||vt.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new ft(e.logger,this._extensionConfig),this._breezeChannel=O.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},vt.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(e.name===Te.envelopeType&&this._logger.resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e),c.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e))},vt.prototype.setNextPlugin=function(e){this._nextPlugin=e},vt.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[tt.DeviceExt]=e.ext[tt.DeviceExt]||{},e.ext[tt.WebExt]=e.ext[tt.WebExt]||{},e.ext[tt.UserExt]=e.ext[tt.UserExt]||{},e.ext[tt.OSExt]=e.ext[tt.OSExt]||{},e.ext[tt.AppExt]=e.ext[tt.AppExt]||{},e.ext[tt.TraceExt]=e.ext[tt.TraceExt]||{},this.context.applySessionContext(e),this.context.applyApplicationContext(e),this.context.applyDeviceContext(e),this.context.applyOperationContext(e),this.context.applyUserContext(e),this.context.applyOperatingSystemContxt(e),this.context.applyWebContext(e),this.context.applyLocationContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},vt);function vt(){this.priority=110,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=mt,e.TelemetryTrace=dt,e.TelemetryContext=ft,e.Session=ot,e.SessionManager=at,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 c=(t.isNullOrUndefined=function(e){return null==e},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t);function t(){}var s,i,n=/[xy]/g;(i=s||(s={}))[i.CRITICAL=1]="CRITICAL",i[i.WARNING=2]="WARNING";var o=0,a=1,r=2,u=3,l=4,p=5,h=6,d=9,f=23,g=27,m=49,v=52,y=56,x=57,S=60,I=61,N=66,w=68,D=69,C=(E.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},E.dataType="MessageData",E.AiNonUserActionablePrefix="AI (Internal): ",E.AiUserActionablePrefix="AI: ",E);function E(e,t,i,n){void 0===i&&(i=!1),this.messageId=e,this.message=(i?E.AiUserActionablePrefix:E.AiNonUserActionablePrefix)+e;var o=(t?" message:"+E.sanitizeDiagnosticText(t):"")+(n?" props:"+E.sanitizeDiagnosticText(JSON.stringify(n)):"");this.message+=o}var _=(A.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new C(t,i,o,n);if(this.enableDebugExceptions())throw a;if(void 0!==a&&a&&void 0!==a.message){if(o){var r=+a.messageId;(!this._messageLogged[r]||this.consoleLoggingLevel()>=s.WARNING)&&(this.warnToConsole(a.message),this._messageLogged[r]=!0)}else this.consoleLoggingLevel()>=s.WARNING&&this.warnToConsole(a.message);this.logInternalMessage(e,a)}},A.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},A.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},A.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var i=!0,n=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[n]?i=!1:this._messageLogged[n]=!0,i&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount==this.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new C(f,o,!1);this.queue.push(a),this.warnToConsole(o)}}},A.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},A);function A(e){this.AIInternalMessagePrefix="AITR_",this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 1},this.telemetryLoggingLevel=function(){return 0},this.maxInternalMessageLimit=function(){return 25},this.queue=[],this._messageCount=0,this._messageLogged={},c.isNullOrUndefined(e)||(c.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),c.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),c.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),c.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var b,k,T,U;M.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(M.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),M.prototype.initialize=function(i,n,o){var a=this;if(i.isCookieUseDisabled&&c.disableCookies(),this.channelQueue=new Array,i.channels){var r=void 0;i.channels.forEach(function(e){if(e&&0<e.length){if((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){e.priority<500&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error("Channel has invalid priority"+r);for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);a.channelQueue.push(e)}})}for(var e=new Array,t=0;t<o.length;t++){var s=o[t];500<s.priority&&e.push(s)}if(0<e.length){for((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){return e.initialize(i,n,o)}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);this.channelQueue.push(e)}};function M(){this.identifier="ChannelControllerPlugin",this.priority=500}(k=b||(b={}))[k.LocalStorage=0]="LocalStorage",k[k.SessionStorage=1]="SessionStorage",(U=T||(T={}))[U.Default=0]="Default",U[U.Required=1]="Required",U[U.Array=2]="Array",U[U.Hidden=4]="Hidden";var L=(R.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=R.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,R.MAX_NAME_LENGTH-3)+R.padNumber(a);o=r}return o},R.sanitizeKey=function(e,t){var i;return t&&(t=R.trim(t.toString())).length>R.MAX_NAME_LENGTH&&(i=t.substring(0,R.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+R.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},R.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=R.MAX_STRING_LENGTH),t&&(i=i||R.MAX_STRING_LENGTH,(t=R.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,I,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},R.sanitizeUrl=function(e,t){return R.sanitizeInput(e,t,R.MAX_URL_LENGTH,N)},R.sanitizeMessage=function(e,t){var i;return t&&t.length>R.MAX_MESSAGE_LENGTH&&(i=t.substring(0,R.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+R.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},R.sanitizeException=function(e,t){var i;return t&&t.length>R.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,R.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+R.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},R.sanitizeProperties=function(t,e){if(e){var i={};for(var n in e){var o=e[n];if("object"==typeof o&&"undefined"!=typeof JSON)try{o=JSON.stringify(o)}catch(e){t.throwInternal(s.WARNING,m,"custom property is not valid",{exception:e},!0)}o=R.sanitizeString(t,o,R.MAX_PROPERTY_LENGTH),i[n=R.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},R.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=R.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},R.sanitizeId=function(e,t){return t?R.sanitizeInput(e,t,R.MAX_ID_LENGTH,D).toString():t},R.sanitizeInput=function(e,t,i,n){var o;return t&&(t=R.trim(t)).length>i&&(o=t.substring(0,i),e.throwInternal(s.WARNING,n,"input is too long, it has been truncated to "+i+" characters.",{data:t},!0)),o||t},R.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},R.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},R.MAX_NAME_LENGTH=150,R.MAX_ID_LENGTH=128,R.MAX_PROPERTY_LENGTH=8192,R.MAX_STRING_LENGTH=1024,R.MAX_URL_LENGTH=2048,R.MAX_MESSAGE_LENGTH=32768,R.MAX_EXCEPTION_LENGTH=32768,R);function R(){}var O=(z.disableStorage=function(){z._canUseLocalStorage=!1,z._canUseSessionStorage=!1},z._getLocalStorageObject=function(){return z.canUseLocalStorage()?z._getVerifiedStorageObject(b.LocalStorage):null},z._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===b.LocalStorage?window.localStorage:window.sessionStorage).setItem(i,i),t=n.getItem(i)!=i,n.removeItem(i),t&&(n=null)}catch(e){n=null}return n},z.isInternalApplicationInsightsEndpoint=function(e){return-1!==z._internalEndpoints.indexOf(e.toLowerCase())},z.canUseLocalStorage=function(){return void 0===z._canUseLocalStorage&&(z._canUseLocalStorage=!!z._getVerifiedStorageObject(b.LocalStorage)),z._canUseLocalStorage},z.getStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setStorage=function(t,e,i){var n=z._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z._getSessionStorageObject=function(){return z.canUseSessionStorage()?z._getVerifiedStorageObject(b.SessionStorage):null},z.canUseSessionStorage=function(){return void 0===z._canUseSessionStorage&&(z._canUseSessionStorage=!!z._getVerifiedStorageObject(b.SessionStorage)),z._canUseSessionStorage},z.getSessionStorageKeys=function(){var e=[];if(z.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},z.getSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setSessionStorage=function(t,e,i){var n=z._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.disableCookies=function(){c.disableCookies()},z.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==z.document.cookie}catch(e){t.throwInternal(s.WARNING,w,"Cannot access document.cookie - "+z.getExceptionName(e),{exception:z.dump(e)})}}return c._canUseCookies},z.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),z.document.location&&"https:"===z.document.location.protocol&&(a=";secure"),z.canUseCookies(e)&&(z.document.cookie=t+"="+i+o+";path=/"+a)},z.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},z.getCookie=function(e,t){if(z.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=z.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=z.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},z.deleteCookie=function(e,t){z.canUseCookies(e)&&(z.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},z.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},z.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},z.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},z.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},z.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},z.toISOStringForIE8=function(e){if(z.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"}},z.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},z.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,i=""+Math.floor(e/1e3)%60,n=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,i=i.length<2?"0"+i:i,n=n.length<2?"0"+n:n,(0<a?a+".":"")+(o=o.length<2?"0"+o:o)+":"+n+":"+i+"."+t},z.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},z.dump=function(e){var t=Object.prototype.toString.call(e),i=JSON.stringify(e);return"[object Error]"===t&&(i="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+i},z.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},z.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var i="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(i,t)}return!0},z.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},z.getExtension=function(e,t){for(var i=null,n=0;!i&&n<e.length;)e[n]&&e[n].identifier===t&&(i=e[n]),n++;return i},z.document="undefined"!=typeof document?document:{},z._canUseLocalStorage=void 0,z._canUseSessionStorage=void 0,z._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],z.NotSpecified="not_specified",z);function z(){}var P=(G.parseUrl=function(e){return G.htmlAnchorElement||(G.htmlAnchorElement=G.document.createElement?G.document.createElement("a"):{host:G.parseHost(e)}),G.htmlAnchorElement.href=e,G.htmlAnchorElement},G.getAbsoluteUrl=function(e){var t,i=G.parseUrl(e);return i&&(t=i.href),t},G.getPathName=function(e){var t,i=G.parseUrl(e);return i&&(t=i.pathname),t},G.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},G.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},G.document="undefined"!=typeof document?document:{},G);function G(){}var q=(j.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=P.parseUrl(t);if(o=s.host,!a)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),r=s.pathname,a=L.sanitizeString(e,i?i+" "+c:c)}else a=L.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},j);function j(){}var W=(V.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()},V.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},V);function V(){}var H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function B(e,t){function i(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var X,F=function(){return(F=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=(B(J,X=function(){}),J);function J(){return X.call(this)||this}var Q;B(Y,Q=function(){this.ver=1,this.sampleRate=100,this.tags={}});function Y(e,t,i){var n=Q.call(this)||this;return n.name=L.sanitizeString(e,i)||O.NotSpecified,n.data=t,n.time=O.toISOStringForIE8(new Date),n.aiDataContract={time:T.Required,iKey:T.Required,name:T.Required,sampleRate:function(){return 100==n.sampleRate?T.Hidden:T.Required},tags:T.Required,data:T.Required},n}function $(){}var Z,ee=(B(te,Z=$),te);function te(){var e=Z.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ie;B(ne,ie=ee),ne.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ne.dataType="EventData";function ne(e,t,i,n){var o=ie.call(this)||this;return o.aiDataContract={ver:T.Required,name:T.Required,properties:T.Default,measurements:T.Default},o.name=L.sanitizeString(e,t)||O.NotSpecified,o.properties=L.sanitizeProperties(e,i),o.measurements=L.sanitizeMeasurements(e,n),o}function oe(){}var ae,re=(B(se,ae=$),se);function se(){var e=ae.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function ce(){this.hasFullStack=!0,this.parsedStack=[]}var ue;B(le,ue=re),le.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return he.CreateFromInterface(t,e)});return new le(t,F({},e,{exceptions:i}))},le.prototype.toInterface=function(){var e=this,t=e.exceptions,i=e.properties,n=e.measurements,o=e.severityLevel,a=e.ver,r=e.problemGroup,s=e.id,c=e.isManual;return{ver:a,exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:o,properties:i,measurements:n,problemGroup:r,id:s,isManual:c}},le.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},le.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",le.dataType="ExceptionData";function le(e,t,i,n,o,a){var r=ue.call(this)||this;return r.aiDataContract={ver:T.Required,exceptions:T.Required,severityLevel:T.Default,properties:T.Default,measurements:T.Default},t instanceof Error?(r.exceptions=[new he(e,t)],r.properties=L.sanitizeProperties(e,i),r.measurements=L.sanitizeMeasurements(e,n),o&&(r.severityLevel=o),a&&(r.id=a)):(r.exceptions=t.exceptions,r.properties=t.properties,r.measurements=t.measurements,t.severityLevel&&(r.severityLevel=t.severityLevel),t.id&&(r.id=t.id),t.problemGroup&&(r.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(r.ver=t.ver),c.isNullOrUndefined(t.isManual)||(r.isManual=t.isManual)),r}var pe,he=(B(de,pe=ce),de.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}},de.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ge.CreateFromInterface(e)})||t.parsedStack;return new de(e,F({},t,{parsedStack:i}))},de.parseStack=function(e){var t=void 0;if("string"==typeof e){var i=e.split("\n");t=[];for(var n=0,o=0,a=0;a<=i.length;a++){var r=i[a];if(ge.regex.test(r)){var s=new ge(i[a],n++);o+=s.sizeInBytes,t.push(s)}}if(32768<o)for(var c=0,u=t.length-1,l=0,p=c,h=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var d=h-p+1;t.splice(p,d);break}p=c,h=u,c++,u--}}return t},de);function de(e,t){var i=pe.call(this)||this;if(i.aiDataContract={id:T.Default,outerId:T.Default,typeName:T.Required,message:T.Required,hasFullStack:T.Default,stack:T.Default,parsedStack:T.Array},t instanceof Error){i.typeName=L.sanitizeString(e,t.name)||O.NotSpecified,i.message=L.sanitizeMessage(e,t.message)||O.NotSpecified;var n=t.stack;i.parsedStack=de.parseStack(n),i.stack=L.sanitizeException(e,n),i.hasFullStack=O.isArray(i.parsedStack)&&0<i.parsedStack.length}else i.typeName=t.typeName,i.message=t.message,i.stack=t.stack,i.parsedStack=t.parsedStack,i.hasFullStack=t.hasFullStack;return i}var fe,ge=(B(me,fe=oe),me.CreateFromInterface=function(e){return new me(e,null)},me.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},me.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,me.baseSize=58,me);function me(e,t){var i=fe.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:T.Required,method:T.Required,assembly:T.Default,fileName:T.Default,line:T.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=O.trim(n),i.fileName="",i.line=0;var o=n.match(me.regex);o&&5<=o.length&&(i.method=O.trim(o[2])||i.method,i.fileName=O.trim(o[4]),i.line=parseInt(o[5])||0)}else i.level=e.level,i.method=e.method,i.assembly=e.assembly,i.fileName=e.fileName,i.line=e.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=me.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var ve,ye,xe,Se=(B(Ie,ve=$),Ie);function Ie(){var e=ve.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(xe=ye||(ye={}))[xe.Measurement=0]="Measurement",xe[xe.Aggregation=1]="Aggregation";var Ne,we=(B(De,Ne=function(){this.kind=ye.Measurement}),De);function De(){var e=null!==Ne&&Ne.apply(this,arguments)||this;return e.aiDataContract={name:T.Required,kind:T.Default,value:T.Required,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default},e}var Ce;B(Ee,Ce=Se),Ee.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ee.dataType="MetricData";function Ee(e,t,i,n,o,a,r){var s=Ce.call(this)||this;s.aiDataContract={ver:T.Required,metrics:T.Required,properties:T.Default};var c=new we;return c.count=0<n?n:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=L.sanitizeString(e,t)||O.NotSpecified,c.value=i,s.metrics=[c],s.properties=L.sanitizeProperties(e,r),s}var _e,Ae=(B(be,_e=ee),be);function be(){var e=_e.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ke,Te=(B(Ue,ke=Ae),Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ue.dataType="PageviewData",Ue);function Ue(e,t,i,n,o,a,r){var s=ke.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,properties:T.Default,measurements:T.Default,id:T.Default},s.id=L.sanitizeId(e,r),s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,isNaN(n)||(s.duration=O.msToTimeSpan(n)),s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),s}var Me,Le=(B(Re,Me=$),Re);function Re(){var e=Me.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Oe;B(ze,Oe=Le),ze.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ze.dataType="RemoteDependencyData";function ze(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Oe.call(this)||this;p.aiDataContract={id:T.Required,ver:T.Required,name:T.Default,resultCode:T.Default,duration:T.Default,success:T.Default,data:T.Default,target:T.Default,type:T.Default,properties:T.Default,measurements:T.Default,kind:T.Default,value:T.Default,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default,dependencyKind:T.Default,dependencySource:T.Default,commandName:T.Default,dependencyTypeName:T.Default},p.id=t,p.duration=O.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=L.sanitizeString(e,c);var h=q.ParseDependencyPath(e,i,s,n);return p.data=L.sanitizeUrl(e,n)||h.data,p.target=L.sanitizeString(e,h.target),p.name=L.sanitizeString(e,h.name),p.properties=L.sanitizeProperties(e,u),p.measurements=L.sanitizeMeasurements(e,l),p}var Pe,Ge=(B(qe,Pe=$),qe);function qe(){var e=Pe.call(this)||this;return e.ver=2,e.properties={},e}var je;B(We,je=Ge),We.envelopeType="Microsoft.ApplicationInsights.{0}.Message",We.dataType="MessageData";function We(e,t,i,n){var o=je.call(this)||this;return o.aiDataContract={ver:T.Required,message:T.Required,severityLevel:T.Default,properties:T.Default},t=t||O.NotSpecified,o.message=L.sanitizeMessage(e,t),o.properties=L.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Ve,He=(B(Be,Ve=Ae),Be);function Be(){var e=Ve.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Xe;B(Fe,Xe=He),Fe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Fe.dataType="PageviewPerformanceData";function Fe(e,t,i,n,o,a,r){var s=Xe.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,perfTotal:T.Default,networkConnect:T.Default,sentRequest:T.Default,receivedResponse:T.Default,domProcessing:T.Default,properties:T.Default,measurements:T.Default},s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),r&&(s.domProcessing=r.domProcessing,s.duration=r.duration,s.networkConnect=r.networkConnect,s.perfTotal=r.perfTotal,s.receivedResponse=r.receivedResponse,s.sentRequest=r.sentRequest),s}var Ke,Je,Qe;B(Ye,Ke=K);function Ye(e,t){var i=Ke.call(this)||this;return i.aiDataContract={baseType:T.Required,baseData:T.Required},i.baseType=e,i.baseData=t,i}(Qe=Je||(Je={}))[Qe.Verbose=0]="Verbose",Qe[Qe.Information=1]="Information",Qe[Qe.Warning=2]="Warning",Qe[Qe.Error=3]="Error",Qe[Qe.Critical=4]="Critical";var $e=(Ze.getConfig=function(e,t,i,n){var o;return void 0===n&&(n=!1),o=i&&e.extensionConfig&&e.extensionConfig[i]&&!c.isNullOrUndefined(e.extensionConfig[i][t])?e.extensionConfig[i][t]:e[t],c.isNullOrUndefined(o)?n:o},Ze);function Ze(){}var et=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},tt=(it.UserExt="user",it.DeviceExt="device",it.TraceExt="trace",it.WebExt="web",it.AppExt="app",it.OSExt="os",it.SessionExt="ses",it.SDKExt="sdk",it);function it(){}var nt=new et,ot=function(){},at=(rt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=W.Now(),t=e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),i=e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||i?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>rt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},rt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},rt.prototype.initializeAutomaticSession=function(){var e=O.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=O.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},rt.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var i=+t[1];this.automaticSession.acquisitionDate=+new Date(i),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var n=+t[2];this.automaticSession.renewalDate=+new Date(n),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(s.CRITICAL,d,"Error parsing ai_session cookie, session will be reset: "+O.getExceptionName(e),{exception:O.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,g,"AI session renewal date is 0, session will be reset.")},rt.prototype.renew=function(){var e=W.Now();this.automaticSession.id=O.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),O.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},rt.prototype.setCookie=function(e,t,i){var n=t+this.config.sessionExpirationMs(),o=i+this.config.sessionRenewalMs(),a=new Date,r=[e,t,i];n<o?a.setTime(n):a.setTime(o);var s=this.config.cookieDomain?this.config.cookieDomain():null;O.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=W.Now()},rt.prototype.setStorage=function(e,t,i){O.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},rt.acquisitionSpan=864e5,rt.renewalSpan=18e5,rt.cookieUpdateInterval=6e4,rt.cookieNameConst="ai_session",rt);function rt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new _:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return rt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return rt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?rt.cookieNameConst+i.config.namePrefix():rt.cookieNameConst},this.automaticSession=new ot}var st=function(){},ct=function(){this.id="browser",this.deviceClass="Browser"},ut=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.1.1"},lt=(pt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,S,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var n=this.authenticatedId;t&&(this.accountId=t,n=[this.authenticatedId,this.accountId].join(pt.cookieSeparator)),i&&O.setCookie(this._logger,pt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},pt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,O.deleteCookie(this._logger,pt.authUserCookieName)},pt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},pt.cookieSeparator="|",pt.userCookieName="ai_user",pt.authUserCookieName="ai_authUser",pt);function pt(e,t){this._logger=t;var i=O.getCookie(this._logger,pt.userCookieName);if(i){var n=i.split(pt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=O.newId();var o=new Date,a=O.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;O.setCookie(this._logger,pt.userCookieName,r.join(pt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";O.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=O.getCookie(this._logger,pt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(pt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var ht=function(){},dt=function(e,t,i){this.traceID=e||O.newId(),this.parentID=t,this.name=i,window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)},ft=(gt.prototype.applySessionContext=function(e){var t=this.session||this.sessionManager.automaticSession;t&&"string"==typeof t.id&&(e.ext.app.sesId=t.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},gt.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},gt.prototype.applyApplicationContext=function(e){this.application&&("string"==typeof this.application.ver&&(e.tags[nt.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[nt.applicationBuild]=this.application.build))},gt.prototype.applyDeviceContext=function(e){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},gt.prototype.applyInternalContext=function(e){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[nt.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[nt.internalSdkVersion]=this.internal.sdkVersion))},gt.prototype.applyLocationContext=function(e){this.location&&"string"==typeof this.location.ip&&(e.tags[nt.locationIp]=this.location.ip)},gt.prototype.applyOperationContext=function(e){if(this.telemetryTrace){var t=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(t.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(t.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(t.parentID=this.telemetryTrace.parentID),e.ext.trace=t}},gt.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},gt.prototype.applyUserContext=function(e){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[nt.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},gt.prototype.cleanUp=function(e){e.ext[tt.DeviceExt]&&0===Object.keys(e.ext[tt.DeviceExt]).length&&delete e.ext[tt.DeviceExt],e.ext[tt.UserExt]&&0===Object.keys(e.ext[tt.UserExt]).length&&delete e.ext[tt.UserExt],e.ext[tt.WebExt]&&0===Object.keys(e.ext[tt.WebExt]).length&&delete e.ext[tt.WebExt],e.ext[tt.OSExt]&&0===Object.keys(e.ext[tt.OSExt]).length&&delete e.ext[tt.OSExt],e.ext[tt.AppExt]&&0===Object.keys(e.ext[tt.AppExt]).length&&delete e.ext[tt.AppExt],e.ext[tt.TraceExt]&&0===Object.keys(e.ext[tt.TraceExt]).length&&delete e.ext[tt.TraceExt]},gt);function gt(e,t){"undefined"!=typeof window&&(this.sessionManager=new at(t,e),this.application=new st,this.device=new ct,this.internal=new ut(t),this.location=new ht,this.user=new lt(t,e),this.telemetryTrace=new dt,this.session=new ot),this.appId=function(){return null}}var mt=(vt.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},vt.prototype.initialize=function(t,e,i){var n=this,o=vt.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return $e.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||vt.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new ft(e.logger,this._extensionConfig),this._breezeChannel=O.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},vt.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(e.name===Te.envelopeType&&this._logger.resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e),c.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e))},vt.prototype.setNextPlugin=function(e){this._nextPlugin=e},vt.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[tt.DeviceExt]=e.ext[tt.DeviceExt]||{},e.ext[tt.WebExt]=e.ext[tt.WebExt]||{},e.ext[tt.UserExt]=e.ext[tt.UserExt]||{},e.ext[tt.OSExt]=e.ext[tt.OSExt]||{},e.ext[tt.AppExt]=e.ext[tt.AppExt]||{},e.ext[tt.TraceExt]=e.ext[tt.TraceExt]||{},this.context.applySessionContext(e),this.context.applyApplicationContext(e),this.context.applyDeviceContext(e),this.context.applyOperationContext(e),this.context.applyUserContext(e),this.context.applyOperatingSystemContxt(e),this.context.applyWebContext(e),this.context.applyLocationContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},vt);function vt(){this.priority=110,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=mt,e.TelemetryTrace=dt,e.TelemetryContext=ft,e.Session=ot,e.SessionManager=at,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
var Version = "2.1.0";
var Version = "2.1.1";
var Internal = /** @class */ (function () {

@@ -5,0 +5,0 @@ /**

/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.1.0
* Application Insights JavaScript SDK - Properties Plugin, 2.1.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 c=(t.isNullOrUndefined=function(e){return null==e},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t);function t(){}var s,i,n=/[xy]/g;(i=s||(s={}))[i.CRITICAL=1]="CRITICAL",i[i.WARNING=2]="WARNING";var o=0,a=1,r=2,u=3,l=4,p=5,h=6,d=9,f=23,g=27,m=49,v=52,y=56,x=57,S=60,I=61,N=66,w=68,D=69,C=(E.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},E.dataType="MessageData",E.AiNonUserActionablePrefix="AI (Internal): ",E.AiUserActionablePrefix="AI: ",E);function E(e,t,i,n){void 0===i&&(i=!1),this.messageId=e,this.message=(i?E.AiUserActionablePrefix:E.AiNonUserActionablePrefix)+e;var o=(t?" message:"+E.sanitizeDiagnosticText(t):"")+(n?" props:"+E.sanitizeDiagnosticText(JSON.stringify(n)):"");this.message+=o}var _=(A.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new C(t,i,o,n);if(this.enableDebugExceptions())throw a;if(void 0!==a&&a&&void 0!==a.message){if(o){var r=+a.messageId;(!this._messageLogged[r]||this.consoleLoggingLevel()>=s.WARNING)&&(this.warnToConsole(a.message),this._messageLogged[r]=!0)}else this.consoleLoggingLevel()>=s.WARNING&&this.warnToConsole(a.message);this.logInternalMessage(e,a)}},A.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},A.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},A.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var i=!0,n=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[n]?i=!1:this._messageLogged[n]=!0,i&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount==this.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new C(f,o,!1);this.queue.push(a),this.warnToConsole(o)}}},A.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},A);function A(e){this.AIInternalMessagePrefix="AITR_",this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 1},this.telemetryLoggingLevel=function(){return 0},this.maxInternalMessageLimit=function(){return 25},this.queue=[],this._messageCount=0,this._messageLogged={},c.isNullOrUndefined(e)||(c.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),c.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),c.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),c.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var b,k,T,U;M.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(M.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),M.prototype.initialize=function(i,n,o){var a=this;if(i.isCookieUseDisabled&&c.disableCookies(),this.channelQueue=new Array,i.channels){var r=void 0;i.channels.forEach(function(e){if(e&&0<e.length){if((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){e.priority<500&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error("Channel has invalid priority"+r);for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);a.channelQueue.push(e)}})}for(var e=new Array,t=0;t<o.length;t++){var s=o[t];500<s.priority&&e.push(s)}if(0<e.length){for((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){return e.initialize(i,n,o)}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);this.channelQueue.push(e)}};function M(){this.identifier="ChannelControllerPlugin",this.priority=500}(k=b||(b={}))[k.LocalStorage=0]="LocalStorage",k[k.SessionStorage=1]="SessionStorage",(U=T||(T={}))[U.Default=0]="Default",U[U.Required=1]="Required",U[U.Array=2]="Array",U[U.Hidden=4]="Hidden";var L=(R.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=R.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,R.MAX_NAME_LENGTH-3)+R.padNumber(a);o=r}return o},R.sanitizeKey=function(e,t){var i;return t&&(t=R.trim(t.toString())).length>R.MAX_NAME_LENGTH&&(i=t.substring(0,R.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+R.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},R.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=R.MAX_STRING_LENGTH),t&&(i=i||R.MAX_STRING_LENGTH,(t=R.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,I,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},R.sanitizeUrl=function(e,t){return R.sanitizeInput(e,t,R.MAX_URL_LENGTH,N)},R.sanitizeMessage=function(e,t){var i;return t&&t.length>R.MAX_MESSAGE_LENGTH&&(i=t.substring(0,R.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+R.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},R.sanitizeException=function(e,t){var i;return t&&t.length>R.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,R.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+R.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},R.sanitizeProperties=function(t,e){if(e){var i={};for(var n in e){var o=e[n];if("object"==typeof o&&"undefined"!=typeof JSON)try{o=JSON.stringify(o)}catch(e){t.throwInternal(s.WARNING,m,"custom property is not valid",{exception:e},!0)}o=R.sanitizeString(t,o,R.MAX_PROPERTY_LENGTH),i[n=R.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},R.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=R.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},R.sanitizeId=function(e,t){return t?R.sanitizeInput(e,t,R.MAX_ID_LENGTH,D).toString():t},R.sanitizeInput=function(e,t,i,n){var o;return t&&(t=R.trim(t)).length>i&&(o=t.substring(0,i),e.throwInternal(s.WARNING,n,"input is too long, it has been truncated to "+i+" characters.",{data:t},!0)),o||t},R.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},R.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},R.MAX_NAME_LENGTH=150,R.MAX_ID_LENGTH=128,R.MAX_PROPERTY_LENGTH=8192,R.MAX_STRING_LENGTH=1024,R.MAX_URL_LENGTH=2048,R.MAX_MESSAGE_LENGTH=32768,R.MAX_EXCEPTION_LENGTH=32768,R);function R(){}var O=(z.disableStorage=function(){z._canUseLocalStorage=!1,z._canUseSessionStorage=!1},z._getLocalStorageObject=function(){return z.canUseLocalStorage()?z._getVerifiedStorageObject(b.LocalStorage):null},z._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===b.LocalStorage?window.localStorage:window.sessionStorage).setItem(i,i),t=n.getItem(i)!=i,n.removeItem(i),t&&(n=null)}catch(e){n=null}return n},z.isInternalApplicationInsightsEndpoint=function(e){return-1!==z._internalEndpoints.indexOf(e.toLowerCase())},z.canUseLocalStorage=function(){return void 0===z._canUseLocalStorage&&(z._canUseLocalStorage=!!z._getVerifiedStorageObject(b.LocalStorage)),z._canUseLocalStorage},z.getStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setStorage=function(t,e,i){var n=z._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z._getSessionStorageObject=function(){return z.canUseSessionStorage()?z._getVerifiedStorageObject(b.SessionStorage):null},z.canUseSessionStorage=function(){return void 0===z._canUseSessionStorage&&(z._canUseSessionStorage=!!z._getVerifiedStorageObject(b.SessionStorage)),z._canUseSessionStorage},z.getSessionStorageKeys=function(){var e=[];if(z.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},z.getSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setSessionStorage=function(t,e,i){var n=z._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.disableCookies=function(){c.disableCookies()},z.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==z.document.cookie}catch(e){t.throwInternal(s.WARNING,w,"Cannot access document.cookie - "+z.getExceptionName(e),{exception:z.dump(e)})}}return c._canUseCookies},z.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),z.document.location&&"https:"===z.document.location.protocol&&(a=";secure"),z.canUseCookies(e)&&(z.document.cookie=t+"="+i+o+";path=/"+a)},z.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},z.getCookie=function(e,t){if(z.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=z.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=z.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},z.deleteCookie=function(e,t){z.canUseCookies(e)&&(z.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},z.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},z.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},z.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},z.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},z.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},z.toISOStringForIE8=function(e){if(z.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"}},z.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},z.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,i=""+Math.floor(e/1e3)%60,n=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,i=i.length<2?"0"+i:i,n=n.length<2?"0"+n:n,(0<a?a+".":"")+(o=o.length<2?"0"+o:o)+":"+n+":"+i+"."+t},z.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},z.dump=function(e){var t=Object.prototype.toString.call(e),i=JSON.stringify(e);return"[object Error]"===t&&(i="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+i},z.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},z.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var i="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(i,t)}return!0},z.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},z.getExtension=function(e,t){for(var i=null,n=0;!i&&n<e.length;)e[n]&&e[n].identifier===t&&(i=e[n]),n++;return i},z.document="undefined"!=typeof document?document:{},z._canUseLocalStorage=void 0,z._canUseSessionStorage=void 0,z._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],z.NotSpecified="not_specified",z);function z(){}var P=(G.parseUrl=function(e){return G.htmlAnchorElement||(G.htmlAnchorElement=G.document.createElement?G.document.createElement("a"):{host:G.parseHost(e)}),G.htmlAnchorElement.href=e,G.htmlAnchorElement},G.getAbsoluteUrl=function(e){var t,i=G.parseUrl(e);return i&&(t=i.href),t},G.getPathName=function(e){var t,i=G.parseUrl(e);return i&&(t=i.pathname),t},G.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},G.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},G.document="undefined"!=typeof document?document:{},G);function G(){}var q=(j.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=P.parseUrl(t);if(o=s.host,!a)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),r=s.pathname,a=L.sanitizeString(e,i?i+" "+c:c)}else a=L.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},j);function j(){}var W=(V.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()},V.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},V);function V(){}var H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function B(e,t){function i(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var X,F=function(){return(F=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=(B(J,X=function(){}),J);function J(){return X.call(this)||this}var Q;B(Y,Q=function(){this.ver=1,this.sampleRate=100,this.tags={}});function Y(e,t,i){var n=Q.call(this)||this;return n.name=L.sanitizeString(e,i)||O.NotSpecified,n.data=t,n.time=O.toISOStringForIE8(new Date),n.aiDataContract={time:T.Required,iKey:T.Required,name:T.Required,sampleRate:function(){return 100==n.sampleRate?T.Hidden:T.Required},tags:T.Required,data:T.Required},n}function $(){}var Z,ee=(B(te,Z=$),te);function te(){var e=Z.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ie;B(ne,ie=ee),ne.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ne.dataType="EventData";function ne(e,t,i,n){var o=ie.call(this)||this;return o.aiDataContract={ver:T.Required,name:T.Required,properties:T.Default,measurements:T.Default},o.name=L.sanitizeString(e,t)||O.NotSpecified,o.properties=L.sanitizeProperties(e,i),o.measurements=L.sanitizeMeasurements(e,n),o}function oe(){}var ae,re=(B(se,ae=$),se);function se(){var e=ae.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function ce(){this.hasFullStack=!0,this.parsedStack=[]}var ue;B(le,ue=re),le.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return he.CreateFromInterface(t,e)});return new le(t,F({},e,{exceptions:i}))},le.prototype.toInterface=function(){var e=this,t=e.exceptions,i=e.properties,n=e.measurements,o=e.severityLevel,a=e.ver,r=e.problemGroup,s=e.id,c=e.isManual;return{ver:a,exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:o,properties:i,measurements:n,problemGroup:r,id:s,isManual:c}},le.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},le.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",le.dataType="ExceptionData";function le(e,t,i,n,o,a){var r=ue.call(this)||this;return r.aiDataContract={ver:T.Required,exceptions:T.Required,severityLevel:T.Default,properties:T.Default,measurements:T.Default},t instanceof Error?(r.exceptions=[new he(e,t)],r.properties=L.sanitizeProperties(e,i),r.measurements=L.sanitizeMeasurements(e,n),o&&(r.severityLevel=o),a&&(r.id=a)):(r.exceptions=t.exceptions,r.properties=t.properties,r.measurements=t.measurements,t.severityLevel&&(r.severityLevel=t.severityLevel),t.id&&(r.id=t.id),t.problemGroup&&(r.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(r.ver=t.ver),c.isNullOrUndefined(t.isManual)||(r.isManual=t.isManual)),r}var pe,he=(B(de,pe=ce),de.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}},de.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ge.CreateFromInterface(e)})||t.parsedStack;return new de(e,F({},t,{parsedStack:i}))},de.parseStack=function(e){var t=void 0;if("string"==typeof e){var i=e.split("\n");t=[];for(var n=0,o=0,a=0;a<=i.length;a++){var r=i[a];if(ge.regex.test(r)){var s=new ge(i[a],n++);o+=s.sizeInBytes,t.push(s)}}if(32768<o)for(var c=0,u=t.length-1,l=0,p=c,h=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var d=h-p+1;t.splice(p,d);break}p=c,h=u,c++,u--}}return t},de);function de(e,t){var i=pe.call(this)||this;if(i.aiDataContract={id:T.Default,outerId:T.Default,typeName:T.Required,message:T.Required,hasFullStack:T.Default,stack:T.Default,parsedStack:T.Array},t instanceof Error){i.typeName=L.sanitizeString(e,t.name)||O.NotSpecified,i.message=L.sanitizeMessage(e,t.message)||O.NotSpecified;var n=t.stack;i.parsedStack=de.parseStack(n),i.stack=L.sanitizeException(e,n),i.hasFullStack=O.isArray(i.parsedStack)&&0<i.parsedStack.length}else i.typeName=t.typeName,i.message=t.message,i.stack=t.stack,i.parsedStack=t.parsedStack,i.hasFullStack=t.hasFullStack;return i}var fe,ge=(B(me,fe=oe),me.CreateFromInterface=function(e){return new me(e,null)},me.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},me.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,me.baseSize=58,me);function me(e,t){var i=fe.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:T.Required,method:T.Required,assembly:T.Default,fileName:T.Default,line:T.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=O.trim(n),i.fileName="",i.line=0;var o=n.match(me.regex);o&&5<=o.length&&(i.method=O.trim(o[2])||i.method,i.fileName=O.trim(o[4]),i.line=parseInt(o[5])||0)}else i.level=e.level,i.method=e.method,i.assembly=e.assembly,i.fileName=e.fileName,i.line=e.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=me.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var ve,ye,xe,Se=(B(Ie,ve=$),Ie);function Ie(){var e=ve.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(xe=ye||(ye={}))[xe.Measurement=0]="Measurement",xe[xe.Aggregation=1]="Aggregation";var Ne,we=(B(De,Ne=function(){this.kind=ye.Measurement}),De);function De(){var e=null!==Ne&&Ne.apply(this,arguments)||this;return e.aiDataContract={name:T.Required,kind:T.Default,value:T.Required,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default},e}var Ce;B(Ee,Ce=Se),Ee.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ee.dataType="MetricData";function Ee(e,t,i,n,o,a,r){var s=Ce.call(this)||this;s.aiDataContract={ver:T.Required,metrics:T.Required,properties:T.Default};var c=new we;return c.count=0<n?n:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=L.sanitizeString(e,t)||O.NotSpecified,c.value=i,s.metrics=[c],s.properties=L.sanitizeProperties(e,r),s}var _e,Ae=(B(be,_e=ee),be);function be(){var e=_e.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ke,Te=(B(Ue,ke=Ae),Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ue.dataType="PageviewData",Ue);function Ue(e,t,i,n,o,a,r){var s=ke.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,properties:T.Default,measurements:T.Default,id:T.Default},s.id=L.sanitizeId(e,r),s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,isNaN(n)||(s.duration=O.msToTimeSpan(n)),s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),s}var Me,Le=(B(Re,Me=$),Re);function Re(){var e=Me.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Oe;B(ze,Oe=Le),ze.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ze.dataType="RemoteDependencyData";function ze(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Oe.call(this)||this;p.aiDataContract={id:T.Required,ver:T.Required,name:T.Default,resultCode:T.Default,duration:T.Default,success:T.Default,data:T.Default,target:T.Default,type:T.Default,properties:T.Default,measurements:T.Default,kind:T.Default,value:T.Default,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default,dependencyKind:T.Default,dependencySource:T.Default,commandName:T.Default,dependencyTypeName:T.Default},p.id=t,p.duration=O.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=L.sanitizeString(e,c);var h=q.ParseDependencyPath(e,i,s,n);return p.data=L.sanitizeUrl(e,n)||h.data,p.target=L.sanitizeString(e,h.target),p.name=L.sanitizeString(e,h.name),p.properties=L.sanitizeProperties(e,u),p.measurements=L.sanitizeMeasurements(e,l),p}var Pe,Ge=(B(qe,Pe=$),qe);function qe(){var e=Pe.call(this)||this;return e.ver=2,e.properties={},e}var je;B(We,je=Ge),We.envelopeType="Microsoft.ApplicationInsights.{0}.Message",We.dataType="MessageData";function We(e,t,i,n){var o=je.call(this)||this;return o.aiDataContract={ver:T.Required,message:T.Required,severityLevel:T.Default,properties:T.Default},t=t||O.NotSpecified,o.message=L.sanitizeMessage(e,t),o.properties=L.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Ve,He=(B(Be,Ve=Ae),Be);function Be(){var e=Ve.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Xe;B(Fe,Xe=He),Fe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Fe.dataType="PageviewPerformanceData";function Fe(e,t,i,n,o,a,r){var s=Xe.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,perfTotal:T.Default,networkConnect:T.Default,sentRequest:T.Default,receivedResponse:T.Default,domProcessing:T.Default,properties:T.Default,measurements:T.Default},s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),r&&(s.domProcessing=r.domProcessing,s.duration=r.duration,s.networkConnect=r.networkConnect,s.perfTotal=r.perfTotal,s.receivedResponse=r.receivedResponse,s.sentRequest=r.sentRequest),s}var Ke,Je,Qe;B(Ye,Ke=K);function Ye(e,t){var i=Ke.call(this)||this;return i.aiDataContract={baseType:T.Required,baseData:T.Required},i.baseType=e,i.baseData=t,i}(Qe=Je||(Je={}))[Qe.Verbose=0]="Verbose",Qe[Qe.Information=1]="Information",Qe[Qe.Warning=2]="Warning",Qe[Qe.Error=3]="Error",Qe[Qe.Critical=4]="Critical";var $e=(Ze.getConfig=function(e,t,i,n){var o;return void 0===n&&(n=!1),o=i&&e.extensionConfig&&e.extensionConfig[i]&&!c.isNullOrUndefined(e.extensionConfig[i][t])?e.extensionConfig[i][t]:e[t],c.isNullOrUndefined(o)?n:o},Ze);function Ze(){}var et=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},tt=(it.UserExt="user",it.DeviceExt="device",it.TraceExt="trace",it.WebExt="web",it.AppExt="app",it.OSExt="os",it.SessionExt="ses",it.SDKExt="sdk",it);function it(){}var nt=new et,ot=function(){},at=(rt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=W.Now(),t=e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),i=e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||i?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>rt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},rt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},rt.prototype.initializeAutomaticSession=function(){var e=O.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=O.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},rt.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var i=+t[1];this.automaticSession.acquisitionDate=+new Date(i),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var n=+t[2];this.automaticSession.renewalDate=+new Date(n),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(s.CRITICAL,d,"Error parsing ai_session cookie, session will be reset: "+O.getExceptionName(e),{exception:O.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,g,"AI session renewal date is 0, session will be reset.")},rt.prototype.renew=function(){var e=W.Now();this.automaticSession.id=O.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),O.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},rt.prototype.setCookie=function(e,t,i){var n=t+this.config.sessionExpirationMs(),o=i+this.config.sessionRenewalMs(),a=new Date,r=[e,t,i];n<o?a.setTime(n):a.setTime(o);var s=this.config.cookieDomain?this.config.cookieDomain():null;O.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=W.Now()},rt.prototype.setStorage=function(e,t,i){O.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},rt.acquisitionSpan=864e5,rt.renewalSpan=18e5,rt.cookieUpdateInterval=6e4,rt.cookieNameConst="ai_session",rt);function rt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new _:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return rt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return rt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?rt.cookieNameConst+i.config.namePrefix():rt.cookieNameConst},this.automaticSession=new ot}var st=function(){},ct=function(){this.id="browser",this.deviceClass="Browser"},ut=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.1.0"},lt=(pt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,S,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var n=this.authenticatedId;t&&(this.accountId=t,n=[this.authenticatedId,this.accountId].join(pt.cookieSeparator)),i&&O.setCookie(this._logger,pt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},pt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,O.deleteCookie(this._logger,pt.authUserCookieName)},pt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},pt.cookieSeparator="|",pt.userCookieName="ai_user",pt.authUserCookieName="ai_authUser",pt);function pt(e,t){this._logger=t;var i=O.getCookie(this._logger,pt.userCookieName);if(i){var n=i.split(pt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=O.newId();var o=new Date,a=O.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;O.setCookie(this._logger,pt.userCookieName,r.join(pt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";O.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=O.getCookie(this._logger,pt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(pt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var ht=function(){},dt=function(e,t,i){this.traceID=e||O.newId(),this.parentID=t,this.name=i,window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)},ft=(gt.prototype.applySessionContext=function(e){var t=this.session||this.sessionManager.automaticSession;t&&"string"==typeof t.id&&(e.ext.app.sesId=t.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},gt.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},gt.prototype.applyApplicationContext=function(e){this.application&&("string"==typeof this.application.ver&&(e.tags[nt.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[nt.applicationBuild]=this.application.build))},gt.prototype.applyDeviceContext=function(e){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},gt.prototype.applyInternalContext=function(e){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[nt.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[nt.internalSdkVersion]=this.internal.sdkVersion))},gt.prototype.applyLocationContext=function(e){this.location&&"string"==typeof this.location.ip&&(e.tags[nt.locationIp]=this.location.ip)},gt.prototype.applyOperationContext=function(e){if(this.telemetryTrace){var t=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(t.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(t.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(t.parentID=this.telemetryTrace.parentID),e.ext.trace=t}},gt.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},gt.prototype.applyUserContext=function(e){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[nt.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},gt.prototype.cleanUp=function(e){e.ext[tt.DeviceExt]&&0===Object.keys(e.ext[tt.DeviceExt]).length&&delete e.ext[tt.DeviceExt],e.ext[tt.UserExt]&&0===Object.keys(e.ext[tt.UserExt]).length&&delete e.ext[tt.UserExt],e.ext[tt.WebExt]&&0===Object.keys(e.ext[tt.WebExt]).length&&delete e.ext[tt.WebExt],e.ext[tt.OSExt]&&0===Object.keys(e.ext[tt.OSExt]).length&&delete e.ext[tt.OSExt],e.ext[tt.AppExt]&&0===Object.keys(e.ext[tt.AppExt]).length&&delete e.ext[tt.AppExt],e.ext[tt.TraceExt]&&0===Object.keys(e.ext[tt.TraceExt]).length&&delete e.ext[tt.TraceExt]},gt);function gt(e,t){"undefined"!=typeof window&&(this.sessionManager=new at(t,e),this.application=new st,this.device=new ct,this.internal=new ut(t),this.location=new ht,this.user=new lt(t,e),this.telemetryTrace=new dt,this.session=new ot),this.appId=function(){return null}}var mt=(vt.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},vt.prototype.initialize=function(t,e,i){var n=this,o=vt.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return $e.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||vt.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new ft(e.logger,this._extensionConfig),this._breezeChannel=O.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},vt.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(e.name===Te.envelopeType&&this._logger.resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e),c.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e))},vt.prototype.setNextPlugin=function(e){this._nextPlugin=e},vt.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[tt.DeviceExt]=e.ext[tt.DeviceExt]||{},e.ext[tt.WebExt]=e.ext[tt.WebExt]||{},e.ext[tt.UserExt]=e.ext[tt.UserExt]||{},e.ext[tt.OSExt]=e.ext[tt.OSExt]||{},e.ext[tt.AppExt]=e.ext[tt.AppExt]||{},e.ext[tt.TraceExt]=e.ext[tt.TraceExt]||{},this.context.applySessionContext(e),this.context.applyApplicationContext(e),this.context.applyDeviceContext(e),this.context.applyOperationContext(e),this.context.applyUserContext(e),this.context.applyOperatingSystemContxt(e),this.context.applyWebContext(e),this.context.applyLocationContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},vt);function vt(){this.priority=110,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=mt,e.TelemetryTrace=dt,e.TelemetryContext=ft,e.Session=ot,e.SessionManager=at,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 c=(t.isNullOrUndefined=function(e){return null==e},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t);function t(){}var s,i,n=/[xy]/g;(i=s||(s={}))[i.CRITICAL=1]="CRITICAL",i[i.WARNING=2]="WARNING";var o=0,a=1,r=2,u=3,l=4,p=5,h=6,d=9,f=23,g=27,m=49,v=52,y=56,x=57,S=60,I=61,N=66,w=68,D=69,C=(E.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},E.dataType="MessageData",E.AiNonUserActionablePrefix="AI (Internal): ",E.AiUserActionablePrefix="AI: ",E);function E(e,t,i,n){void 0===i&&(i=!1),this.messageId=e,this.message=(i?E.AiUserActionablePrefix:E.AiNonUserActionablePrefix)+e;var o=(t?" message:"+E.sanitizeDiagnosticText(t):"")+(n?" props:"+E.sanitizeDiagnosticText(JSON.stringify(n)):"");this.message+=o}var _=(A.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new C(t,i,o,n);if(this.enableDebugExceptions())throw a;if(void 0!==a&&a&&void 0!==a.message){if(o){var r=+a.messageId;(!this._messageLogged[r]||this.consoleLoggingLevel()>=s.WARNING)&&(this.warnToConsole(a.message),this._messageLogged[r]=!0)}else this.consoleLoggingLevel()>=s.WARNING&&this.warnToConsole(a.message);this.logInternalMessage(e,a)}},A.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},A.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},A.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var i=!0,n=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[n]?i=!1:this._messageLogged[n]=!0,i&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount==this.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new C(f,o,!1);this.queue.push(a),this.warnToConsole(o)}}},A.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},A);function A(e){this.AIInternalMessagePrefix="AITR_",this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 1},this.telemetryLoggingLevel=function(){return 0},this.maxInternalMessageLimit=function(){return 25},this.queue=[],this._messageCount=0,this._messageLogged={},c.isNullOrUndefined(e)||(c.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),c.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),c.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),c.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var b,k,T,U;M.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(M.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),M.prototype.initialize=function(i,n,o){var a=this;if(i.isCookieUseDisabled&&c.disableCookies(),this.channelQueue=new Array,i.channels){var r=void 0;i.channels.forEach(function(e){if(e&&0<e.length){if((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){e.priority<500&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error("Channel has invalid priority"+r);for(var t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);a.channelQueue.push(e)}})}for(var e=new Array,t=0;t<o.length;t++){var s=o[t];500<s.priority&&e.push(s)}if(0<e.length){for((e=e.sort(function(e,t){return e.priority-t.priority})).forEach(function(e){return e.initialize(i,n,o)}),t=1;t<e.length;t++)e[t-1].setNextPlugin(e[t]);this.channelQueue.push(e)}};function M(){this.identifier="ChannelControllerPlugin",this.priority=500}(k=b||(b={}))[k.LocalStorage=0]="LocalStorage",k[k.SessionStorage=1]="SessionStorage",(U=T||(T={}))[U.Default=0]="Default",U[U.Required=1]="Required",U[U.Array=2]="Array",U[U.Hidden=4]="Hidden";var L=(R.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=R.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,R.MAX_NAME_LENGTH-3)+R.padNumber(a);o=r}return o},R.sanitizeKey=function(e,t){var i;return t&&(t=R.trim(t.toString())).length>R.MAX_NAME_LENGTH&&(i=t.substring(0,R.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+R.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},R.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=R.MAX_STRING_LENGTH),t&&(i=i||R.MAX_STRING_LENGTH,(t=R.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,I,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},R.sanitizeUrl=function(e,t){return R.sanitizeInput(e,t,R.MAX_URL_LENGTH,N)},R.sanitizeMessage=function(e,t){var i;return t&&t.length>R.MAX_MESSAGE_LENGTH&&(i=t.substring(0,R.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+R.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},R.sanitizeException=function(e,t){var i;return t&&t.length>R.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,R.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+R.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},R.sanitizeProperties=function(t,e){if(e){var i={};for(var n in e){var o=e[n];if("object"==typeof o&&"undefined"!=typeof JSON)try{o=JSON.stringify(o)}catch(e){t.throwInternal(s.WARNING,m,"custom property is not valid",{exception:e},!0)}o=R.sanitizeString(t,o,R.MAX_PROPERTY_LENGTH),i[n=R.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},R.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=R.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},R.sanitizeId=function(e,t){return t?R.sanitizeInput(e,t,R.MAX_ID_LENGTH,D).toString():t},R.sanitizeInput=function(e,t,i,n){var o;return t&&(t=R.trim(t)).length>i&&(o=t.substring(0,i),e.throwInternal(s.WARNING,n,"input is too long, it has been truncated to "+i+" characters.",{data:t},!0)),o||t},R.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},R.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},R.MAX_NAME_LENGTH=150,R.MAX_ID_LENGTH=128,R.MAX_PROPERTY_LENGTH=8192,R.MAX_STRING_LENGTH=1024,R.MAX_URL_LENGTH=2048,R.MAX_MESSAGE_LENGTH=32768,R.MAX_EXCEPTION_LENGTH=32768,R);function R(){}var O=(z.disableStorage=function(){z._canUseLocalStorage=!1,z._canUseSessionStorage=!1},z._getLocalStorageObject=function(){return z.canUseLocalStorage()?z._getVerifiedStorageObject(b.LocalStorage):null},z._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===b.LocalStorage?window.localStorage:window.sessionStorage).setItem(i,i),t=n.getItem(i)!=i,n.removeItem(i),t&&(n=null)}catch(e){n=null}return n},z.isInternalApplicationInsightsEndpoint=function(e){return-1!==z._internalEndpoints.indexOf(e.toLowerCase())},z.canUseLocalStorage=function(){return void 0===z._canUseLocalStorage&&(z._canUseLocalStorage=!!z._getVerifiedStorageObject(b.LocalStorage)),z._canUseLocalStorage},z.getStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setStorage=function(t,e,i){var n=z._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeStorage=function(t,e){var i=z._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z._getSessionStorageObject=function(){return z.canUseSessionStorage()?z._getVerifiedStorageObject(b.SessionStorage):null},z.canUseSessionStorage=function(){return void 0===z._canUseSessionStorage&&(z._canUseSessionStorage=!!z._getVerifiedStorageObject(b.SessionStorage)),z._canUseSessionStorage},z.getSessionStorageKeys=function(){var e=[];if(z.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},z.getSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return null},z.setSessionStorage=function(t,e,i){var n=z._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.removeSessionStorage=function(t,e){var i=z._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){z._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+z.getExceptionName(e),{exception:z.dump(e)})}return!1},z.disableCookies=function(){c.disableCookies()},z.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==z.document.cookie}catch(e){t.throwInternal(s.WARNING,w,"Cannot access document.cookie - "+z.getExceptionName(e),{exception:z.dump(e)})}}return c._canUseCookies},z.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),z.document.location&&"https:"===z.document.location.protocol&&(a=";secure"),z.canUseCookies(e)&&(z.document.cookie=t+"="+i+o+";path=/"+a)},z.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},z.getCookie=function(e,t){if(z.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=z.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=z.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},z.deleteCookie=function(e,t){z.canUseCookies(e)&&(z.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},z.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},z.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},z.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},z.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},z.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},z.toISOStringForIE8=function(e){if(z.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"}},z.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},z.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,i=""+Math.floor(e/1e3)%60,n=""+Math.floor(e/6e4)%60,o=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,i=i.length<2?"0"+i:i,n=n.length<2?"0"+n:n,(0<a?a+".":"")+(o=o.length<2?"0"+o:o)+":"+n+":"+i+"."+t},z.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},z.dump=function(e){var t=Object.prototype.toString.call(e),i=JSON.stringify(e);return"[object Error]"===t&&(i="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+i},z.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},z.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var i="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(i,t)}return!0},z.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},z.getExtension=function(e,t){for(var i=null,n=0;!i&&n<e.length;)e[n]&&e[n].identifier===t&&(i=e[n]),n++;return i},z.document="undefined"!=typeof document?document:{},z._canUseLocalStorage=void 0,z._canUseSessionStorage=void 0,z._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],z.NotSpecified="not_specified",z);function z(){}var P=(G.parseUrl=function(e){return G.htmlAnchorElement||(G.htmlAnchorElement=G.document.createElement?G.document.createElement("a"):{host:G.parseHost(e)}),G.htmlAnchorElement.href=e,G.htmlAnchorElement},G.getAbsoluteUrl=function(e){var t,i=G.parseUrl(e);return i&&(t=i.href),t},G.getPathName=function(e){var t,i=G.parseUrl(e);return i&&(t=i.pathname),t},G.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},G.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},G.document="undefined"!=typeof document?document:{},G);function G(){}var q=(j.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=P.parseUrl(t);if(o=s.host,!a)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),r=s.pathname,a=L.sanitizeString(e,i?i+" "+c:c)}else a=L.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},j);function j(){}var W=(V.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()},V.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},V);function V(){}var H=function(e,t){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function B(e,t){function i(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var X,F=function(){return(F=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},K=(B(J,X=function(){}),J);function J(){return X.call(this)||this}var Q;B(Y,Q=function(){this.ver=1,this.sampleRate=100,this.tags={}});function Y(e,t,i){var n=Q.call(this)||this;return n.name=L.sanitizeString(e,i)||O.NotSpecified,n.data=t,n.time=O.toISOStringForIE8(new Date),n.aiDataContract={time:T.Required,iKey:T.Required,name:T.Required,sampleRate:function(){return 100==n.sampleRate?T.Hidden:T.Required},tags:T.Required,data:T.Required},n}function $(){}var Z,ee=(B(te,Z=$),te);function te(){var e=Z.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ie;B(ne,ie=ee),ne.envelopeType="Microsoft.ApplicationInsights.{0}.Event",ne.dataType="EventData";function ne(e,t,i,n){var o=ie.call(this)||this;return o.aiDataContract={ver:T.Required,name:T.Required,properties:T.Default,measurements:T.Default},o.name=L.sanitizeString(e,t)||O.NotSpecified,o.properties=L.sanitizeProperties(e,i),o.measurements=L.sanitizeMeasurements(e,n),o}function oe(){}var ae,re=(B(se,ae=$),se);function se(){var e=ae.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function ce(){this.hasFullStack=!0,this.parsedStack=[]}var ue;B(le,ue=re),le.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return he.CreateFromInterface(t,e)});return new le(t,F({},e,{exceptions:i}))},le.prototype.toInterface=function(){var e=this,t=e.exceptions,i=e.properties,n=e.measurements,o=e.severityLevel,a=e.ver,r=e.problemGroup,s=e.id,c=e.isManual;return{ver:a,exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:o,properties:i,measurements:n,problemGroup:r,id:s,isManual:c}},le.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},le.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",le.dataType="ExceptionData";function le(e,t,i,n,o,a){var r=ue.call(this)||this;return r.aiDataContract={ver:T.Required,exceptions:T.Required,severityLevel:T.Default,properties:T.Default,measurements:T.Default},t instanceof Error?(r.exceptions=[new he(e,t)],r.properties=L.sanitizeProperties(e,i),r.measurements=L.sanitizeMeasurements(e,n),o&&(r.severityLevel=o),a&&(r.id=a)):(r.exceptions=t.exceptions,r.properties=t.properties,r.measurements=t.measurements,t.severityLevel&&(r.severityLevel=t.severityLevel),t.id&&(r.id=t.id),t.problemGroup&&(r.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(r.ver=t.ver),c.isNullOrUndefined(t.isManual)||(r.isManual=t.isManual)),r}var pe,he=(B(de,pe=ce),de.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}},de.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ge.CreateFromInterface(e)})||t.parsedStack;return new de(e,F({},t,{parsedStack:i}))},de.parseStack=function(e){var t=void 0;if("string"==typeof e){var i=e.split("\n");t=[];for(var n=0,o=0,a=0;a<=i.length;a++){var r=i[a];if(ge.regex.test(r)){var s=new ge(i[a],n++);o+=s.sizeInBytes,t.push(s)}}if(32768<o)for(var c=0,u=t.length-1,l=0,p=c,h=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var d=h-p+1;t.splice(p,d);break}p=c,h=u,c++,u--}}return t},de);function de(e,t){var i=pe.call(this)||this;if(i.aiDataContract={id:T.Default,outerId:T.Default,typeName:T.Required,message:T.Required,hasFullStack:T.Default,stack:T.Default,parsedStack:T.Array},t instanceof Error){i.typeName=L.sanitizeString(e,t.name)||O.NotSpecified,i.message=L.sanitizeMessage(e,t.message)||O.NotSpecified;var n=t.stack;i.parsedStack=de.parseStack(n),i.stack=L.sanitizeException(e,n),i.hasFullStack=O.isArray(i.parsedStack)&&0<i.parsedStack.length}else i.typeName=t.typeName,i.message=t.message,i.stack=t.stack,i.parsedStack=t.parsedStack,i.hasFullStack=t.hasFullStack;return i}var fe,ge=(B(me,fe=oe),me.CreateFromInterface=function(e){return new me(e,null)},me.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},me.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,me.baseSize=58,me);function me(e,t){var i=fe.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:T.Required,method:T.Required,assembly:T.Default,fileName:T.Default,line:T.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=O.trim(n),i.fileName="",i.line=0;var o=n.match(me.regex);o&&5<=o.length&&(i.method=O.trim(o[2])||i.method,i.fileName=O.trim(o[4]),i.line=parseInt(o[5])||0)}else i.level=e.level,i.method=e.method,i.assembly=e.assembly,i.fileName=e.fileName,i.line=e.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=me.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var ve,ye,xe,Se=(B(Ie,ve=$),Ie);function Ie(){var e=ve.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(xe=ye||(ye={}))[xe.Measurement=0]="Measurement",xe[xe.Aggregation=1]="Aggregation";var Ne,we=(B(De,Ne=function(){this.kind=ye.Measurement}),De);function De(){var e=null!==Ne&&Ne.apply(this,arguments)||this;return e.aiDataContract={name:T.Required,kind:T.Default,value:T.Required,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default},e}var Ce;B(Ee,Ce=Se),Ee.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ee.dataType="MetricData";function Ee(e,t,i,n,o,a,r){var s=Ce.call(this)||this;s.aiDataContract={ver:T.Required,metrics:T.Required,properties:T.Default};var c=new we;return c.count=0<n?n:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=L.sanitizeString(e,t)||O.NotSpecified,c.value=i,s.metrics=[c],s.properties=L.sanitizeProperties(e,r),s}var _e,Ae=(B(be,_e=ee),be);function be(){var e=_e.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ke,Te=(B(Ue,ke=Ae),Ue.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ue.dataType="PageviewData",Ue);function Ue(e,t,i,n,o,a,r){var s=ke.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,properties:T.Default,measurements:T.Default,id:T.Default},s.id=L.sanitizeId(e,r),s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,isNaN(n)||(s.duration=O.msToTimeSpan(n)),s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),s}var Me,Le=(B(Re,Me=$),Re);function Re(){var e=Me.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Oe;B(ze,Oe=Le),ze.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ze.dataType="RemoteDependencyData";function ze(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Oe.call(this)||this;p.aiDataContract={id:T.Required,ver:T.Required,name:T.Default,resultCode:T.Default,duration:T.Default,success:T.Default,data:T.Default,target:T.Default,type:T.Default,properties:T.Default,measurements:T.Default,kind:T.Default,value:T.Default,count:T.Default,min:T.Default,max:T.Default,stdDev:T.Default,dependencyKind:T.Default,dependencySource:T.Default,commandName:T.Default,dependencyTypeName:T.Default},p.id=t,p.duration=O.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=L.sanitizeString(e,c);var h=q.ParseDependencyPath(e,i,s,n);return p.data=L.sanitizeUrl(e,n)||h.data,p.target=L.sanitizeString(e,h.target),p.name=L.sanitizeString(e,h.name),p.properties=L.sanitizeProperties(e,u),p.measurements=L.sanitizeMeasurements(e,l),p}var Pe,Ge=(B(qe,Pe=$),qe);function qe(){var e=Pe.call(this)||this;return e.ver=2,e.properties={},e}var je;B(We,je=Ge),We.envelopeType="Microsoft.ApplicationInsights.{0}.Message",We.dataType="MessageData";function We(e,t,i,n){var o=je.call(this)||this;return o.aiDataContract={ver:T.Required,message:T.Required,severityLevel:T.Default,properties:T.Default},t=t||O.NotSpecified,o.message=L.sanitizeMessage(e,t),o.properties=L.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Ve,He=(B(Be,Ve=Ae),Be);function Be(){var e=Ve.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Xe;B(Fe,Xe=He),Fe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Fe.dataType="PageviewPerformanceData";function Fe(e,t,i,n,o,a,r){var s=Xe.call(this)||this;return s.aiDataContract={ver:T.Required,name:T.Default,url:T.Default,duration:T.Default,perfTotal:T.Default,networkConnect:T.Default,sentRequest:T.Default,receivedResponse:T.Default,domProcessing:T.Default,properties:T.Default,measurements:T.Default},s.url=L.sanitizeUrl(e,i),s.name=L.sanitizeString(e,t)||O.NotSpecified,s.properties=L.sanitizeProperties(e,o),s.measurements=L.sanitizeMeasurements(e,a),r&&(s.domProcessing=r.domProcessing,s.duration=r.duration,s.networkConnect=r.networkConnect,s.perfTotal=r.perfTotal,s.receivedResponse=r.receivedResponse,s.sentRequest=r.sentRequest),s}var Ke,Je,Qe;B(Ye,Ke=K);function Ye(e,t){var i=Ke.call(this)||this;return i.aiDataContract={baseType:T.Required,baseData:T.Required},i.baseType=e,i.baseData=t,i}(Qe=Je||(Je={}))[Qe.Verbose=0]="Verbose",Qe[Qe.Information=1]="Information",Qe[Qe.Warning=2]="Warning",Qe[Qe.Error=3]="Error",Qe[Qe.Critical=4]="Critical";var $e=(Ze.getConfig=function(e,t,i,n){var o;return void 0===n&&(n=!1),o=i&&e.extensionConfig&&e.extensionConfig[i]&&!c.isNullOrUndefined(e.extensionConfig[i][t])?e.extensionConfig[i][t]:e[t],c.isNullOrUndefined(o)?n:o},Ze);function Ze(){}var et=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},tt=(it.UserExt="user",it.DeviceExt="device",it.TraceExt="trace",it.WebExt="web",it.AppExt="app",it.OSExt="os",it.SessionExt="ses",it.SDKExt="sdk",it);function it(){}var nt=new et,ot=function(){},at=(rt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=W.Now(),t=e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),i=e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||i?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>rt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},rt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},rt.prototype.initializeAutomaticSession=function(){var e=O.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=O.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},rt.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var i=+t[1];this.automaticSession.acquisitionDate=+new Date(i),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var n=+t[2];this.automaticSession.renewalDate=+new Date(n),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(s.CRITICAL,d,"Error parsing ai_session cookie, session will be reset: "+O.getExceptionName(e),{exception:O.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,g,"AI session renewal date is 0, session will be reset.")},rt.prototype.renew=function(){var e=W.Now();this.automaticSession.id=O.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),O.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},rt.prototype.setCookie=function(e,t,i){var n=t+this.config.sessionExpirationMs(),o=i+this.config.sessionRenewalMs(),a=new Date,r=[e,t,i];n<o?a.setTime(n):a.setTime(o);var s=this.config.cookieDomain?this.config.cookieDomain():null;O.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=W.Now()},rt.prototype.setStorage=function(e,t,i){O.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},rt.acquisitionSpan=864e5,rt.renewalSpan=18e5,rt.cookieUpdateInterval=6e4,rt.cookieNameConst="ai_session",rt);function rt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new _:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return rt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return rt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?rt.cookieNameConst+i.config.namePrefix():rt.cookieNameConst},this.automaticSession=new ot}var st=function(){},ct=function(){this.id="browser",this.deviceClass="Browser"},ut=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.1.1"},lt=(pt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,S,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var n=this.authenticatedId;t&&(this.accountId=t,n=[this.authenticatedId,this.accountId].join(pt.cookieSeparator)),i&&O.setCookie(this._logger,pt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},pt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,O.deleteCookie(this._logger,pt.authUserCookieName)},pt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},pt.cookieSeparator="|",pt.userCookieName="ai_user",pt.authUserCookieName="ai_authUser",pt);function pt(e,t){this._logger=t;var i=O.getCookie(this._logger,pt.userCookieName);if(i){var n=i.split(pt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=O.newId();var o=new Date,a=O.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;O.setCookie(this._logger,pt.userCookieName,r.join(pt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";O.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=O.getCookie(this._logger,pt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(pt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var ht=function(){},dt=function(e,t,i){this.traceID=e||O.newId(),this.parentID=t,this.name=i,window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)},ft=(gt.prototype.applySessionContext=function(e){var t=this.session||this.sessionManager.automaticSession;t&&"string"==typeof t.id&&(e.ext.app.sesId=t.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},gt.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},gt.prototype.applyApplicationContext=function(e){this.application&&("string"==typeof this.application.ver&&(e.tags[nt.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[nt.applicationBuild]=this.application.build))},gt.prototype.applyDeviceContext=function(e){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},gt.prototype.applyInternalContext=function(e){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[nt.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[nt.internalSdkVersion]=this.internal.sdkVersion))},gt.prototype.applyLocationContext=function(e){this.location&&"string"==typeof this.location.ip&&(e.tags[nt.locationIp]=this.location.ip)},gt.prototype.applyOperationContext=function(e){if(this.telemetryTrace){var t=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(t.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(t.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(t.parentID=this.telemetryTrace.parentID),e.ext.trace=t}},gt.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},gt.prototype.applyUserContext=function(e){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[nt.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},gt.prototype.cleanUp=function(e){e.ext[tt.DeviceExt]&&0===Object.keys(e.ext[tt.DeviceExt]).length&&delete e.ext[tt.DeviceExt],e.ext[tt.UserExt]&&0===Object.keys(e.ext[tt.UserExt]).length&&delete e.ext[tt.UserExt],e.ext[tt.WebExt]&&0===Object.keys(e.ext[tt.WebExt]).length&&delete e.ext[tt.WebExt],e.ext[tt.OSExt]&&0===Object.keys(e.ext[tt.OSExt]).length&&delete e.ext[tt.OSExt],e.ext[tt.AppExt]&&0===Object.keys(e.ext[tt.AppExt]).length&&delete e.ext[tt.AppExt],e.ext[tt.TraceExt]&&0===Object.keys(e.ext[tt.TraceExt]).length&&delete e.ext[tt.TraceExt]},gt);function gt(e,t){"undefined"!=typeof window&&(this.sessionManager=new at(t,e),this.application=new st,this.device=new ct,this.internal=new ut(t),this.location=new ht,this.user=new lt(t,e),this.telemetryTrace=new dt,this.session=new ot),this.appId=function(){return null}}var mt=(vt.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},vt.prototype.initialize=function(t,e,i){var n=this,o=vt.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return $e.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||vt.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new ft(e.logger,this._extensionConfig),this._breezeChannel=O.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},vt.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(e.name===Te.envelopeType&&this._logger.resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e),c.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e))},vt.prototype.setNextPlugin=function(e){this._nextPlugin=e},vt.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[tt.DeviceExt]=e.ext[tt.DeviceExt]||{},e.ext[tt.WebExt]=e.ext[tt.WebExt]||{},e.ext[tt.UserExt]=e.ext[tt.UserExt]||{},e.ext[tt.OSExt]=e.ext[tt.OSExt]||{},e.ext[tt.AppExt]=e.ext[tt.AppExt]||{},e.ext[tt.TraceExt]=e.ext[tt.TraceExt]||{},this.context.applySessionContext(e),this.context.applyApplicationContext(e),this.context.applyDeviceContext(e),this.context.applyOperationContext(e),this.context.applyUserContext(e),this.context.applyOperatingSystemContxt(e),this.context.applyWebContext(e),this.context.applyLocationContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},vt);function vt(){this.priority=110,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=mt,e.TelemetryTrace=dt,e.TelemetryContext=ft,e.Session=ot,e.SessionManager=at,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
{
"name": "@microsoft/applicationinsights-properties-js",
"version": "2.1.0",
"version": "2.1.1",
"description": "Microsoft Application Insights properties (Part A) plugin",

@@ -31,4 +31,4 @@ "main": "dist/applicationinsights-properties-js.js",

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

@@ -35,0 +35,0 @@ },

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

const Version = "2.1.0";
const Version = "2.1.1";

@@ -10,0 +10,0 @@ export class Internal implements IInternal {

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 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