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.0.0-rc6 to 2.0.0

4

browser/applicationinsights-properties-js.min.js
/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.0.0-rc6
* Application Insights JavaScript SDK - Properties Plugin, 2.0.0
* 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,g=23,f=27,m=49,v=52,y=56,x=57,S=58,I=60,N=61,w=66,D=68,C=69,_=(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=(b.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new _(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)}},b.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},b.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},b.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 _(g,o,!1);this.queue.push(a),this.warnToConsole(o)}}},b.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},b);function b(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}))}k.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(k.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),k.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<R&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error(O+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];s.priority>R&&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 k(){this.identifier="ChannelControllerPlugin",this.priority=R}var T,U,M,L,R=500,O="Channel has invalid priority";(U=T||(T={}))[U.LocalStorage=0]="LocalStorage",U[U.SessionStorage=1]="SessionStorage",(L=M||(M={}))[L.Default=0]="Default",L[L.Required=1]="Required",L[L.Array=2]="Array",L[L.Hidden=4]="Hidden";var z=(P.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=P.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,P.MAX_NAME_LENGTH-3)+P.padNumber(a);o=r}return o},P.sanitizeKey=function(e,t){var i;return t&&(t=P.trim(t.toString())).length>P.MAX_NAME_LENGTH&&(i=t.substring(0,P.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+P.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},P.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=P.MAX_STRING_LENGTH),t&&(i=i||P.MAX_STRING_LENGTH,(t=P.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,N,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},P.sanitizeUrl=function(e,t){return P.sanitizeInput(e,t,P.MAX_URL_LENGTH,w)},P.sanitizeMessage=function(e,t){var i;return t&&t.length>P.MAX_MESSAGE_LENGTH&&(i=t.substring(0,P.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+P.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},P.sanitizeException=function(e,t){var i;return t&&t.length>P.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,P.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+P.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},P.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=P.sanitizeString(t,o,P.MAX_PROPERTY_LENGTH),i[n=P.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},P.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=P.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},P.sanitizeId=function(e,t){return t?P.sanitizeInput(e,t,P.MAX_ID_LENGTH,C).toString():t},P.sanitizeInput=function(e,t,i,n){var o;return t&&(t=P.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},P.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},P.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},P.MAX_NAME_LENGTH=150,P.MAX_ID_LENGTH=128,P.MAX_PROPERTY_LENGTH=8192,P.MAX_STRING_LENGTH=1024,P.MAX_URL_LENGTH=2048,P.MAX_MESSAGE_LENGTH=32768,P.MAX_EXCEPTION_LENGTH=32768,P);function P(){}var G=(q.disableStorage=function(){q._canUseLocalStorage=!1,q._canUseSessionStorage=!1},q._getLocalStorageObject=function(){return q.canUseLocalStorage()?q._getVerifiedStorageObject(T.LocalStorage):null},q._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===T.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},q.isInternalApplicationInsightsEndpoint=function(e){return-1!==q._internalEndpoints.indexOf(e.toLowerCase())},q.canUseLocalStorage=function(){return void 0===q._canUseLocalStorage&&(q._canUseLocalStorage=!!q._getVerifiedStorageObject(T.LocalStorage)),q._canUseLocalStorage},q.getStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setStorage=function(t,e,i){var n=q._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q._getSessionStorageObject=function(){return q.canUseSessionStorage()?q._getVerifiedStorageObject(T.SessionStorage):null},q.canUseSessionStorage=function(){return void 0===q._canUseSessionStorage&&(q._canUseSessionStorage=!!q._getVerifiedStorageObject(T.SessionStorage)),q._canUseSessionStorage},q.getSessionStorageKeys=function(){var e=[];if(q.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},q.getSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setSessionStorage=function(t,e,i){var n=q._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.disableCookies=function(){c.disableCookies()},q.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==q.document.cookie}catch(e){t.throwInternal(s.WARNING,D,"Cannot access document.cookie - "+q.getExceptionName(e),{exception:q.dump(e)})}}return c._canUseCookies},q.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),q.document.location&&"https:"===q.document.location.protocol&&(a=";secure"),q.canUseCookies(e)&&(q.document.cookie=t+"="+i+o+";path=/"+a)},q.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},q.getCookie=function(e,t){if(q.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=q.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=q.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},q.deleteCookie=function(e,t){q.canUseCookies(e)&&(q.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},q.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},q.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},q.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},q.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},q.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},q.toISOStringForIE8=function(e){if(q.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"}},q.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},q.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},q.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},q.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},q.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},q.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},q.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},q.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},q.document="undefined"!=typeof document?document:{},q._canUseLocalStorage=void 0,q._canUseSessionStorage=void 0,q._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],q.NotSpecified="not_specified",q);function q(){}var j=(V.parseUrl=function(e){return V.htmlAnchorElement||(V.htmlAnchorElement=V.document.createElement?V.document.createElement("a"):{host:V.parseHost(e)}),V.htmlAnchorElement.href=e,V.htmlAnchorElement},V.getAbsoluteUrl=function(e){var t,i=V.parseUrl(e);return i&&(t=i.href),t},V.getPathName=function(e){var t,i=V.parseUrl(e);return i&&(t=i.pathname),t},V.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},V.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},V.document="undefined"!=typeof document?document:{},V);function V(){}var H=(W.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=j.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=z.sanitizeString(e,i?i+" "+c:c)}else a=z.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},W);function W(){}var X=(B.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()},B.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},B);function B(){}var F=function(e,t){return(F=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 K(e,t){function i(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var J,Q=function(){return(Q=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)},Y=(K($,J=function(){}),$);function $(){return J.call(this)||this}var Z;K(ee,Z=function(){this.ver=1,this.sampleRate=100,this.tags={}});function ee(e,t,i){var n=Z.call(this)||this;return n.name=z.sanitizeString(e,i)||G.NotSpecified,n.data=t,n.time=G.toISOStringForIE8(new Date),n.aiDataContract={time:M.Required,iKey:M.Required,name:M.Required,sampleRate:function(){return 100==n.sampleRate?M.Hidden:M.Required},tags:M.Required,data:M.Required},n}function te(){}var ie,ne=(K(oe,ie=te),oe);function oe(){var e=ie.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ae;K(re,ae=ne),re.envelopeType="Microsoft.ApplicationInsights.{0}.Event",re.dataType="EventData";function re(e,t,i,n){var o=ae.call(this)||this;return o.aiDataContract={ver:M.Required,name:M.Required,properties:M.Default,measurements:M.Default},o.name=z.sanitizeString(e,t)||G.NotSpecified,o.properties=z.sanitizeProperties(e,i),o.measurements=z.sanitizeMeasurements(e,n),o}function se(){}var ce,ue=(K(le,ce=te),le);function le(){var e=ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function pe(){this.hasFullStack=!0,this.parsedStack=[]}var he;K(de,he=ue),de.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return fe.CreateFromInterface(t,e)});return new de(t,Q({},e,{exceptions:i}))},de.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}},de.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},de.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",de.dataType="ExceptionData";function de(e,t,i,n,o){var a=he.call(this)||this;return a.aiDataContract={ver:M.Required,exceptions:M.Required,severityLevel:M.Default,properties:M.Default,measurements:M.Default},t instanceof Error?(a.exceptions=[new fe(e,t)],a.properties=z.sanitizeProperties(e,i),a.measurements=z.sanitizeMeasurements(e,n),o&&(a.severityLevel=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(a.ver=t.ver),c.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var ge,fe=(K(me,ge=pe),me.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}},me.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ye.CreateFromInterface(e)})||t.parsedStack;return new me(e,Q({},t,{parsedStack:i}))},me.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(ye.regex.test(r)){var s=new ye(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},me);function me(e,t){var i=ge.call(this)||this;if(i.aiDataContract={id:M.Default,outerId:M.Default,typeName:M.Required,message:M.Required,hasFullStack:M.Default,stack:M.Default,parsedStack:M.Array},t instanceof Error){i.typeName=z.sanitizeString(e,t.name)||G.NotSpecified,i.message=z.sanitizeMessage(e,t.message)||G.NotSpecified;var n=t.stack;i.parsedStack=me.parseStack(n),i.stack=z.sanitizeException(e,n),i.hasFullStack=G.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 ve,ye=(K(xe,ve=se),xe.CreateFromInterface=function(e){return new xe(e,null)},xe.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},xe.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,xe.baseSize=58,xe);function xe(e,t){var i=ve.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:M.Required,method:M.Required,assembly:M.Default,fileName:M.Default,line:M.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=G.trim(n),i.fileName="",i.line=0;var o=n.match(xe.regex);o&&5<=o.length&&(i.method=G.trim(o[2])||i.method,i.fileName=G.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+=xe.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var Se,Ie,Ne,we=(K(De,Se=te),De);function De(){var e=Se.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(Ne=Ie||(Ie={}))[Ne.Measurement=0]="Measurement",Ne[Ne.Aggregation=1]="Aggregation";var Ce,_e=(K(Ee,Ce=function(){this.kind=Ie.Measurement}),Ee);function Ee(){var e=null!==Ce&&Ce.apply(this,arguments)||this;return e.aiDataContract={name:M.Required,kind:M.Default,value:M.Required,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default},e}var Ae;K(be,Ae=we),be.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",be.dataType="MetricData";function be(e,t,i,n,o,a,r){var s=Ae.call(this)||this;s.aiDataContract={ver:M.Required,metrics:M.Required,properties:M.Default};var c=new _e;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=z.sanitizeString(e,t)||G.NotSpecified,c.value=i,s.metrics=[c],s.properties=z.sanitizeProperties(e,r),s}var ke,Te=(K(Ue,ke=ne),Ue);function Ue(){var e=ke.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Me,Le=(K(Re,Me=Te),Re.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Re.dataType="PageviewData",Re);function Re(e,t,i,n,o,a,r){var s=Me.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,properties:M.Default,measurements:M.Default,id:M.Default},s.id=z.sanitizeId(e,r),s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,isNaN(n)||(s.duration=G.msToTimeSpan(n)),s.properties=z.sanitizeProperties(e,o),s.measurements=z.sanitizeMeasurements(e,a),s}var Oe,ze=(K(Pe,Oe=te),Pe);function Pe(){var e=Oe.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Ge;K(qe,Ge=ze),qe.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",qe.dataType="RemoteDependencyData";function qe(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Ge.call(this)||this;p.aiDataContract={id:M.Required,ver:M.Required,name:M.Default,resultCode:M.Default,duration:M.Default,success:M.Default,data:M.Default,target:M.Default,type:M.Default,properties:M.Default,measurements:M.Default,kind:M.Default,value:M.Default,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default,dependencyKind:M.Default,dependencySource:M.Default,commandName:M.Default,dependencyTypeName:M.Default},p.id=t,p.duration=G.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=z.sanitizeString(e,c);var h=H.ParseDependencyPath(e,i,s,n);return p.data=z.sanitizeUrl(e,n)||h.data,p.target=h.target,p.name=h.name,p.properties=z.sanitizeProperties(e,u),p.measurements=z.sanitizeMeasurements(e,l),p}var je,Ve=(K(He,je=te),He);function He(){var e=je.call(this)||this;return e.ver=2,e.properties={},e}var We;K(Xe,We=Ve),Xe.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Xe.dataType="MessageData";function Xe(e,t,i,n){var o=We.call(this)||this;return o.aiDataContract={ver:M.Required,message:M.Required,severityLevel:M.Default,properties:M.Default},t=t||G.NotSpecified,o.message=z.sanitizeMessage(e,t),o.properties=z.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Be,Fe=(K(Ke,Be=Te),Ke);function Ke(){var e=Be.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Je;K(Qe,Je=Fe),Qe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Qe.dataType="PageviewPerformanceData";function Qe(e,t,i,n,o,a,r){var s=Je.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,perfTotal:M.Default,networkConnect:M.Default,sentRequest:M.Default,receivedResponse:M.Default,domProcessing:M.Default,properties:M.Default,measurements:M.Default},s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,s.properties=z.sanitizeProperties(e,o),s.measurements=z.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 Ye,$e,Ze;K(et,Ye=Y);function et(e,t){var i=Ye.call(this)||this;return i.aiDataContract={baseType:M.Required,baseData:M.Required},i.baseType=e,i.baseData=t,i}(Ze=$e||($e={}))[Ze.Verbose=0]="Verbose",Ze[Ze.Information=1]="Information",Ze[Ze.Warning=2]="Warning",Ze[Ze.Error=3]="Error",Ze[Ze.Critical=4]="Critical";var tt=(it.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},it);function it(){}var nt=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"},ot=(at.UserExt="user",at.DeviceExt="device",at.TraceExt="trace",at.WebExt="web",at.AppExt="app",at.OSExt="os",at.SessionExt="ses",at.SDKExt="sdk",at);function at(){}var rt=(st.libVer="libVer",st);function st(){}var ct=new nt,ut=function(){},lt=(pt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=X.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>pt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},pt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},pt.prototype.initializeAutomaticSession=function(){var e=G.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=G.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},pt.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: "+G.getExceptionName(e),{exception:G.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,f,"AI session renewal date is 0, session will be reset.")},pt.prototype.renew=function(){var e=X.Now();this.automaticSession.id=G.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),G.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},pt.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;G.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=X.Now()},pt.prototype.setStorage=function(e,t,i){G.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},pt.acquisitionSpan=864e5,pt.renewalSpan=18e5,pt.cookieUpdateInterval=6e4,pt.cookieNameConst="ai_session",pt);function pt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return pt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return pt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?pt.cookieNameConst+i.config.namePrefix():pt.cookieNameConst},this.automaticSession=new ut}var ht=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.0.0-rc6"},ft=(mt.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/mt.INT_MAX_VALUE*100},mt.prototype.getHashCode=function(e){if(""==e)return 0;for(;e.length<mt.MIN_INPUT_LENGTH;)e=e.concat(e);for(var t=5381,i=0;i<e.length;++i)t=(t<<5)+t+e.charCodeAt(i),t&=t;return Math.abs(t)},mt.INT_MAX_VALUE=2147483647,mt.MIN_INPUT_LENGTH=8,mt);function mt(){}var vt=(yt.prototype.getSamplingScore=function(e){var t=new nt;return e.tags[t.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.userId]):e.tags[t.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.operationId]):Math.random()},yt);function yt(){this.hashCodeGeneragor=new ft}var xt=(St.prototype.isSampledIn=function(e){return!0},St);function St(e,t){this.INT_MAX_VALUE=2147483647,c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,(100<e||e<0)&&(this._logger.throwInternal(s.WARNING,S,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new vt}var It=(Nt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,I,"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(Nt.cookieSeparator)),i&&G.setCookie(this._logger,Nt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},Nt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,G.deleteCookie(this._logger,Nt.authUserCookieName)},Nt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},Nt.cookieSeparator="|",Nt.userCookieName="ai_user",Nt.authUserCookieName="ai_authUser",Nt);function Nt(e,t){this._logger=t;var i=G.getCookie(this._logger,Nt.userCookieName);if(i){var n=i.split(Nt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=G.newId();var o=new Date,a=G.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;G.setCookie(this._logger,Nt.userCookieName,r.join(Nt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";G.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=G.getCookie(this._logger,Nt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(Nt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var wt=function(){},Dt=function(e,t,i){this.traceID=e||G.newId(),this.parentID=t,this.name=i},Ct=(_t.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)},_t.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},_t.prototype.applyApplicationContext=function(e){var t,i;this.application&&("string"==typeof this.application.ver&&e.tags.push(((t={})[ct.applicationVersion]=this.application.ver,t)),"string"==typeof this.application.build&&e.tags.push(((i={})[ct.applicationBuild]=this.application.build,i)))},_t.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))},_t.prototype.applyInternalContext=function(e){var t,i,n;this.internal&&("string"==typeof this.internal.agentVersion&&e.tags.push(((t={})[ct.internalAgentVersion]=this.internal.agentVersion,t)),"string"==typeof this.internal.sdkVersion?e.tags.push(((i={})[ct.internalSdkVersion]=this.internal.sdkVersion,i)):e[ot.SDKExt]&&e[ot.SDKExt][rt.libVer]&&e.tags.push(((n={})[ct.internalSdkVersion]=e[ot.SDKExt][rt.libVer],n)))},_t.prototype.applyLocationContext=function(e){var t;this.location&&"string"==typeof this.location.ip&&e.tags.push(((t={})[ct.locationIp]=this.location.ip,t))},_t.prototype.applySampleContext=function(e){this.sample&&e.tags.push({SampleRate:this.sample.sampleRate})},_t.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}},_t.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},_t.prototype.applyUserContext=function(e){var t;this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&e.tags.push(((t={})[ct.userAccountId]=this.user.accountId,t)),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},_t.prototype.cleanUp=function(e){e.ext[ot.DeviceExt]&&0===Object.keys(e.ext[ot.DeviceExt]).length&&delete e.ext[ot.DeviceExt],e.ext[ot.UserExt]&&0===Object.keys(e.ext[ot.UserExt]).length&&delete e.ext[ot.UserExt],e.ext[ot.WebExt]&&0===Object.keys(e.ext[ot.WebExt]).length&&delete e.ext[ot.WebExt],e.ext[ot.OSExt]&&0===Object.keys(e.ext[ot.OSExt]).length&&delete e.ext[ot.OSExt],e.ext[ot.AppExt]&&0===Object.keys(e.ext[ot.AppExt]).length&&delete e.ext[ot.AppExt],e.ext[ot.TraceExt]&&0===Object.keys(e.ext[ot.TraceExt]).length&&delete e.ext[ot.TraceExt]},_t);function _t(e,t){"undefined"!=typeof window&&(this.sessionManager=new lt(t,e),this.application=new ht,this.device=new dt,this.internal=new gt(t),this.location=new wt,this.user=new It(t,e),this.telemetryTrace=new Dt,this.session=new ut,this.sample=new xt(t.samplingPercentage(),e)),this.appId=function(){return null}}var Et=(At.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(){}}},At.prototype.initialize=function(t,e,i){var n=this,o=At.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return tt.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||At.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new Ct(e.logger,this._extensionConfig),this._breezeChannel=G.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},At.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(this.context.sample.isSampledIn(e)&&(e.name===Le.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))},At.prototype.setNextPlugin=function(e){this._nextPlugin=e},At.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[ot.DeviceExt]=e.ext[ot.DeviceExt]||{},e.ext[ot.WebExt]=e.ext[ot.WebExt]||{},e.ext[ot.UserExt]=e.ext[ot.UserExt]||{},e.ext[ot.OSExt]=e.ext[ot.OSExt]||{},e.ext[ot.AppExt]=e.ext[ot.AppExt]||{},e.ext[ot.TraceExt]=e.ext[ot.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.applySampleContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},At);function At(){this.priority=170,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=Et,e.TelemetryTrace=Dt,e.TelemetryContext=Ct,e.Session=ut,e.SessionManager=lt,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,g=23,f=27,m=49,v=52,y=56,x=57,S=58,I=60,N=61,w=66,D=68,C=69,_=(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=(b.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new _(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)}},b.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},b.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},b.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 _(g,o,!1);this.queue.push(a),this.warnToConsole(o)}}},b.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},b);function b(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}))}k.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(k.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),k.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<R&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error(O+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];s.priority>R&&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 k(){this.identifier="ChannelControllerPlugin",this.priority=R}var T,U,M,L,R=500,O="Channel has invalid priority";(U=T||(T={}))[U.LocalStorage=0]="LocalStorage",U[U.SessionStorage=1]="SessionStorage",(L=M||(M={}))[L.Default=0]="Default",L[L.Required=1]="Required",L[L.Array=2]="Array",L[L.Hidden=4]="Hidden";var z=(P.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=P.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,P.MAX_NAME_LENGTH-3)+P.padNumber(a);o=r}return o},P.sanitizeKey=function(e,t){var i;return t&&(t=P.trim(t.toString())).length>P.MAX_NAME_LENGTH&&(i=t.substring(0,P.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+P.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},P.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=P.MAX_STRING_LENGTH),t&&(i=i||P.MAX_STRING_LENGTH,(t=P.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,N,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},P.sanitizeUrl=function(e,t){return P.sanitizeInput(e,t,P.MAX_URL_LENGTH,w)},P.sanitizeMessage=function(e,t){var i;return t&&t.length>P.MAX_MESSAGE_LENGTH&&(i=t.substring(0,P.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+P.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},P.sanitizeException=function(e,t){var i;return t&&t.length>P.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,P.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+P.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},P.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=P.sanitizeString(t,o,P.MAX_PROPERTY_LENGTH),i[n=P.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},P.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=P.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},P.sanitizeId=function(e,t){return t?P.sanitizeInput(e,t,P.MAX_ID_LENGTH,C).toString():t},P.sanitizeInput=function(e,t,i,n){var o;return t&&(t=P.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},P.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},P.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},P.MAX_NAME_LENGTH=150,P.MAX_ID_LENGTH=128,P.MAX_PROPERTY_LENGTH=8192,P.MAX_STRING_LENGTH=1024,P.MAX_URL_LENGTH=2048,P.MAX_MESSAGE_LENGTH=32768,P.MAX_EXCEPTION_LENGTH=32768,P);function P(){}var G=(q.disableStorage=function(){q._canUseLocalStorage=!1,q._canUseSessionStorage=!1},q._getLocalStorageObject=function(){return q.canUseLocalStorage()?q._getVerifiedStorageObject(T.LocalStorage):null},q._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===T.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},q.isInternalApplicationInsightsEndpoint=function(e){return-1!==q._internalEndpoints.indexOf(e.toLowerCase())},q.canUseLocalStorage=function(){return void 0===q._canUseLocalStorage&&(q._canUseLocalStorage=!!q._getVerifiedStorageObject(T.LocalStorage)),q._canUseLocalStorage},q.getStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setStorage=function(t,e,i){var n=q._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q._getSessionStorageObject=function(){return q.canUseSessionStorage()?q._getVerifiedStorageObject(T.SessionStorage):null},q.canUseSessionStorage=function(){return void 0===q._canUseSessionStorage&&(q._canUseSessionStorage=!!q._getVerifiedStorageObject(T.SessionStorage)),q._canUseSessionStorage},q.getSessionStorageKeys=function(){var e=[];if(q.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},q.getSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setSessionStorage=function(t,e,i){var n=q._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.disableCookies=function(){c.disableCookies()},q.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==q.document.cookie}catch(e){t.throwInternal(s.WARNING,D,"Cannot access document.cookie - "+q.getExceptionName(e),{exception:q.dump(e)})}}return c._canUseCookies},q.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),q.document.location&&"https:"===q.document.location.protocol&&(a=";secure"),q.canUseCookies(e)&&(q.document.cookie=t+"="+i+o+";path=/"+a)},q.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},q.getCookie=function(e,t){if(q.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=q.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=q.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},q.deleteCookie=function(e,t){q.canUseCookies(e)&&(q.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},q.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},q.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},q.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},q.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},q.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},q.toISOStringForIE8=function(e){if(q.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"}},q.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},q.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},q.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},q.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},q.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},q.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},q.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},q.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},q.document="undefined"!=typeof document?document:{},q._canUseLocalStorage=void 0,q._canUseSessionStorage=void 0,q._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],q.NotSpecified="not_specified",q);function q(){}var j=(V.parseUrl=function(e){return V.htmlAnchorElement||(V.htmlAnchorElement=V.document.createElement?V.document.createElement("a"):{host:V.parseHost(e)}),V.htmlAnchorElement.href=e,V.htmlAnchorElement},V.getAbsoluteUrl=function(e){var t,i=V.parseUrl(e);return i&&(t=i.href),t},V.getPathName=function(e){var t,i=V.parseUrl(e);return i&&(t=i.pathname),t},V.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},V.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},V.document="undefined"!=typeof document?document:{},V);function V(){}var H=(W.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=j.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=z.sanitizeString(e,i?i+" "+c:c)}else a=z.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},W);function W(){}var X=(B.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()},B.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},B);function B(){}var F=function(e,t){return(F=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 K(e,t){function i(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var J,Q=function(){return(Q=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)},Y=(K($,J=function(){}),$);function $(){return J.call(this)||this}var Z;K(ee,Z=function(){this.ver=1,this.sampleRate=100,this.tags={}});function ee(e,t,i){var n=Z.call(this)||this;return n.name=z.sanitizeString(e,i)||G.NotSpecified,n.data=t,n.time=G.toISOStringForIE8(new Date),n.aiDataContract={time:M.Required,iKey:M.Required,name:M.Required,sampleRate:function(){return 100==n.sampleRate?M.Hidden:M.Required},tags:M.Required,data:M.Required},n}function te(){}var ie,ne=(K(oe,ie=te),oe);function oe(){var e=ie.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ae;K(re,ae=ne),re.envelopeType="Microsoft.ApplicationInsights.{0}.Event",re.dataType="EventData";function re(e,t,i,n){var o=ae.call(this)||this;return o.aiDataContract={ver:M.Required,name:M.Required,properties:M.Default,measurements:M.Default},o.name=z.sanitizeString(e,t)||G.NotSpecified,o.properties=z.sanitizeProperties(e,i),o.measurements=z.sanitizeMeasurements(e,n),o}function se(){}var ce,ue=(K(le,ce=te),le);function le(){var e=ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function pe(){this.hasFullStack=!0,this.parsedStack=[]}var he;K(de,he=ue),de.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return fe.CreateFromInterface(t,e)});return new de(t,Q({},e,{exceptions:i}))},de.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}},de.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},de.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",de.dataType="ExceptionData";function de(e,t,i,n,o,a){var r=he.call(this)||this;return r.aiDataContract={ver:M.Required,exceptions:M.Required,severityLevel:M.Default,properties:M.Default,measurements:M.Default},t instanceof Error?(r.exceptions=[new fe(e,t)],r.properties=z.sanitizeProperties(e,i),r.measurements=z.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 ge,fe=(K(me,ge=pe),me.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}},me.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ye.CreateFromInterface(e)})||t.parsedStack;return new me(e,Q({},t,{parsedStack:i}))},me.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(ye.regex.test(r)){var s=new ye(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},me);function me(e,t){var i=ge.call(this)||this;if(i.aiDataContract={id:M.Default,outerId:M.Default,typeName:M.Required,message:M.Required,hasFullStack:M.Default,stack:M.Default,parsedStack:M.Array},t instanceof Error){i.typeName=z.sanitizeString(e,t.name)||G.NotSpecified,i.message=z.sanitizeMessage(e,t.message)||G.NotSpecified;var n=t.stack;i.parsedStack=me.parseStack(n),i.stack=z.sanitizeException(e,n),i.hasFullStack=G.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 ve,ye=(K(xe,ve=se),xe.CreateFromInterface=function(e){return new xe(e,null)},xe.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},xe.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,xe.baseSize=58,xe);function xe(e,t){var i=ve.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:M.Required,method:M.Required,assembly:M.Default,fileName:M.Default,line:M.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=G.trim(n),i.fileName="",i.line=0;var o=n.match(xe.regex);o&&5<=o.length&&(i.method=G.trim(o[2])||i.method,i.fileName=G.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+=xe.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var Se,Ie,Ne,we=(K(De,Se=te),De);function De(){var e=Se.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(Ne=Ie||(Ie={}))[Ne.Measurement=0]="Measurement",Ne[Ne.Aggregation=1]="Aggregation";var Ce,_e=(K(Ee,Ce=function(){this.kind=Ie.Measurement}),Ee);function Ee(){var e=null!==Ce&&Ce.apply(this,arguments)||this;return e.aiDataContract={name:M.Required,kind:M.Default,value:M.Required,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default},e}var Ae;K(be,Ae=we),be.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",be.dataType="MetricData";function be(e,t,i,n,o,a,r){var s=Ae.call(this)||this;s.aiDataContract={ver:M.Required,metrics:M.Required,properties:M.Default};var c=new _e;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=z.sanitizeString(e,t)||G.NotSpecified,c.value=i,s.metrics=[c],s.properties=z.sanitizeProperties(e,r),s}var ke,Te=(K(Ue,ke=ne),Ue);function Ue(){var e=ke.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Me,Le=(K(Re,Me=Te),Re.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Re.dataType="PageviewData",Re);function Re(e,t,i,n,o,a,r){var s=Me.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,properties:M.Default,measurements:M.Default,id:M.Default},s.id=z.sanitizeId(e,r),s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,isNaN(n)||(s.duration=G.msToTimeSpan(n)),s.properties=z.sanitizeProperties(e,o),s.measurements=z.sanitizeMeasurements(e,a),s}var Oe,ze=(K(Pe,Oe=te),Pe);function Pe(){var e=Oe.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Ge;K(qe,Ge=ze),qe.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",qe.dataType="RemoteDependencyData";function qe(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Ge.call(this)||this;p.aiDataContract={id:M.Required,ver:M.Required,name:M.Default,resultCode:M.Default,duration:M.Default,success:M.Default,data:M.Default,target:M.Default,type:M.Default,properties:M.Default,measurements:M.Default,kind:M.Default,value:M.Default,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default,dependencyKind:M.Default,dependencySource:M.Default,commandName:M.Default,dependencyTypeName:M.Default},p.id=t,p.duration=G.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=z.sanitizeString(e,c);var h=H.ParseDependencyPath(e,i,s,n);return p.data=z.sanitizeUrl(e,n)||h.data,p.target=h.target,p.name=h.name,p.properties=z.sanitizeProperties(e,u),p.measurements=z.sanitizeMeasurements(e,l),p}var je,Ve=(K(He,je=te),He);function He(){var e=je.call(this)||this;return e.ver=2,e.properties={},e}var We;K(Xe,We=Ve),Xe.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Xe.dataType="MessageData";function Xe(e,t,i,n){var o=We.call(this)||this;return o.aiDataContract={ver:M.Required,message:M.Required,severityLevel:M.Default,properties:M.Default},t=t||G.NotSpecified,o.message=z.sanitizeMessage(e,t),o.properties=z.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Be,Fe=(K(Ke,Be=Te),Ke);function Ke(){var e=Be.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Je;K(Qe,Je=Fe),Qe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Qe.dataType="PageviewPerformanceData";function Qe(e,t,i,n,o,a,r){var s=Je.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,perfTotal:M.Default,networkConnect:M.Default,sentRequest:M.Default,receivedResponse:M.Default,domProcessing:M.Default,properties:M.Default,measurements:M.Default},s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,s.properties=z.sanitizeProperties(e,o),s.measurements=z.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 Ye,$e,Ze;K(et,Ye=Y);function et(e,t){var i=Ye.call(this)||this;return i.aiDataContract={baseType:M.Required,baseData:M.Required},i.baseType=e,i.baseData=t,i}(Ze=$e||($e={}))[Ze.Verbose=0]="Verbose",Ze[Ze.Information=1]="Information",Ze[Ze.Warning=2]="Warning",Ze[Ze.Error=3]="Error",Ze[Ze.Critical=4]="Critical";var tt=(it.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},it);function it(){}var nt=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"},ot=(at.UserExt="user",at.DeviceExt="device",at.TraceExt="trace",at.WebExt="web",at.AppExt="app",at.OSExt="os",at.SessionExt="ses",at.SDKExt="sdk",at);function at(){}var rt=(st.libVer="libVer",st);function st(){}var ct=new nt,ut=function(){},lt=(pt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=X.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>pt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},pt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},pt.prototype.initializeAutomaticSession=function(){var e=G.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=G.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},pt.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: "+G.getExceptionName(e),{exception:G.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,f,"AI session renewal date is 0, session will be reset.")},pt.prototype.renew=function(){var e=X.Now();this.automaticSession.id=G.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),G.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},pt.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;G.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=X.Now()},pt.prototype.setStorage=function(e,t,i){G.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},pt.acquisitionSpan=864e5,pt.renewalSpan=18e5,pt.cookieUpdateInterval=6e4,pt.cookieNameConst="ai_session",pt);function pt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return pt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return pt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?pt.cookieNameConst+i.config.namePrefix():pt.cookieNameConst},this.automaticSession=new ut}var ht=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.0.0"},ft=(mt.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/mt.INT_MAX_VALUE*100},mt.prototype.getHashCode=function(e){if(""==e)return 0;for(;e.length<mt.MIN_INPUT_LENGTH;)e=e.concat(e);for(var t=5381,i=0;i<e.length;++i)t=(t<<5)+t+e.charCodeAt(i),t&=t;return Math.abs(t)},mt.INT_MAX_VALUE=2147483647,mt.MIN_INPUT_LENGTH=8,mt);function mt(){}var vt=(yt.prototype.getSamplingScore=function(e){var t=new nt;return e.tags[t.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.userId]):e.tags[t.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.operationId]):Math.random()},yt);function yt(){this.hashCodeGeneragor=new ft}var xt=(St.prototype.isSampledIn=function(e){return!0},St);function St(e,t){this.INT_MAX_VALUE=2147483647,c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,(100<e||e<0)&&(this._logger.throwInternal(s.WARNING,S,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new vt}var It=(Nt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,I,"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(Nt.cookieSeparator)),i&&G.setCookie(this._logger,Nt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},Nt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,G.deleteCookie(this._logger,Nt.authUserCookieName)},Nt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},Nt.cookieSeparator="|",Nt.userCookieName="ai_user",Nt.authUserCookieName="ai_authUser",Nt);function Nt(e,t){this._logger=t;var i=G.getCookie(this._logger,Nt.userCookieName);if(i){var n=i.split(Nt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=G.newId();var o=new Date,a=G.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;G.setCookie(this._logger,Nt.userCookieName,r.join(Nt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";G.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=G.getCookie(this._logger,Nt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(Nt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var wt=function(){},Dt=function(e,t,i){this.traceID=e||G.newId(),this.parentID=t,this.name=i},Ct=(_t.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)},_t.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},_t.prototype.applyApplicationContext=function(e){var t,i;this.application&&("string"==typeof this.application.ver&&e.tags.push(((t={})[ct.applicationVersion]=this.application.ver,t)),"string"==typeof this.application.build&&e.tags.push(((i={})[ct.applicationBuild]=this.application.build,i)))},_t.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))},_t.prototype.applyInternalContext=function(e){var t,i,n;this.internal&&("string"==typeof this.internal.agentVersion&&e.tags.push(((t={})[ct.internalAgentVersion]=this.internal.agentVersion,t)),"string"==typeof this.internal.sdkVersion?e.tags.push(((i={})[ct.internalSdkVersion]=this.internal.sdkVersion,i)):e[ot.SDKExt]&&e[ot.SDKExt][rt.libVer]&&e.tags.push(((n={})[ct.internalSdkVersion]=e[ot.SDKExt][rt.libVer],n)))},_t.prototype.applyLocationContext=function(e){var t;this.location&&"string"==typeof this.location.ip&&e.tags.push(((t={})[ct.locationIp]=this.location.ip,t))},_t.prototype.applySampleContext=function(e){this.sample&&e.tags.push({SampleRate:this.sample.sampleRate})},_t.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}},_t.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},_t.prototype.applyUserContext=function(e){var t;this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&e.tags.push(((t={})[ct.userAccountId]=this.user.accountId,t)),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},_t.prototype.cleanUp=function(e){e.ext[ot.DeviceExt]&&0===Object.keys(e.ext[ot.DeviceExt]).length&&delete e.ext[ot.DeviceExt],e.ext[ot.UserExt]&&0===Object.keys(e.ext[ot.UserExt]).length&&delete e.ext[ot.UserExt],e.ext[ot.WebExt]&&0===Object.keys(e.ext[ot.WebExt]).length&&delete e.ext[ot.WebExt],e.ext[ot.OSExt]&&0===Object.keys(e.ext[ot.OSExt]).length&&delete e.ext[ot.OSExt],e.ext[ot.AppExt]&&0===Object.keys(e.ext[ot.AppExt]).length&&delete e.ext[ot.AppExt],e.ext[ot.TraceExt]&&0===Object.keys(e.ext[ot.TraceExt]).length&&delete e.ext[ot.TraceExt]},_t);function _t(e,t){"undefined"!=typeof window&&(this.sessionManager=new lt(t,e),this.application=new ht,this.device=new dt,this.internal=new gt(t),this.location=new wt,this.user=new It(t,e),this.telemetryTrace=new Dt,this.session=new ut,this.sample=new xt(t.samplingPercentage(),e)),this.appId=function(){return null}}var Et=(At.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(){}}},At.prototype.initialize=function(t,e,i){var n=this,o=At.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return tt.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||At.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new Ct(e.logger,this._extensionConfig),this._breezeChannel=G.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},At.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(this.context.sample.isSampledIn(e)&&(e.name===Le.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))},At.prototype.setNextPlugin=function(e){this._nextPlugin=e},At.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[ot.DeviceExt]=e.ext[ot.DeviceExt]||{},e.ext[ot.WebExt]=e.ext[ot.WebExt]||{},e.ext[ot.UserExt]=e.ext[ot.UserExt]||{},e.ext[ot.OSExt]=e.ext[ot.OSExt]||{},e.ext[ot.AppExt]=e.ext[ot.AppExt]||{},e.ext[ot.TraceExt]=e.ext[ot.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.applySampleContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},At);function At(){this.priority=170,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=Et,e.TelemetryTrace=Dt,e.TelemetryContext=Ct,e.Session=ut,e.SessionManager=lt,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.0.0-rc6";
var Version = "2.0.0";
var Internal = /** @class */ (function () {

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

/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.0.0-rc6
* Application Insights JavaScript SDK - Properties Plugin, 2.0.0
* 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,g=23,f=27,m=49,v=52,y=56,x=57,S=58,I=60,N=61,w=66,D=68,C=69,_=(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=(b.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new _(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)}},b.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},b.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},b.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 _(g,o,!1);this.queue.push(a),this.warnToConsole(o)}}},b.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},b);function b(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}))}k.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(k.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),k.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<R&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error(O+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];s.priority>R&&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 k(){this.identifier="ChannelControllerPlugin",this.priority=R}var T,U,M,L,R=500,O="Channel has invalid priority";(U=T||(T={}))[U.LocalStorage=0]="LocalStorage",U[U.SessionStorage=1]="SessionStorage",(L=M||(M={}))[L.Default=0]="Default",L[L.Required=1]="Required",L[L.Array=2]="Array",L[L.Hidden=4]="Hidden";var z=(P.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=P.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,P.MAX_NAME_LENGTH-3)+P.padNumber(a);o=r}return o},P.sanitizeKey=function(e,t){var i;return t&&(t=P.trim(t.toString())).length>P.MAX_NAME_LENGTH&&(i=t.substring(0,P.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+P.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},P.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=P.MAX_STRING_LENGTH),t&&(i=i||P.MAX_STRING_LENGTH,(t=P.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,N,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},P.sanitizeUrl=function(e,t){return P.sanitizeInput(e,t,P.MAX_URL_LENGTH,w)},P.sanitizeMessage=function(e,t){var i;return t&&t.length>P.MAX_MESSAGE_LENGTH&&(i=t.substring(0,P.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+P.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},P.sanitizeException=function(e,t){var i;return t&&t.length>P.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,P.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+P.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},P.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=P.sanitizeString(t,o,P.MAX_PROPERTY_LENGTH),i[n=P.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},P.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=P.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},P.sanitizeId=function(e,t){return t?P.sanitizeInput(e,t,P.MAX_ID_LENGTH,C).toString():t},P.sanitizeInput=function(e,t,i,n){var o;return t&&(t=P.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},P.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},P.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},P.MAX_NAME_LENGTH=150,P.MAX_ID_LENGTH=128,P.MAX_PROPERTY_LENGTH=8192,P.MAX_STRING_LENGTH=1024,P.MAX_URL_LENGTH=2048,P.MAX_MESSAGE_LENGTH=32768,P.MAX_EXCEPTION_LENGTH=32768,P);function P(){}var G=(q.disableStorage=function(){q._canUseLocalStorage=!1,q._canUseSessionStorage=!1},q._getLocalStorageObject=function(){return q.canUseLocalStorage()?q._getVerifiedStorageObject(T.LocalStorage):null},q._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===T.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},q.isInternalApplicationInsightsEndpoint=function(e){return-1!==q._internalEndpoints.indexOf(e.toLowerCase())},q.canUseLocalStorage=function(){return void 0===q._canUseLocalStorage&&(q._canUseLocalStorage=!!q._getVerifiedStorageObject(T.LocalStorage)),q._canUseLocalStorage},q.getStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setStorage=function(t,e,i){var n=q._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q._getSessionStorageObject=function(){return q.canUseSessionStorage()?q._getVerifiedStorageObject(T.SessionStorage):null},q.canUseSessionStorage=function(){return void 0===q._canUseSessionStorage&&(q._canUseSessionStorage=!!q._getVerifiedStorageObject(T.SessionStorage)),q._canUseSessionStorage},q.getSessionStorageKeys=function(){var e=[];if(q.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},q.getSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setSessionStorage=function(t,e,i){var n=q._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.disableCookies=function(){c.disableCookies()},q.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==q.document.cookie}catch(e){t.throwInternal(s.WARNING,D,"Cannot access document.cookie - "+q.getExceptionName(e),{exception:q.dump(e)})}}return c._canUseCookies},q.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),q.document.location&&"https:"===q.document.location.protocol&&(a=";secure"),q.canUseCookies(e)&&(q.document.cookie=t+"="+i+o+";path=/"+a)},q.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},q.getCookie=function(e,t){if(q.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=q.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=q.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},q.deleteCookie=function(e,t){q.canUseCookies(e)&&(q.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},q.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},q.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},q.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},q.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},q.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},q.toISOStringForIE8=function(e){if(q.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"}},q.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},q.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},q.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},q.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},q.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},q.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},q.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},q.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},q.document="undefined"!=typeof document?document:{},q._canUseLocalStorage=void 0,q._canUseSessionStorage=void 0,q._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],q.NotSpecified="not_specified",q);function q(){}var j=(V.parseUrl=function(e){return V.htmlAnchorElement||(V.htmlAnchorElement=V.document.createElement?V.document.createElement("a"):{host:V.parseHost(e)}),V.htmlAnchorElement.href=e,V.htmlAnchorElement},V.getAbsoluteUrl=function(e){var t,i=V.parseUrl(e);return i&&(t=i.href),t},V.getPathName=function(e){var t,i=V.parseUrl(e);return i&&(t=i.pathname),t},V.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},V.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},V.document="undefined"!=typeof document?document:{},V);function V(){}var H=(W.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=j.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=z.sanitizeString(e,i?i+" "+c:c)}else a=z.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},W);function W(){}var X=(B.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()},B.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},B);function B(){}var F=function(e,t){return(F=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 K(e,t){function i(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var J,Q=function(){return(Q=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)},Y=(K($,J=function(){}),$);function $(){return J.call(this)||this}var Z;K(ee,Z=function(){this.ver=1,this.sampleRate=100,this.tags={}});function ee(e,t,i){var n=Z.call(this)||this;return n.name=z.sanitizeString(e,i)||G.NotSpecified,n.data=t,n.time=G.toISOStringForIE8(new Date),n.aiDataContract={time:M.Required,iKey:M.Required,name:M.Required,sampleRate:function(){return 100==n.sampleRate?M.Hidden:M.Required},tags:M.Required,data:M.Required},n}function te(){}var ie,ne=(K(oe,ie=te),oe);function oe(){var e=ie.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ae;K(re,ae=ne),re.envelopeType="Microsoft.ApplicationInsights.{0}.Event",re.dataType="EventData";function re(e,t,i,n){var o=ae.call(this)||this;return o.aiDataContract={ver:M.Required,name:M.Required,properties:M.Default,measurements:M.Default},o.name=z.sanitizeString(e,t)||G.NotSpecified,o.properties=z.sanitizeProperties(e,i),o.measurements=z.sanitizeMeasurements(e,n),o}function se(){}var ce,ue=(K(le,ce=te),le);function le(){var e=ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function pe(){this.hasFullStack=!0,this.parsedStack=[]}var he;K(de,he=ue),de.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return fe.CreateFromInterface(t,e)});return new de(t,Q({},e,{exceptions:i}))},de.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}},de.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},de.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",de.dataType="ExceptionData";function de(e,t,i,n,o){var a=he.call(this)||this;return a.aiDataContract={ver:M.Required,exceptions:M.Required,severityLevel:M.Default,properties:M.Default,measurements:M.Default},t instanceof Error?(a.exceptions=[new fe(e,t)],a.properties=z.sanitizeProperties(e,i),a.measurements=z.sanitizeMeasurements(e,n),o&&(a.severityLevel=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),c.isNullOrUndefined(t.ver)||(a.ver=t.ver),c.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var ge,fe=(K(me,ge=pe),me.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}},me.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ye.CreateFromInterface(e)})||t.parsedStack;return new me(e,Q({},t,{parsedStack:i}))},me.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(ye.regex.test(r)){var s=new ye(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},me);function me(e,t){var i=ge.call(this)||this;if(i.aiDataContract={id:M.Default,outerId:M.Default,typeName:M.Required,message:M.Required,hasFullStack:M.Default,stack:M.Default,parsedStack:M.Array},t instanceof Error){i.typeName=z.sanitizeString(e,t.name)||G.NotSpecified,i.message=z.sanitizeMessage(e,t.message)||G.NotSpecified;var n=t.stack;i.parsedStack=me.parseStack(n),i.stack=z.sanitizeException(e,n),i.hasFullStack=G.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 ve,ye=(K(xe,ve=se),xe.CreateFromInterface=function(e){return new xe(e,null)},xe.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},xe.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,xe.baseSize=58,xe);function xe(e,t){var i=ve.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:M.Required,method:M.Required,assembly:M.Default,fileName:M.Default,line:M.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=G.trim(n),i.fileName="",i.line=0;var o=n.match(xe.regex);o&&5<=o.length&&(i.method=G.trim(o[2])||i.method,i.fileName=G.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+=xe.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var Se,Ie,Ne,we=(K(De,Se=te),De);function De(){var e=Se.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(Ne=Ie||(Ie={}))[Ne.Measurement=0]="Measurement",Ne[Ne.Aggregation=1]="Aggregation";var Ce,_e=(K(Ee,Ce=function(){this.kind=Ie.Measurement}),Ee);function Ee(){var e=null!==Ce&&Ce.apply(this,arguments)||this;return e.aiDataContract={name:M.Required,kind:M.Default,value:M.Required,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default},e}var Ae;K(be,Ae=we),be.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",be.dataType="MetricData";function be(e,t,i,n,o,a,r){var s=Ae.call(this)||this;s.aiDataContract={ver:M.Required,metrics:M.Required,properties:M.Default};var c=new _e;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=z.sanitizeString(e,t)||G.NotSpecified,c.value=i,s.metrics=[c],s.properties=z.sanitizeProperties(e,r),s}var ke,Te=(K(Ue,ke=ne),Ue);function Ue(){var e=ke.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Me,Le=(K(Re,Me=Te),Re.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Re.dataType="PageviewData",Re);function Re(e,t,i,n,o,a,r){var s=Me.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,properties:M.Default,measurements:M.Default,id:M.Default},s.id=z.sanitizeId(e,r),s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,isNaN(n)||(s.duration=G.msToTimeSpan(n)),s.properties=z.sanitizeProperties(e,o),s.measurements=z.sanitizeMeasurements(e,a),s}var Oe,ze=(K(Pe,Oe=te),Pe);function Pe(){var e=Oe.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Ge;K(qe,Ge=ze),qe.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",qe.dataType="RemoteDependencyData";function qe(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Ge.call(this)||this;p.aiDataContract={id:M.Required,ver:M.Required,name:M.Default,resultCode:M.Default,duration:M.Default,success:M.Default,data:M.Default,target:M.Default,type:M.Default,properties:M.Default,measurements:M.Default,kind:M.Default,value:M.Default,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default,dependencyKind:M.Default,dependencySource:M.Default,commandName:M.Default,dependencyTypeName:M.Default},p.id=t,p.duration=G.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=z.sanitizeString(e,c);var h=H.ParseDependencyPath(e,i,s,n);return p.data=z.sanitizeUrl(e,n)||h.data,p.target=h.target,p.name=h.name,p.properties=z.sanitizeProperties(e,u),p.measurements=z.sanitizeMeasurements(e,l),p}var je,Ve=(K(He,je=te),He);function He(){var e=je.call(this)||this;return e.ver=2,e.properties={},e}var We;K(Xe,We=Ve),Xe.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Xe.dataType="MessageData";function Xe(e,t,i,n){var o=We.call(this)||this;return o.aiDataContract={ver:M.Required,message:M.Required,severityLevel:M.Default,properties:M.Default},t=t||G.NotSpecified,o.message=z.sanitizeMessage(e,t),o.properties=z.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Be,Fe=(K(Ke,Be=Te),Ke);function Ke(){var e=Be.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Je;K(Qe,Je=Fe),Qe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Qe.dataType="PageviewPerformanceData";function Qe(e,t,i,n,o,a,r){var s=Je.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,perfTotal:M.Default,networkConnect:M.Default,sentRequest:M.Default,receivedResponse:M.Default,domProcessing:M.Default,properties:M.Default,measurements:M.Default},s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,s.properties=z.sanitizeProperties(e,o),s.measurements=z.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 Ye,$e,Ze;K(et,Ye=Y);function et(e,t){var i=Ye.call(this)||this;return i.aiDataContract={baseType:M.Required,baseData:M.Required},i.baseType=e,i.baseData=t,i}(Ze=$e||($e={}))[Ze.Verbose=0]="Verbose",Ze[Ze.Information=1]="Information",Ze[Ze.Warning=2]="Warning",Ze[Ze.Error=3]="Error",Ze[Ze.Critical=4]="Critical";var tt=(it.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},it);function it(){}var nt=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"},ot=(at.UserExt="user",at.DeviceExt="device",at.TraceExt="trace",at.WebExt="web",at.AppExt="app",at.OSExt="os",at.SessionExt="ses",at.SDKExt="sdk",at);function at(){}var rt=(st.libVer="libVer",st);function st(){}var ct=new nt,ut=function(){},lt=(pt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=X.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>pt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},pt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},pt.prototype.initializeAutomaticSession=function(){var e=G.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=G.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},pt.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: "+G.getExceptionName(e),{exception:G.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,f,"AI session renewal date is 0, session will be reset.")},pt.prototype.renew=function(){var e=X.Now();this.automaticSession.id=G.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),G.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},pt.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;G.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=X.Now()},pt.prototype.setStorage=function(e,t,i){G.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},pt.acquisitionSpan=864e5,pt.renewalSpan=18e5,pt.cookieUpdateInterval=6e4,pt.cookieNameConst="ai_session",pt);function pt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return pt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return pt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?pt.cookieNameConst+i.config.namePrefix():pt.cookieNameConst},this.automaticSession=new ut}var ht=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.0.0-rc6"},ft=(mt.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/mt.INT_MAX_VALUE*100},mt.prototype.getHashCode=function(e){if(""==e)return 0;for(;e.length<mt.MIN_INPUT_LENGTH;)e=e.concat(e);for(var t=5381,i=0;i<e.length;++i)t=(t<<5)+t+e.charCodeAt(i),t&=t;return Math.abs(t)},mt.INT_MAX_VALUE=2147483647,mt.MIN_INPUT_LENGTH=8,mt);function mt(){}var vt=(yt.prototype.getSamplingScore=function(e){var t=new nt;return e.tags[t.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.userId]):e.tags[t.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.operationId]):Math.random()},yt);function yt(){this.hashCodeGeneragor=new ft}var xt=(St.prototype.isSampledIn=function(e){return!0},St);function St(e,t){this.INT_MAX_VALUE=2147483647,c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,(100<e||e<0)&&(this._logger.throwInternal(s.WARNING,S,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new vt}var It=(Nt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,I,"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(Nt.cookieSeparator)),i&&G.setCookie(this._logger,Nt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},Nt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,G.deleteCookie(this._logger,Nt.authUserCookieName)},Nt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},Nt.cookieSeparator="|",Nt.userCookieName="ai_user",Nt.authUserCookieName="ai_authUser",Nt);function Nt(e,t){this._logger=t;var i=G.getCookie(this._logger,Nt.userCookieName);if(i){var n=i.split(Nt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=G.newId();var o=new Date,a=G.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;G.setCookie(this._logger,Nt.userCookieName,r.join(Nt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";G.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=G.getCookie(this._logger,Nt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(Nt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var wt=function(){},Dt=function(e,t,i){this.traceID=e||G.newId(),this.parentID=t,this.name=i},Ct=(_t.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)},_t.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},_t.prototype.applyApplicationContext=function(e){var t,i;this.application&&("string"==typeof this.application.ver&&e.tags.push(((t={})[ct.applicationVersion]=this.application.ver,t)),"string"==typeof this.application.build&&e.tags.push(((i={})[ct.applicationBuild]=this.application.build,i)))},_t.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))},_t.prototype.applyInternalContext=function(e){var t,i,n;this.internal&&("string"==typeof this.internal.agentVersion&&e.tags.push(((t={})[ct.internalAgentVersion]=this.internal.agentVersion,t)),"string"==typeof this.internal.sdkVersion?e.tags.push(((i={})[ct.internalSdkVersion]=this.internal.sdkVersion,i)):e[ot.SDKExt]&&e[ot.SDKExt][rt.libVer]&&e.tags.push(((n={})[ct.internalSdkVersion]=e[ot.SDKExt][rt.libVer],n)))},_t.prototype.applyLocationContext=function(e){var t;this.location&&"string"==typeof this.location.ip&&e.tags.push(((t={})[ct.locationIp]=this.location.ip,t))},_t.prototype.applySampleContext=function(e){this.sample&&e.tags.push({SampleRate:this.sample.sampleRate})},_t.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}},_t.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},_t.prototype.applyUserContext=function(e){var t;this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&e.tags.push(((t={})[ct.userAccountId]=this.user.accountId,t)),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},_t.prototype.cleanUp=function(e){e.ext[ot.DeviceExt]&&0===Object.keys(e.ext[ot.DeviceExt]).length&&delete e.ext[ot.DeviceExt],e.ext[ot.UserExt]&&0===Object.keys(e.ext[ot.UserExt]).length&&delete e.ext[ot.UserExt],e.ext[ot.WebExt]&&0===Object.keys(e.ext[ot.WebExt]).length&&delete e.ext[ot.WebExt],e.ext[ot.OSExt]&&0===Object.keys(e.ext[ot.OSExt]).length&&delete e.ext[ot.OSExt],e.ext[ot.AppExt]&&0===Object.keys(e.ext[ot.AppExt]).length&&delete e.ext[ot.AppExt],e.ext[ot.TraceExt]&&0===Object.keys(e.ext[ot.TraceExt]).length&&delete e.ext[ot.TraceExt]},_t);function _t(e,t){"undefined"!=typeof window&&(this.sessionManager=new lt(t,e),this.application=new ht,this.device=new dt,this.internal=new gt(t),this.location=new wt,this.user=new It(t,e),this.telemetryTrace=new Dt,this.session=new ut,this.sample=new xt(t.samplingPercentage(),e)),this.appId=function(){return null}}var Et=(At.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(){}}},At.prototype.initialize=function(t,e,i){var n=this,o=At.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return tt.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||At.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new Ct(e.logger,this._extensionConfig),this._breezeChannel=G.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},At.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(this.context.sample.isSampledIn(e)&&(e.name===Le.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))},At.prototype.setNextPlugin=function(e){this._nextPlugin=e},At.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[ot.DeviceExt]=e.ext[ot.DeviceExt]||{},e.ext[ot.WebExt]=e.ext[ot.WebExt]||{},e.ext[ot.UserExt]=e.ext[ot.UserExt]||{},e.ext[ot.OSExt]=e.ext[ot.OSExt]||{},e.ext[ot.AppExt]=e.ext[ot.AppExt]||{},e.ext[ot.TraceExt]=e.ext[ot.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.applySampleContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},At);function At(){this.priority=170,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=Et,e.TelemetryTrace=Dt,e.TelemetryContext=Ct,e.Session=ut,e.SessionManager=lt,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,g=23,f=27,m=49,v=52,y=56,x=57,S=58,I=60,N=61,w=66,D=68,C=69,_=(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=(b.prototype.throwInternal=function(e,t,i,n,o){void 0===o&&(o=!1);var a=new _(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)}},b.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn?console.warn(e):"function"==typeof console.log&&console.log(e))},b.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},b.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 _(g,o,!1);this.queue.push(a),this.warnToConsole(o)}}},b.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},b);function b(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}))}k.prototype.processTelemetry=function(t){this.channelQueue.forEach(function(e){0<e.length&&e[0].processTelemetry(t)})},Object.defineProperty(k.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),k.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<R&&(r=e.identifier),e.initialize(i,n,o)}),r)throw Error(O+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];s.priority>R&&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 k(){this.identifier="ChannelControllerPlugin",this.priority=R}var T,U,M,L,R=500,O="Channel has invalid priority";(U=T||(T={}))[U.LocalStorage=0]="LocalStorage",U[U.SessionStorage=1]="SessionStorage",(L=M||(M={}))[L.Default=0]="Default",L[L.Required=1]="Required",L[L.Array=2]="Array",L[L.Hidden=4]="Hidden";var z=(P.sanitizeKeyAndAddUniqueness=function(e,t,i){var n=t.length,o=P.sanitizeKey(e,t);if(o.length!==n){for(var a=0,r=o;void 0!==i[r];)a++,r=o.substring(0,P.MAX_NAME_LENGTH-3)+P.padNumber(a);o=r}return o},P.sanitizeKey=function(e,t){var i;return t&&(t=P.trim(t.toString())).length>P.MAX_NAME_LENGTH&&(i=t.substring(0,P.MAX_NAME_LENGTH),e.throwInternal(s.WARNING,x,"name is too long. It has been truncated to "+P.MAX_NAME_LENGTH+" characters.",{name:t},!0)),i||t},P.sanitizeString=function(e,t,i){var n;return void 0===i&&(i=P.MAX_STRING_LENGTH),t&&(i=i||P.MAX_STRING_LENGTH,(t=P.trim(t)).toString().length>i&&(n=t.toString().substring(0,i),e.throwInternal(s.WARNING,N,"string value is too long. It has been truncated to "+i+" characters.",{value:t},!0))),n||t},P.sanitizeUrl=function(e,t){return P.sanitizeInput(e,t,P.MAX_URL_LENGTH,w)},P.sanitizeMessage=function(e,t){var i;return t&&t.length>P.MAX_MESSAGE_LENGTH&&(i=t.substring(0,P.MAX_MESSAGE_LENGTH),e.throwInternal(s.WARNING,y,"message is too long, it has been truncated to "+P.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),i||t},P.sanitizeException=function(e,t){var i;return t&&t.length>P.MAX_EXCEPTION_LENGTH&&(i=t.substring(0,P.MAX_EXCEPTION_LENGTH),e.throwInternal(s.WARNING,v,"exception is too long, it has been truncated to "+P.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),i||t},P.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=P.sanitizeString(t,o,P.MAX_PROPERTY_LENGTH),i[n=P.sanitizeKeyAndAddUniqueness(t,n,i)]=o}e=i}return e},P.sanitizeMeasurements=function(e,t){if(t){var i={};for(var n in t){var o=t[n];i[n=P.sanitizeKeyAndAddUniqueness(e,n,i)]=o}t=i}return t},P.sanitizeId=function(e,t){return t?P.sanitizeInput(e,t,P.MAX_ID_LENGTH,C).toString():t},P.sanitizeInput=function(e,t,i,n){var o;return t&&(t=P.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},P.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},P.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},P.MAX_NAME_LENGTH=150,P.MAX_ID_LENGTH=128,P.MAX_PROPERTY_LENGTH=8192,P.MAX_STRING_LENGTH=1024,P.MAX_URL_LENGTH=2048,P.MAX_MESSAGE_LENGTH=32768,P.MAX_EXCEPTION_LENGTH=32768,P);function P(){}var G=(q.disableStorage=function(){q._canUseLocalStorage=!1,q._canUseSessionStorage=!1},q._getLocalStorageObject=function(){return q.canUseLocalStorage()?q._getVerifiedStorageObject(T.LocalStorage):null},q._getVerifiedStorageObject=function(e){var t,i,n=null;try{if("undefined"==typeof window)return null;i=new Date,(n=e===T.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},q.isInternalApplicationInsightsEndpoint=function(e){return-1!==q._internalEndpoints.indexOf(e.toLowerCase())},q.canUseLocalStorage=function(){return void 0===q._canUseLocalStorage&&(q._canUseLocalStorage=!!q._getVerifiedStorageObject(T.LocalStorage)),q._canUseLocalStorage},q.getStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,a,"Browser failed read of local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setStorage=function(t,e,i){var n=q._getLocalStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,u,"Browser failed write to local storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeStorage=function(t,e){var i=q._getLocalStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseLocalStorage=!1,t.throwInternal(s.WARNING,p,"Browser failed removal of local storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q._getSessionStorageObject=function(){return q.canUseSessionStorage()?q._getVerifiedStorageObject(T.SessionStorage):null},q.canUseSessionStorage=function(){return void 0===q._canUseSessionStorage&&(q._canUseSessionStorage=!!q._getVerifiedStorageObject(T.SessionStorage)),q._canUseSessionStorage},q.getSessionStorageKeys=function(){var e=[];if(q.canUseSessionStorage())for(var t in window.sessionStorage)e.push(t);return e},q.getSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.getItem(e)}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,r,"Browser failed read of session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return null},q.setSessionStorage=function(t,e,i){var n=q._getSessionStorageObject();if(null!==n)try{return n.setItem(e,i),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,l,"Browser failed write to session storage. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.removeSessionStorage=function(t,e){var i=q._getSessionStorageObject();if(null!==i)try{return i.removeItem(e),!0}catch(e){q._canUseSessionStorage=!1,t.throwInternal(s.WARNING,h,"Browser failed removal of session storage item. "+q.getExceptionName(e),{exception:q.dump(e)})}return!1},q.disableCookies=function(){c.disableCookies()},q.canUseCookies=function(t){if(void 0===c._canUseCookies){c._canUseCookies=!1;try{c._canUseCookies=void 0!==q.document.cookie}catch(e){t.throwInternal(s.WARNING,D,"Cannot access document.cookie - "+q.getExceptionName(e),{exception:q.dump(e)})}}return c._canUseCookies},q.setCookie=function(e,t,i,n){var o="",a="";n&&(o=";domain="+n),q.document.location&&"https:"===q.document.location.protocol&&(a=";secure"),q.canUseCookies(e)&&(q.document.cookie=t+"="+i+o+";path=/"+a)},q.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},q.getCookie=function(e,t){if(q.canUseCookies(e)){var i="";if(t&&t.length)for(var n=t+"=",o=q.document.cookie.split(";"),a=0;a<o.length;a++){var r=o[a];if((r=q.trim(r))&&0===r.indexOf(n)){i=r.substring(n.length,o[a].length);break}}return i}},q.deleteCookie=function(e,t){q.canUseCookies(e)&&(q.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},q.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},q.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},q.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},q.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},q.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},q.toISOStringForIE8=function(e){if(q.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"}},q.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},q.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},q.isCrossOriginError=function(e,t,i,n,o){return("Script error."===e||"Script error"===e)&&!o},q.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},q.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},q.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},q.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},q.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},q.document="undefined"!=typeof document?document:{},q._canUseLocalStorage=void 0,q._canUseSessionStorage=void 0,q._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],q.NotSpecified="not_specified",q);function q(){}var j=(V.parseUrl=function(e){return V.htmlAnchorElement||(V.htmlAnchorElement=V.document.createElement?V.document.createElement("a"):{host:V.parseHost(e)}),V.htmlAnchorElement.href=e,V.htmlAnchorElement},V.getAbsoluteUrl=function(e){var t,i=V.parseUrl(e);return i&&(t=i.href),t},V.getPathName=function(e){var t,i=V.parseUrl(e);return i&&(t=i.pathname),t},V.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},V.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},V.document="undefined"!=typeof document?document:{},V);function V(){}var H=(W.ParseDependencyPath=function(e,t,i,n){var o,a=n,r=n;if(t&&0<t.length){var s=j.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=z.sanitizeString(e,i?i+" "+c:c)}else a=z.sanitizeString(e,t)}else a=o=n;return{target:o,name:a,data:r}},W);function W(){}var X=(B.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()},B.GetDuration=function(e,t){var i=null;return 0===e||0===t||c.isNullOrUndefined(e)||c.isNullOrUndefined(t)||(i=t-e),i},B);function B(){}var F=function(e,t){return(F=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 K(e,t){function i(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var J,Q=function(){return(Q=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)},Y=(K($,J=function(){}),$);function $(){return J.call(this)||this}var Z;K(ee,Z=function(){this.ver=1,this.sampleRate=100,this.tags={}});function ee(e,t,i){var n=Z.call(this)||this;return n.name=z.sanitizeString(e,i)||G.NotSpecified,n.data=t,n.time=G.toISOStringForIE8(new Date),n.aiDataContract={time:M.Required,iKey:M.Required,name:M.Required,sampleRate:function(){return 100==n.sampleRate?M.Hidden:M.Required},tags:M.Required,data:M.Required},n}function te(){}var ie,ne=(K(oe,ie=te),oe);function oe(){var e=ie.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var ae;K(re,ae=ne),re.envelopeType="Microsoft.ApplicationInsights.{0}.Event",re.dataType="EventData";function re(e,t,i,n){var o=ae.call(this)||this;return o.aiDataContract={ver:M.Required,name:M.Required,properties:M.Default,measurements:M.Default},o.name=z.sanitizeString(e,t)||G.NotSpecified,o.properties=z.sanitizeProperties(e,i),o.measurements=z.sanitizeMeasurements(e,n),o}function se(){}var ce,ue=(K(le,ce=te),le);function le(){var e=ce.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}function pe(){this.hasFullStack=!0,this.parsedStack=[]}var he;K(de,he=ue),de.CreateFromInterface=function(t,e){var i=e.exceptions&&e.exceptions.map(function(e){return fe.CreateFromInterface(t,e)});return new de(t,Q({},e,{exceptions:i}))},de.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}},de.CreateSimpleException=function(e,t,i,n,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},de.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",de.dataType="ExceptionData";function de(e,t,i,n,o,a){var r=he.call(this)||this;return r.aiDataContract={ver:M.Required,exceptions:M.Required,severityLevel:M.Default,properties:M.Default,measurements:M.Default},t instanceof Error?(r.exceptions=[new fe(e,t)],r.properties=z.sanitizeProperties(e,i),r.measurements=z.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 ge,fe=(K(me,ge=pe),me.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}},me.CreateFromInterface=function(e,t){var i=t.parsedStack instanceof Array&&t.parsedStack.map(function(e){return ye.CreateFromInterface(e)})||t.parsedStack;return new me(e,Q({},t,{parsedStack:i}))},me.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(ye.regex.test(r)){var s=new ye(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},me);function me(e,t){var i=ge.call(this)||this;if(i.aiDataContract={id:M.Default,outerId:M.Default,typeName:M.Required,message:M.Required,hasFullStack:M.Default,stack:M.Default,parsedStack:M.Array},t instanceof Error){i.typeName=z.sanitizeString(e,t.name)||G.NotSpecified,i.message=z.sanitizeMessage(e,t.message)||G.NotSpecified;var n=t.stack;i.parsedStack=me.parseStack(n),i.stack=z.sanitizeException(e,n),i.hasFullStack=G.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 ve,ye=(K(xe,ve=se),xe.CreateFromInterface=function(e){return new xe(e,null)},xe.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},xe.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,xe.baseSize=58,xe);function xe(e,t){var i=ve.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:M.Required,method:M.Required,assembly:M.Default,fileName:M.Default,line:M.Default},"string"==typeof e){var n=e;i.level=t,i.method="<no_method>",i.assembly=G.trim(n),i.fileName="",i.line=0;var o=n.match(xe.regex);o&&5<=o.length&&(i.method=G.trim(o[2])||i.method,i.fileName=G.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+=xe.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}var Se,Ie,Ne,we=(K(De,Se=te),De);function De(){var e=Se.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e}(Ne=Ie||(Ie={}))[Ne.Measurement=0]="Measurement",Ne[Ne.Aggregation=1]="Aggregation";var Ce,_e=(K(Ee,Ce=function(){this.kind=Ie.Measurement}),Ee);function Ee(){var e=null!==Ce&&Ce.apply(this,arguments)||this;return e.aiDataContract={name:M.Required,kind:M.Default,value:M.Required,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default},e}var Ae;K(be,Ae=we),be.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",be.dataType="MetricData";function be(e,t,i,n,o,a,r){var s=Ae.call(this)||this;s.aiDataContract={ver:M.Required,metrics:M.Required,properties:M.Default};var c=new _e;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=z.sanitizeString(e,t)||G.NotSpecified,c.value=i,s.metrics=[c],s.properties=z.sanitizeProperties(e,r),s}var ke,Te=(K(Ue,ke=ne),Ue);function Ue(){var e=ke.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Me,Le=(K(Re,Me=Te),Re.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Re.dataType="PageviewData",Re);function Re(e,t,i,n,o,a,r){var s=Me.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,properties:M.Default,measurements:M.Default,id:M.Default},s.id=z.sanitizeId(e,r),s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,isNaN(n)||(s.duration=G.msToTimeSpan(n)),s.properties=z.sanitizeProperties(e,o),s.measurements=z.sanitizeMeasurements(e,a),s}var Oe,ze=(K(Pe,Oe=te),Pe);function Pe(){var e=Oe.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Ge;K(qe,Ge=ze),qe.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",qe.dataType="RemoteDependencyData";function qe(e,t,i,n,o,a,r,s,c,u,l){void 0===c&&(c="Ajax");var p=Ge.call(this)||this;p.aiDataContract={id:M.Required,ver:M.Required,name:M.Default,resultCode:M.Default,duration:M.Default,success:M.Default,data:M.Default,target:M.Default,type:M.Default,properties:M.Default,measurements:M.Default,kind:M.Default,value:M.Default,count:M.Default,min:M.Default,max:M.Default,stdDev:M.Default,dependencyKind:M.Default,dependencySource:M.Default,commandName:M.Default,dependencyTypeName:M.Default},p.id=t,p.duration=G.msToTimeSpan(o),p.success=a,p.resultCode=r+"",p.type=z.sanitizeString(e,c);var h=H.ParseDependencyPath(e,i,s,n);return p.data=z.sanitizeUrl(e,n)||h.data,p.target=h.target,p.name=h.name,p.properties=z.sanitizeProperties(e,u),p.measurements=z.sanitizeMeasurements(e,l),p}var je,Ve=(K(He,je=te),He);function He(){var e=je.call(this)||this;return e.ver=2,e.properties={},e}var We;K(Xe,We=Ve),Xe.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Xe.dataType="MessageData";function Xe(e,t,i,n){var o=We.call(this)||this;return o.aiDataContract={ver:M.Required,message:M.Required,severityLevel:M.Default,properties:M.Default},t=t||G.NotSpecified,o.message=z.sanitizeMessage(e,t),o.properties=z.sanitizeProperties(e,n),i&&(o.severityLevel=i),o}var Be,Fe=(K(Ke,Be=Te),Ke);function Ke(){var e=Be.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Je;K(Qe,Je=Fe),Qe.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Qe.dataType="PageviewPerformanceData";function Qe(e,t,i,n,o,a,r){var s=Je.call(this)||this;return s.aiDataContract={ver:M.Required,name:M.Default,url:M.Default,duration:M.Default,perfTotal:M.Default,networkConnect:M.Default,sentRequest:M.Default,receivedResponse:M.Default,domProcessing:M.Default,properties:M.Default,measurements:M.Default},s.url=z.sanitizeUrl(e,i),s.name=z.sanitizeString(e,t)||G.NotSpecified,s.properties=z.sanitizeProperties(e,o),s.measurements=z.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 Ye,$e,Ze;K(et,Ye=Y);function et(e,t){var i=Ye.call(this)||this;return i.aiDataContract={baseType:M.Required,baseData:M.Required},i.baseType=e,i.baseData=t,i}(Ze=$e||($e={}))[Ze.Verbose=0]="Verbose",Ze[Ze.Information=1]="Information",Ze[Ze.Warning=2]="Warning",Ze[Ze.Error=3]="Error",Ze[Ze.Critical=4]="Critical";var tt=(it.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},it);function it(){}var nt=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"},ot=(at.UserExt="user",at.DeviceExt="device",at.TraceExt="trace",at.WebExt="web",at.AppExt="app",at.OSExt="os",at.SessionExt="ses",at.SDKExt="sdk",at);function at(){}var rt=(st.libVer="libVer",st);function st(){}var ct=new nt,ut=function(){},lt=(pt.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=X.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>pt.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},pt.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},pt.prototype.initializeAutomaticSession=function(){var e=G.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=G.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},pt.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: "+G.getExceptionName(e),{exception:G.dump(e)})}0==this.automaticSession.renewalDate&&this._logger.throwInternal(s.WARNING,f,"AI session renewal date is 0, session will be reset.")},pt.prototype.renew=function(){var e=X.Now();this.automaticSession.id=G.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),G.canUseLocalStorage()||this._logger.throwInternal(s.WARNING,o,"Browser does not support local storage. Session durations will be inaccurate.")},pt.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;G.setCookie(this._logger,this._storageNamePrefix(),r.join("|")+";expires="+a.toUTCString(),s),this.cookieUpdatedTimestamp=X.Now()},pt.prototype.setStorage=function(e,t,i){G.setStorage(this._logger,this._storageNamePrefix(),[e,t,i].join("|"))},pt.acquisitionSpan=864e5,pt.renewalSpan=18e5,pt.cookieUpdateInterval=6e4,pt.cookieNameConst="ai_session",pt);function pt(e,t){var i=this;c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return pt.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return pt.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return i.config.namePrefix&&i.config.namePrefix()?pt.cookieNameConst+i.config.namePrefix():pt.cookieNameConst},this.automaticSession=new ut}var ht=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.0.0"},ft=(mt.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/mt.INT_MAX_VALUE*100},mt.prototype.getHashCode=function(e){if(""==e)return 0;for(;e.length<mt.MIN_INPUT_LENGTH;)e=e.concat(e);for(var t=5381,i=0;i<e.length;++i)t=(t<<5)+t+e.charCodeAt(i),t&=t;return Math.abs(t)},mt.INT_MAX_VALUE=2147483647,mt.MIN_INPUT_LENGTH=8,mt);function mt(){}var vt=(yt.prototype.getSamplingScore=function(e){var t=new nt;return e.tags[t.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.userId]):e.tags[t.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[t.operationId]):Math.random()},yt);function yt(){this.hashCodeGeneragor=new ft}var xt=(St.prototype.isSampledIn=function(e){return!0},St);function St(e,t){this.INT_MAX_VALUE=2147483647,c.isNullOrUndefined(t)?this._logger=new A:this._logger=t,(100<e||e<0)&&(this._logger.throwInternal(s.WARNING,S,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new vt}var It=(Nt.prototype.setAuthenticatedUserContext=function(e,t,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(s.WARNING,I,"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(Nt.cookieSeparator)),i&&G.setCookie(this._logger,Nt.authUserCookieName,encodeURI(n),this.config.cookieDomain())}},Nt.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,G.deleteCookie(this._logger,Nt.authUserCookieName)},Nt.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},Nt.cookieSeparator="|",Nt.userCookieName="ai_user",Nt.authUserCookieName="ai_authUser",Nt);function Nt(e,t){this._logger=t;var i=G.getCookie(this._logger,Nt.userCookieName);if(i){var n=i.split(Nt.cookieSeparator);0<n.length&&(this.id=n[0])}if(this.config=e,!this.id){this.id=G.newId();var o=new Date,a=G.toISOStringForIE8(o);this.accountAcquisitionDate=a,o.setTime(o.getTime()+31536e6);var r=[this.id,a],s=this.config.cookieDomain?this.config.cookieDomain():void 0;G.setCookie(this._logger,Nt.userCookieName,r.join(Nt.cookieSeparator)+";expires="+o.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";G.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=G.getCookie(this._logger,Nt.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(Nt.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var wt=function(){},Dt=function(e,t,i){this.traceID=e||G.newId(),this.parentID=t,this.name=i},Ct=(_t.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)},_t.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},_t.prototype.applyApplicationContext=function(e){var t,i;this.application&&("string"==typeof this.application.ver&&e.tags.push(((t={})[ct.applicationVersion]=this.application.ver,t)),"string"==typeof this.application.build&&e.tags.push(((i={})[ct.applicationBuild]=this.application.build,i)))},_t.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))},_t.prototype.applyInternalContext=function(e){var t,i,n;this.internal&&("string"==typeof this.internal.agentVersion&&e.tags.push(((t={})[ct.internalAgentVersion]=this.internal.agentVersion,t)),"string"==typeof this.internal.sdkVersion?e.tags.push(((i={})[ct.internalSdkVersion]=this.internal.sdkVersion,i)):e[ot.SDKExt]&&e[ot.SDKExt][rt.libVer]&&e.tags.push(((n={})[ct.internalSdkVersion]=e[ot.SDKExt][rt.libVer],n)))},_t.prototype.applyLocationContext=function(e){var t;this.location&&"string"==typeof this.location.ip&&e.tags.push(((t={})[ct.locationIp]=this.location.ip,t))},_t.prototype.applySampleContext=function(e){this.sample&&e.tags.push({SampleRate:this.sample.sampleRate})},_t.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}},_t.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},_t.prototype.applyUserContext=function(e){var t;this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&e.tags.push(((t={})[ct.userAccountId]=this.user.accountId,t)),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},_t.prototype.cleanUp=function(e){e.ext[ot.DeviceExt]&&0===Object.keys(e.ext[ot.DeviceExt]).length&&delete e.ext[ot.DeviceExt],e.ext[ot.UserExt]&&0===Object.keys(e.ext[ot.UserExt]).length&&delete e.ext[ot.UserExt],e.ext[ot.WebExt]&&0===Object.keys(e.ext[ot.WebExt]).length&&delete e.ext[ot.WebExt],e.ext[ot.OSExt]&&0===Object.keys(e.ext[ot.OSExt]).length&&delete e.ext[ot.OSExt],e.ext[ot.AppExt]&&0===Object.keys(e.ext[ot.AppExt]).length&&delete e.ext[ot.AppExt],e.ext[ot.TraceExt]&&0===Object.keys(e.ext[ot.TraceExt]).length&&delete e.ext[ot.TraceExt]},_t);function _t(e,t){"undefined"!=typeof window&&(this.sessionManager=new lt(t,e),this.application=new ht,this.device=new dt,this.internal=new gt(t),this.location=new wt,this.user=new It(t,e),this.telemetryTrace=new Dt,this.session=new ut,this.sample=new xt(t.samplingPercentage(),e)),this.appId=function(){return null}}var Et=(At.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(){}}},At.prototype.initialize=function(t,e,i){var n=this,o=At.getDefaultConfig();function a(e){r._extensionConfig[e]=function(){return tt.getConfig(t,e,n.identifier,o[e]())}}this._extensionConfig=this._extensionConfig||At.getDefaultConfig();var r=this;for(var s in o)a(s);this._logger=e.logger,this.context=new Ct(e.logger,this._extensionConfig),this._breezeChannel=G.getExtension(i,"AppInsightsChannelPlugin"),this.context.appId=function(){return n._breezeChannel?n._breezeChannel._appId:null}},At.prototype.processTelemetry=function(e){c.isNullOrUndefined(e)||(this.context.sample.isSampledIn(e)&&(e.name===Le.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))},At.prototype.setNextPlugin=function(e){this._nextPlugin=e},At.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[ot.DeviceExt]=e.ext[ot.DeviceExt]||{},e.ext[ot.WebExt]=e.ext[ot.WebExt]||{},e.ext[ot.UserExt]=e.ext[ot.UserExt]||{},e.ext[ot.OSExt]=e.ext[ot.OSExt]||{},e.ext[ot.AppExt]=e.ext[ot.AppExt]||{},e.ext[ot.TraceExt]=e.ext[ot.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.applySampleContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},At);function At(){this.priority=170,this.identifier="AppInsightsPropertiesPlugin"}e.PropertiesPlugin=Et,e.TelemetryTrace=Dt,e.TelemetryContext=Ct,e.Session=ut,e.SessionManager=lt,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
{
"name": "@microsoft/applicationinsights-properties-js",
"version": "2.0.0-rc6",
"version": "2.0.0",
"description": "Microsoft Application Insights properties (Part A) plugin",

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

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

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

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

const Version = "2.0.0-rc6";
const Version = "2.0.0";

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