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

@microsoft/applicationinsights-common

Package Overview
Dependencies
Maintainers
2
Versions
572
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-common - npm Package Compare versions

Comparing version 2.6.4 to 2.6.5

browser/applicationinsights-common.integrity.json

4

browser/applicationinsights-common.min.js
/*!
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+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"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){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=Ye())]+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 o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(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,o=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<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(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 en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={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 o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(G(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&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.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=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}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(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.assign,u=n.create,l=n.defineProperty,c=s[a];function d(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function p(e){throw new TypeError(e)}function g(e){if(u)return u(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&p("Object prototype may only be an Object:"+e),n[r]=e,new n}(d()||{}).Symbol,(d()||{}).Reflect;var m,v=o||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);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[a](n)&&(e[n]=t[n])})(e,t)};function S(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&p("Class extends value "+t+" is not a constructor or null"),h(e,t),e[r]=null===t?g(t):(n[r]=t[r],new n)}(vr=m=m||{})[vr.CRITICAL=1]="CRITICAL",vr[vr.WARNING=2]="WARNING";var y={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},I="attachEvent",C="addEventListener",x="detachEvent",N="removeEventListener",b=l;function w(e){return s.toString.call(e)}function A(e){return e===undefined||typeof e===t}function T(e){return null===e||A(e)}function E(e){return!T(e)}function k(e){return typeof e===f}function M(e){return typeof e===i}function D(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!T(e))try{T(e[C])?T(e[I])||(e[I]("on"+t,n),o=!0):(e[C](t,n,r),o=!0)}catch(a){}return o}function R(e,t,n,r){if(void 0===r&&(r=!1),!T(e))try{T(e[N])?T(e[x])||e[x]("on"+t,n):e[N](t,n,r)}catch(o){}}function L(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function F(e,t){return!(!e||!t||!~e.indexOf(t))}function P(e){return"[object Date]"===w(e)}function O(e){return"[object Array]"===w(e)}function U(e){return"[object Error]"===w(e)}function B(e){return"string"==typeof e}function z(e){return"boolean"==typeof e}function G(e){if(P(e)){var t=function(e){return 1===(e=""+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"}}function j(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function _(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function H(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function V(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function W(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var q=!{toString:null}.propertyIsEnumerable("toString"),K=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function X(e){var t=typeof e;t===i||t===f&&null!==e||p("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(q)for(var o=K.length,a=0;a<o;a++)e&&c.call(e,K[a])&&r.push(K[a]);return r}function J(e,t,n,r){if(b)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),b(e,t,o),!0}catch(a){}return!1}function Z(){var e=Date;return e.now?e.now():(new e).getTime()}function Y(e){return U(e)?e.name:""}function Q(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function $(e){return!!e}var ee="window",te="navigator",ne="location",re="JSON",oe="crypto",ae="msCrypto",ie="msie",se="trident/",ue=null,le=null;function ce(e){var t=d();return t&&t[e]?t[e]:e===ee&&de()?window:null}function de(){return typeof window===f&&window}function fe(){return typeof document===f&&document?document:ce("document")}function pe(){return typeof navigator===f&&navigator?navigator:ce(te)}function ge(){return ce("performance")}function me(){return typeof JSON===f&&JSON||null!==ce(re)}function ve(){return me()?JSON||ce(re):null}function he(){var e=pe();return!e||e.userAgent===le&&null!==ue||(e=((le=e.userAgent)||"").toLowerCase(),ue=F(e,ie)||F(e,se)),ue}function Se(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":me()&&(n=ve().stringify(e)),t+n}var ye="toGMTString",Ie="toUTCString",Ce="cookie",xe="expires",Ne="enabled",be="isCookieUseDisabled",we="disableCookiesUsage",Ae="_ckMgr",Te="",Ee=null,ke=null,Me=null,De=fe(),Re={},Le={};function Fe(e){return!e||e.isEnabled()}function Pe(e,r){var t,n,u=(Q(n=(t=e||Le).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,E,T),Q(n,"path",t.cookiePath||"/",null,T),T(n[Ne])&&(e=void 0,A(t[be])||(e=!t[be]),A(t[we])||(e=!t[we]),n[Ne]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[Ne],d={isEnabled:function(){var e=o&&Oe(r),t=Le[Ae];return e&&t&&d!==t?Fe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Fe(d)&&(a={},-1!=(s=(i=W(t||Te)).indexOf(";"))&&(i=W(t.substring(0,s)),a=Ue(t.substring(1+s))),Q(a,"domain",r||c,$,A),T(n)||(s=he(),!A(a[xe])||0<(t=Z()+1e3*n)&&((r=new Date).setTime(t),Q(a,xe,Be(r,s?ye:Ie)||Be(r,s?ye:Ie)||Te,$)),s||Q(a,"max-age",Te+n,null,A)),(n=typeof location===f&&location?location:ce(ne))&&"https:"===n.protocol&&(Q(a,"secure",null,null,A),(ke=null===ke?!je((pe()||{}).userAgent):ke)&&Q(a,"SameSite","None",null,A)),Q(a,"path",o||l,null,A),(u.setCookie||Ge)(e,ze(i,a)))},get:function(e){var t=Te;return Fe(d)?(u.getCookie||function(e){var t,n=Te;return De&&(t=De[Ce]||Te,Me!==t&&(Re=Ue(t),Me=t),n=W(Re[e]||Te)),n})(e):t},del:function(e,t){Fe(d)&&d.purge(e,t)},purge:function(e,t){var n;Oe(r)&&((n={}).path=t||"/",n[xe]="Thu, 01 Jan 1970 00:00:01 GMT",he()||(n["max-age"]="0"),(u.delCookie||Ge)(e,ze(Te,n)))}};return d[Ae]=d}function Oe(e){if(null===Ee){Ee=!1;try{Ee=(De||{})[Ce]!==undefined}catch(t){e&&e.throwInternal(m.WARNING,y.CannotAccessCookie,"Cannot access document.cookie - "+Y(t),{exception:Se(t)})}}return Ee}function Ue(e){var n={};return e&&e.length&&j(W(e).split(";"),function(e){var t;(e=W(e||Te))&&(-1==(t=e.indexOf("="))?n[e]=null:n[W(e.substring(0,t))]=W(e.substring(1+t)))}),n}function Be(e,t){return M(e[t])?e[t]():null}function ze(e,t){var n=e||Te;return L(t,function(e,t){n+="; "+e+(T(t)?Te:"="+t)}),n}function Ge(e,t){De&&(De[Ce]=e+"="+t)}function je(e){return!(!B(e)||!F(e,"CPU iPhone OS 12")&&!F(e,"iPad; CPU OS 12")&&!(F(e,"Macintosh; Intel Mac OS X 10_14")&&F(e,"Version/")&&F(e,"Safari"))&&(!F(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!F(e,"Chrome/5")&&!F(e,"Chrome/6")&&(!F(e,"UnrealEngine")||F(e,"Chrome"))&&!F(e,"UCBrowser/12")&&!F(e,"UCBrowser/11"))}var _e=4294967296,He=4294967295,Ve=!1,We=123456789,qe=987654321;function Ke(e){e<0&&(e>>>=0),We=123456789+e&He,qe=987654321-e&He,Ve=!0}function Xe(){try{var e=2147483647&Z();Ke((Math.random()*_e^e)+e)}catch(t){}}function Je(e){return 0<e?Math.floor(Ze()/He*(e+1))>>>0:0}function Ze(e){var t=(t=ce(oe)||ce(ae))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&He:he()?(Ve||Xe(),Ye()&He):Math.floor(_e*Math.random()|0);return e||(t>>>=0),t}function Ye(e){var t=((qe=36969*(65535&qe)+(qe>>16)&He)<<16)+(65535&(We=18e3*(65535&We)+(We>>16)&He))>>>0&He|0;return e||(t>>>=0),t}var Qe,$e=null;function et(e){void 0===e&&(e=22);for(var t=Ze()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ze()<<2&4294967295|3&t)>>>0,n=0);return r}function tt(){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=Ze())]+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 o=t[8+(3&Ze())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var nt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:A,isNullOrUndefined:T,hasOwnProperty:function(e,t){return e&&c.call(e,t)},isFunction:M,isObject:k,isDate:P,isArray:O,isError:U,isString:B,isNumber:function(e){return"number"==typeof e},isBoolean:z,toISOString:G,arrForEach:j,arrIndexOf:_,arrMap:H,arrReduce:V,strTrim:W,objCreate:g,objKeys:X,objDefineAccessors:J,addEventHandler:function(e,t){var n=!1,r=de()?window:ce(ee);return r&&(n=D(r,e,t),n=D(r.body,e,t)||n),(r=fe())&&ot.Attach(r,e,t)||n},dateNow:Z,isIE:he,disableCookies:it,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(rt,function(e){var t=0|Je(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=ge();return e&&e.now?e.now():Z()},newId:et,randomValue:Je,random32:Ze,mwcRandomSeed:function(e){e?Ke(e):Xe()},mwcRandom32:Ye,generateW3CId:tt},rt=/[xy]/g,ot={Attach:D,AttachEvent:D,Detach:R,DetachEvent:R};function at(e,t){var n,e=(n=e,e=t,(t=Pe[Ae]||Le[Ae])||(t=Pe[Ae]=Pe(n,e),Le[Ae]=t),t),t=nt._canUseCookies;return null===$e&&($e=[],Qe=t,J(nt,"_canUseCookies",function(){return Qe},function(t){Qe=t,j($e,function(e){e.setEnabled(t)})})),-1===_($e,e)&&$e.push(e),z(t)&&e.setEnabled(t),z(Qe)&&e.setEnabled(Qe),e}function it(){at().setEnabled(!1)}var st={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function ut(e,t,n){var r=t.length,o=lt(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+St(a);o=i}return o}function lt(e,t){var n;return t&&150<(t=W(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(m.WARNING,y.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function ct(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=W(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(m.WARNING,y.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function dt(e,t){return ht(e,t,2048,y.UrlTooLong)}function ft(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(m.WARNING,y.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function pt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(m.WARNING,y.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function gt(r,e){var o;return e&&(o={},L(e,function(e,t){if(k(t)&&me())try{t=ve().stringify(t)}catch(n){r.throwInternal(m.WARNING,y.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=ct(r,t,8192),e=ut(r,e,o),o[e]=t}),e=o),e}function mt(n,e){var r;return e&&(r={},L(e,function(e,t){e=ut(n,e,r),r[e]=t}),e=r),e}function vt(e,t){return t&&ht(e,t,128,y.IdTooLong).toString()}function ht(e,t,n,r){var o;return t&&(t=W(t)).length>n&&(o=t.substring(0,n),e.throwInternal(m.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function St(e){return(e="00"+e).substr(e.length-3)}var yt={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:ut,sanitizeKey:lt,sanitizeString:ct,sanitizeUrl:dt,sanitizeMessage:ft,sanitizeException:pt,sanitizeProperties:gt,sanitizeMeasurements:mt,sanitizeId:vt,sanitizeInput:ht,padNumber:St,trim:W};function It(e){var t,n=null;return M(Event)?n=new Event(e):(t=fe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function Ct(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function xt(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,o=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<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function Nt(){var e=pe();return"sendBeacon"in e&&e.sendBeacon}function bt(e,t){var n=null;return j(e,function(e){if(e.identifier===t)return n=e,-1}),n}function wt(e,t,n,r,o){return!o&&B(e)&&("Script error."===e||"Script error"===e)}var At,Tt="https://dc.services.visualstudio.com",Et="not_specified";(Sr=At=At||{})[Sr.LocalStorage=0]="LocalStorage",Sr[Sr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Nr=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Nr.AI=0]="AI",Nr[Nr.AI_AND_W3C=1]="AI_AND_W3C",Nr[Nr.W3C=2]="W3C";var kt=undefined,Mt=undefined;function Dt(){return Pt()?Rt(At.LocalStorage):null}function Rt(e){try{if(T(d()))return null;var t=new Date,n=ce(e===At.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Lt(){return zt()?Rt(At.SessionStorage):null}function Ft(){Mt=kt=!1}function Pt(){return kt=kt===undefined?!!Rt(At.LocalStorage):kt}function Ot(e,t){var n=Dt();if(null!==n)try{return n.getItem(t)}catch(r){kt=!1,e.throwInternal(m.WARNING,y.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Y(r),{exception:Se(r)})}return null}function Ut(e,t,n){var r=Dt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){kt=!1,e.throwInternal(m.WARNING,y.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Y(o),{exception:Se(o)})}return!1}function Bt(e,t){var n=Dt();if(null!==n)try{return n.removeItem(t),!0}catch(r){kt=!1,e.throwInternal(m.WARNING,y.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Y(r),{exception:Se(r)})}return!1}function zt(){return Mt=Mt===undefined?!!Rt(At.SessionStorage):Mt}function Gt(){var t=[];return zt()&&L(ce("sessionStorage"),function(e){t.push(e)}),t}function jt(e,t){var n=Lt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(m.WARNING,y.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Y(r),{exception:Se(r)})}return null}function _t(e,t,n){var r=Lt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(m.WARNING,y.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Y(o),{exception:Se(o)})}return!1}function Ht(e,t){var n=Lt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(m.WARNING,y.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Y(r),{exception:Se(r)})}return!1}var Vt=fe()||{},Wt=0,qt=[null,null,null,null,null];function Kt(e){var t=Wt,n=qt,r=n[t];return Vt.createElement?n[t]||(r=n[t]=Vt.createElement("a")):r={host:Yt(e,!0)},r.href=e,++t>=n.length&&(t=0),Wt=t,r}function Xt(e){return(e=Kt(e))?e.href:void 0}function Jt(e){return(e=Kt(e))?e.pathname:void 0}function Zt(e,t){return e?e.toUpperCase()+" "+t:t}function Yt(e,t){return(e=Qt(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&B(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function Qt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&B(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 $t=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function en(e){return!!~$t.indexOf(e.toLowerCase())}var tn={NotSpecified:Et,createDomEvent:It,disableStorage:Ft,isInternalApplicationInsightsEndpoint:en,canUseLocalStorage:Pt,getStorage:Ot,setStorage:Ut,removeStorage:Bt,canUseSessionStorage:zt,getSessionStorageKeys:Gt,getSessionStorage:jt,setSessionStorage:_t,removeSessionStorage:Ht,disableCookies:it,canUseCookies:function(e){return at(null,e).isEnabled()},disallowsSameSiteNone:je,setCookie:function(e,t,n,r){at(null,e).set(t,n,null,r)},stringToBoolOrDefault:Ct,getCookie:function(e,t){return at(null,e).get(t)},deleteCookie:function(e,t){return at(null,e).del(t)},trim:W,newId:et,random32:function(){return Ze(!0)},generateW3CId:tt,isArray:O,isError:U,isDate:P,toISOStringForIE8:G,getIEVersion:function(e){var t;return F(e=((e=(e=void 0===e?null:e)?e:(t=pe()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),ie)?parseInt(e.split(ie)[1]):F(e,se)&&(e=parseInt(e.split(se)[1]))?e+4:null},msToTimeSpan:xt,isCrossOriginError:wt,dump:Se,getExceptionName:Y,addEventHandler:D,IsBeaconApiSupported:Nt,getExtension:bt},nn={parseUrl:Kt,getAbsoluteUrl:Xt,getPathName:Jt,getCompleteUrl:Zt,parseHost:Yt,parseFullHost:Qt},rn={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 o,a=Kt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(Qt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(j(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&&rn.getCorrelationContextValue(e,st.requestContextTargetKey))&&e!==rn.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function on(){var e=ge();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:Z()}function an(e,t){return 0===e||0===t||T(e)||T(t)?null:t-e}var sn={Now:on,GetDuration:an};function un(e){if(!e)return{};var t=V(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<X(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Tt),t}var ln,cn={parse:un},dn=function(){},fn=(S(pn,ln=dn),pn);function pn(){return ln.call(this)||this}var gn,mn=(S(vn,gn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),vn);function vn(e,t,n){var r=gn.call(this)||this;return r.name=ct(e,n)||Et,r.data=t,r.time=G(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var hn,Sn=(S(yn,hn=wr=function(){this.ver=2,this.properties={},this.measurements={}}),yn.envelopeType="Microsoft.ApplicationInsights.{0}.Event",yn.dataType="EventData",yn);function yn(e,t,n,r){var o=hn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=ct(e,t)||Et,o.properties=gt(e,n),o.measurements=mt(e,r),o}var In=function(){},Cn=function(){this.hasFullStack=!0,this.parsedStack=[]},xn="error",Nn="stack",bn="stackDetails",wn="errorSrc",An="message",Tn="description";function En(e,t){var n=e;return n&&!B(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=M(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function kn(e,t){var n=e;return e&&((n=n&&!B(n)&&(e[An]||e[Tn])||n)&&!B(n)&&(n=En(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Mn(e){return e&&e.src&&B(e.src)&&e.obj&&O(e.obj)}function Dn(e){var t=e||"",e=(t=B(t)?t:B(t[Nn])?t[Nn]:""+t).split("\n");return{src:t,obj:e}}function Rn(e){var t,n=null;if(e)try{e[Nn]?n=Dn(e[Nn]):e[xn]&&e[xn][Nn]?n=Dn(e[xn][Nn]):e.exception&&e.exception[Nn]?n=Dn(e.exception[Nn]):Mn(e)?n=e:Mn(e[bn])?n=e[bn]:window.opera&&e[An]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):B(e)?n=Dn(e):(t=e[An]||e[Tn]||"",B(e[wn])&&(t&&(t+="\n"),t+=" from "+e[wn]),t&&(n=Dn(t)))}catch(r){n=Dn(r)}return n||{src:"",obj:null}}function Ln(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function Fn(e){if(e)try{if(!B(e)){var t=Ln(e),n=En(e,!1);return n&&"{}"!==n||(e[xn]&&(t=Ln(e=e[xn])),n=En(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Pn,On=(S(Un,Pn=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),Un.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Ln(o||a||e);return{message:kn(e,u),url:t,lineNumber:n,columnNumber:r,error:Fn(o||a||e),evt:Fn(a||e),typeName:u,stackDetails:Rn(i||o||a),errorSrc:s}},Un.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&H(e.exceptions,function(e){return zn.CreateFromInterface(t,e)});return new Un(t,v({},e,{exceptions:o}),n,r)},Un.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&H(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},Un.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},Un.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Un.dataType="ExceptionData",Un.formatError=Fn,Un);function Un(e,t,n,r,o,a){var i,s=Pn.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},k(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,T(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new zn(e,t,n=n||{})],s.properties=gt(e,n),s.measurements=mt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Bn,zn=(S(Gn,Bn=Cn),Gn.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&H(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[Nn],parsedStack:e||undefined}},Gn.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&H(t.parsedStack,function(e){return _n.CreateFromInterface(e)})||t.parsedStack;return new Gn(e,v({},t,{parsedStack:n}))},Gn);function Gn(e,l,t){var n,r,o,a=Bn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},k(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[Nn]=l[Nn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,U(n)||(n=n[xn]||o||n),a.typeName=ct(e,Ln(n))||Et,a.message=ft(e,kn(l||n,a.typeName))||Et,l=l[bn]||Rn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(j(e,function(e){e=e.toString(),_n.regex.test(e)&&(e=new _n(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[Nn]=pt(e,(r="",l&&(l.obj?j(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=O(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var jn,_n=(S(Hn,jn=In),Hn.CreateFromInterface=function(e){return new Hn(e,null)},Hn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Hn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Hn.baseSize=58,Hn);function Hn(e,t){var n,r=jn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=W(n),r.fileName="",r.line=0,(n=n.match(Hn.regex))&&5<=n.length&&(r.method=W(n[2])||r.method,r.fileName=W(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Hn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Vn,Wn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(br=Vn={})[br.Measurement=0]="Measurement",br[br.Aggregation=1]="Aggregation";var qn,Kn=(S(Xn,qn=function(){this.kind=Vn.Measurement}),Xn);function Xn(){var e=null!==qn&&qn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Jn,Zn=(S(Yn,Jn=Wn),Yn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Yn.dataType="MetricData",Yn);function Yn(e,t,n,r,o,a,i,s){var u=Jn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Kn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=ct(e,t)||Et,l.value=n,u.metrics=[l],u.properties=gt(e,i),u.measurements=mt(e,s),u}var Qn,$n=(S(er,Qn=wr),er);function er(){var e=Qn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tr,nr=(S(rr,tr=$n),rr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",rr.dataType="PageviewData",rr);function rr(e,t,n,r,o,a,i){var s=tr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=vt(e,i),s.url=dt(e,n),s.name=ct(e,t)||Et,isNaN(r)||(s.duration=xt(r)),s.properties=gt(e,o),s.measurements=mt(e,a),s}var or,ar=(S(ir,or=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ir.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ir.dataType="RemoteDependencyData",ir);function ir(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=or.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=xt(o),f.success=a,f.resultCode=i+"",f.type=ct(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Kt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,ct(p,t?t+" "+n:n)):ct(p,u))):g=o,{target:g,name:a,data:i});return f.data=dt(e,r)||i.data,f.target=ct(e,i.target),l&&(f.target=f.target+" | "+l),f.name=ct(e,i.name),f.properties=gt(e,c),f.measurements=mt(e,d),f}var sr,ur=(S(lr,sr=function(){this.ver=2,this.properties={},this.measurements={}}),lr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",lr.dataType="MessageData",lr);function lr(e,t,n,r,o){var a=sr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=ft(e,t=t||Et),a.properties=gt(e,r),a.measurements=mt(e,o),n&&(a.severityLevel=n),a}var cr,dr=(S(fr,cr=$n),fr);function fr(){var e=cr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var pr,o=(S(gr,pr=dr),gr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",gr.dataType="PageviewPerformanceData",gr);function gr(e,t,n,r,o,a,i){var s=pr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=dt(e,n),s.name=ct(e,t)||Et,s.properties=gt(e,o),s.measurements=mt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var mr,vr=(S(hr,mr=fn),hr);function hr(e,t){var n=mr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(l=e.SeverityLevel||(e.SeverityLevel={}))[l.Verbose=0]="Verbose",l[l.Information=1]="Information",l[l.Warning=2]="Warning",l[l.Error=3]="Error",l[l.Critical=4]="Critical";var Sr=(yr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!T(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],T(t)?r:t},yr);function yr(){}function Ir(e){var t="ai."+e+".";return function(e){return t+e}}var Cr,xr,Nr=Ir("application"),Cn=Ir("device"),In=Ir("location"),br=Ir("operation"),Wn=Ir("session"),wr=Ir("user"),dr=Ir("cloud"),l=Ir("internal"),wr=(xr={applicationVersion:Nr("ver"),applicationBuild:Nr("build"),applicationTypeId:Nr("typeId"),applicationId:Nr("applicationId"),applicationLayer:Nr("layer"),deviceId:Cn("id"),deviceIp:Cn("ip"),deviceLanguage:Cn("language"),deviceLocale:Cn("locale"),deviceModel:Cn("model"),deviceFriendlyName:Cn("friendlyName"),deviceNetwork:Cn("network"),deviceNetworkName:Cn("networkName"),deviceOEMName:Cn("oemName"),deviceOS:Cn("os"),deviceOSVersion:Cn("osVersion"),deviceRoleInstance:Cn("roleInstance"),deviceRoleName:Cn("roleName"),deviceScreenResolution:Cn("screenResolution"),deviceType:Cn("type"),deviceMachineName:Cn("machineName"),deviceVMName:Cn("vmName"),deviceBrowser:Cn("browser"),deviceBrowserVersion:Cn("browserVersion"),locationIp:In("ip"),locationCountry:In("country"),locationProvince:In("province"),locationCity:In("city"),operationId:br("id"),operationName:br("name"),operationParentId:br("parentId"),operationRootId:br("rootId"),operationSyntheticSource:br("syntheticSource"),operationCorrelationVector:br("correlationVector"),sessionId:Wn("id"),sessionIsFirst:Wn("isFirst"),sessionIsNew:Wn("isNew"),userAccountAcquisitionDate:wr("accountAcquisitionDate"),userAccountId:wr("accountId"),userAgent:wr("userAgent"),userId:wr("id"),userStoreRegion:wr("storeRegion"),userAuthUserId:wr("authUserId"),userAnonymousUserAcquisitionDate:wr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:wr("authUserAcquisitionDate"),cloudName:dr("name"),cloudRole:dr("role"),cloudRoleVer:dr("roleVer"),cloudRoleInstance:dr("roleInstance"),cloudEnvironment:dr("environment"),cloudLocation:dr("location"),cloudDeploymentUnit:dr("deploymentUnit"),internalNodeName:l("nodeName"),internalSdkVersion:l("sdkVersion"),internalAgentVersion:l("agentVersion"),internalSnippet:l("snippet"),internalSdkSrc:l("sdkSrc")},S(Ar,Cr=function(){var n=this;L(xr,function(e,t){n[e]=t})}),Ar);function Ar(){return Cr.call(this)||this}function Tr(){}Tr.create=function(e,t,n,r,o,a){if(n=ct(r,n)||Et,T(e)||T(t)||T(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:G(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return T(o)||L(o,function(e,t){i.data[e]=t}),i},dr=Tr,l=new wr,e.AIBase=dn,e.AIData=fn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Sr,e.ConnectionStringParser=cn,e.ContextTagKeys=wr,e.CorrelationIdHelper=rn,e.CtxTagKeys=l,e.DEFAULT_BREEZE_ENDPOINT=Tt,e.Data=vr,e.DataSanitizer=yt,e.DateTimeUtils=sn,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=mn,e.Event=Sn,e.Exception=On,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Zn,e.PageView=nr,e.PageViewData=$n,e.PageViewPerformance=o,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=ar,e.RequestHeaders=st,e.SampleRate="sampleRate",e.TelemetryItemCreator=dr,e.Trace=ur,e.UrlHelper=nn,e.Util=tn,e.createDomEvent=It,e.dataSanitizeException=pt,e.dataSanitizeId=vt,e.dataSanitizeInput=ht,e.dataSanitizeKey=lt,e.dataSanitizeKeyAndAddUniqueness=ut,e.dataSanitizeMeasurements=mt,e.dataSanitizeMessage=ft,e.dataSanitizeProperties=gt,e.dataSanitizeString=ct,e.dataSanitizeUrl=dt,e.dateTimeUtilsDuration=an,e.dateTimeUtilsNow=on,e.dsPadNumber=St,e.getExtensionByName=bt,e.isBeaconApiSupported=Nt,e.isCrossOriginError=wt,e.isInternalApplicationInsightsEndpoint=en,e.msToTimeSpan=xt,e.parseConnectionString=un,e.strNotSpecified=Et,e.stringToBoolOrDefault=Ct,e.urlGetAbsoluteUrl=Xt,e.urlGetCompleteUrl=Zt,e.urlGetPathName=Jt,e.urlParseFullHost=Qt,e.urlParseHost=Yt,e.urlParseUrl=Kt,e.utlCanUseLocalStorage=Pt,e.utlCanUseSessionStorage=zt,e.utlDisableStorage=Ft,e.utlGetLocalStorage=Ot,e.utlGetSessionStorage=jt,e.utlGetSessionStorageKeys=Gt,e.utlRemoveSessionStorage=Ht,e.utlRemoveStorage=Bt,e.utlSetLocalStorage=Ut,e.utlSetSessionStorage=_t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}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||{}));
//# sourceMappingURL=applicationinsights-common.min.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=ConnectionString.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IEventTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IMetricTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPageViewPerformanceTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPageViewTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -44,3 +44,5 @@ */

if (theEvent) {
evtMessage = theEvent[strMessage] || theEvent[strDescription] || "";
if (evtMessage && !isString(evtMessage)) {
evtMessage = theEvent[strMessage] || theEvent[strDescription] || evtMessage;
}
// Make sure the message is a string

@@ -47,0 +49,0 @@ if (evtMessage && !isString(evtMessage)) {

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

@@ -165,3 +165,2 @@ ## API Report File for "@microsoft/applicationinsights-common"

}
export { Event_2 as Event }

@@ -1104,3 +1103,2 @@

// Warnings were encountered during analysis:

@@ -1107,0 +1105,0 @@ //

/*!
* Application Insights JavaScript SDK - Common, 2.6.4
* Application Insights JavaScript SDK - Common, 2.6.5
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+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"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){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=Ye())]+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 o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(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,o=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<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(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 en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={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 o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(G(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&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.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=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}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(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.assign,u=n.create,l=n.defineProperty,c=s[a];function d(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function p(e){throw new TypeError(e)}function g(e){if(u)return u(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&p("Object prototype may only be an Object:"+e),n[r]=e,new n}(d()||{}).Symbol,(d()||{}).Reflect;var m,v=o||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);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[a](n)&&(e[n]=t[n])})(e,t)};function S(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&p("Class extends value "+t+" is not a constructor or null"),h(e,t),e[r]=null===t?g(t):(n[r]=t[r],new n)}(vr=m=m||{})[vr.CRITICAL=1]="CRITICAL",vr[vr.WARNING=2]="WARNING";var y={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},I="attachEvent",C="addEventListener",x="detachEvent",N="removeEventListener",b=l;function w(e){return s.toString.call(e)}function A(e){return e===undefined||typeof e===t}function T(e){return null===e||A(e)}function E(e){return!T(e)}function k(e){return typeof e===f}function M(e){return typeof e===i}function D(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!T(e))try{T(e[C])?T(e[I])||(e[I]("on"+t,n),o=!0):(e[C](t,n,r),o=!0)}catch(a){}return o}function R(e,t,n,r){if(void 0===r&&(r=!1),!T(e))try{T(e[N])?T(e[x])||e[x]("on"+t,n):e[N](t,n,r)}catch(o){}}function L(e,t){if(e)for(var n in e)c.call(e,n)&&t.call(e,n,e[n])}function F(e,t){return!(!e||!t||!~e.indexOf(t))}function P(e){return"[object Date]"===w(e)}function O(e){return"[object Array]"===w(e)}function U(e){return"[object Error]"===w(e)}function B(e){return"string"==typeof e}function z(e){return"boolean"==typeof e}function G(e){if(P(e)){var t=function(e){return 1===(e=""+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"}}function j(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function _(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function H(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function V(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function W(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var q=!{toString:null}.propertyIsEnumerable("toString"),K=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function X(e){var t=typeof e;t===i||t===f&&null!==e||p("objKeys called on non-object");var n,r=[];for(n in e)e&&c.call(e,n)&&r.push(n);if(q)for(var o=K.length,a=0;a<o;a++)e&&c.call(e,K[a])&&r.push(K[a]);return r}function J(e,t,n,r){if(b)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),b(e,t,o),!0}catch(a){}return!1}function Z(){var e=Date;return e.now?e.now():(new e).getTime()}function Y(e){return U(e)?e.name:""}function Q(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function $(e){return!!e}var ee="window",te="navigator",ne="location",re="JSON",oe="crypto",ae="msCrypto",ie="msie",se="trident/",ue=null,le=null;function ce(e){var t=d();return t&&t[e]?t[e]:e===ee&&de()?window:null}function de(){return typeof window===f&&window}function fe(){return typeof document===f&&document?document:ce("document")}function pe(){return typeof navigator===f&&navigator?navigator:ce(te)}function ge(){return ce("performance")}function me(){return typeof JSON===f&&JSON||null!==ce(re)}function ve(){return me()?JSON||ce(re):null}function he(){var e=pe();return!e||e.userAgent===le&&null!==ue||(e=((le=e.userAgent)||"").toLowerCase(),ue=F(e,ie)||F(e,se)),ue}function Se(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":me()&&(n=ve().stringify(e)),t+n}var ye="toGMTString",Ie="toUTCString",Ce="cookie",xe="expires",Ne="enabled",be="isCookieUseDisabled",we="disableCookiesUsage",Ae="_ckMgr",Te="",Ee=null,ke=null,Me=null,De=fe(),Re={},Le={};function Fe(e){return!e||e.isEnabled()}function Pe(e,r){var t,n,u=(Q(n=(t=e||Le).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,E,T),Q(n,"path",t.cookiePath||"/",null,T),T(n[Ne])&&(e=void 0,A(t[be])||(e=!t[be]),A(t[we])||(e=!t[we]),n[Ne]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[Ne],d={isEnabled:function(){var e=o&&Oe(r),t=Le[Ae];return e&&t&&d!==t?Fe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Fe(d)&&(a={},-1!=(s=(i=W(t||Te)).indexOf(";"))&&(i=W(t.substring(0,s)),a=Ue(t.substring(1+s))),Q(a,"domain",r||c,$,A),T(n)||(s=he(),!A(a[xe])||0<(t=Z()+1e3*n)&&((r=new Date).setTime(t),Q(a,xe,Be(r,s?ye:Ie)||Be(r,s?ye:Ie)||Te,$)),s||Q(a,"max-age",Te+n,null,A)),(n=typeof location===f&&location?location:ce(ne))&&"https:"===n.protocol&&(Q(a,"secure",null,null,A),(ke=null===ke?!je((pe()||{}).userAgent):ke)&&Q(a,"SameSite","None",null,A)),Q(a,"path",o||l,null,A),(u.setCookie||Ge)(e,ze(i,a)))},get:function(e){var t=Te;return Fe(d)?(u.getCookie||function(e){var t,n=Te;return De&&(t=De[Ce]||Te,Me!==t&&(Re=Ue(t),Me=t),n=W(Re[e]||Te)),n})(e):t},del:function(e,t){Fe(d)&&d.purge(e,t)},purge:function(e,t){var n;Oe(r)&&((n={}).path=t||"/",n[xe]="Thu, 01 Jan 1970 00:00:01 GMT",he()||(n["max-age"]="0"),(u.delCookie||Ge)(e,ze(Te,n)))}};return d[Ae]=d}function Oe(e){if(null===Ee){Ee=!1;try{Ee=(De||{})[Ce]!==undefined}catch(t){e&&e.throwInternal(m.WARNING,y.CannotAccessCookie,"Cannot access document.cookie - "+Y(t),{exception:Se(t)})}}return Ee}function Ue(e){var n={};return e&&e.length&&j(W(e).split(";"),function(e){var t;(e=W(e||Te))&&(-1==(t=e.indexOf("="))?n[e]=null:n[W(e.substring(0,t))]=W(e.substring(1+t)))}),n}function Be(e,t){return M(e[t])?e[t]():null}function ze(e,t){var n=e||Te;return L(t,function(e,t){n+="; "+e+(T(t)?Te:"="+t)}),n}function Ge(e,t){De&&(De[Ce]=e+"="+t)}function je(e){return!(!B(e)||!F(e,"CPU iPhone OS 12")&&!F(e,"iPad; CPU OS 12")&&!(F(e,"Macintosh; Intel Mac OS X 10_14")&&F(e,"Version/")&&F(e,"Safari"))&&(!F(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!F(e,"Chrome/5")&&!F(e,"Chrome/6")&&(!F(e,"UnrealEngine")||F(e,"Chrome"))&&!F(e,"UCBrowser/12")&&!F(e,"UCBrowser/11"))}var _e=4294967296,He=4294967295,Ve=!1,We=123456789,qe=987654321;function Ke(e){e<0&&(e>>>=0),We=123456789+e&He,qe=987654321-e&He,Ve=!0}function Xe(){try{var e=2147483647&Z();Ke((Math.random()*_e^e)+e)}catch(t){}}function Je(e){return 0<e?Math.floor(Ze()/He*(e+1))>>>0:0}function Ze(e){var t=(t=ce(oe)||ce(ae))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&He:he()?(Ve||Xe(),Ye()&He):Math.floor(_e*Math.random()|0);return e||(t>>>=0),t}function Ye(e){var t=((qe=36969*(65535&qe)+(qe>>16)&He)<<16)+(65535&(We=18e3*(65535&We)+(We>>16)&He))>>>0&He|0;return e||(t>>>=0),t}var Qe,$e=null;function et(e){void 0===e&&(e=22);for(var t=Ze()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ze()<<2&4294967295|3&t)>>>0,n=0);return r}function tt(){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=Ze())]+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 o=t[8+(3&Ze())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var nt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:A,isNullOrUndefined:T,hasOwnProperty:function(e,t){return e&&c.call(e,t)},isFunction:M,isObject:k,isDate:P,isArray:O,isError:U,isString:B,isNumber:function(e){return"number"==typeof e},isBoolean:z,toISOString:G,arrForEach:j,arrIndexOf:_,arrMap:H,arrReduce:V,strTrim:W,objCreate:g,objKeys:X,objDefineAccessors:J,addEventHandler:function(e,t){var n=!1,r=de()?window:ce(ee);return r&&(n=D(r,e,t),n=D(r.body,e,t)||n),(r=fe())&&ot.Attach(r,e,t)||n},dateNow:Z,isIE:he,disableCookies:it,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(rt,function(e){var t=0|Je(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=ge();return e&&e.now?e.now():Z()},newId:et,randomValue:Je,random32:Ze,mwcRandomSeed:function(e){e?Ke(e):Xe()},mwcRandom32:Ye,generateW3CId:tt},rt=/[xy]/g,ot={Attach:D,AttachEvent:D,Detach:R,DetachEvent:R};function at(e,t){var n,e=(n=e,e=t,(t=Pe[Ae]||Le[Ae])||(t=Pe[Ae]=Pe(n,e),Le[Ae]=t),t),t=nt._canUseCookies;return null===$e&&($e=[],Qe=t,J(nt,"_canUseCookies",function(){return Qe},function(t){Qe=t,j($e,function(e){e.setEnabled(t)})})),-1===_($e,e)&&$e.push(e),z(t)&&e.setEnabled(t),z(Qe)&&e.setEnabled(Qe),e}function it(){at().setEnabled(!1)}var st={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function ut(e,t,n){var r=t.length,o=lt(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+St(a);o=i}return o}function lt(e,t){var n;return t&&150<(t=W(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(m.WARNING,y.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function ct(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=W(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(m.WARNING,y.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function dt(e,t){return ht(e,t,2048,y.UrlTooLong)}function ft(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(m.WARNING,y.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function pt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(m.WARNING,y.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function gt(r,e){var o;return e&&(o={},L(e,function(e,t){if(k(t)&&me())try{t=ve().stringify(t)}catch(n){r.throwInternal(m.WARNING,y.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=ct(r,t,8192),e=ut(r,e,o),o[e]=t}),e=o),e}function mt(n,e){var r;return e&&(r={},L(e,function(e,t){e=ut(n,e,r),r[e]=t}),e=r),e}function vt(e,t){return t&&ht(e,t,128,y.IdTooLong).toString()}function ht(e,t,n,r){var o;return t&&(t=W(t)).length>n&&(o=t.substring(0,n),e.throwInternal(m.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function St(e){return(e="00"+e).substr(e.length-3)}var yt={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:ut,sanitizeKey:lt,sanitizeString:ct,sanitizeUrl:dt,sanitizeMessage:ft,sanitizeException:pt,sanitizeProperties:gt,sanitizeMeasurements:mt,sanitizeId:vt,sanitizeInput:ht,padNumber:St,trim:W};function It(e){var t,n=null;return M(Event)?n=new Event(e):(t=fe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function Ct(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function xt(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,o=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<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function Nt(){var e=pe();return"sendBeacon"in e&&e.sendBeacon}function bt(e,t){var n=null;return j(e,function(e){if(e.identifier===t)return n=e,-1}),n}function wt(e,t,n,r,o){return!o&&B(e)&&("Script error."===e||"Script error"===e)}var At,Tt="https://dc.services.visualstudio.com",Et="not_specified";(Sr=At=At||{})[Sr.LocalStorage=0]="LocalStorage",Sr[Sr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Nr=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Nr.AI=0]="AI",Nr[Nr.AI_AND_W3C=1]="AI_AND_W3C",Nr[Nr.W3C=2]="W3C";var kt=undefined,Mt=undefined;function Dt(){return Pt()?Rt(At.LocalStorage):null}function Rt(e){try{if(T(d()))return null;var t=new Date,n=ce(e===At.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Lt(){return zt()?Rt(At.SessionStorage):null}function Ft(){Mt=kt=!1}function Pt(){return kt=kt===undefined?!!Rt(At.LocalStorage):kt}function Ot(e,t){var n=Dt();if(null!==n)try{return n.getItem(t)}catch(r){kt=!1,e.throwInternal(m.WARNING,y.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Y(r),{exception:Se(r)})}return null}function Ut(e,t,n){var r=Dt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){kt=!1,e.throwInternal(m.WARNING,y.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Y(o),{exception:Se(o)})}return!1}function Bt(e,t){var n=Dt();if(null!==n)try{return n.removeItem(t),!0}catch(r){kt=!1,e.throwInternal(m.WARNING,y.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Y(r),{exception:Se(r)})}return!1}function zt(){return Mt=Mt===undefined?!!Rt(At.SessionStorage):Mt}function Gt(){var t=[];return zt()&&L(ce("sessionStorage"),function(e){t.push(e)}),t}function jt(e,t){var n=Lt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(m.WARNING,y.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Y(r),{exception:Se(r)})}return null}function _t(e,t,n){var r=Lt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(m.WARNING,y.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Y(o),{exception:Se(o)})}return!1}function Ht(e,t){var n=Lt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(m.WARNING,y.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Y(r),{exception:Se(r)})}return!1}var Vt=fe()||{},Wt=0,qt=[null,null,null,null,null];function Kt(e){var t=Wt,n=qt,r=n[t];return Vt.createElement?n[t]||(r=n[t]=Vt.createElement("a")):r={host:Yt(e,!0)},r.href=e,++t>=n.length&&(t=0),Wt=t,r}function Xt(e){return(e=Kt(e))?e.href:void 0}function Jt(e){return(e=Kt(e))?e.pathname:void 0}function Zt(e,t){return e?e.toUpperCase()+" "+t:t}function Yt(e,t){return(e=Qt(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&B(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function Qt(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&B(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 $t=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function en(e){return!!~$t.indexOf(e.toLowerCase())}var tn={NotSpecified:Et,createDomEvent:It,disableStorage:Ft,isInternalApplicationInsightsEndpoint:en,canUseLocalStorage:Pt,getStorage:Ot,setStorage:Ut,removeStorage:Bt,canUseSessionStorage:zt,getSessionStorageKeys:Gt,getSessionStorage:jt,setSessionStorage:_t,removeSessionStorage:Ht,disableCookies:it,canUseCookies:function(e){return at(null,e).isEnabled()},disallowsSameSiteNone:je,setCookie:function(e,t,n,r){at(null,e).set(t,n,null,r)},stringToBoolOrDefault:Ct,getCookie:function(e,t){return at(null,e).get(t)},deleteCookie:function(e,t){return at(null,e).del(t)},trim:W,newId:et,random32:function(){return Ze(!0)},generateW3CId:tt,isArray:O,isError:U,isDate:P,toISOStringForIE8:G,getIEVersion:function(e){var t;return F(e=((e=(e=void 0===e?null:e)?e:(t=pe()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),ie)?parseInt(e.split(ie)[1]):F(e,se)&&(e=parseInt(e.split(se)[1]))?e+4:null},msToTimeSpan:xt,isCrossOriginError:wt,dump:Se,getExceptionName:Y,addEventHandler:D,IsBeaconApiSupported:Nt,getExtension:bt},nn={parseUrl:Kt,getAbsoluteUrl:Xt,getPathName:Jt,getCompleteUrl:Zt,parseHost:Yt,parseFullHost:Qt},rn={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 o,a=Kt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=(Qt(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(j(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&&rn.getCorrelationContextValue(e,st.requestContextTargetKey))&&e!==rn.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function on(){var e=ge();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:Z()}function an(e,t){return 0===e||0===t||T(e)||T(t)?null:t-e}var sn={Now:on,GetDuration:an};function un(e){if(!e)return{};var t=V(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<X(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Tt),t}var ln,cn={parse:un},dn=function(){},fn=(S(pn,ln=dn),pn);function pn(){return ln.call(this)||this}var gn,mn=(S(vn,gn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),vn);function vn(e,t,n){var r=gn.call(this)||this;return r.name=ct(e,n)||Et,r.data=t,r.time=G(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var hn,Sn=(S(yn,hn=wr=function(){this.ver=2,this.properties={},this.measurements={}}),yn.envelopeType="Microsoft.ApplicationInsights.{0}.Event",yn.dataType="EventData",yn);function yn(e,t,n,r){var o=hn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=ct(e,t)||Et,o.properties=gt(e,n),o.measurements=mt(e,r),o}var In=function(){},Cn=function(){this.hasFullStack=!0,this.parsedStack=[]},xn="error",Nn="stack",bn="stackDetails",wn="errorSrc",An="message",Tn="description";function En(e,t){var n=e;return n&&!B(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=M(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function kn(e,t){var n=e;return e&&((n=n&&!B(n)&&(e[An]||e[Tn])||n)&&!B(n)&&(n=En(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Mn(e){return e&&e.src&&B(e.src)&&e.obj&&O(e.obj)}function Dn(e){var t=e||"",e=(t=B(t)?t:B(t[Nn])?t[Nn]:""+t).split("\n");return{src:t,obj:e}}function Rn(e){var t,n=null;if(e)try{e[Nn]?n=Dn(e[Nn]):e[xn]&&e[xn][Nn]?n=Dn(e[xn][Nn]):e.exception&&e.exception[Nn]?n=Dn(e.exception[Nn]):Mn(e)?n=e:Mn(e[bn])?n=e[bn]:window.opera&&e[An]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):B(e)?n=Dn(e):(t=e[An]||e[Tn]||"",B(e[wn])&&(t&&(t+="\n"),t+=" from "+e[wn]),t&&(n=Dn(t)))}catch(r){n=Dn(r)}return n||{src:"",obj:null}}function Ln(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function Fn(e){if(e)try{if(!B(e)){var t=Ln(e),n=En(e,!1);return n&&"{}"!==n||(e[xn]&&(t=Ln(e=e[xn])),n=En(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Pn,On=(S(Un,Pn=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),Un.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Ln(o||a||e);return{message:kn(e,u),url:t,lineNumber:n,columnNumber:r,error:Fn(o||a||e),evt:Fn(a||e),typeName:u,stackDetails:Rn(i||o||a),errorSrc:s}},Un.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&H(e.exceptions,function(e){return zn.CreateFromInterface(t,e)});return new Un(t,v({},e,{exceptions:o}),n,r)},Un.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&H(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},Un.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},Un.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Un.dataType="ExceptionData",Un.formatError=Fn,Un);function Un(e,t,n,r,o,a){var i,s=Pn.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},k(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,T(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new zn(e,t,n=n||{})],s.properties=gt(e,n),s.measurements=mt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Bn,zn=(S(Gn,Bn=Cn),Gn.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&H(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[Nn],parsedStack:e||undefined}},Gn.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&H(t.parsedStack,function(e){return _n.CreateFromInterface(e)})||t.parsedStack;return new Gn(e,v({},t,{parsedStack:n}))},Gn);function Gn(e,l,t){var n,r,o,a=Bn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},k(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[Nn]=l[Nn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,U(n)||(n=n[xn]||o||n),a.typeName=ct(e,Ln(n))||Et,a.message=ft(e,kn(l||n,a.typeName))||Et,l=l[bn]||Rn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(j(e,function(e){e=e.toString(),_n.regex.test(e)&&(e=new _n(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[Nn]=pt(e,(r="",l&&(l.obj?j(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=O(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var jn,_n=(S(Hn,jn=In),Hn.CreateFromInterface=function(e){return new Hn(e,null)},Hn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Hn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Hn.baseSize=58,Hn);function Hn(e,t){var n,r=jn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=W(n),r.fileName="",r.line=0,(n=n.match(Hn.regex))&&5<=n.length&&(r.method=W(n[2])||r.method,r.fileName=W(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Hn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var Vn,Wn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(br=Vn={})[br.Measurement=0]="Measurement",br[br.Aggregation=1]="Aggregation";var qn,Kn=(S(Xn,qn=function(){this.kind=Vn.Measurement}),Xn);function Xn(){var e=null!==qn&&qn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Jn,Zn=(S(Yn,Jn=Wn),Yn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Yn.dataType="MetricData",Yn);function Yn(e,t,n,r,o,a,i,s){var u=Jn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Kn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=ct(e,t)||Et,l.value=n,u.metrics=[l],u.properties=gt(e,i),u.measurements=mt(e,s),u}var Qn,$n=(S(er,Qn=wr),er);function er(){var e=Qn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tr,nr=(S(rr,tr=$n),rr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",rr.dataType="PageviewData",rr);function rr(e,t,n,r,o,a,i){var s=tr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=vt(e,i),s.url=dt(e,n),s.name=ct(e,t)||Et,isNaN(r)||(s.duration=xt(r)),s.properties=gt(e,o),s.measurements=mt(e,a),s}var or,ar=(S(ir,or=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ir.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ir.dataType="RemoteDependencyData",ir);function ir(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=or.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=xt(o),f.success=a,f.resultCode=i+"",f.type=ct(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Kt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,ct(p,t?t+" "+n:n)):ct(p,u))):g=o,{target:g,name:a,data:i});return f.data=dt(e,r)||i.data,f.target=ct(e,i.target),l&&(f.target=f.target+" | "+l),f.name=ct(e,i.name),f.properties=gt(e,c),f.measurements=mt(e,d),f}var sr,ur=(S(lr,sr=function(){this.ver=2,this.properties={},this.measurements={}}),lr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",lr.dataType="MessageData",lr);function lr(e,t,n,r,o){var a=sr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=ft(e,t=t||Et),a.properties=gt(e,r),a.measurements=mt(e,o),n&&(a.severityLevel=n),a}var cr,dr=(S(fr,cr=$n),fr);function fr(){var e=cr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var pr,o=(S(gr,pr=dr),gr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",gr.dataType="PageviewPerformanceData",gr);function gr(e,t,n,r,o,a,i){var s=pr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=dt(e,n),s.name=ct(e,t)||Et,s.properties=gt(e,o),s.measurements=mt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var mr,vr=(S(hr,mr=fn),hr);function hr(e,t){var n=mr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(l=e.SeverityLevel||(e.SeverityLevel={}))[l.Verbose=0]="Verbose",l[l.Information=1]="Information",l[l.Warning=2]="Warning",l[l.Error=3]="Error",l[l.Critical=4]="Critical";var Sr=(yr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!T(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],T(t)?r:t},yr);function yr(){}function Ir(e){var t="ai."+e+".";return function(e){return t+e}}var Cr,xr,Nr=Ir("application"),Cn=Ir("device"),In=Ir("location"),br=Ir("operation"),Wn=Ir("session"),wr=Ir("user"),dr=Ir("cloud"),l=Ir("internal"),wr=(xr={applicationVersion:Nr("ver"),applicationBuild:Nr("build"),applicationTypeId:Nr("typeId"),applicationId:Nr("applicationId"),applicationLayer:Nr("layer"),deviceId:Cn("id"),deviceIp:Cn("ip"),deviceLanguage:Cn("language"),deviceLocale:Cn("locale"),deviceModel:Cn("model"),deviceFriendlyName:Cn("friendlyName"),deviceNetwork:Cn("network"),deviceNetworkName:Cn("networkName"),deviceOEMName:Cn("oemName"),deviceOS:Cn("os"),deviceOSVersion:Cn("osVersion"),deviceRoleInstance:Cn("roleInstance"),deviceRoleName:Cn("roleName"),deviceScreenResolution:Cn("screenResolution"),deviceType:Cn("type"),deviceMachineName:Cn("machineName"),deviceVMName:Cn("vmName"),deviceBrowser:Cn("browser"),deviceBrowserVersion:Cn("browserVersion"),locationIp:In("ip"),locationCountry:In("country"),locationProvince:In("province"),locationCity:In("city"),operationId:br("id"),operationName:br("name"),operationParentId:br("parentId"),operationRootId:br("rootId"),operationSyntheticSource:br("syntheticSource"),operationCorrelationVector:br("correlationVector"),sessionId:Wn("id"),sessionIsFirst:Wn("isFirst"),sessionIsNew:Wn("isNew"),userAccountAcquisitionDate:wr("accountAcquisitionDate"),userAccountId:wr("accountId"),userAgent:wr("userAgent"),userId:wr("id"),userStoreRegion:wr("storeRegion"),userAuthUserId:wr("authUserId"),userAnonymousUserAcquisitionDate:wr("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:wr("authUserAcquisitionDate"),cloudName:dr("name"),cloudRole:dr("role"),cloudRoleVer:dr("roleVer"),cloudRoleInstance:dr("roleInstance"),cloudEnvironment:dr("environment"),cloudLocation:dr("location"),cloudDeploymentUnit:dr("deploymentUnit"),internalNodeName:l("nodeName"),internalSdkVersion:l("sdkVersion"),internalAgentVersion:l("agentVersion"),internalSnippet:l("snippet"),internalSdkSrc:l("sdkSrc")},S(Ar,Cr=function(){var n=this;L(xr,function(e,t){n[e]=t})}),Ar);function Ar(){return Cr.call(this)||this}function Tr(){}Tr.create=function(e,t,n,r,o,a){if(n=ct(r,n)||Et,T(e)||T(t)||T(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:G(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return T(o)||L(o,function(e,t){i.data[e]=t}),i},dr=Tr,l=new wr,e.AIBase=dn,e.AIData=fn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Sr,e.ConnectionStringParser=cn,e.ContextTagKeys=wr,e.CorrelationIdHelper=rn,e.CtxTagKeys=l,e.DEFAULT_BREEZE_ENDPOINT=Tt,e.Data=vr,e.DataSanitizer=yt,e.DateTimeUtils=sn,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=mn,e.Event=Sn,e.Exception=On,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Zn,e.PageView=nr,e.PageViewData=$n,e.PageViewPerformance=o,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=ar,e.RequestHeaders=st,e.SampleRate="sampleRate",e.TelemetryItemCreator=dr,e.Trace=ur,e.UrlHelper=nn,e.Util=tn,e.createDomEvent=It,e.dataSanitizeException=pt,e.dataSanitizeId=vt,e.dataSanitizeInput=ht,e.dataSanitizeKey=lt,e.dataSanitizeKeyAndAddUniqueness=ut,e.dataSanitizeMeasurements=mt,e.dataSanitizeMessage=ft,e.dataSanitizeProperties=gt,e.dataSanitizeString=ct,e.dataSanitizeUrl=dt,e.dateTimeUtilsDuration=an,e.dateTimeUtilsNow=on,e.dsPadNumber=St,e.getExtensionByName=bt,e.isBeaconApiSupported=Nt,e.isCrossOriginError=wt,e.isInternalApplicationInsightsEndpoint=en,e.msToTimeSpan=xt,e.parseConnectionString=un,e.strNotSpecified=Et,e.stringToBoolOrDefault=Ct,e.urlGetAbsoluteUrl=Xt,e.urlGetCompleteUrl=Zt,e.urlGetPathName=Jt,e.urlParseFullHost=Qt,e.urlParseHost=Yt,e.urlParseUrl=Kt,e.utlCanUseLocalStorage=Pt,e.utlCanUseSessionStorage=zt,e.utlDisableStorage=Ft,e.utlGetLocalStorage=Ot,e.utlGetSessionStorage=jt,e.utlGetSessionStorageKeys=Gt,e.utlRemoveSessionStorage=Ht,e.utlRemoveStorage=Bt,e.utlSetLocalStorage=Ut,e.utlSetSessionStorage=_t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}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||{}));
//# sourceMappingURL=applicationinsights-common.min.js.map
{
"name": "@microsoft/applicationinsights-common",
"version": "2.6.4",
"version": "2.6.5",
"description": "Microsoft Application Insights Common JavaScript Library",

@@ -16,3 +16,3 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",

"scripts": {
"build": "npm run build:esm && npm run build:browser && npm run dtsgen",
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
"build:esm": "grunt common",

@@ -23,5 +23,7 @@ "build:browser": "rollup -c",

"lint": "tslint -p tsconfig.json",
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\""
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Common JavaScript Library\"",
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js"
},
"devDependencies": {
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",

@@ -33,3 +35,3 @@ "@microsoft/applicationinsights-rollup-es3": "1.1.3",

"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",

@@ -49,3 +51,3 @@ "@rollup/plugin-node-resolve": "^11.2.1",

"@microsoft/applicationinsights-shims": "2.0.0",
"@microsoft/applicationinsights-core-js": "2.6.4",
"@microsoft/applicationinsights-core-js": "2.6.5",
"@microsoft/dynamicproto-js": "^1.1.4"

@@ -52,0 +54,0 @@ },

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

if (theEvent) {
evtMessage = theEvent[strMessage] || theEvent[strDescription] || "";
if (evtMessage && !isString(evtMessage)) {
evtMessage = theEvent[strMessage] || theEvent[strDescription] || evtMessage;
}
// Make sure the message is a string

@@ -51,0 +54,0 @@ if (evtMessage && !isString(evtMessage)) {

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.17.1"
"packageVersion": "7.18.4"
}
]
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc