@microsoft/applicationinsights-dependencies-js
Advanced tools
Comparing version 2.7.3-nightly.2201-02 to 2.7.3
{ | ||
"name": "applicationinsights-dependencies-js", | ||
"version": "2.7.3-nightly.2201-02", | ||
"version": "2.7.3", | ||
"ext": { | ||
@@ -8,7 +8,7 @@ "@js": { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-6edazFWm4YFs8Lk4TPJ6tqV0G7rAh8p66JzWnJRGmaE= sha384-0u+wKYRUkg9hGYdkqDlag/H17DfaLgHeNUC8Hf+7LLSUGHIp1s83Zv0/xFW6jUxq sha512-+iVWhYhKwUSktu3fhO7/HAonRqXCOH880S7uN3g0OMcjjTXz9g+Znr3KR1AkP6ycMnFyPZGxSNrGCZt3ryjblQ==", | ||
"integrity": "sha256-6lAHTyVP+/xLQUrEd25iK02XRrnxuRBFy/v+2enRN5s= sha384-f9utgcI0vrppUgWU83kaKM28gCZdZhpip+ZL3iUFarWzYBbhQ2fkYE/vWEBbKxAe sha512-wkQW62nKhlwFm8BiJdjIQZ5bU8Comc3bmDS0aNY7XtUKuHkYzvjYBmOlsOmmgJHDQOlqvjRxipBF0tNDGdpI6Q==", | ||
"hashes": { | ||
"sha256": "6edazFWm4YFs8Lk4TPJ6tqV0G7rAh8p66JzWnJRGmaE=", | ||
"sha384": "0u+wKYRUkg9hGYdkqDlag/H17DfaLgHeNUC8Hf+7LLSUGHIp1s83Zv0/xFW6jUxq", | ||
"sha512": "+iVWhYhKwUSktu3fhO7/HAonRqXCOH880S7uN3g0OMcjjTXz9g+Znr3KR1AkP6ycMnFyPZGxSNrGCZt3ryjblQ==" | ||
"sha256": "6lAHTyVP+/xLQUrEd25iK02XRrnxuRBFy/v+2enRN5s=", | ||
"sha384": "f9utgcI0vrppUgWU83kaKM28gCZdZhpip+ZL3iUFarWzYBbhQ2fkYE/vWEBbKxAe", | ||
"sha512": "wkQW62nKhlwFm8BiJdjIQZ5bU8Comc3bmDS0aNY7XtUKuHkYzvjYBmOlsOmmgJHDQOlqvjRxipBF0tNDGdpI6Q==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-TYAoXwNxJsmRuJz4pqO1yU9BWqZ5XcVRsPFyxa+YKwE= sha384-ESCMw+jmIQHxj8ZPWp2m6WIQDHFJX2dDAbZCXkWVsu0+2THfrD76HAcm37Zq+bnz sha512-9P8KE4+4UBDUNJE1KW5e7p6OBEyWsaadgs5gyZRY2nxiLKPswNkOuQCSRUp8r7aAKM77WZ3OajbGJPqeYT/V6g==", | ||
"integrity": "sha256-CBkwEV8XufEGvUgLlgwT1ya9yJj8efQjZFtnyG0gJFk= sha384-tXYlwl/KLv0r8YbR08goOq7S7eQ9OdjEs8BGYxhoWByCmG70tx0SwyHnN5jExvz4 sha512-UCIekKXggl3rBiN14wE6b3Ox17ioMSSUJkwOA6mac/bTOvvXMt38RxcXqwoCi+dx2uc6bpkBcwkFsFY0Y2wemQ==", | ||
"hashes": { | ||
"sha256": "TYAoXwNxJsmRuJz4pqO1yU9BWqZ5XcVRsPFyxa+YKwE=", | ||
"sha384": "ESCMw+jmIQHxj8ZPWp2m6WIQDHFJX2dDAbZCXkWVsu0+2THfrD76HAcm37Zq+bnz", | ||
"sha512": "9P8KE4+4UBDUNJE1KW5e7p6OBEyWsaadgs5gyZRY2nxiLKPswNkOuQCSRUp8r7aAKM77WZ3OajbGJPqeYT/V6g==" | ||
"sha256": "CBkwEV8XufEGvUgLlgwT1ya9yJj8efQjZFtnyG0gJFk=", | ||
"sha384": "tXYlwl/KLv0r8YbR08goOq7S7eQ9OdjEs8BGYxhoWByCmG70tx0SwyHnN5jExvz4", | ||
"sha512": "UCIekKXggl3rBiN14wE6b3Ox17ioMSSUJkwOA6mac/bTOvvXMt38RxcXqwoCi+dx2uc6bpkBcwkFsFY0Y2wemQ==" | ||
} | ||
@@ -26,0 +26,0 @@ } |
/*! | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var i="function",l="object",a="undefined",P="prototype",o="hasOwnProperty",n=Object,s=n[P],t=n.assign,r=n.create,u=n.defineProperty,c=s[o];function N(){return typeof globalThis!==a&&globalThis?globalThis:typeof self!==a&&self?self:typeof window!==a&&window?window:typeof global!==a&&global?global:null}function d(e){throw new TypeError(e)}(N()||{}).Symbol,(N()||{}).Reflect;var _=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])s[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[P]=null===t?function(e){if(r)return r(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",M="setInstFuncs",q=Object,R=q.getPrototypeOf,F=0;function D(e,t){return e&&q[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===q[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);e=e[S]||e[m]||(e[h]?e[h][m]:null);if(e)return e}return null}function k(e,t){var n=[],r=q.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function H(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function V(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function W(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+V(e,"_")+"$"+F,F++,a[C]=o);var i=W[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,e=(l={},k(u=r,function(e){!l[e]&&H(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&H(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s));var c,d,f,p,i=!!R&&!!i[M];c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[M]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;H(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}W[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},z="attachEvent",K="addEventListener",X=u;function G(e){return s.toString.call(e)}function $(e){return e===undefined||typeof e===a}function J(e){return null===e||$(e)}function Z(e){return typeof e===i}function Q(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"string"==typeof e}function te(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ne(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var re=!{toString:null}.propertyIsEnumerable("toString"),ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function oe(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(re)for(var a=ae.length,o=0;o<a;o++)e&&c.call(e,ae[o])&&r.push(ae[o]);return r}function ie(){var e=Date;return e.now?e.now():(new e).getTime()}var se="window",ue="documentMode",le="performance",ce="JSON",de="msie",fe="trident/",pe=null,ge=null;function he(e){var t=N();return t&&t[e]?t[e]:e===se&&typeof window===l&&window?window:null}function me(){return typeof document===l&&document?document:he("document")}function ve(){return typeof navigator===l&&navigator?navigator:he("navigator")}function xe(){return he(le)}function ye(){return typeof JSON===l&&JSON||null!==he(ce)}function Ce(){return ye()?JSON||he(ce):null}function Te(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ye()&&(n=Ce().stringify(e)),t+n}var Ie=null;function be(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Ae(e,t){var n,r=typeof console!==a?console:he("console");r&&(n="log",Z(r[n=r[e]?e:n])&&r[n](t))}var Se=(we.dataType="MessageData",we);function we(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;e="";ye()&&(e=Ce().stringify(r));e=(t?" message:"+be(t):"")+(r?" props:"+be(e):"");this.message+=e}var Me=function Ut(a){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};W(Ut,this,function(o){function e(e,t){e=a[e];return J(e)?t:e}function i(e,t){var n,r=(r=(r=Ie)||!0===a.disableDbgExt?r:Ie||(n=he("Microsoft"),Ie=n?n.ApplicationInsights:Ie))?r.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}J(a)&&(a={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,a){t=new Se(t,n,a=void 0!==a&&a,r);if(o.enableDebugExceptions())throw t;n=e===g.CRITICAL?"errorToConsole":"warnToConsole";$(t.message)?i("throw"+(e===g.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),a?(a=+t.messageId,!u[a]&&e<=r&&(o[n](t.message),u[a]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Ae("warn",e),i("warning",e)},o.errorToConsole=function(e){Ae("error",e),i("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,u[n]?r=!1:u[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++,i(e===g.CRITICAL?"error":"warn",t)),s===o.maxInternalMessageLimit()&&(t=new Se(B.MessageLimitPerPVExceeded,r="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),e===g.CRITICAL?o.errorToConsole(r):o.warnToConsole(r))))}})},qe=(Re.ParentContextKey="parent",Re.ChildrenContextKey="childEvts",Re);function Re(e,a,t){var r,o=this,i=!1;o.start=ie(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Z(a)&&(i=function(e){if(X)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(a)&&(r=a(),a=null),r}};return X(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Re.ParentContextKey||e===Re.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Re.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Re.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Re.ChildrenContextKey);if("[object Array]"===G(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ie()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Z(a)&&(o.payload=a())}}var Fe="CoreUtils.doPerf";function De(e,t,n,r,a){if(e){var o=e;if(o=Z(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(Fe);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(qe.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(qe.ChildrenContextKey))||(i=[],e.setCtx(qe.ChildrenContextKey,i)),i.push(s))),o.setCtx(Fe,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Fe,e)}}}return n()}var Le=function(a,t){var o=this,i=null,s=Z(a.processTelemetry),u=Z(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+Te(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ee(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Z(o.processTelemetry)&&(o=new Le(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function Vt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ee(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],te(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ee(i,r)):$(t)&&(l=Ee(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new Me(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;void 0===n&&(n=!1);e=u.getExtCfg(e,null);return e&&!J(e[t])?r=e[t]:a&&!J(a[t])&&(r=a[t]),J(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new Vt((e=void 0===e?null:e)||l,a,n,t)}},ke="getPlugin",u=(He.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},He);function He(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new je(null,{},s.core),t=c&&c[ke]?e.createNew(null,c[ke]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&J(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ke]&&(i=c[ke]()),s.core=t,l=new je(r,e,t,i),u=!0}}var Pe=4294967296,Ne=4294967295,_e=!1,Oe=123456789,Ue=987654321;function Ve(e){var t=he("crypto")||he("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ne:(!(t=ve())||t.userAgent===ge&&null!==pe||(t=((ge=t.userAgent)||"").toLowerCase(),pe=Y(t,de)||Y(t,fe)),pe?(_e||function(){try{var e=2147483647&ie();(t=(Math.random()*Pe^e)+e)<0&&(t>>>=0),Oe=123456789+t&Ne,Ue=987654321-t&Ne,_e=!0}catch(n){}var t}(),n=((Ue=36969*(65535&Ue)+(Ue>>16)&Ne)<<16)+(65535&(Oe=18e3*(65535&Oe)+(Oe>>16)&Ne))>>>0&Ne|0,(n>>>=0)&Ne):Math.floor(Pe*Math.random()|0));return e||(n>>>=0),n}function We(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ve())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Ve())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Be="_aiHooks",ze=["req","rsp","hkErr","fnErr"];function Ke(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Xe(e,i,s,u,l){0<=l&&l<=2&&Ke(e,function(e,t){var n=e.cbks,e=n[ze[l]];if(e){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function Ge(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ke(e,function(e){t.push(e)}),t}Xe(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Xe(e,r,a,t,3),s}return Xe(e,r,a,t,1),r.rslt}}var $e=Object.getPrototypeOf;function Je(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if($e)return $e(e);e=e.__proto__||e[P]||e.constructor;if(e)return e}return null}(e),t,!1))),r}(e,t,r);if(e){r=e[t];if(typeof r===i){var a=r[Be];a||((r=Ge(a={i:0,n:t,f:r,h:[]}))[Be]=a,e[t]=r);n={id:a.i,cbks:n,rm:function(){var n=this.id;Ke(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}};return a.i++,a.h.push(n),n}}}return null}function Ze(e,t,n){var r,a,o=t.length,i=(e=e,(t=t)&&150<(t=ne(t.toString())).length&&(a=t.substring(0,150),e&&e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),a||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));i=u}return i}function Qe(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ne(t)).toString().length>n&&(r=t.toString().substring(0,n),e&&e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ye(e,t){return n=e,e=B.UrlTooLong,(t=t)&&2048<(t=ne(t)).length&&(r=t.substring(0,2048),n&&n.throwInternal(g.WARNING,e,"input is too long, it has been truncated to 2048 characters.",{data:t},!0)),r||t;var n,r}function et(r,e){var a;return e&&(a={},Q(e,function(e,t){if(typeof t===l&&ye())try{t=Ce().stringify(t)}catch(n){r&&r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Qe(r,t,8192),e=Ze(r,e,a),a[e]=t}),e=a),e}function tt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var nt,rt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",at="iKey",ot=(nt={AI:0,0:"AI",AI_AND_W3C:1,1:"AI_AND_W3C",W3C:2,2:"W3C"},me()||{}),it=0,st=[null,null,null,null,null];function ut(n){var e=it,t=st,r=t[e];return ot.createElement?t[e]||(r=t[e]=ot.createElement("a")):r={host:function(){var e=lt(n,!0)||"";if(e){var t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&ee(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return e}()},r.href=n,++e>=t.length&&(e=0),it=e,r}function lt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ee(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var ct=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],dt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a=ut(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(lt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;var o,n=e&&e.correlationHeaderDomains;if(n&&(te(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if(e){e=dt.getCorrelationContextValue(e,"appId");if(e&&e!==dt.correlationIdPrefix)return e}},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function ft(){var e=xe();if(e&&e.now&&e.timing){e=e.now()+e.timing.navigationStart;if(0<e)return e}return ie()}function pt(e,t){return 0===e||0===t||J(e)||J(t)?null:t-e}var gt,ht=(p(mt,gt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),mt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",mt.dataType="RemoteDependencyData",mt);function mt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=gt.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=tt(a),f.success=o,f.resultCode=i+"",f.type=Qe(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=ut(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Qe(p,t?t+" "+n:n)):Qe(p,u))):g=a,{target:g,name:o,data:i});return f.data=Ye(e,r)||i.data,f.target=Qe(e,i.target),l&&(f.target="".concat(f.target," | ").concat(l)),f.name=Qe(e,i.name),f.properties=et(e,c),f.measurements=(h=e,(d=d)&&(m={},Q(d,function(e,t){e=Ze(h,e,m),m[e]=t}),d=m),d),f}var vt=(xt.create=function(e,t,n,r,a,o){if(n=Qe(r,n)||"not_specified",J(e)||J(t)||J(n))throw Error("Input doesn't contain all required fields");r="";e[at]&&(r=e[at],delete e[at]);var i={name:n,time:function(e){if("[object Date]"===G(e)){var t=function(e){e=""+e;return 1===e.length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J(a)||Q(a,function(e,t){i.data[e]=t}),i},xt);function xt(){}var yt="properties";function Ct(e,t,n){t=e[t],e=e[n];return t&&e?pt(t,e):0}function Tt(e,t,n,r,a){a=Ct(n,r,a);return a?It(e,t,tt(a)):0}function It(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var bt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},At=function Wt(e,t,n){var r=this,a=n,y="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new bt,r.clientFailure=0,r.traceID=e,r.spanID=t,W(Wt,r,function(x){x.getAbsoluteUrl=function(){return x.requestUrl?(e=ut(x.requestUrl))?e.href:void 0:null;var e},x.getPathName=function(){return x.requestUrl?Ye(a,(e=x.method,t=x.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},x.CreateTrackItem=function(e,t,n){if(x.ajaxTotalDuration=Math.round(1e3*pt(x.requestSentTime,x.responseFinishedTime))/1e3,x.ajaxTotalDuration<0)return null;var r,a,o,i,s,u,l,c,d,f,p,g,h,m,v=((m={id:"|"+x.traceID+"."+x.spanID,target:x.getAbsoluteUrl(),name:x.getPathName(),type:e,startTime:null,duration:x.ajaxTotalDuration,success:200<=+x.status&&+x.status<400,responseCode:+x.status,method:x.method})[yt]={HttpMethod:x.method},m);return x.requestSentTime&&(v.startTime=new Date,v.startTime.setTime(x.requestSentTime)),i=(r=x).perfTiming,s=(a=v)[yt]||{},u=0,l="duration",c="startTime",d="connect"+"End",f="request"+"Start",p="response"+"End",g="transferSize",h="encodedBodySize",e="decodedBodySize",m="serverTiming",i?(u|=Tt(s,"End",i,"redirectStart","End"),u|=Tt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=Tt(s,"connect",i,"connectStart",d),u|=Tt(s,"request",i,f,"requestEnd"),u|=Tt(s,"response",i,"responseStart",p),u|=Tt(s,"networkConnect",i,c,d),u|=Tt(s,"sentRequest",i,f,p),u|=It(s,l,p=i[l]||Ct(i,c,p)||0),u|=It(s,"perfTotal",p),(p=i[m])&&(o={},te(p,function(e,t){var n,r,t=(n=e.name||""+t,t=(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};Q(e,function(e,t){("name"!==e&&ee(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ee(t)||(a[e]=t))}),o[t]=a}),u|=It(s,m,o)),u|=It(s,g,i[g]),u|=It(s,h,i[h]),u|=It(s,e,i[e])):r.perfMark&&(u|=It(s,"missing",r.perfAttempts)),u&&(a[yt]=s),t&&0<oe(x.requestHeaders).length&&(v[yt]=v[yt]||{},v[yt].requestHeaders=x.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(v.correlationContext=n),t.headerMap&&0<oe(t.headerMap).length&&(v[yt]=v[yt]||{},v[yt].responseHeaders=t.headerMap),x.errorStatusText&&400<=x.status&&(n=t.type,v[yt]=v[yt]||{},""!==n&&"text"!==n||(v[yt][y]=t[y]?t.statusText+" - "+t[y]:t.statusText),"json"===n&&(v[yt][y]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),v}})},St=(wt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},wt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},wt.prototype.toString=function(){return"".concat(this.version,"-").concat(this.traceId,"-").concat(this.spanId,"-").concat(this.traceFlag)},wt.DEFAULT_TRACE_FLAG="01",wt.DEFAULT_VERSION="00",wt);function wt(e,t){var n=this;n.traceFlag=wt.DEFAULT_TRACE_FLAG,n.version=wt.DEFAULT_VERSION,e&&wt.isValidTraceId(e)?n.traceId=e:n.traceId=We(),t&&wt.isValidSpanId(t)?n.spanId=t:n.spanId=We().substr(0,16)}var Mt="ai.ajxmn.",qt="diagLog",Rt="ajaxData",Ft="throwInternal",Dt="fetch",Lt=0;function Et(e){var t=!1;!function(){var e=!1;try{e=!!he("XMLHttpRequest")}catch(t){}return e}()||(t=!(J(n=XMLHttpRequest[P])||J(n.open)||J(n.send)||J(n.abort)));var n=function(e){var t=((e=(e=void 0===e?null:e)?e:(t=ve()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Y(t,de)){e=me()||{};return Math.max(parseInt(t.split(de)[1]),e[ue]||0)}if(Y(t,fe)){t=parseInt(t.split(fe)[1]);if(t)return t+4}return null}();if(t=!(n&&n<9)&&t)try{(new XMLHttpRequest)[Rt]={};var r=XMLHttpRequest[P].open;XMLHttpRequest[P].open=r}catch(a){t=!1,kt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Te(a)})}return t}function jt(e){var t="";try{J(e)||J(e[Rt])||J(e[Rt].requestUrl)||(t+="(url: '"+e[Rt].requestUrl+"')")}catch(n){}return t}function kt(e,t,n,r,a){e[qt]()[Ft](g.CRITICAL,t,n,r,a)}function Ht(e,t,n,r,a){e[qt]()[Ft](g.WARNING,t,n,r,a)}function Pt(t,n,r){return function(e){kt(t,n,r,{ajaxDiagnosticsMessage:jt(e.inst),exception:Te(e.err)})}}function Nt(e,t){return e&&t?e.indexOf(t):-1}var _t,u=(p(Ot,_t=u),Ot.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:nt.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Ot.getEmptyConfig=function(){var t=this.getDefaultConfig();return Q(t,function(e){t[e]=undefined}),t},Ot.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Ot.identifier="AjaxDependencyPlugin",Ot);function Ot(){var e=_t.call(this)||this;e.identifier=Ot.identifier,e.priority=120;var T,I,b,A,S,w,M,q="trackDependencyDataInternal",t=typeof location===l&&location?location:he("location"),R=!1,F=!1,u=t&&t.host&&t.host.toLowerCase(),D=Ot.getEmptyConfig(),L=!1,r=0,E=!1,j=0,k=!1,H=[],s={};return W(Ot,e,function(l,c){function d(t){var n=!0;return(t||D.ignoreHeaders)&&te(D.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){H.push(e?Je(e[P],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ee(t)?t:(t||{}).url||"")||"").toLowerCase();if(te(S,function(e){var t=e;ee(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Nt(a,"?"),i=Nt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),J(e)?J(t)||(r="object"==typeof t&&!0===t[rt]||!!n&&!0===n[rt]):r=!0===e[rt]||!0===a[rt],(r=!(r||!a||(e=a,!~ct.indexOf(e.toLowerCase())))||r)?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=F;return J(e)||(n=!0===t||!J(e[Rt])),r&&n}function h(n){n[Rt].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!J(e))try{J(e[K])?J(e[z])||(e[z]("on"+t,n),a=!0):(e[K](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[Rt]).responseFinishedTime=ft(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",L,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ne(e).split(/[\r\n]+/),n={},te(e,function(e){var t=e.split(": "),e=t.shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=_(_({},e.properties),t)),l[q](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[Rt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=Te(t);e&&-1!==Nt(e.toLowerCase(),"c00c023f")||kt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:jt(n),exception:e})}function r(e,t){t=t||{};t.ajaxDiagnosticsMessage=jt(a),e&&(t.exception=Te(e)),Ht(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==Nt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return dt.getCorrelationContext(n)}}catch(r){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:jt(e),exception:Te(r)})}}function m(e,t){var n;t.requestUrl&&A&&E&&(n=xe())&&Z(n.mark)&&(e=A+e+"#"+ ++Lt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=xe(),d=D.maxAjaxPerfLookupAttempts,f=D.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Nt(r.name,p)&&-1===Nt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Z(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{J(e)||(t+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(n){kt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:Te(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){n=n||{};n.fetchDiagnosticsMessage=x(a),t&&(n.exception=Te(t)),Ht(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=ft(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",L,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=_(_({},t.properties),e)),l[q](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return dt.getCorrelationContext(t)}catch(n){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:Te(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();Q(Ot.getDefaultConfig(),function(e,t){D[e]=a.getConfig(Ot.identifier,e,t)});r=D.distributedTracingMode;if(L=D.enableRequestHeaderTracking,M=D.enableAjaxErrorStatusText,E=D.enableAjaxPerfTracking,j=D.maxAjaxCallsPerView,k=D.enableResponseHeaderTracking,S=D.excludeRequestFromAutoTrackingPatterns,w=D.addRequestContext,b=r===nt.AI||r===nt.AI_AND_W3C,I=r===nt.AI_AND_W3C||r===nt.W3C,E&&(u=e.instrumentationKey||"unkwn",A=5<u.length?Mt+u.substring(u.length-5)+".":Mt+u+"."),!1===D.disableAjaxTracking&&Et(l)&&!F&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a,o=e.inst,i=o[Rt];!p(o,n)&&g(o,!0)&&(i&&i.xhrMonitoringState.openDone||(a=o,e=t,i=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||We(),r=We().substr(0,16),(r=new At(n,r,l[qt]())).method=e,r.requestUrl=i,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,r.errorStatusText=M,a[Rt]=r),h(o))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[Rt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=ft(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[Rt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),L&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){e=e.inst;g(e)&&d(t)&&(e[Rt].requestHeaders[t]=n)},hkErr:Pt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),F=!0),(u=!(e=N())||J(e.Request)||J(e.Request[P])||J(e[Dt])?null:e[Dt])&&(e=N(),s=u.polyfill,!1===D.disableFetchTracking?(H.push(Je(e,Dt,{req:function(e,t,n){var r,a;!R||p(null,t,n)||s&&F||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||We(),r=We().substr(0,16),n=new At(n,r,l[qt]());n.requestSentTime=ft(),n.errorStatusText=M,e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e;r="GET";t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return L&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),R=!0):s&&H.push(Je(e,Dt,{req:function(e,t,n){p(null,t,n)}})),s&&(e[Dt].polyfill=s)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){te(H,function(e){e.rm()}),F=R=!(H=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[q](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(dt.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),n):r?(dt.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[q]=function(e,t,n){-1===j||r<j?(D.distributedTracingMode!==nt.W3C&&D.distributedTracingMode!==nt.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),J(e.startTime)&&(e.startTime=new Date),n=vt.create(e,ht.dataType,ht.envelopeType,l[qt](),t,n),l.core.track(n)):r===j&&kt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=u,e.ajaxRecord=At,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(t){"use strict";var i="function",s="object",a="undefined",P="prototype",o="hasOwnProperty",n=Object,u=n[P],r=n.assign,d=n.create,e=n.defineProperty,f=u[o],p=null;function W(e){return void 0===e&&(e=!0),p&&e||(typeof globalThis!==a&&globalThis&&(p=globalThis),typeof self!==a&&self&&(p=self),typeof window!==a&&window&&(p=window),typeof global!==a&&global&&(p=global)),p}function g(e){throw new TypeError(e)}(W()||{}).Symbol,(W()||{}).Reflect;var B=r||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])u[o].call(t,a)&&(e[a]=t[a]);return e},h=function(e,t){return(h=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&g("Class extends value "+t+" is not a constructor or null"),h(e,t),e[P]=null===t?function(e){if(d)return d(e);if(null==e)return{};var t=typeof e;function n(){}return t!==s&&t!==i&&g("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var x="constructor",v="prototype",y="function",T="_dynInstFuncs",I="_isDynProxy",b="_dynClass",A="_dynInstChk",S=A,w="_dfOpts",M="_unknown_",q="__proto__",R="useBaseInst",F="setInstFuncs",D=Object,L=D.getPrototypeOf,E=0;function j(e,t){return e&&D[v].hasOwnProperty.call(e,t)}function k(e){return e&&(e===D[v]||e===Array[v])}function H(e){return k(e)||e===Function[v]}function z(e){if(e){if(L)return L(e);e=e[q]||e[v]||(e[x]?e[x][v]:null);if(e)return e}return null}function K(e,t){var n=[],r=D.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&j(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function X(e,t,n){return t!==x&&typeof e[t]===y&&(n||j(e,t))}function G(e){throw new TypeError("DynamicProto: "+e)}function $(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function J(e,t){return j(e,v)?e.name||t||M:((e||{})[x]||{}).name||t||M}function Z(e,r,t,n){j(e,v)||G("theClass is an invalid class definition.");var c,a,o,i,d,f,s=e[v],u=(function(e){if(L)for(var t=[],n=z(r);n&&!H(n)&&!$(t,n);){if(n===e)return 1;t.push(n),n=z(n)}}(s)||G("["+J(e)+"] is not in class hierarchy of ["+J(r)+"]"),null),e=(j(s,b)?u=s[b]:(u="_dynCls$"+J(e,"_")+"$"+E,E++,s[b]=u),Z[w]),l=!!e[R],p=(l&&n&&n[R]!==undefined&&(l=!!n[R]),a={},K(c=r,function(e){!a[e]&&X(c,e,!1)&&(a[e]=c[e])}),a),l=(t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[I]&&o&&!1!==(r=e[T]||{})[S]&&(a=(r[t[b]]||{})[n]||a),function(){return a.apply(e,arguments)}}for(var a={},i=(K(n,function(e){a[e]=r(t,n,e)}),z(e)),s=[];i&&!H(i)&&!$(s,i);)K(i,function(e){!a[e]&&X(i,e,!L)&&(a[e]=r(t,i,e))}),s.push(i),i=z(i);return a}(s,r,p,l)),!!L&&!!e[F]);o=s,t=u,i=r,d=p,e=!1!==(l=l&&n?!!n[F]:l),k(o)||(s=i[T]=i[T]||{},f=s[t]=s[t]||{},!1!==s[S]&&(s[S]=!!e),K(i,function(e){var n,r,a;X(i,e,!1)&&i[e]!==d[e]&&(f[e]=i[e],delete i[e],j(o,e)&&(!o[e]||o[e][I])||(o[e]=(n=o,r=e,(a=function(){var e,t;return(function(e,t,n,c){var r=null;if(e&&j(n,b)){var a=e[T]||{};if((r=(a[n[b]]||{})[t])||G("Missing ["+t+"] "+y),!r[A]&&!1!==a[S]){for(var o=!j(e,t),i=z(e),s=[];o&&i&&!H(i)&&!$(s,i);){var u=i[t];if(u){o=u===c;break}s.push(i),i=z(i)}try{o&&(e[t]=r),r[A]=1}catch(l){a[S]=!1}}}return r}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?z(n)[e]:t)!==y&&G("["+e+"] is not a "+y),t)).apply(this,arguments)})[I]=1,a)))}))}Z[w]={setInstFuncs:!0,useBaseInst:!0},(r=l=l||{})[r.CRITICAL=1]="CRITICAL",r[r.WARNING=2]="WARNING";var l,N={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},Q="attachEvent",Y="addEventListener",ee="toISOString",te=e;function ne(e){return u.toString.call(e)}function re(e){return e===undefined||typeof e===a}function _(e){return null===e||re(e)}function O(e){return typeof e===i}function ae(e,t){if(e)for(var n in e)f.call(e,n)&&t.call(e,n,e[n])}function oe(e,t){return!(!e||!t||!~e.indexOf(t))}function ie(e){return"string"==typeof e}function se(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ue(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var le=!{toString:null}.propertyIsEnumerable("toString"),ce=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function de(e){var t,n=typeof e,r=(n===i||n===s&&null!==e||g("objKeys called on non-object"),[]);for(t in e)e&&f.call(e,t)&&r.push(t);if(le)for(var a=ce.length,o=0;o<a;o++)e&&f.call(e,ce[o])&&r.push(ce[o]);return r}function fe(){var e=Date;return e.now?e.now():(new e).getTime()}var pe="window",ge="documentMode",he="performance",me="JSON",xe="msie",ve="trident/",ye=null,Ce=null;function c(e){var t=W();return t&&t[e]?t[e]:e===pe&&typeof window===s&&window?window:null}function Te(){return typeof document===s&&document?document:c("document")}function Ie(){return typeof navigator===s&&navigator?navigator:c("navigator")}function be(){return c(he)}function Ae(){return typeof JSON===s&&JSON||null!==c(me)}function Se(){return Ae()?JSON||c(me):null}function we(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Ae()&&(n=Se().stringify(e)),t+n}var Me=null;function qe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Re(e,t){var n,r=typeof console!==a?console:c("console");r&&(n="log",O(r[n=r[e]?e:n])&&r[n](t))}De.dataType="MessageData";var Fe=De;function De(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n="",Ae()&&(n=Se().stringify(r)),e=(t?" message:"+qe(t):"")+(r?" props:"+qe(n):"");this.message+=e}var Le=function Bt(a){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Z(Bt,this,function(o){function e(e,t){e=a[e];return _(e)?t:e}function i(e,t){var n,r=(n=(n=Me)||!0===a.disableDbgExt?n:Me||(r=c("Microsoft"),Me=r?r.ApplicationInsights:Me))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}_(a)&&(a={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,a){t=new Fe(t,n,a=void 0!==a&&a,r);if(o.enableDebugExceptions())throw t;n=e===l.CRITICAL?"errorToConsole":"warnToConsole";re(t.message)?i("throw"+(e===l.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),a?(a=+t.messageId,!u[a]&&e<=r&&(o[n](t.message),u[a]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Re("warn",e),i("warning",e)},o.errorToConsole=function(e){Re("error",e),i("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,u[n]?r=!1:u[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++,i(e===l.CRITICAL?"error":"warn",t)),s===o.maxInternalMessageLimit()&&(r=new Fe(N.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===l.CRITICAL?o.errorToConsole(n):o.warnToConsole(n))))}})},Ee=(je.ParentContextKey="parent",je.ChildrenContextKey="childEvts",je);function je(e,a,t){var r,o=this,i=!1;o.start=fe(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},O(a)&&(i=function(e){if(te)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&O(a)&&(r=a(),a=null),r}};return te(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===je.ParentContextKey||e===je.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===je.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===je.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(je.ChildrenContextKey);if("[object Array]"===ne(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=fe()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&O(a)&&(o.payload=a())}}var ke="CoreUtils.doPerf";function He(e,t,n,r,a){if(e)if(e=O(e.getPerfMgr)?e.getPerfMgr():e){var o,i=void 0,s=e.getCtx(ke);try{if(i=e.create(t(),r,a))return s&&i.setCtx&&(i.setCtx(Ee.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(Ee.ChildrenContextKey))||(o=[],s.setCtx(Ee.ChildrenContextKey,o)),o.push(i))),e.setCtx(ke,i),n(i)}catch(u){i&&i.setCtx&&i.setCtx("exception",u)}finally{i&&e.fire(i),e.setCtx(ke,s)}}return n()}var Pe=function(a,t){var o=this,i=null,s=O(a.processTelemetry),u=O(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";He(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(l.CRITICAL,N.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+we(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ne(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&O(o.processTelemetry)&&(o=new Pe(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var _e=function zt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&O(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ne(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],se(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ne(i,r)):re(t)&&(l=Ne(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new Le(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){void 0===n&&(n=!1);var r,e=u.getExtCfg(e,null);return e&&!_(e[t])?r=e[t]:a&&!_(a[t])&&(r=a[t]),_(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new zt((e=void 0===e?null:e)||l,a,n,t)}},Oe="getPlugin",r=(Ue.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Ue);function Ue(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&O(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t,e=e=void 0===e?null:e;return e||(t=l||new _e(null,{},s.core),e=c&&c[Oe]?t.createNew(null,c[Oe]):t.createNew(null,c)),e},s._baseTelInit=function(e,t,n,r){e&&(i="extensionConfig",o=a=[],!e||(o=e[i])!==a&&_(o)&&(e[i]=o=a)),!r&&t&&(r=t.getProcessTelContext().getNext());var a,o,i=c;c&&c[Oe]&&(i=c[Oe]()),s.core=t,l=new _e(r,e,t,i),u=!0}}var Ve=4294967296,We=4294967295,Be=!1,ze=123456789,Ke=987654321;function Xe(e){var t=c("crypto")||c("msCrypto"),t=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&We:(!(t=Ie())||t.userAgent===Ce&&null!==ye||(t=((Ce=t.userAgent)||"").toLowerCase(),ye=oe(t,xe)||oe(t,ve)),ye?(Be||function(){try{var e=2147483647&fe();(t=(Math.random()*Ve^e)+e)<0&&(t>>>=0),ze=123456789+t&We,Ke=987654321-t&We,Be=!0}catch(n){}var t}(),t=((Ke=36969*(65535&Ke)+(Ke>>16)&We)<<16)+(65535&(ze=18e3*(65535&ze)+(ze>>16)&We))>>>0&We|0,(t>>>=0)&We):Math.floor(Ve*Math.random()|0));return e||(t>>>=0),t}function Ge(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Xe())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Xe())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var $e="_aiHooks",Je=["req","rsp","hkErr","fnErr"];function Ze(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Qe(e,i,s,u,l){0<=l&&l<=2&&Ze(e,function(e,t){var e=e.cbks,n=e[Je[l]];if(n){i.ctx=function(){return u[t]=u[t]||{}};try{n.apply(i.inst,s)}catch(a){n=i.err;try{var r=e.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=n}}}})}function Ye(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ze(e,function(e){t.push(e)}),t}Qe(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Qe(e,r,a,t,3),s}return Qe(e,r,a,t,1),r.rslt}}var et=Object.getPrototypeOf;function tt(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){e=function o(e,t,n){var r=null;return e&&(f.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(et)return et(e);e=e.__proto__||e[P]||e.constructor;if(e)return e}return null}(e),t,!1))),r}(e,t,r);if(e){var a,r=e[t];if(typeof r===i)return(a=r[$e])||((r=Ye(a={i:0,n:t,f:r,h:[]}))[$e]=a,e[t]=r),t={id:a.i,cbks:n,rm:function(){var n=this.id;Ze(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(t),t}}return null}function nt(e,t,n){var r,a,o=t.length,i=(e=e,(t=t)&&150<(t=ue(t.toString())).length&&(a=t.substring(0,150),e&&e.throwInternal(l.WARNING,N.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),a||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));i=u}return i}function rt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ue(t)).toString().length>n&&(r=t.toString().substring(0,n),e&&e.throwInternal(l.WARNING,N.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function at(e,t){var n,r=N.UrlTooLong;return t&&2048<(t=ue(t)).length&&(n=t.substring(0,2048),e&&e.throwInternal(l.WARNING,r,"input is too long, it has been truncated to 2048 characters.",{data:t},!0)),n||t}function ot(r,e){var a;return e&&(a={},ae(e,function(e,t){if(typeof t===s&&Ae())try{t=Se().stringify(t)}catch(n){r&&r.throwInternal(l.WARNING,N.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=rt(r,t,8192),e=nt(r,e,a),a[e]=t}),e=a),e}function it(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var st,ut="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",lt="iKey",ct=((e=st={})[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C",Te()||{}),dt=0,ft=[null,null,null,null,null];function pt(n){var e=dt,t=ft,r=t[e];return ct.createElement?t[e]||(r=t[e]=ct.createElement("a")):r={host:function(){var e=gt(n,!0)||"";if(e){var t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&ie(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return e}()},r.href=n,++e>=t.length&&(e=0),dt=e,r}function gt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ie(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var ht=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],mt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a=pt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(gt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;var o,n=e&&e.correlationHeaderDomains;if(n&&(se(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if(e){e=mt.getCorrelationContextValue(e,"appId");if(e&&e!==mt.correlationIdPrefix)return e}},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function xt(){var e=be();if(e&&e.now&&e.timing){e=e.now()+e.timing.navigationStart;if(0<e)return e}return fe()}function vt(e,t){return 0===e||0===t||_(e)||_(t)?null:t-e}m(Tt,yt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Tt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Tt.dataType="RemoteDependencyData";var yt,Ct=Tt;function Tt(e,t,n,c,r,d,a,o,i,f,p,g){void 0===i&&(i="Ajax");var s,h,m,u,l=yt.call(this)||this,n=(l.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},l.id=t,l.duration=it(r),l.success=d,l.resultCode=a+"",l.type=rt(e,i),t=e,r=o,i=a=d=c,a=(o=n)&&0<o.length?(h=(n=pt(o)).host,a||(null!=n.pathname?("/"!=((s=0===n.pathname.length?"/":n.pathname)[0]||"")&&(s="/"+s),i=n.pathname,rt(t,r?r+" "+s:s)):rt(t,o))):h=d,{target:h,name:a,data:i});return l.data=at(e,c)||n.data,l.target=rt(e,n.target),f&&(l.target="".concat(l.target," | ").concat(f)),l.name=rt(e,n.name),l.properties=ot(e,p),l.measurements=(m=e,(r=g)&&(u={},ae(r,function(e,t){e=nt(m,e,u),u[e]=t}),r=u),r),l}bt.create=function(e,t,n,r,a,o){if(n=rt(r,n)||"not_specified",_(e)||_(t)||_(n))throw Error("Input doesn't contain all required fields");var r="",i=(e[lt]&&(r=e[lt],delete e[lt]),{name:n,time:function(e){var t;if(e)return e[ee]?e[ee]():"[object Date]"===ne(e)?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e});return _(a)||ae(a,function(e,t){i.data[e]=t}),i};var It=bt;function bt(){}var C="properties";function At(e,t,n){t=e[t],n=e[n];return t&&n?vt(t,n):0}function St(e,t,n,r,a){n=At(n,r,a);return n?wt(e,t,it(n)):0}function wt(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var Mt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},qt=function Kt(e,t,n){var r=this,a=n,y="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new Mt,r.clientFailure=0,r.traceID=e,r.spanID=t,Z(Kt,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=pt(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?at(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,c,d){if(v.ajaxTotalDuration=Math.round(1e3*vt(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0)return null;(e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[C]={HttpMethod:v.method};var f,p,o,t,n,r,a,i,s,u,l,g,h,m,x;return v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),t=(f=v).perfTiming,n=(p=e)[C]||{},r=0,a="duration",i="startTime",s="connect"+"End",u="request"+"Start",l="response"+"End",g="transferSize",h="encodedBodySize",m="decodedBodySize",x="serverTiming",t?(r=(r=(r=(r=(r=(r=(r|=St(n,"End",t,"redirectStart","End"))|St(n,"domainLookup",t,"domainLookupStart","domainLookupEnd"))|St(n,"connect",t,"connectStart",s))|St(n,"request",t,u,"requestEnd"))|St(n,"response",t,"responseStart",l))|St(n,"networkConnect",t,i,s))|St(n,"sentRequest",t,u,l),r=(r|=wt(n,a,s=t[a]||At(t,i,l)||0))|wt(n,"perfTotal",s),(u=t[x])&&(o={},se(u,function(e,t){var n,t=e.name||""+t,r=n=(r=/([^\w\d_$])/g).test(n=t)?t.replace(r,"_"):n,a=o[r]||{};ae(e,function(e,t){("name"!==e&&ie(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ie(t)||(a[e]=t))}),o[r]=a}),r|=wt(n,x,o)),r=(r=(r|=wt(n,g,t[g]))|wt(n,h,t[h]))|wt(n,m,t[m])):f.perfMark&&(r|=wt(n,"missing",f.perfAttempts)),r&&(p[C]=n),c&&0<de(v.requestHeaders).length&&(e[C]=e[C]||{},e[C].requestHeaders=v.requestHeaders),!d||(a=d())&&((i=a.correlationContext)&&(e.correlationContext=i),a.headerMap&&0<de(a.headerMap).length&&(e[C]=e[C]||{},e[C].responseHeaders=a.headerMap),v.errorStatusText&&400<=v.status&&(l=a.type,e[C]=e[C]||{},""!==l&&"text"!==l||(e[C][y]=a[y]?a.statusText+" - "+a[y]:a.statusText),"json"===l&&(e[C][y]=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText))),e}})},Rt=(Ft.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},Ft.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},Ft.prototype.toString=function(){return"".concat(this.version,"-").concat(this.traceId,"-").concat(this.spanId,"-").concat(this.traceFlag)},Ft.DEFAULT_TRACE_FLAG="01",Ft.DEFAULT_VERSION="00",Ft);function Ft(e,t){var n=this;n.traceFlag=Ft.DEFAULT_TRACE_FLAG,n.version=Ft.DEFAULT_VERSION,e&&Ft.isValidTraceId(e)?n.traceId=e:n.traceId=Ge(),t&&Ft.isValidSpanId(t)?n.spanId=t:n.spanId=Ge().substr(0,16)}var Dt="ai.ajxmn.",Lt="diagLog",U="ajaxData",Et="throwInternal",jt="fetch",kt=0;function Ht(e){var t=!1,n=(function(){var e=!1;try{e=!!c("XMLHttpRequest")}catch(t){}return e}()&&(t=!(_(n=XMLHttpRequest[P])||_(n.open)||_(n.send)||_(n.abort))),function(e){var t=((e=(e=void 0===e?null:e)?e:(t=Ie()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase();if(oe(t,xe))return e=Te()||{},Math.max(parseInt(t.split(xe)[1]),e[ge]||0);if(oe(t,ve)){e=parseInt(t.split(ve)[1]);if(e)return e+4}return null}());if(t=!(n&&n<9)&&t)try{(new XMLHttpRequest)[U]={};var r=XMLHttpRequest[P].open;XMLHttpRequest[P].open=r}catch(a){t=!1,Nt(e,N.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:we(a)})}return t}function Pt(e){var t="";try{_(e)||_(e[U])||_(e[U].requestUrl)||(t+="(url: '"+e[U].requestUrl+"')")}catch(n){}return t}function Nt(e,t,n,r,a){e[Lt]()[Et](l.CRITICAL,t,n,r,a)}function _t(e,t,n,r,a){e[Lt]()[Et](l.WARNING,t,n,r,a)}function Ot(t,n,r){return function(e){Nt(t,n,r,{ajaxDiagnosticsMessage:Pt(e.inst),exception:we(e.err)})}}function Ut(e,t){return e&&t?e.indexOf(t):-1}m(V,Vt=r),V.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:st.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},V.getEmptyConfig=function(){var t=this.getDefaultConfig();return ae(t,function(e){t[e]=undefined}),t},V.prototype.processTelemetry=function(e,t){this.processNext(e,t)},V.identifier="AjaxDependencyPlugin";var Vt,e=V;function V(){var y,C,q,R,F,T,D,e=Vt.call(this)||this,I=(e.identifier=V.identifier,e.priority=120,"trackDependencyDataInternal"),t=typeof location===s&&location?location:c("location"),L=!1,b=!1,E=t&&t.host&&t.host.toLowerCase(),A=V.getEmptyConfig(),S=!1,r=0,j=!1,w=0,k=!1,M=[],H={};return Z(V,e,function(c,s){function d(t){var n=!0;return(t||A.ignoreHeaders)&&se(A.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function u(e,t,n){M.push(e?tt(e[P],t,n,!1):null)}function f(e,t,n){var r=!1,a=((ie(t)?t:(t||{}).url||"")||"").toLowerCase();if(se(F,function(e){var t=e;ie(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Ut(a,"?"),i=Ut(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),_(e)?_(t)||(r="object"==typeof t&&!0===t[ut]||!!n&&!0===n[ut]):r=!0===e[ut]||!0===a[ut],(r=!(r||!a||(i=a,!~ht.indexOf(i.toLowerCase())))||r)?H[a]||(H[a]=1):H[a]&&(r=!0),r}function p(e,t){var n=!0,r=b;return _(e)||(n=!0===t||!_(e[U])),r&&n}function x(n){n[U].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!_(e))try{_(e[Y])?_(e[Q])||(e[Q]("on"+t,n),a=!0):(e[Y](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&p(n)&&((o=(a=n)[U]).responseFinishedTime=xt(),o.status=a.status,l("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",S,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ue(e).split(/[\r\n]+/),n={},se(e,function(e){var e=e.split(": "),t=e.shift(),e=e.join(": ");d(t)&&(n[t]=e)}),t.headerMap=n),t}),t=void 0;try{T&&(t=T({status:a.status,xhr:a}))}catch(n){_t(c,N.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=B(B({},e.properties),t)),c[I](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[U]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=we(t);e&&-1!==Ut(e.toLowerCase(),"c00c023f")||Nt(c,N.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Pt(n),exception:e})}function r(e,t){t=t||{};t.ajaxDiagnosticsMessage=Pt(a),e&&(t.exception=we(e)),_t(c,N.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t,n=e.getAllResponseHeaders();if(null!==n&&-1!==Ut(n.toLowerCase(),"request-context"))return t=e.getResponseHeader("Request-Context"),mt.getCorrelationContext(t)}catch(r){_t(c,N.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Pt(e),exception:we(r)})}}function g(e,t){var n;t.requestUrl&&R&&j&&(n=be())&&O(n.mark)&&(e=R+e+"#"+ ++kt,n.mark(e),(e=n.getEntriesByName(e))&&1===e.length&&(t.perfMark=e[0]))}function l(o,i,s,u){var l=i.perfMark,c=be(),d=A.maxAjaxPerfLookupAttempts,h=A.ajaxPerfLookupDelay,f=i.requestUrl,p=0;!function g(){try{if(c&&l){p++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Ut(r.name,f)&&-1===Ut(f,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=p||!1===i["async"]?(l&&O(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=p,s()):setTimeout(g,h)}catch(a){u(a)}}()}function h(e){var t="";try{_(e)||(t+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(n){Nt(c,N.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:we(n)})}return t}function m(e,r,a,o,i,s){function u(e,t,n){n=n||{};n.fetchDiagnosticsMessage=h(a),t&&(n.exception=we(t)),_t(c,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=xt(),i.status=r,l("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",S,s);try{T&&(e=T({status:r,request:a,response:o}))}catch(n){_t(c,N.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=B(B({},t.properties),e)),c[I](t)):u(N.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(N.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function v(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return mt.getCorrelationContext(t)}catch(n){_t(c,N.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:h(e),exception:we(n)})}}c.initialize=function(e,t,n,r){if(!c.isInitialized()){s.initialize(e,t,n,r);var a=c._getTelCtx(),t=(ae(V.getDefaultConfig(),function(e,t){A[e]=a.getConfig(V.identifier,e,t)}),A.distributedTracingMode);if(S=A.enableRequestHeaderTracking,D=A.enableAjaxErrorStatusText,j=A.enableAjaxPerfTracking,w=A.maxAjaxCallsPerView,k=A.enableResponseHeaderTracking,F=A.excludeRequestFromAutoTrackingPatterns,T=A.addRequestContext,q=t===st.AI||t===st.AI_AND_W3C,C=t===st.AI_AND_W3C||t===st.W3C,j&&(r=e.instrumentationKey||"unkwn",R=5<r.length?Dt+r.substring(r.length-5)+".":Dt+r+"."),!1===A.disableAjaxTracking&&Ht(c)&&!b&&(u(XMLHttpRequest,"open",{req:function(e,t,n,r){var a,o,e=e.inst,i=e[U];!f(e,n)&&p(e,!0)&&(i&&i.xhrMonitoringState.openDone||(i=e,t=t,n=n,r=r,o=y&&y.telemetryTrace&&y.telemetryTrace.traceID||Ge(),a=Ge().substr(0,16),(o=new qt(o,a,c[Lt]())).method=t,o.requestUrl=n,o.xhrMonitoringState.openDone=!0,o.requestHeaders={},o["async"]=r,o.errorStatusText=D,i[U]=o),x(e))},hkErr:Ot(c,N.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"send",{req:function(e,t){var e=e.inst,n=e[U];p(e)&&!n.xhrMonitoringState.sendDone&&(g("xhr",n),n.requestSentTime=xt(),c.includeCorrelationHeaders(n,undefined,undefined,e),n.xhrMonitoringState.sendDone=!0)},hkErr:Ot(c,N.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"abort",{req:function(e){var e=e.inst,t=e[U];p(e)&&!t.xhrMonitoringState.abortDone&&(t.aborted=1,t.xhrMonitoringState.abortDone=!0)},hkErr:Ot(c,N.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),S&&u(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){e=e.inst;p(e)&&d(t)&&(e[U].requestHeaders[t]=n)},hkErr:Ot(c,N.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),b=!0),(e=!(t=W())||_(t.Request)||_(t.Request[P])||_(t[jt])?null:t[jt])&&(r=W(),l=e.polyfill,!1===A.disableFetchTracking?(M.push(tt(r,jt,{req:function(e,t,n){var r,a,o,i,s,u;!L||f(null,t,n)||l&&b||(r=e.ctx(),a=t,o=n,i=y&&y.telemetryTrace&&y.telemetryTrace.traceID||Ge(),s=Ge().substr(0,16),(i=new qt(i,s,c[Lt]())).requestSentTime=xt(),i.errorStatusText=D,a instanceof Request?i.requestUrl=a?a.url:"":i.requestUrl=a,s="GET",o&&o.method?s=o.method:a&&a instanceof Request&&(s=a.method),i.method=s,u={},S&&new Headers((o?o.headers:0)||a instanceof Request&&a.headers||{}).forEach(function(e,t){d(t)&&(u[t]=e)}),i.requestHeaders=u,g("fetch",i),(o=c.includeCorrelationHeaders(s=i,t,n))!==n&&e.set(1,o),r.data=s)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return m(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:v(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw m(0,0,n,null,r,null,e.message),e}))},hkErr:Ot(c,N.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),L=!0):l&&M.push(tt(r,jt,{req:function(e,t,n){f(null,t,n)}})),l&&(r[jt].polyfill=l)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(y=o.context)}}var l},c.teardown=function(){se(M,function(e){e.rm()}),b=L=!(M=[]),c.setInitialized(!1)},c.trackDependencyData=function(e,t){c[I](e,t)},c.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=c._currentWindowHost||E;return t?(mt.canIncludeCorrelationHeader(A,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),q&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),S&&(e.requestHeaders["Request-Id"]=a)),(o=A.appId||y&&y.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),S&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),C&&(i=new Rt(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),S&&(e.requestHeaders.traceparent=i.toString()))),n):r?(mt.canIncludeCorrelationHeader(A,e.getAbsoluteUrl(),s)&&(q&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),S&&(e.requestHeaders["Request-Id"]=a)),(o=A.appId||y&&y.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),S&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),C&&(i=new Rt(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),S&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},c[I]=function(e,t,n){-1===w||r<w?(A.distributedTracingMode!==st.W3C&&A.distributedTracingMode!==st.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),_(e.startTime)&&(e.startTime=new Date),e=It.create(e,Ct.dataType,Ct.envelopeType,c[Lt](),t,n),c.core.track(e)):r===w&&Nt(c,N.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}t.AjaxPlugin=e,t.ajaxRecord=qt;var r=t,e="__esModule",t={value:!0},Wt=Object.defineProperty;if(Wt)try{return void Wt(r,e,t)}catch(Xt){}typeof t.value!==undefined&&(r[e]=t.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-dependencies-js.min.js.map |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.3-nightly.2201-02 | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02 | ||
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var i="function",l="object",a="undefined",P="prototype",o="hasOwnProperty",n=Object,s=n[P],t=n.assign,r=n.create,u=n.defineProperty,c=s[o];function N(){return typeof globalThis!==a&&globalThis?globalThis:typeof self!==a&&self?self:typeof window!==a&&window?window:typeof global!==a&&global?global:null}function d(e){throw new TypeError(e)}(N()||{}).Symbol,(N()||{}).Reflect;var _=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])s[o].call(t,a)&&(e[a]=t[a]);return e},f=function(e,t){return(f=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function p(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),f(e,t),e[P]=null===t?function(e){if(r)return r(e);if(null==e)return{};var t=typeof e;function n(){}return t!==l&&t!==i&&d("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var g,h="constructor",m="prototype",v="function",x="_dynInstFuncs",y="_isDynProxy",C="_dynClass",T="_dynInstChk",I=T,b="_dfOpts",A="_unknown_",S="__proto__",w="useBaseInst",M="setInstFuncs",q=Object,R=q.getPrototypeOf,F=0;function D(e,t){return e&&q[m].hasOwnProperty.call(e,t)}function L(e){return e&&(e===q[m]||e===Array[m])}function E(e){return L(e)||e===Function[m]}function j(e){if(e){if(R)return R(e);e=e[S]||e[m]||(e[h]?e[h][m]:null);if(e)return e}return null}function k(e,t){var n=[],r=q.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&D(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function H(e,t,n){return t!==h&&typeof e[t]===v&&(n||D(e,t))}function O(e){throw new TypeError("DynamicProto: "+e)}function U(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function V(e,t){return D(e,m)?e.name||t||A:((e||{})[h]||{}).name||t||A}function W(e,r,t,n){D(e,m)||O("theClass is an invalid class definition.");var a=e[m];!function(e){if(R)for(var t=[],n=j(r);n&&!E(n)&&!U(t,n);){if(n===e)return 1;t.push(n),n=j(n)}}(a)&&O("["+V(e)+"] is not in class hierarchy of ["+V(r)+"]");var o=null;D(a,C)?o=a[C]:(o="_dynCls$"+V(e,"_")+"$"+F,F++,a[C]=o);var i=W[b],s=!!i[w];s&&n&&n[w]!==undefined&&(s=!!n[w]);var u,l,e=(l={},k(u=r,function(e){!l[e]&&H(u,e,!1)&&(l[e]=u[e])}),l);t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[y]&&o&&!1!==(r=e[x]||{})[I]&&(a=(r[t[C]]||{})[n]||a),function(){return a.apply(e,arguments)}}var a={};k(n,function(e){a[e]=r(t,n,e)});for(var i=j(e),s=[];i&&!E(i)&&!U(s,i);)k(i,function(e){!a[e]&&H(i,e,!R)&&(a[e]=r(t,i,e))}),s.push(i),i=j(i);return a}(a,r,e,s));var c,d,f,p,i=!!R&&!!i[M];c=a,o=o,d=r,f=e,n=!1!==(i=i&&n?!!n[M]:i),L(c)||(i=d[x]=d[x]||{},p=i[o]=i[o]||{},!1!==i[I]&&(i[I]=!!n),k(d,function(e){var n,r,a;H(d,e,!1)&&d[e]!==f[e]&&(p[e]=d[e],delete d[e],D(c,e)&&(!c[e]||c[e][y])||(c[e]=(n=c,r=e,(a=function(){var e,t;return(function(e,t,n,r){var a=null;if(e&&D(n,C)){var o=e[x]||{};if((a=(o[n[C]]||{})[t])||O("Missing ["+t+"] "+v),!a[T]&&!1!==o[I]){for(var i=!D(e,t),s=j(e),u=[];i&&s&&!E(s)&&!U(u,s);){var l=s[t];if(l){i=l===r;break}u.push(s),s=j(s)}try{i&&(e[t]=a),a[T]=1}catch(c){o[I]=!1}}}return a}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?j(n)[e]:t)!==v&&O("["+e+"] is not a "+v),t)).apply(this,arguments)})[y]=1,a)))}))}W[b]={setInstFuncs:!0,useBaseInst:!0},(t=g=g||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var B={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},z="attachEvent",K="addEventListener",X=u;function G(e){return s.toString.call(e)}function $(e){return e===undefined||typeof e===a}function J(e){return null===e||$(e)}function Z(e){return typeof e===i}function Q(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"string"==typeof e}function te(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ne(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var re=!{toString:null}.propertyIsEnumerable("toString"),ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function oe(e){var t=typeof e;t===i||t===l&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(re)for(var a=ae.length,o=0;o<a;o++)e&&c.call(e,ae[o])&&r.push(ae[o]);return r}function ie(){var e=Date;return e.now?e.now():(new e).getTime()}var se="window",ue="documentMode",le="performance",ce="JSON",de="msie",fe="trident/",pe=null,ge=null;function he(e){var t=N();return t&&t[e]?t[e]:e===se&&typeof window===l&&window?window:null}function me(){return typeof document===l&&document?document:he("document")}function ve(){return typeof navigator===l&&navigator?navigator:he("navigator")}function xe(){return he(le)}function ye(){return typeof JSON===l&&JSON||null!==he(ce)}function Ce(){return ye()?JSON||he(ce):null}function Te(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ye()&&(n=Ce().stringify(e)),t+n}var Ie=null;function be(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Ae(e,t){var n,r=typeof console!==a?console:he("console");r&&(n="log",Z(r[n=r[e]?e:n])&&r[n](t))}var Se=(we.dataType="MessageData",we);function we(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;e="";ye()&&(e=Ce().stringify(r));e=(t?" message:"+be(t):"")+(r?" props:"+be(e):"");this.message+=e}var Me=function Ut(a){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};W(Ut,this,function(o){function e(e,t){e=a[e];return J(e)?t:e}function i(e,t){var n,r=(r=(r=Ie)||!0===a.disableDbgExt?r:Ie||(n=he("Microsoft"),Ie=n?n.ApplicationInsights:Ie))?r.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}J(a)&&(a={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,a){t=new Se(t,n,a=void 0!==a&&a,r);if(o.enableDebugExceptions())throw t;n=e===g.CRITICAL?"errorToConsole":"warnToConsole";$(t.message)?i("throw"+(e===g.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),a?(a=+t.messageId,!u[a]&&e<=r&&(o[n](t.message),u[a]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Ae("warn",e),i("warning",e)},o.errorToConsole=function(e){Ae("error",e),i("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,u[n]?r=!1:u[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++,i(e===g.CRITICAL?"error":"warn",t)),s===o.maxInternalMessageLimit()&&(t=new Se(B.MessageLimitPerPVExceeded,r="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(t),e===g.CRITICAL?o.errorToConsole(r):o.warnToConsole(r))))}})},qe=(Re.ParentContextKey="parent",Re.ChildrenContextKey="childEvts",Re);function Re(e,a,t){var r,o=this,i=!1;o.start=ie(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},Z(a)&&(i=function(e){if(X)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(a)&&(r=a(),a=null),r}};return X(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===Re.ParentContextKey||e===Re.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===Re.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===Re.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(Re.ChildrenContextKey);if("[object Array]"===G(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=ie()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&Z(a)&&(o.payload=a())}}var Fe="CoreUtils.doPerf";function De(e,t,n,r,a){if(e){var o=e;if(o=Z(o.getPerfMgr)?o.getPerfMgr():o){var i,s=void 0,e=o.getCtx(Fe);try{if(s=o.create(t(),r,a))return e&&s.setCtx&&(s.setCtx(qe.ParentContextKey,e),e.getCtx&&e.setCtx&&((i=e.getCtx(qe.ChildrenContextKey))||(i=[],e.setCtx(qe.ChildrenContextKey,i)),i.push(s))),o.setCtx(Fe,s),n(s)}catch(u){s&&s.setCtx&&s.setCtx("exception",u)}finally{s&&o.fire(s),o.setCtx(Fe,e)}}}return n()}var Le=function(a,t){var o=this,i=null,s=Z(a.processTelemetry),u=Z(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";De(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(g.CRITICAL,B.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+Te(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ee(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&Z(o.processTelemetry)&&(o=new Le(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var je=function Vt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ee(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],te(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ee(i,r)):$(t)&&(l=Ee(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new Me(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){var r;void 0===n&&(n=!1);e=u.getExtCfg(e,null);return e&&!J(e[t])?r=e[t]:a&&!J(a[t])&&(r=a[t]),J(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new Vt((e=void 0===e?null:e)||l,a,n,t)}},ke="getPlugin",u=(He.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},He);function He(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=l||new je(null,{},s.core),t=c&&c[ke]?e.createNew(null,c[ke]):e.createNew(null,c)),t},s._baseTelInit=function(e,t,n,r){var a,o;e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&J(i)&&(e[a]=i=o)),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ke]&&(i=c[ke]()),s.core=t,l=new je(r,e,t,i),u=!0}}var Pe=4294967296,Ne=4294967295,_e=!1,Oe=123456789,Ue=987654321;function Ve(e){var t=he("crypto")||he("msCrypto"),n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ne:(!(t=ve())||t.userAgent===ge&&null!==pe||(t=((ge=t.userAgent)||"").toLowerCase(),pe=Y(t,de)||Y(t,fe)),pe?(_e||function(){try{var e=2147483647&ie();(t=(Math.random()*Pe^e)+e)<0&&(t>>>=0),Oe=123456789+t&Ne,Ue=987654321-t&Ne,_e=!0}catch(n){}var t}(),n=((Ue=36969*(65535&Ue)+(Ue>>16)&Ne)<<16)+(65535&(Oe=18e3*(65535&Oe)+(Oe>>16)&Ne))>>>0&Ne|0,(n>>>=0)&Ne):Math.floor(Pe*Math.random()|0));return e||(n>>>=0),n}function We(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ve())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Ve())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var Be="_aiHooks",ze=["req","rsp","hkErr","fnErr"];function Ke(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Xe(e,i,s,u,l){0<=l&&l<=2&&Ke(e,function(e,t){var n=e.cbks,e=n[ze[l]];if(e){i.ctx=function(){return u[t]=u[t]||{}};try{e.apply(i.inst,s)}catch(a){e=i.err;try{var r=n.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=e}}}})}function Ge(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ke(e,function(e){t.push(e)}),t}Xe(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Xe(e,r,a,t,3),s}return Xe(e,r,a,t,1),r.rslt}}var $e=Object.getPrototypeOf;function Je(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){e=function o(e,t,n){var r=null;return e&&(c.call(e,t)?r=e:n&&(r=o(function(e){if(e){if($e)return $e(e);e=e.__proto__||e[P]||e.constructor;if(e)return e}return null}(e),t,!1))),r}(e,t,r);if(e){r=e[t];if(typeof r===i){var a=r[Be];a||((r=Ge(a={i:0,n:t,f:r,h:[]}))[Be]=a,e[t]=r);n={id:a.i,cbks:n,rm:function(){var n=this.id;Ke(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}};return a.i++,a.h.push(n),n}}}return null}function Ze(e,t,n){var r,a,o=t.length,i=(e=e,(t=t)&&150<(t=ne(t.toString())).length&&(a=t.substring(0,150),e&&e.throwInternal(g.WARNING,B.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),a||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));i=u}return i}function Qe(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ne(t)).toString().length>n&&(r=t.toString().substring(0,n),e&&e.throwInternal(g.WARNING,B.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Ye(e,t){return n=e,e=B.UrlTooLong,(t=t)&&2048<(t=ne(t)).length&&(r=t.substring(0,2048),n&&n.throwInternal(g.WARNING,e,"input is too long, it has been truncated to 2048 characters.",{data:t},!0)),r||t;var n,r}function et(r,e){var a;return e&&(a={},Q(e,function(e,t){if(typeof t===l&&ye())try{t=Ce().stringify(t)}catch(n){r&&r.throwInternal(g.WARNING,B.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=Qe(r,t,8192),e=Ze(r,e,a),a[e]=t}),e=a),e}function tt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var nt,rt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",at="iKey",ot=(nt={AI:0,0:"AI",AI_AND_W3C:1,1:"AI_AND_W3C",W3C:2,2:"W3C"},me()||{}),it=0,st=[null,null,null,null,null];function ut(n){var e=it,t=st,r=t[e];return ot.createElement?t[e]||(r=t[e]=ot.createElement("a")):r={host:function(){var e=lt(n,!0)||"";if(e){var t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&ee(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return e}()},r.href=n,++e>=t.length&&(e=0),it=e,r}function lt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ee(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var ct=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],dt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a=ut(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(lt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;var o,n=e&&e.correlationHeaderDomains;if(n&&(te(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if(e){e=dt.getCorrelationContextValue(e,"appId");if(e&&e!==dt.correlationIdPrefix)return e}},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function ft(){var e=xe();if(e&&e.now&&e.timing){e=e.now()+e.timing.navigationStart;if(0<e)return e}return ie()}function pt(e,t){return 0===e||0===t||J(e)||J(t)?null:t-e}var gt,ht=(p(mt,gt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),mt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",mt.dataType="RemoteDependencyData",mt);function mt(e,t,n,r,a,o,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=gt.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=tt(a),f.success=o,f.resultCode=i+"",f.type=Qe(e,u);var p,g,h,m,i=(p=e,t=s,i=o=a=r,o=(u=n)&&0<u.length?(g=(s=ut(u)).host,o||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,Qe(p,t?t+" "+n:n)):Qe(p,u))):g=a,{target:g,name:o,data:i});return f.data=Ye(e,r)||i.data,f.target=Qe(e,i.target),l&&(f.target="".concat(f.target," | ").concat(l)),f.name=Qe(e,i.name),f.properties=et(e,c),f.measurements=(h=e,(d=d)&&(m={},Q(d,function(e,t){e=Ze(h,e,m),m[e]=t}),d=m),d),f}var vt=(xt.create=function(e,t,n,r,a,o){if(n=Qe(r,n)||"not_specified",J(e)||J(t)||J(n))throw Error("Input doesn't contain all required fields");r="";e[at]&&(r=e[at],delete e[at]);var i={name:n,time:function(e){if("[object Date]"===G(e)){var t=function(e){e=""+e;return 1===e.length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e};return J(a)||Q(a,function(e,t){i.data[e]=t}),i},xt);function xt(){}var yt="properties";function Ct(e,t,n){t=e[t],e=e[n];return t&&e?pt(t,e):0}function Tt(e,t,n,r,a){a=Ct(n,r,a);return a?It(e,t,tt(a)):0}function It(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var bt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},At=function Wt(e,t,n){var r=this,a=n,y="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new bt,r.clientFailure=0,r.traceID=e,r.spanID=t,W(Wt,r,function(x){x.getAbsoluteUrl=function(){return x.requestUrl?(e=ut(x.requestUrl))?e.href:void 0:null;var e},x.getPathName=function(){return x.requestUrl?Ye(a,(e=x.method,t=x.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},x.CreateTrackItem=function(e,t,n){if(x.ajaxTotalDuration=Math.round(1e3*pt(x.requestSentTime,x.responseFinishedTime))/1e3,x.ajaxTotalDuration<0)return null;var r,a,o,i,s,u,l,c,d,f,p,g,h,m,v=((m={id:"|"+x.traceID+"."+x.spanID,target:x.getAbsoluteUrl(),name:x.getPathName(),type:e,startTime:null,duration:x.ajaxTotalDuration,success:200<=+x.status&&+x.status<400,responseCode:+x.status,method:x.method})[yt]={HttpMethod:x.method},m);return x.requestSentTime&&(v.startTime=new Date,v.startTime.setTime(x.requestSentTime)),i=(r=x).perfTiming,s=(a=v)[yt]||{},u=0,l="duration",c="startTime",d="connect"+"End",f="request"+"Start",p="response"+"End",g="transferSize",h="encodedBodySize",e="decodedBodySize",m="serverTiming",i?(u|=Tt(s,"End",i,"redirectStart","End"),u|=Tt(s,"domainLookup",i,"domainLookupStart","domainLookupEnd"),u|=Tt(s,"connect",i,"connectStart",d),u|=Tt(s,"request",i,f,"requestEnd"),u|=Tt(s,"response",i,"responseStart",p),u|=Tt(s,"networkConnect",i,c,d),u|=Tt(s,"sentRequest",i,f,p),u|=It(s,l,p=i[l]||Ct(i,c,p)||0),u|=It(s,"perfTotal",p),(p=i[m])&&(o={},te(p,function(e,t){var n,r,t=(n=e.name||""+t,t=(r=/([^\w\d_$])/g).test(t=n)?n.replace(r,"_"):t),a=o[t]||{};Q(e,function(e,t){("name"!==e&&ee(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ee(t)||(a[e]=t))}),o[t]=a}),u|=It(s,m,o)),u|=It(s,g,i[g]),u|=It(s,h,i[h]),u|=It(s,e,i[e])):r.perfMark&&(u|=It(s,"missing",r.perfAttempts)),u&&(a[yt]=s),t&&0<oe(x.requestHeaders).length&&(v[yt]=v[yt]||{},v[yt].requestHeaders=x.requestHeaders),!n||(t=n())&&((n=t.correlationContext)&&(v.correlationContext=n),t.headerMap&&0<oe(t.headerMap).length&&(v[yt]=v[yt]||{},v[yt].responseHeaders=t.headerMap),x.errorStatusText&&400<=x.status&&(n=t.type,v[yt]=v[yt]||{},""!==n&&"text"!==n||(v[yt][y]=t[y]?t.statusText+" - "+t[y]:t.statusText),"json"===n&&(v[yt][y]=t.response?t.statusText+" - "+JSON.stringify(t.response):t.statusText))),v}})},St=(wt.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},wt.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},wt.prototype.toString=function(){return"".concat(this.version,"-").concat(this.traceId,"-").concat(this.spanId,"-").concat(this.traceFlag)},wt.DEFAULT_TRACE_FLAG="01",wt.DEFAULT_VERSION="00",wt);function wt(e,t){var n=this;n.traceFlag=wt.DEFAULT_TRACE_FLAG,n.version=wt.DEFAULT_VERSION,e&&wt.isValidTraceId(e)?n.traceId=e:n.traceId=We(),t&&wt.isValidSpanId(t)?n.spanId=t:n.spanId=We().substr(0,16)}var Mt="ai.ajxmn.",qt="diagLog",Rt="ajaxData",Ft="throwInternal",Dt="fetch",Lt=0;function Et(e){var t=!1;!function(){var e=!1;try{e=!!he("XMLHttpRequest")}catch(t){}return e}()||(t=!(J(n=XMLHttpRequest[P])||J(n.open)||J(n.send)||J(n.abort)));var n=function(e){var t=((e=(e=void 0===e?null:e)?e:(t=ve()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Y(t,de)){e=me()||{};return Math.max(parseInt(t.split(de)[1]),e[ue]||0)}if(Y(t,fe)){t=parseInt(t.split(fe)[1]);if(t)return t+4}return null}();if(t=!(n&&n<9)&&t)try{(new XMLHttpRequest)[Rt]={};var r=XMLHttpRequest[P].open;XMLHttpRequest[P].open=r}catch(a){t=!1,kt(e,B.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Te(a)})}return t}function jt(e){var t="";try{J(e)||J(e[Rt])||J(e[Rt].requestUrl)||(t+="(url: '"+e[Rt].requestUrl+"')")}catch(n){}return t}function kt(e,t,n,r,a){e[qt]()[Ft](g.CRITICAL,t,n,r,a)}function Ht(e,t,n,r,a){e[qt]()[Ft](g.WARNING,t,n,r,a)}function Pt(t,n,r){return function(e){kt(t,n,r,{ajaxDiagnosticsMessage:jt(e.inst),exception:Te(e.err)})}}function Nt(e,t){return e&&t?e.indexOf(t):-1}var _t,u=(p(Ot,_t=u),Ot.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:nt.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},Ot.getEmptyConfig=function(){var t=this.getDefaultConfig();return Q(t,function(e){t[e]=undefined}),t},Ot.prototype.processTelemetry=function(e,t){this.processNext(e,t)},Ot.identifier="AjaxDependencyPlugin",Ot);function Ot(){var e=_t.call(this)||this;e.identifier=Ot.identifier,e.priority=120;var T,I,b,A,S,w,M,q="trackDependencyDataInternal",t=typeof location===l&&location?location:he("location"),R=!1,F=!1,u=t&&t.host&&t.host.toLowerCase(),D=Ot.getEmptyConfig(),L=!1,r=0,E=!1,j=0,k=!1,H=[],s={};return W(Ot,e,function(l,c){function d(t){var n=!0;return(t||D.ignoreHeaders)&&te(D.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function f(e,t,n){H.push(e?Je(e[P],t,n,!1):null)}function p(e,t,n){var r=!1,a=((ee(t)?t:(t||{}).url||"")||"").toLowerCase();if(te(S,function(e){var t=e;ee(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Nt(a,"?"),i=Nt(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),J(e)?J(t)||(r="object"==typeof t&&!0===t[rt]||!!n&&!0===n[rt]):r=!0===e[rt]||!0===a[rt],(r=!(r||!a||(e=a,!~ct.indexOf(e.toLowerCase())))||r)?s[a]||(s[a]=1):s[a]&&(r=!0),r}function g(e,t){var n=!0,r=F;return J(e)||(n=!0===t||!J(e[Rt])),r&&n}function h(n){n[Rt].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!J(e))try{J(e[K])?J(e[z])||(e[z]("on"+t,n),a=!0):(e[K](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&g(n)&&((o=(a=n)[Rt]).responseFinishedTime=ft(),o.status=a.status,v("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",L,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ne(e).split(/[\r\n]+/),n={},te(e,function(e){var t=e.split(": "),e=t.shift(),t=t.join(": ");d(e)&&(n[e]=t)}),t.headerMap=n),t}),t=void 0;try{w&&(t=w({status:a.status,xhr:a}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=_(_({},e.properties),t)),l[q](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[Rt]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=Te(t);e&&-1!==Nt(e.toLowerCase(),"c00c023f")||kt(l,B.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:jt(n),exception:e})}function r(e,t){t=t||{};t.ajaxDiagnosticsMessage=jt(a),e&&(t.exception=Te(e)),Ht(l,B.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t=e.getAllResponseHeaders();if(null!==t&&-1!==Nt(t.toLowerCase(),"request-context")){var n=e.getResponseHeader("Request-Context");return dt.getCorrelationContext(n)}}catch(r){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:jt(e),exception:Te(r)})}}function m(e,t){var n;t.requestUrl&&A&&E&&(n=xe())&&Z(n.mark)&&(e=A+e+"#"+ ++Lt,n.mark(e),(n=n.getEntriesByName(e))&&1===n.length&&(t.perfMark=n[0]))}function v(o,i,s,u){var l=i.perfMark,c=xe(),d=D.maxAjaxPerfLookupAttempts,f=D.ajaxPerfLookupDelay,p=i.requestUrl,g=0;!function h(){try{if(c&&l){g++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Nt(r.name,p)&&-1===Nt(p,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=g||!1===i["async"]?(l&&Z(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=g,s()):setTimeout(h,f)}catch(a){u(a)}}()}function x(e){var t="";try{J(e)||(t+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(n){kt(l,B.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:Te(n)})}return t}function y(e,r,a,o,i,s){function u(e,t,n){n=n||{};n.fetchDiagnosticsMessage=x(a),t&&(n.exception=Te(t)),Ht(l,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=ft(),i.status=r,v("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",L,s);try{w&&(e=w({status:r,request:a,response:o}))}catch(n){Ht(l,B.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=_(_({},t.properties),e)),l[q](t)):u(B.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(B.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function C(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return dt.getCorrelationContext(t)}catch(n){Ht(l,B.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(e),exception:Te(n)})}}l.initialize=function(e,t,n,r){if(!l.isInitialized()){c.initialize(e,t,n,r);var a=l._getTelCtx();Q(Ot.getDefaultConfig(),function(e,t){D[e]=a.getConfig(Ot.identifier,e,t)});r=D.distributedTracingMode;if(L=D.enableRequestHeaderTracking,M=D.enableAjaxErrorStatusText,E=D.enableAjaxPerfTracking,j=D.maxAjaxCallsPerView,k=D.enableResponseHeaderTracking,S=D.excludeRequestFromAutoTrackingPatterns,w=D.addRequestContext,b=r===nt.AI||r===nt.AI_AND_W3C,I=r===nt.AI_AND_W3C||r===nt.W3C,E&&(u=e.instrumentationKey||"unkwn",A=5<u.length?Mt+u.substring(u.length-5)+".":Mt+u+"."),!1===D.disableAjaxTracking&&Et(l)&&!F&&(f(XMLHttpRequest,"open",{req:function(e,t,n,r){var a,o=e.inst,i=o[Rt];!p(o,n)&&g(o,!0)&&(i&&i.xhrMonitoringState.openDone||(a=o,e=t,i=n,t=r,n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||We(),r=We().substr(0,16),(r=new At(n,r,l[qt]())).method=e,r.requestUrl=i,r.xhrMonitoringState.openDone=!0,r.requestHeaders={},r["async"]=t,r.errorStatusText=M,a[Rt]=r),h(o))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"send",{req:function(e,t){var n=e.inst,e=n[Rt];g(n)&&!e.xhrMonitoringState.sendDone&&(m("xhr",e),e.requestSentTime=ft(),l.includeCorrelationHeaders(e,undefined,undefined,n),e.xhrMonitoringState.sendDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),f(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,e=t[Rt];g(t)&&!e.xhrMonitoringState.abortDone&&(e.aborted=1,e.xhrMonitoringState.abortDone=!0)},hkErr:Pt(l,B.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),L&&f(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){e=e.inst;g(e)&&d(t)&&(e[Rt].requestHeaders[t]=n)},hkErr:Pt(l,B.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),F=!0),(u=!(e=N())||J(e.Request)||J(e.Request[P])||J(e[Dt])?null:e[Dt])&&(e=N(),s=u.polyfill,!1===D.disableFetchTracking?(H.push(Je(e,Dt,{req:function(e,t,n){var r,a;!R||p(null,t,n)||s&&F||(r=e.ctx(),a=function(e,t){var n=T&&T.telemetryTrace&&T.telemetryTrace.traceID||We(),r=We().substr(0,16),n=new At(n,r,l[qt]());n.requestSentTime=ft(),n.errorStatusText=M,e instanceof Request?n.requestUrl=e?e.url:"":n.requestUrl=e;r="GET";t&&t.method?r=t.method:e&&e instanceof Request&&(r=e.method),n.method=r;var a={};return L&&new Headers((t?t.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(e,t){d(t)&&(a[t]=e)}),n.requestHeaders=a,m("fetch",n),n}(t,n),(t=l.includeCorrelationHeaders(a,t,n))!==n&&e.set(1,t),r.data=a)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return y(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:C(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw y(0,0,n,null,r,null,e.message),e}))},hkErr:Pt(l,B.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),R=!0):s&&H.push(Je(e,Dt,{req:function(e,t,n){p(null,t,n)}})),s&&(e[Dt].polyfill=s)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(T=o.context)}}var s,u},l.teardown=function(){te(H,function(e){e.rm()}),F=R=!(H=[]),l.setInitialized(!1)},l.trackDependencyData=function(e,t){l[q](e,t)},l.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=l._currentWindowHost||u;return t?(dt.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),b&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),n):r?(dt.canIncludeCorrelationHeader(D,e.getAbsoluteUrl(),s)&&(b&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),L&&(e.requestHeaders["Request-Id"]=a)),(o=D.appId||T&&T.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),L&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),I&&(i=new St(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),L&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},l[q]=function(e,t,n){-1===j||r<j?(D.distributedTracingMode!==nt.W3C&&D.distributedTracingMode!==nt.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),J(e.startTime)&&(e.startTime=new Date),n=vt.create(e,ht.dataType,ht.envelopeType,l[qt](),t,n),l.core.track(n)):r===j&&kt(l,B.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}e.AjaxPlugin=u,e.ajaxRecord=At,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(a){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(t){"use strict";var i="function",s="object",a="undefined",P="prototype",o="hasOwnProperty",n=Object,u=n[P],r=n.assign,d=n.create,e=n.defineProperty,f=u[o],p=null;function W(e){return void 0===e&&(e=!0),p&&e||(typeof globalThis!==a&&globalThis&&(p=globalThis),typeof self!==a&&self&&(p=self),typeof window!==a&&window&&(p=window),typeof global!==a&&global&&(p=global)),p}function g(e){throw new TypeError(e)}(W()||{}).Symbol,(W()||{}).Reflect;var B=r||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])u[o].call(t,a)&&(e[a]=t[a]);return e},h=function(e,t){return(h=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&g("Class extends value "+t+" is not a constructor or null"),h(e,t),e[P]=null===t?function(e){if(d)return d(e);if(null==e)return{};var t=typeof e;function n(){}return t!==s&&t!==i&&g("Object prototype may only be an Object:"+e),n[P]=e,new n}(t):(n[P]=t[P],new n)}var x="constructor",v="prototype",y="function",T="_dynInstFuncs",I="_isDynProxy",b="_dynClass",A="_dynInstChk",S=A,w="_dfOpts",M="_unknown_",q="__proto__",R="useBaseInst",F="setInstFuncs",D=Object,L=D.getPrototypeOf,E=0;function j(e,t){return e&&D[v].hasOwnProperty.call(e,t)}function k(e){return e&&(e===D[v]||e===Array[v])}function H(e){return k(e)||e===Function[v]}function z(e){if(e){if(L)return L(e);e=e[q]||e[v]||(e[x]?e[x][v]:null);if(e)return e}return null}function K(e,t){var n=[],r=D.getOwnPropertyNames;if(r)n=r(e);else for(var a in e)"string"==typeof a&&j(e,a)&&n.push(a);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function X(e,t,n){return t!==x&&typeof e[t]===y&&(n||j(e,t))}function G(e){throw new TypeError("DynamicProto: "+e)}function $(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function J(e,t){return j(e,v)?e.name||t||M:((e||{})[x]||{}).name||t||M}function Z(e,r,t,n){j(e,v)||G("theClass is an invalid class definition.");var c,a,o,i,d,f,s=e[v],u=(function(e){if(L)for(var t=[],n=z(r);n&&!H(n)&&!$(t,n);){if(n===e)return 1;t.push(n),n=z(n)}}(s)||G("["+J(e)+"] is not in class hierarchy of ["+J(r)+"]"),null),e=(j(s,b)?u=s[b]:(u="_dynCls$"+J(e,"_")+"$"+E,E++,s[b]=u),Z[w]),l=!!e[R],p=(l&&n&&n[R]!==undefined&&(l=!!n[R]),a={},K(c=r,function(e){!a[e]&&X(c,e,!1)&&(a[e]=c[e])}),a),l=(t(r,function(e,t,n,o){function r(e,t,n){var r,a=t[n];return a[I]&&o&&!1!==(r=e[T]||{})[S]&&(a=(r[t[b]]||{})[n]||a),function(){return a.apply(e,arguments)}}for(var a={},i=(K(n,function(e){a[e]=r(t,n,e)}),z(e)),s=[];i&&!H(i)&&!$(s,i);)K(i,function(e){!a[e]&&X(i,e,!L)&&(a[e]=r(t,i,e))}),s.push(i),i=z(i);return a}(s,r,p,l)),!!L&&!!e[F]);o=s,t=u,i=r,d=p,e=!1!==(l=l&&n?!!n[F]:l),k(o)||(s=i[T]=i[T]||{},f=s[t]=s[t]||{},!1!==s[S]&&(s[S]=!!e),K(i,function(e){var n,r,a;X(i,e,!1)&&i[e]!==d[e]&&(f[e]=i[e],delete i[e],j(o,e)&&(!o[e]||o[e][I])||(o[e]=(n=o,r=e,(a=function(){var e,t;return(function(e,t,n,c){var r=null;if(e&&j(n,b)){var a=e[T]||{};if((r=(a[n[b]]||{})[t])||G("Missing ["+t+"] "+y),!r[A]&&!1!==a[S]){for(var o=!j(e,t),i=z(e),s=[];o&&i&&!H(i)&&!$(s,i);){var u=i[t];if(u){o=u===c;break}s.push(i),i=z(i)}try{o&&(e[t]=r),r[A]=1}catch(l){a[S]=!1}}}return r}(this,r,n,a)||(typeof(t=(t=n[e=r])===a?z(n)[e]:t)!==y&&G("["+e+"] is not a "+y),t)).apply(this,arguments)})[I]=1,a)))}))}Z[w]={setInstFuncs:!0,useBaseInst:!0},(r=l=l||{})[r.CRITICAL=1]="CRITICAL",r[r.WARNING=2]="WARNING";var l,N={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},Q="attachEvent",Y="addEventListener",ee="toISOString",te=e;function ne(e){return u.toString.call(e)}function re(e){return e===undefined||typeof e===a}function _(e){return null===e||re(e)}function O(e){return typeof e===i}function ae(e,t){if(e)for(var n in e)f.call(e,n)&&t.call(e,n,e[n])}function oe(e,t){return!(!e||!t||!~e.indexOf(t))}function ie(e){return"string"==typeof e}function se(e,t,n){var r=e.length;try{for(var a=0;a<r&&!(a in e&&-1===t.call(n||e,e[a],a,e));a++);}catch(o){}}function ue(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var le=!{toString:null}.propertyIsEnumerable("toString"),ce=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function de(e){var t,n=typeof e,r=(n===i||n===s&&null!==e||g("objKeys called on non-object"),[]);for(t in e)e&&f.call(e,t)&&r.push(t);if(le)for(var a=ce.length,o=0;o<a;o++)e&&f.call(e,ce[o])&&r.push(ce[o]);return r}function fe(){var e=Date;return e.now?e.now():(new e).getTime()}var pe="window",ge="documentMode",he="performance",me="JSON",xe="msie",ve="trident/",ye=null,Ce=null;function c(e){var t=W();return t&&t[e]?t[e]:e===pe&&typeof window===s&&window?window:null}function Te(){return typeof document===s&&document?document:c("document")}function Ie(){return typeof navigator===s&&navigator?navigator:c("navigator")}function be(){return c(he)}function Ae(){return typeof JSON===s&&JSON||null!==c(me)}function Se(){return Ae()?JSON||c(me):null}function we(e){var t=Object[P].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Ae()&&(n=Se().stringify(e)),t+n}var Me=null;function qe(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Re(e,t){var n,r=typeof console!==a?console:c("console");r&&(n="log",O(r[n=r[e]?e:n])&&r[n](t))}De.dataType="MessageData";var Fe=De;function De(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n="",Ae()&&(n=Se().stringify(r)),e=(t?" message:"+qe(t):"")+(r?" props:"+qe(n):"");this.message+=e}var Le=function Bt(a){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};Z(Bt,this,function(o){function e(e,t){e=a[e];return _(e)?t:e}function i(e,t){var n,r=(n=(n=Me)||!0===a.disableDbgExt?n:Me||(r=c("Microsoft"),Me=r?r.ApplicationInsights:Me))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}_(a)&&(a={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,a){t=new Fe(t,n,a=void 0!==a&&a,r);if(o.enableDebugExceptions())throw t;n=e===l.CRITICAL?"errorToConsole":"warnToConsole";re(t.message)?i("throw"+(e===l.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),a?(a=+t.messageId,!u[a]&&e<=r&&(o[n](t.message),u[a]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Re("warn",e),i("warning",e)},o.errorToConsole=function(e){Re("error",e),i("error",e)},o.resetInternalMessageCount=function(){s=0,u={}},o.logInternalMessage=function(e,t){var n,r;s>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,u[n]?r=!1:u[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),s++,i(e===l.CRITICAL?"error":"warn",t)),s===o.maxInternalMessageLimit()&&(r=new Fe(N.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===l.CRITICAL?o.errorToConsole(n):o.warnToConsole(n))))}})},Ee=(je.ParentContextKey="parent",je.ChildrenContextKey="childEvts",je);function je(e,a,t){var r,o=this,i=!1;o.start=fe(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},O(a)&&(i=function(e){if(te)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&O(a)&&(r=a(),a=null),r}};return te(e,"payload",t),!0}catch(n){}return!1}(o)),o.getCtx=function(e){return e?(e===je.ParentContextKey||e===je.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===je.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===je.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(je.ChildrenContextKey);if("[object Array]"===ne(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=fe()-o.start,o.exTime=o.time-e,o.complete=function(){},!i&&O(a)&&(o.payload=a())}}var ke="CoreUtils.doPerf";function He(e,t,n,r,a){if(e)if(e=O(e.getPerfMgr)?e.getPerfMgr():e){var o,i=void 0,s=e.getCtx(ke);try{if(i=e.create(t(),r,a))return s&&i.setCtx&&(i.setCtx(Ee.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(Ee.ChildrenContextKey))||(o=[],s.setCtx(Ee.ChildrenContextKey,o)),o.push(i))),e.setCtx(ke,i),n(i)}catch(u){i&&i.setCtx&&i.setCtx("exception",u)}finally{i&&e.fire(i),e.setCtx(ke,s)}}return n()}var Pe=function(a,t){var o=this,i=null,s=O(a.processTelemetry),u=O(a.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return a},o.getNext=function(){return i},o.setNext=function(e){i=e},o.processTelemetry=function(n,r){r=r||t;var e=a?a.identifier:"TelemetryPluginChain";He(r?r.core():null,function(){return e+":processTelemetry"},function(){if(a&&s){o._hasRun=!0;try{r.setNext(i),u&&a.setNextPlugin(i),i&&(i._hasRun=!1),a.processTelemetry(n,r)}catch(t){var e=i&&i._hasRun;i&&e||r.diagLog().throwInternal(l.CRITICAL,N.PluginException,"Plugin ["+a.identifier+"] failed during processTelemetry - "+we(t)),i&&!e&&i.processTelemetry(n,r)}}else i&&(o._hasRun=!0,i.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Ne(e,t){var n=[];if(e&&0<e.length)for(var r=null,a=0;a<e.length;a++){var o=e[a];o&&O(o.processTelemetry)&&(o=new Pe(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var _e=function zt(e,a,n,t){var r,o,i,s,u=this,l=null;null!==t&&(e&&O(e.getPlugin)?l=function(e,t,n){var r=[],a=!n;if(e)for(;e;){var o=e.getPlugin();!a&&o!==n||(a=!0,r.push(o)),e=e.getNext()}return a||r.push(n),Ne(r,t)}(e,u,t||e.getPlugin()):t?(r=u,i=e,s=!1,(o=t)&&e&&(i=[],se(e,function(e){!s&&e!==o||(s=!0,i.push(e))})),o&&!s&&(i=i||[]).push(o),l=Ne(i,r)):re(t)&&(l=Ne(e,u))),u.core=function(){return n},u.diagLog=function(){return(n||{}).logger||new Le(a)},u.getCfg=function(){return a},u.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!a||(r=a.extensionConfig)&&e&&(n=r[e]),n||t},u.getConfig=function(e,t,n){void 0===n&&(n=!1);var r,e=u.getExtCfg(e,null);return e&&!_(e[t])?r=e[t]:a&&!_(a[t])&&(r=a[t]),_(r)?n:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,u))},u.createNew=function(e,t){return new zt((e=void 0===e?null:e)||l,a,n,t)}},Oe="getPlugin",r=(Ue.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},Ue);function Ue(){var s=this,u=!1,l=null,c=null;s.core=null,s.diagLog=function(e){return s._getTelCtx(e).diagLog()},s.isInitialized=function(){return u},s.setInitialized=function(e){u=e},s.setNextPlugin=function(e){c=e},s.processNext=function(e,t){t?t.processNext(e):c&&O(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=function(e){var t,e=e=void 0===e?null:e;return e||(t=l||new _e(null,{},s.core),e=c&&c[Oe]?t.createNew(null,c[Oe]):t.createNew(null,c)),e},s._baseTelInit=function(e,t,n,r){e&&(i="extensionConfig",o=a=[],!e||(o=e[i])!==a&&_(o)&&(e[i]=o=a)),!r&&t&&(r=t.getProcessTelContext().getNext());var a,o,i=c;c&&c[Oe]&&(i=c[Oe]()),s.core=t,l=new _e(r,e,t,i),u=!0}}var Ve=4294967296,We=4294967295,Be=!1,ze=123456789,Ke=987654321;function Xe(e){var t=c("crypto")||c("msCrypto"),t=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&We:(!(t=Ie())||t.userAgent===Ce&&null!==ye||(t=((Ce=t.userAgent)||"").toLowerCase(),ye=oe(t,xe)||oe(t,ve)),ye?(Be||function(){try{var e=2147483647&fe();(t=(Math.random()*Ve^e)+e)<0&&(t>>>=0),ze=123456789+t&We,Ke=987654321-t&We,Be=!0}catch(n){}var t}(),t=((Ke=36969*(65535&Ke)+(Ke>>16)&We)<<16)+(65535&(ze=18e3*(65535&ze)+(ze>>16)&We))>>>0&We|0,(t>>>=0)&We):Math.floor(Ve*Math.random()|0));return e||(t>>>=0),t}function Ge(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Xe())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var a=t[8+(3&Xe())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)}var $e="_aiHooks",Je=["req","rsp","hkErr","fnErr"];function Ze(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Qe(e,i,s,u,l){0<=l&&l<=2&&Ze(e,function(e,t){var e=e.cbks,n=e[Je[l]];if(n){i.ctx=function(){return u[t]=u[t]||{}};try{n.apply(i.inst,s)}catch(a){n=i.err;try{var r=e.hkErr;r&&(i.err=a,r.apply(i.inst,s))}catch(o){}finally{i.err=n}}}})}function Ye(u){return function(){var n=arguments,e=u.h,r={name:u.n,inst:this,ctx:null,set:function(e,t){(n=o([],n))[e]=t,a=o([r],n)}},t=[],a=o([r],n);function o(t,e){return Ze(e,function(e){t.push(e)}),t}Qe(e,r,a,t,0);var i=u.f;try{r.rslt=i.apply(this,n)}catch(s){throw r.err=s,Qe(e,r,a,t,3),s}return Qe(e,r,a,t,1),r.rslt}}var et=Object.getPrototypeOf;function tt(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){e=function o(e,t,n){var r=null;return e&&(f.call(e,t)?r=e:n&&(r=o(function(e){if(e){if(et)return et(e);e=e.__proto__||e[P]||e.constructor;if(e)return e}return null}(e),t,!1))),r}(e,t,r);if(e){var a,r=e[t];if(typeof r===i)return(a=r[$e])||((r=Ye(a={i:0,n:t,f:r,h:[]}))[$e]=a,e[t]=r),t={id:a.i,cbks:n,rm:function(){var n=this.id;Ze(a.h,function(e,t){return e.id===n&&(a.h.splice(t,1),1)})}},a.i++,a.h.push(t),t}}return null}function nt(e,t,n){var r,a,o=t.length,i=(e=e,(t=t)&&150<(t=ue(t.toString())).length&&(a=t.substring(0,150),e&&e.throwInternal(l.WARNING,N.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),a||t);if(i.length!==o){for(var s=0,u=i;n[u]!==undefined;)s++,u=i.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));i=u}return i}function rt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ue(t)).toString().length>n&&(r=t.toString().substring(0,n),e&&e.throwInternal(l.WARNING,N.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function at(e,t){var n,r=N.UrlTooLong;return t&&2048<(t=ue(t)).length&&(n=t.substring(0,2048),e&&e.throwInternal(l.WARNING,r,"input is too long, it has been truncated to 2048 characters.",{data:t},!0)),n||t}function ot(r,e){var a;return e&&(a={},ae(e,function(e,t){if(typeof t===s&&Ae())try{t=Se().stringify(t)}catch(n){r&&r.throwInternal(l.WARNING,N.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=rt(r,t,8192),e=nt(r,e,a),a[e]=t}),e=a),e}function it(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<a?a+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var st,ut="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",lt="iKey",ct=((e=st={})[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C",Te()||{}),dt=0,ft=[null,null,null,null,null];function pt(n){var e=dt,t=ft,r=t[e];return ct.createElement?t[e]||(r=t[e]=ct.createElement("a")):r={host:function(){var e=gt(n,!0)||"";if(e){var t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&ie(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return e}()},r.href=n,++e>=t.length&&(e=0),dt=e,r}function gt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&ie(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var ht=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],mt={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var a=pt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(gt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;var o,n=e&&e.correlationHeaderDomains;if(n&&(se(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if(e){e=mt.getCorrelationContextValue(e,"appId");if(e&&e!==mt.correlationIdPrefix)return e}},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var a=n[r].split("=");if(2===a.length&&a[0]===t)return a[1]}}};function xt(){var e=be();if(e&&e.now&&e.timing){e=e.now()+e.timing.navigationStart;if(0<e)return e}return fe()}function vt(e,t){return 0===e||0===t||_(e)||_(t)?null:t-e}m(Tt,yt=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Tt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Tt.dataType="RemoteDependencyData";var yt,Ct=Tt;function Tt(e,t,n,c,r,d,a,o,i,f,p,g){void 0===i&&(i="Ajax");var s,h,m,u,l=yt.call(this)||this,n=(l.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},l.id=t,l.duration=it(r),l.success=d,l.resultCode=a+"",l.type=rt(e,i),t=e,r=o,i=a=d=c,a=(o=n)&&0<o.length?(h=(n=pt(o)).host,a||(null!=n.pathname?("/"!=((s=0===n.pathname.length?"/":n.pathname)[0]||"")&&(s="/"+s),i=n.pathname,rt(t,r?r+" "+s:s)):rt(t,o))):h=d,{target:h,name:a,data:i});return l.data=at(e,c)||n.data,l.target=rt(e,n.target),f&&(l.target="".concat(l.target," | ").concat(f)),l.name=rt(e,n.name),l.properties=ot(e,p),l.measurements=(m=e,(r=g)&&(u={},ae(r,function(e,t){e=nt(m,e,u),u[e]=t}),r=u),r),l}bt.create=function(e,t,n,r,a,o){if(n=rt(r,n)||"not_specified",_(e)||_(t)||_(n))throw Error("Input doesn't contain all required fields");var r="",i=(e[lt]&&(r=e[lt],delete e[lt]),{name:n,time:function(e){var t;if(e)return e[ee]?e[ee]():"[object Date]"===ne(e)?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}(new Date),iKey:r,ext:o||{},tags:[],data:{},baseType:t,baseData:e});return _(a)||ae(a,function(e,t){i.data[e]=t}),i};var It=bt;function bt(){}var C="properties";function At(e,t,n){t=e[t],n=e[n];return t&&n?vt(t,n):0}function St(e,t,n,r,a){n=At(n,r,a);return n?wt(e,t,it(n)):0}function wt(e,t,n){var r="ajaxPerf",a=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,a=1),a}var Mt=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},qt=function Kt(e,t,n){var r=this,a=n,y="responseText";r.perfMark=null,r.completed=!1,r.requestHeadersSize=null,r.requestHeaders=null,r.responseReceivingDuration=null,r.callbackDuration=null,r.ajaxTotalDuration=null,r.aborted=0,r.pageUrl=null,r.requestUrl=null,r.requestSize=0,r.method=null,r.status=null,r.requestSentTime=null,r.responseStartedTime=null,r.responseFinishedTime=null,r.callbackFinishedTime=null,r.endTime=null,r.xhrMonitoringState=new Mt,r.clientFailure=0,r.traceID=e,r.spanID=t,Z(Kt,r,function(v){v.getAbsoluteUrl=function(){return v.requestUrl?(e=pt(v.requestUrl))?e.href:void 0:null;var e},v.getPathName=function(){return v.requestUrl?at(a,(e=v.method,t=v.requestUrl,e?e.toUpperCase()+" "+t:t)):null;var e,t},v.CreateTrackItem=function(e,c,d){if(v.ajaxTotalDuration=Math.round(1e3*vt(v.requestSentTime,v.responseFinishedTime))/1e3,v.ajaxTotalDuration<0)return null;(e={id:"|"+v.traceID+"."+v.spanID,target:v.getAbsoluteUrl(),name:v.getPathName(),type:e,startTime:null,duration:v.ajaxTotalDuration,success:200<=+v.status&&+v.status<400,responseCode:+v.status,method:v.method})[C]={HttpMethod:v.method};var f,p,o,t,n,r,a,i,s,u,l,g,h,m,x;return v.requestSentTime&&(e.startTime=new Date,e.startTime.setTime(v.requestSentTime)),t=(f=v).perfTiming,n=(p=e)[C]||{},r=0,a="duration",i="startTime",s="connect"+"End",u="request"+"Start",l="response"+"End",g="transferSize",h="encodedBodySize",m="decodedBodySize",x="serverTiming",t?(r=(r=(r=(r=(r=(r=(r|=St(n,"End",t,"redirectStart","End"))|St(n,"domainLookup",t,"domainLookupStart","domainLookupEnd"))|St(n,"connect",t,"connectStart",s))|St(n,"request",t,u,"requestEnd"))|St(n,"response",t,"responseStart",l))|St(n,"networkConnect",t,i,s))|St(n,"sentRequest",t,u,l),r=(r|=wt(n,a,s=t[a]||At(t,i,l)||0))|wt(n,"perfTotal",s),(u=t[x])&&(o={},se(u,function(e,t){var n,t=e.name||""+t,r=n=(r=/([^\w\d_$])/g).test(n=t)?t.replace(r,"_"):n,a=o[r]||{};ae(e,function(e,t){("name"!==e&&ie(t)||"number"==typeof t)&&(!(t=a[e]?a[e]+";"+t:t)&&ie(t)||(a[e]=t))}),o[r]=a}),r|=wt(n,x,o)),r=(r=(r|=wt(n,g,t[g]))|wt(n,h,t[h]))|wt(n,m,t[m])):f.perfMark&&(r|=wt(n,"missing",f.perfAttempts)),r&&(p[C]=n),c&&0<de(v.requestHeaders).length&&(e[C]=e[C]||{},e[C].requestHeaders=v.requestHeaders),!d||(a=d())&&((i=a.correlationContext)&&(e.correlationContext=i),a.headerMap&&0<de(a.headerMap).length&&(e[C]=e[C]||{},e[C].responseHeaders=a.headerMap),v.errorStatusText&&400<=v.status&&(l=a.type,e[C]=e[C]||{},""!==l&&"text"!==l||(e[C][y]=a[y]?a.statusText+" - "+a[y]:a.statusText),"json"===l&&(e[C][y]=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText))),e}})},Rt=(Ft.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},Ft.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},Ft.prototype.toString=function(){return"".concat(this.version,"-").concat(this.traceId,"-").concat(this.spanId,"-").concat(this.traceFlag)},Ft.DEFAULT_TRACE_FLAG="01",Ft.DEFAULT_VERSION="00",Ft);function Ft(e,t){var n=this;n.traceFlag=Ft.DEFAULT_TRACE_FLAG,n.version=Ft.DEFAULT_VERSION,e&&Ft.isValidTraceId(e)?n.traceId=e:n.traceId=Ge(),t&&Ft.isValidSpanId(t)?n.spanId=t:n.spanId=Ge().substr(0,16)}var Dt="ai.ajxmn.",Lt="diagLog",U="ajaxData",Et="throwInternal",jt="fetch",kt=0;function Ht(e){var t=!1,n=(function(){var e=!1;try{e=!!c("XMLHttpRequest")}catch(t){}return e}()&&(t=!(_(n=XMLHttpRequest[P])||_(n.open)||_(n.send)||_(n.abort))),function(e){var t=((e=(e=void 0===e?null:e)?e:(t=Ie()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase();if(oe(t,xe))return e=Te()||{},Math.max(parseInt(t.split(xe)[1]),e[ge]||0);if(oe(t,ve)){e=parseInt(t.split(ve)[1]);if(e)return e+4}return null}());if(t=!(n&&n<9)&&t)try{(new XMLHttpRequest)[U]={};var r=XMLHttpRequest[P].open;XMLHttpRequest[P].open=r}catch(a){t=!1,Nt(e,N.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:we(a)})}return t}function Pt(e){var t="";try{_(e)||_(e[U])||_(e[U].requestUrl)||(t+="(url: '"+e[U].requestUrl+"')")}catch(n){}return t}function Nt(e,t,n,r,a){e[Lt]()[Et](l.CRITICAL,t,n,r,a)}function _t(e,t,n,r,a){e[Lt]()[Et](l.WARNING,t,n,r,a)}function Ot(t,n,r){return function(e){Nt(t,n,r,{ajaxDiagnosticsMessage:Pt(e.inst),exception:we(e.err)})}}function Ut(e,t){return e&&t?e.indexOf(t):-1}m(V,Vt=r),V.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:undefined,disableCorrelationHeaders:!1,distributedTracingMode:st.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:undefined,correlationHeaderExcludePatterns:undefined,appId:undefined,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:undefined}},V.getEmptyConfig=function(){var t=this.getDefaultConfig();return ae(t,function(e){t[e]=undefined}),t},V.prototype.processTelemetry=function(e,t){this.processNext(e,t)},V.identifier="AjaxDependencyPlugin";var Vt,e=V;function V(){var y,C,q,R,F,T,D,e=Vt.call(this)||this,I=(e.identifier=V.identifier,e.priority=120,"trackDependencyDataInternal"),t=typeof location===s&&location?location:c("location"),L=!1,b=!1,E=t&&t.host&&t.host.toLowerCase(),A=V.getEmptyConfig(),S=!1,r=0,j=!1,w=0,k=!1,M=[],H={};return Z(V,e,function(c,s){function d(t){var n=!0;return(t||A.ignoreHeaders)&&se(A.ignoreHeaders,function(e){if(e.toLowerCase()==t.toLowerCase())return n=!1,-1}),n}function u(e,t,n){M.push(e?tt(e[P],t,n,!1):null)}function f(e,t,n){var r=!1,a=((ie(t)?t:(t||{}).url||"")||"").toLowerCase();if(se(F,function(e){var t=e;ie(e)&&(t=RegExp(e)),r=r||t.test(a)}),r)return r;var o=Ut(a,"?"),i=Ut(a,"#");return-1!==(o=-1===o||-1!==i&&i<o?i:o)&&(a=a.substring(0,o)),_(e)?_(t)||(r="object"==typeof t&&!0===t[ut]||!!n&&!0===n[ut]):r=!0===e[ut]||!0===a[ut],(r=!(r||!a||(i=a,!~ht.indexOf(i.toLowerCase())))||r)?H[a]||(H[a]=1):H[a]&&(r=!0),r}function p(e,t){var n=!0,r=b;return _(e)||(n=!0===t||!_(e[U])),r&&n}function x(n){n[U].xhrMonitoringState.stateChangeAttached=function(e,t,n,r){void 0===r&&(r=!1);var a=!1;if(!_(e))try{_(e[Y])?_(e[Q])||(e[Q]("on"+t,n),a=!0):(e[Y](t,n,r),a=!0)}catch(o){}return a}(n,"readystatechange",function(){try{n&&4===n.readyState&&p(n)&&((o=(a=n)[U]).responseFinishedTime=xt(),o.status=a.status,l("xmlhttprequest",o,function(){try{var e=o.CreateTrackItem("Ajax",S,function(){var e,n,t={statusText:a.statusText,headerMap:null,correlationContext:i(a),type:a.responseType,responseText:function(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}(a),response:a.response};return!k||(e=a.getAllResponseHeaders())&&(e=ue(e).split(/[\r\n]+/),n={},se(e,function(e){var e=e.split(": "),t=e.shift(),e=e.join(": ");d(t)&&(n[t]=e)}),t.headerMap=n),t}),t=void 0;try{T&&(t=T({status:a.status,xhr:a}))}catch(n){_t(c,N.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}e?(t!==undefined&&(e.properties=B(B({},e.properties),t)),c[I](e)):r(null,{requestSentTime:o.requestSentTime,responseFinishedTime:o.responseFinishedTime})}finally{try{a[U]=null}catch(n){}}},function(e){r(e,null)}))}catch(t){var e=we(t);e&&-1!==Ut(e.toLowerCase(),"c00c023f")||Nt(c,N.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:Pt(n),exception:e})}function r(e,t){t=t||{};t.ajaxDiagnosticsMessage=Pt(a),e&&(t.exception=we(e)),_t(c,N.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",t)}var a,o})}function i(e){try{var t,n=e.getAllResponseHeaders();if(null!==n&&-1!==Ut(n.toLowerCase(),"request-context"))return t=e.getResponseHeader("Request-Context"),mt.getCorrelationContext(t)}catch(r){_t(c,N.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:Pt(e),exception:we(r)})}}function g(e,t){var n;t.requestUrl&&R&&j&&(n=be())&&O(n.mark)&&(e=R+e+"#"+ ++kt,n.mark(e),(e=n.getEntriesByName(e))&&1===e.length&&(t.perfMark=e[0]))}function l(o,i,s,u){var l=i.perfMark,c=be(),d=A.maxAjaxPerfLookupAttempts,h=A.ajaxPerfLookupDelay,f=i.requestUrl,p=0;!function g(){try{if(c&&l){p++;for(var e=null,t=c.getEntries(),n=t.length-1;0<=n;n--){var r=t[n];if(r){if("resource"===r.entryType)r.initiatorType!==o||-1===Ut(r.name,f)&&-1===Ut(f,r.name)||(e=r);else if("mark"===r.entryType&&r.name===l.name){i.perfTiming=e;break}if(r.startTime<l.startTime-1e3)break}}}!l||i.perfTiming||d<=p||!1===i["async"]?(l&&O(c.clearMarks)&&c.clearMarks(l.name),i.perfAttempts=p,s()):setTimeout(g,h)}catch(a){u(a)}}()}function h(e){var t="";try{_(e)||(t+="(url: '".concat("string"==typeof e?e:e.url,"')"))}catch(n){Nt(c,N.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:we(n)})}return t}function m(e,r,a,o,i,s){function u(e,t,n){n=n||{};n.fetchDiagnosticsMessage=h(a),t&&(n.exception=we(t)),_t(c,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",n)}i&&(i.responseFinishedTime=xt(),i.status=r,l("fetch",i,function(){var e,t=i.CreateTrackItem("Fetch",S,s);try{T&&(e=T({status:r,request:a,response:o}))}catch(n){_t(c,N.FailedAddingCustomDefinedRequestContext,"Failed to add custom defined request context as configured call back may missing a null check.")}t?(e!==undefined&&(t.properties=B(B({},t.properties),e)),c[I](t)):u(N.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(e){u(N.FailedMonitorAjaxGetCorrelationHeader,e,null)}))}function v(e){if(e&&e.headers)try{var t=e.headers.get("Request-Context");return mt.getCorrelationContext(t)}catch(n){_t(c,N.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:h(e),exception:we(n)})}}c.initialize=function(e,t,n,r){if(!c.isInitialized()){s.initialize(e,t,n,r);var a=c._getTelCtx(),t=(ae(V.getDefaultConfig(),function(e,t){A[e]=a.getConfig(V.identifier,e,t)}),A.distributedTracingMode);if(S=A.enableRequestHeaderTracking,D=A.enableAjaxErrorStatusText,j=A.enableAjaxPerfTracking,w=A.maxAjaxCallsPerView,k=A.enableResponseHeaderTracking,F=A.excludeRequestFromAutoTrackingPatterns,T=A.addRequestContext,q=t===st.AI||t===st.AI_AND_W3C,C=t===st.AI_AND_W3C||t===st.W3C,j&&(r=e.instrumentationKey||"unkwn",R=5<r.length?Dt+r.substring(r.length-5)+".":Dt+r+"."),!1===A.disableAjaxTracking&&Ht(c)&&!b&&(u(XMLHttpRequest,"open",{req:function(e,t,n,r){var a,o,e=e.inst,i=e[U];!f(e,n)&&p(e,!0)&&(i&&i.xhrMonitoringState.openDone||(i=e,t=t,n=n,r=r,o=y&&y.telemetryTrace&&y.telemetryTrace.traceID||Ge(),a=Ge().substr(0,16),(o=new qt(o,a,c[Lt]())).method=t,o.requestUrl=n,o.xhrMonitoringState.openDone=!0,o.requestHeaders={},o["async"]=r,o.errorStatusText=D,i[U]=o),x(e))},hkErr:Ot(c,N.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"send",{req:function(e,t){var e=e.inst,n=e[U];p(e)&&!n.xhrMonitoringState.sendDone&&(g("xhr",n),n.requestSentTime=xt(),c.includeCorrelationHeaders(n,undefined,undefined,e),n.xhrMonitoringState.sendDone=!0)},hkErr:Ot(c,N.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"abort",{req:function(e){var e=e.inst,t=e[U];p(e)&&!t.xhrMonitoringState.abortDone&&(t.aborted=1,t.xhrMonitoringState.abortDone=!0)},hkErr:Ot(c,N.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),S&&u(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){e=e.inst;p(e)&&d(t)&&(e[U].requestHeaders[t]=n)},hkErr:Ot(c,N.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),b=!0),(e=!(t=W())||_(t.Request)||_(t.Request[P])||_(t[jt])?null:t[jt])&&(r=W(),l=e.polyfill,!1===A.disableFetchTracking?(M.push(tt(r,jt,{req:function(e,t,n){var r,a,o,i,s,u;!L||f(null,t,n)||l&&b||(r=e.ctx(),a=t,o=n,i=y&&y.telemetryTrace&&y.telemetryTrace.traceID||Ge(),s=Ge().substr(0,16),(i=new qt(i,s,c[Lt]())).requestSentTime=xt(),i.errorStatusText=D,a instanceof Request?i.requestUrl=a?a.url:"":i.requestUrl=a,s="GET",o&&o.method?s=o.method:a&&a instanceof Request&&(s=a.method),i.method=s,u={},S&&new Headers((o?o.headers:0)||a instanceof Request&&a.headers||{}).forEach(function(e,t){d(t)&&(u[t]=e)}),i.requestHeaders=u,g("fetch",i),(o=c.includeCorrelationHeaders(s=i,t,n))!==n&&e.set(1,o),r.data=s)},rsp:function(e,n){var r=e.ctx().data;r&&(e.rslt=e.rslt.then(function(t){return m(0,(t||{}).status,n,t,r,function(){var n,e={statusText:t.statusText,headerMap:null,correlationContext:v(t)};return k&&(n={},t.headers.forEach(function(e,t){d(t)&&(n[t]=e)}),e.headerMap=n),e}),t})["catch"](function(e){throw m(0,0,n,null,r,null,e.message),e}))},hkErr:Ot(c,N.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),L=!0):l&&M.push(tt(r,jt,{req:function(e,t,n){f(null,t,n)}})),l&&(r[jt].polyfill=l)),0<n.length&&n){for(var o=void 0,i=0;!o&&i<n.length;)n[i]&&"AppInsightsPropertiesPlugin"===n[i].identifier&&(o=n[i]),i++;o&&(y=o.context)}}var l},c.teardown=function(){se(M,function(e){e.rm()}),b=L=!(M=[]),c.setInitialized(!1)},c.trackDependencyData=function(e,t){c[I](e,t)},c.includeCorrelationHeaders=function(e,t,n,r){var a,o,i,s=c._currentWindowHost||E;return t?(mt.canIncludeCorrelationHeader(A,e.getAbsoluteUrl(),s)&&((n=n||{}).headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),q&&(a="|"+e.traceID+"."+e.spanID,n.headers.set("Request-Id",a),S&&(e.requestHeaders["Request-Id"]=a)),(o=A.appId||y&&y.appId())&&(n.headers.set("Request-Context","appId=cid-v1:"+o),S&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),C&&(i=new Rt(e.traceID,e.spanID),n.headers.set("traceparent",i.toString()),S&&(e.requestHeaders.traceparent=i.toString()))),n):r?(mt.canIncludeCorrelationHeader(A,e.getAbsoluteUrl(),s)&&(q&&(a="|"+e.traceID+"."+e.spanID,r.setRequestHeader("Request-Id",a),S&&(e.requestHeaders["Request-Id"]=a)),(o=A.appId||y&&y.appId())&&(r.setRequestHeader("Request-Context","appId=cid-v1:"+o),S&&(e.requestHeaders["Request-Context"]="appId=cid-v1:"+o)),C&&(i=new Rt(e.traceID,e.spanID),r.setRequestHeader("traceparent",i.toString()),S&&(e.requestHeaders.traceparent=i.toString()))),r):undefined},c[I]=function(e,t,n){-1===w||r<w?(A.distributedTracingMode!==st.W3C&&A.distributedTracingMode!==st.AI_AND_W3C||"string"!=typeof e.id||"."===e.id[e.id.length-1]||(e.id+="."),_(e.startTime)&&(e.startTime=new Date),e=It.create(e,Ct.dataType,Ct.envelopeType,c[Lt](),t,n),c.core.track(e)):r===w&&Nt(c,N.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0),++r}}),e}t.AjaxPlugin=e,t.ajaxRecord=qt;var r=t,e="__esModule",t={value:!0},Wt=Object.defineProperty;if(Wt)try{return void Wt(r,e,t)}catch(Xt){}typeof t.value!==undefined&&(r[e]=t.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-dependencies-js.min.js.map |
/* | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.3-nightly.2201-02 | ||
* Microsoft Application Insights XHR dependencies plugin, 2.7.3 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * |
{ | ||
"name": "@microsoft/applicationinsights-dependencies-js", | ||
"version": "2.7.3-nightly.2201-02", | ||
"version": "2.7.3", | ||
"description": "Microsoft Application Insights XHR dependencies plugin", | ||
@@ -52,10 +52,7 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", | ||
"@microsoft/dynamicproto-js": "^1.1.4", | ||
"@microsoft/applicationinsights-shims": "2.0.0", | ||
"@microsoft/applicationinsights-core-js": "2.7.3-nightly.2201-02", | ||
"@microsoft/applicationinsights-common": "2.7.3-nightly.2201-02" | ||
"@microsoft/applicationinsights-shims": "2.0.1", | ||
"@microsoft/applicationinsights-core-js": "2.7.3", | ||
"@microsoft/applicationinsights-common": "2.7.3" | ||
}, | ||
"license": "MIT", | ||
"publishConfig": { | ||
"tag": "nightly" | ||
} | ||
"license": "MIT" | ||
} |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1979155
10969
0
+ Added@microsoft/applicationinsights-common@2.7.3(transitive)
+ Added@microsoft/applicationinsights-core-js@2.7.3(transitive)
+ Added@microsoft/applicationinsights-shims@2.0.1(transitive)
- Removed@microsoft/applicationinsights-common@2.7.3-nightly.2201-02(transitive)
- Removed@microsoft/applicationinsights-core-js@2.7.3-nightly.2201-02(transitive)
- Removed@microsoft/applicationinsights-shims@2.0.0(transitive)