@microsoft/applicationinsights-web-basic 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-04
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/aib.2.8.0-nightly.2204-04.integrity.json +26 -0
- package/browser/{aib.2.8.0-nightly.2202-06.js → aib.2.8.0-nightly.2204-04.js} +2311 -1247
- package/browser/aib.2.8.0-nightly.2204-04.js.map +1 -0
- package/browser/aib.2.8.0-nightly.2204-04.min.js +6 -0
- package/browser/aib.2.8.0-nightly.2204-04.min.js.map +1 -0
- package/browser/aib.2.js +2310 -1246
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.api.json +4117 -565
- package/dist/applicationinsights-web-basic.api.md +333 -12
- package/dist/applicationinsights-web-basic.d.ts +691 -101
- package/dist/applicationinsights-web-basic.js +2310 -1246
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +694 -104
- package/dist-esm/index.js +47 -57
- package/dist-esm/index.js.map +1 -1
- package/package.json +8 -6
- package/src/index.ts +203 -0
- package/tsconfig.json +7 -3
- package/types/index.d.ts +34 -5
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.2.8.0-nightly.2202-06.integrity.json +0 -26
- package/browser/aib.2.8.0-nightly.2202-06.js.map +0 -1
- package/browser/aib.2.8.0-nightly.2202-06.min.js +0 -6
- package/browser/aib.2.8.0-nightly.2202-06.min.js.map +0 -1
- package/index.ts +0 -125
package/browser/aib.2.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.2204-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(r){"use strict";var a="function",g="object",i="undefined",o="prototype",s="hasOwnProperty",u=Object,l=u[o],p=u.assign,h=u.create,e=u.defineProperty,m=l[s],v=null;function y(e){return void 0===e&&(e=!0),v&&e||(typeof globalThis!==i&&globalThis&&(v=globalThis),typeof self!==i&&self&&(v=self),typeof window!==i&&window&&(v=window),typeof global!==i&&global&&(v=global)),v}function I(e){throw new TypeError(e)}function C(e){if(h)return h(e);if(null==e)return{};var n=typeof e;function t(){}return n!==g&&n!==a&&I("Object prototype may only be an Object:"+e),t[o]=e,new t}(y()||{}).Symbol,(y()||{}).Reflect;var S=p||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])l[s].call(n,i)&&(e[i]=n[i]);return e},x=function(e,n){return(x=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[s](t)&&(e[t]=n[t])})(e,n)};function n(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&I("Class extends value "+n+" is not a constructor or null"),x(e,n),e[o]=null===n?C(n):(t[o]=n[o],new t)}function T(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var w="constructor",b="prototype",N="function",_="_dynInstFuncs",R="_isDynProxy",A="_dynClass",L="_dynInstChk",E=L,F="_dfOpts",B="_unknown_",U="__proto__",O="useBaseInst",z="setInstFuncs",j=Object,K=j.getPrototypeOf,q=0;function V(e,n){return e&&j[b].hasOwnProperty.call(e,n)}function W(e){return e&&(e===j[b]||e===Array[b])}function G(e){return W(e)||e===Function[b]}function H(e){if(e){if(K)return K(e);e=e[U]||e[b]||(e[w]?e[w][b]:null);if(e)return e}return null}function X(e,n){var t=[],r=j.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&V(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function Y(e,n,t){return n!==w&&typeof e[n]===N&&(t||V(e,n))}function J(e){throw new TypeError("DynamicProto: "+e)}function Z(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Q(e,n){return V(e,b)?e.name||n||B:((e||{})[w]||{}).name||n||B}function $(e,r,n,t){V(e,b)||J("theClass is an invalid class definition.");var c,i,o,a,f,d,s=e[b],u=(function(e){if(K)for(var n=[],t=H(r);t&&!G(t)&&!Z(n,t);){if(t===e)return 1;n.push(t),t=H(t)}}(s)||J("["+Q(e)+"] is not in class hierarchy of ["+Q(r)+"]"),null),e=(V(s,A)?u=s[A]:(u="_dynCls$"+Q(e,"_")+"$"+q,q++,s[A]=u),$[F]),l=!!e[O],g=(l&&t&&t[O]!==undefined&&(l=!!t[O]),i={},X(c=r,function(e){!i[e]&&Y(c,e,!1)&&(i[e]=c[e])}),i),l=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[R]&&o&&!1!==(r=e[_]||{})[E]&&(i=(r[n[A]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(X(t,function(e){i[e]=r(n,t,e)}),H(e)),s=[];a&&!G(a)&&!Z(s,a);)X(a,function(e){!i[e]&&Y(a,e,!K)&&(i[e]=r(n,a,e))}),s.push(a),a=H(a);return i}(s,r,g,l)),!!K&&!!e[z]);o=s,n=u,a=r,f=g,e=!1!==(l=l&&t?!!t[z]:l),W(o)||(s=a[_]=a[_]||{},d=s[n]=s[n]||{},!1!==s[E]&&(s[E]=!!e),X(a,function(e){var t,r,i;Y(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],V(o,e)&&(!o[e]||o[e][R])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&V(t,A)){var i=e[_]||{};if((r=(i[t[A]]||{})[n])||J("Missing ["+n+"] "+N),!r[L]&&!1!==i[E]){for(var o=!V(e,n),a=H(e),s=[];o&&a&&!G(a)&&!Z(s,a);){var u=a[n];if(u){o=u===c;break}s.push(a),a=H(a)}try{o&&(e[n]=r),r[L]=1}catch(l){i[E]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?H(t)[e]:n)!==N&&J("["+e+"] is not a "+N),n)).apply(this,arguments)})[R]=1,i)))}))}$[F]={setInstFuncs:!0,useBaseInst:!0},(ae=M=M||{})[ae.CRITICAL=1]="CRITICAL",ae[ae.WARNING=2]="WARNING";var M,k={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},ee="attachEvent",ne="addEventListener",te="toISOString",re="endsWith",ie="indexOf",oe="trim",ae="toString",se=e,ue=(u.freeze,u.seal,u.keys),e=String[o],le=e[oe],ce=e[re],fe=(e.startsWith,Date[o][te]),e=Array.isArray,de=l[ae];function ge(e){return e===undefined||typeof e===i}function D(e){return null===e||ge(e)}function pe(e){return!D(e)}function he(e){return!(!e||typeof e!==g)}function d(e){return!(!e||typeof e!==a)}function me(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!D(e))try{D(e[ne])?D(e[ee])||(e[ee]("on"+n,t),i=!0):(e[ne](n,t,r),i=!0)}catch(o){}return i}function ve(e,n){if(e)for(var t in e)m.call(e,t)&&n.call(e,t,e[t])}function ye(e,n){return!(!e||!n||!~e.indexOf(n))}m[ae].call(u);var Ie=e||function(e){return!(!e||"[object Array]"!==de.call(e))};function Ce(e){return!(!e||"[object Error]"!==de.call(e))}function Se(e){return"string"==typeof e}function xe(e){return"number"==typeof e}function Te(e){return"boolean"==typeof e}function we(e){if(e){if(fe)return e[te]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"):void 0}}function P(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function be(e,n,t){if(e){if(e[ie])return e[ie](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function Ne(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}}return o}function _e(e){return e&&(le&&e[oe]?e[oe]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Re=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Le(e){var n=typeof e;if(n===a||n===g&&null!==e||I("objKeys called on non-object"),!Re&&ue)return ue(e);var t,r=[];for(t in e)e&&m.call(e,t)&&r.push(t);if(Re)for(var i=Ae.length,o=0;o<i;o++)e&&m.call(e,Ae[o])&&r.push(Ae[o]);return r}function Ee(e,n,t,r){if(se)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),se(e,n,i),!0}catch(o){}return!1}function Fe(){var e=Date;return e.now?e.now():(new e).getTime()}function Me(e){return Ce(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function De(e){return!e}function Pe(e){return!!e}function Be(e){throw Error(e)}function Ue(e){return e&&p?u(p({},e)):e}var Oe="window",ze="navigator",je="location",Ke="console",qe="JSON",Ve="crypto",We="msCrypto",Ge="msie",He="trident/",Xe=null,Ye=null,Je=null,Ze=null;function Qe(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!ge((new e)[n])}catch(i){}}return r}function $e(e){var n=y();return n&&n[e]?n[e]:e===Oe&&en()?window:null}function en(){return typeof window===g&&window}function nn(){return en()?window:$e(Oe)}function tn(){return typeof document===g&&document?document:$e("document")}function rn(){return!(typeof navigator!==g||!navigator)}function on(){return rn()?navigator:$e(ze)}function an(){return typeof JSON===g&&JSON||null!==$e(qe)}function sn(){return an()?JSON||$e(qe):null}function un(){var e=on();return!e||e.userAgent===Ye&&null!==Xe||(e=((Ye=e.userAgent)||"").toLowerCase(),Xe=ye(e,Ge)||ye(e,He)),Xe}function ln(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":an()&&(t=sn().stringify(e)),n+t}function cn(){return Ze=null===Ze?rn()&&!!on().sendBeacon:Ze}function fn(e){var n=!1;try{var n=!!$e("fetch"),t=$e("Request");n&&e&&t&&(n=Qe(t,"keepalive"))}catch(r){}return n}function dn(){return Je=null===Je&&(Je="undefined"!=typeof XDomainRequest)&&gn()?Je&&!Qe($e("XMLHttpRequest"),"withCredentials"):Je}function gn(){var e=!1;try{e=!!$e("XMLHttpRequest")}catch(n){}return e}var pn,hn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],mn=null;function vn(e){var n=mn;return(n=n||!0===e.disableDbgExt?n:mn||(e=$e("Microsoft"),mn=e?e.ApplicationInsights:mn))?n.ChromeDbgExt:null}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function In(e,n){var t,r=typeof console!==i?console:$e(Ke);r&&(t="log",d(r[t=r[e]?e:t])&&r[t](n))}Sn.dataType="MessageData";var Cn=Sn;function Sn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",an()&&(t=sn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(t):"");this.message+=e}function xn(e,n){return(e||{}).logger||new Tn(n)}var Tn=function Hi(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,s={};$(Hi,this,function(o){function e(e,n){e=r[e];return D(e)?n:e}function a(e,n){var t=vn(r);t&&t.diagLog&&t.diagLog(e,n)}D(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new Cn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole";ge(n.message)?a("throw"+(e===M.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!s[i]&&e<=r&&(o[t](n.message),s[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){In("warn",e),a("warning",e)},o.errorToConsole=function(e){In("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,s={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,s[t]?r=!1:s[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===M.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new Cn(k.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===M.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},wn=(bn.ParentContextKey="parent",bn.ChildrenContextKey="childEvts",bn);function bn(e,i,n){var t,o=this,a=!1;o.start=Fe(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},d(i)&&(a=Ee(o,"payload",function(){return!t&&d(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===bn.ParentContextKey||e===bn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===bn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===bn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(bn.ChildrenContextKey);if(Ie(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Fe()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&d(i)&&(o.payload=i())}}var Nn=function Xi(n){this.ctx={},$(Xi,this,function(t){t.create=function(e,n,t){return new wn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&d(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},_n="CoreUtils.doPerf";function Rn(e,n,t,r,i){if(e)if(e=d(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(_n);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(wn.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(wn.ChildrenContextKey))||(o=[],s.setCtx(wn.ChildrenContextKey,o)),o.push(a))),e.setCtx(_n,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(_n,s)}}return t()}var An=function(i,n){var o=this,a=null,s=d(i.processTelemetry),u=d(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";Rn(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){o._hasRun=!0;try{r.setNext(a),u&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(M.CRITICAL,k.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+ln(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Ln(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&d(o.processTelemetry)&&(o=new An(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var En=function Yi(e,i,t,n){var r,o,a,s,u=this,l=null;null!==n&&(e&&d(e.getPlugin)?l=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Ln(r,n)}(e,u,n||e.getPlugin()):n?(r=u,a=e,s=!1,(o=n)&&e&&(a=[],P(e,function(e){!s&&e!==o||(s=!0,a.push(e))})),o&&!s&&(a=a||[]).push(o),l=Ln(a,r)):ge(n)&&(l=Ln(e,u))),u.core=function(){return t},u.diagLog=function(){return xn(t,i)},u.getCfg=function(){return i},u.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=u.getExtCfg(e,null);return e&&!D(e[n])?r=e[n]:i&&!D(i[n])&&(r=i[n]),D(r)?t:r},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Yi((e=void 0===e?null:e)||l,i,t,n)}},Fn="extensionConfig",Mn="getPlugin",ae=(kn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},kn);function kn(){var o=this,a=!1,s=null,u=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){u=e},o.processNext=function(e,n){n?n.processNext(e):u&&d(u.processTelemetry)&&u.processTelemetry(e,null)},o._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new En(null,{},o.core),e=u&&u[Mn]?n.createNew(null,u[Mn]):n.createNew(null,u)),e},o._baseTelInit=function(e,n,t,r){e&&ke(e,Fn,[],null,D),!r&&n&&(r=n.getProcessTelContext().getNext());var i=u;u&&u[Mn]&&(i=u[Mn]()),o.core=n,s=new En(r,e,n,i),a=!0}}var Dn="processTelemetry",Pn="priority",Bn="setNextPlugin",Un="isInitialized";function On(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&d(r[Bn])&&d(o[Dn])&&r[Bn](o),d(o[Un])&&o[Un]()||e.push(o),r=o,i=i.getNext())}P(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=d(n[Dn]);return d(e[Dn])?t=r?e[Pn]-n[Pn]:1:r&&(t=-1),t})}n(qn,jn=ae),qn._staticInit=(Ee(e=qn.prototype,"ChannelControls",e.getChannelControls),void Ee(e,"channelQueue",e.getChannelControls));var jn,Kn=qn;function qn(){var u,r=jn.call(this)||this;function l(e){e&&0<e.length&&(P(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Be("Channel has invalid priority"+e.identifier)}),u.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,$(qn,r,function(a,s){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){u&&P(u,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return u},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(s.initialize(n,t,r),e=(n||{}).channels,i=r,u=[],e&&P(e,l),i&&(o=[],P(i,function(e){500<e.priority&&o.push(e)}),l(o)),P(u,function(e){return On(new En(e,n,t),r)}))}}),r}var Vn="toGMTString",Wn="toUTCString",Gn="cookie",Hn="expires",Xn="enabled",Yn="isCookieUseDisabled",Jn="disableCookiesUsage",Zn="_ckMgr",Qn="",$n=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e){return!e||e.isEnabled()}function at(e,i){ke(t=(e=e||it).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,pe,D),ke(t,"path",e.cookiePath||"/",null,D),D(t[Xn])&&(n=void 0,ge(e[Yn])||(n=!e[Yn]),ge(e[Jn])||(n=!e[Jn]),t[Xn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,r=!1!==l[Xn],d={isEnabled:function(){var e=r&&st(i),n=it[Zn];return e&&n&&d!==n?ot(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return ot(d)&&(o={},-1!=(s=(a=_e(n||Qn)).indexOf(";"))&&(a=_e(n.substring(0,s)),o=ut(n.substring(1+s))),ke(o,"domain",r||f,Pe,ge),D(t)||(s=un(),!ge(o[Hn])||0<(n=Fe()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,s?Vn:Wn)||lt(r,s?Vn:Wn)||Qn,Pe)),s||ke(o,"max-age",Qn+t,null,ge)),(n=typeof location===g&&location?location:$e(je))&&"https:"===n.protocol&&(ke(o,"secure",null,null,ge),(et=null===et?!(Se(r=(on()||{}).userAgent)&&(ye(r,"CPU iPhone OS 12")||ye(r,"iPad; CPU OS 12")||ye(r,"Macintosh; Intel Mac OS X 10_14")&&ye(r,"Version/")&&ye(r,"Safari")||ye(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(ce)return e[re](n);var r=e,i=n,t=!1,e=r?r.length:0;if(e&&40<=e&&!(t=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}t=!0}return t}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||ye(r,"Chrome/5")||ye(r,"Chrome/6")||ye(r,"UnrealEngine")&&!ye(r,"Chrome")||ye(r,"UCBrowser/12")||ye(r,"UCBrowser/11"))):et)&&ke(o,"SameSite","None",null,ge)),ke(o,"path",i||c,null,ge),(l.setCookie||ft)(e,ct(a,o)),u=!0),u},get:function(e){var n=Qn;return ot(d)?(l.getCookie||function(e){var n,t=Qn;return tt&&(n=tt[Gn]||Qn,nt!==n&&(rt=ut(n),nt=n),t=_e(rt[e]||Qn)),t})(e):n},del:function(e,n){return!!ot(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,un()||(n["max-age"]="0"),(l.delCookie||ft)(e,ct(Qn,n)),r=!0),r}};return d[Zn]=d}function st(e){if(null===$n){$n=!1;try{$n=(tt||{})[Gn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,k.CannotAccessCookie,"Cannot access document.cookie - "+Me(n),{exception:ln(n)})}}return $n}function ut(e){var t={};return e&&e.length&&P(_e(e).split(";"),function(e){var n;(e=_e(e||Qn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[_e(e.substring(0,n))]=_e(e.substring(1+n)))}),t}function lt(e,n){return d(e[n])?e[n]():null}function ct(e,n){var t=e||Qn;return ve(n,function(e,n){t+="; "+e+(D(n)?Qn:"="+n)}),t}function ft(e,n){tt&&(tt[Gn]=e+"="+n)}var dt="_notificationManager";function gt(e,n){return new Nn(n)}var pt,ht=function Ji(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;$(Ji,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=be(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=be(i.listeners,e)},i.eventsSent=function(n){P(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){P(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){P(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||P(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},mt=(n(vt,pt=function Zi(){var n,l,c,t,r,f=!1;$(Zi,this,function(u){u._extensions=[],l=new Kn,u.logger=new Tn({loggingLevelConsole:M.CRITICAL}),n=[],u.isInitialized=function(){return f},u.initialize=function(e,n,r,t){u.isInitialized()&&Be("Core should not be initialized more than once"),e&&!D(e.instrumentationKey)||Be("Please provide instrumentation key"),c=t,u[dt]=t,u.config=e||{},t&&!0!==u.config.disableDbgExt&&t.addNotificationListener(function(e){if(!pn){pn={};for(var n=0;n<hn.length;n++)pn[hn[n]]=function(n,t){return function(){var e=vn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(hn[n],e)}return pn}(e)),u.config.enablePerfMgr&&ke(u.config,"createPerfMgr",gt),e.extensions=D(e.extensions)?[]:e.extensions,e?!(i=e[Fn])&&D(i)&&(i=ge(o)?{}:o,e[Fn]=i):i=ge(o)?{}:o,i.NotificationManager=t,r&&(u.logger=r);var i,o=[],a=(o.push.apply(o,T(T([],n),e.extensions)),o=zn(o),[]),s={};P(o,function(e){(D(e)||D(e.initialize))&&Be("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(D(s[n])?s[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+s[n]+", "+t)),(!n||n<l.priority)&&a.push(e)}),o.push(l),a.push(l),o=zn(o),u._extensions=o,On(new En([l],e,u),o),On(new En(a,e,u),o),u._extensions=a,0===u.getTransmissionControls().length&&Be("No channels available"),f=!0,u.releaseQueue()},u.getTransmissionControls=function(){return l.getChannelControls()},u.track=function(e){ke(e,"iKey",u.config.instrumentationKey,null,De),ke(e,"time",we(new Date),null,De),ke(e,"ver","4.0",null,D),u.isInitialized()?u.getProcessTelContext().processNext(e):n.push(e)},u.getProcessTelContext=function(){var e=u._extensions,n=e;return e&&0!==e.length||(n=[l]),new En(n,u.config,u)},u.getNotifyMgr=function(){return c||(c=C({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[dt]=c),c},u.getCookieMgr=function(){return r=r||at(u.config,u.logger)},u.setCookieMgr=function(e){r=e},u.getPerfMgr=function(){return t||u.config&&u.config.enablePerfMgr&&d(u.config.createPerfMgr)&&(t=u.config.createPerfMgr(u,u.getNotifyMgr())),t||null},u.setPerfMgr=function(e){t=e},u.eventCnt=function(){return n.length},u.releaseQueue=function(){0<n.length&&(P(n,function(e){u.getProcessTelContext().processNext(e)}),n=[])}})}),vt);function vt(){var e=pt.call(this)||this,r=0;return $(vt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new Tn(e),r||new ht(e))},t.track=function(e){Rn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),Be("Invalid telemetry item")),D(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];P(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:we(new Date),baseType:Cn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var yt=4294967296,It=4294967295,Ct=!1,St=123456789,xt=987654321;function Tt(e){e<0&&(e>>>=0),St=123456789+e&It,xt=987654321-e&It,Ct=!0}function wt(){try{var e=2147483647&Fe();Tt((Math.random()*yt^e)+e)}catch(n){}}function bt(e){return 0<e?Math.floor(Nt()/It*(e+1))>>>0:0}function Nt(e){var n=$e(Ve)||$e(We),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&It:un()?(Ct||wt(),_t()&It):Math.floor(yt*Math.random()|0);return e||(n>>>=0),n}function _t(e){var n=((xt=36969*(65535&xt)+(xt>>16)&It)<<16)+(65535&(St=18e3*(65535&St)+(St>>16)&It))>>>0&It|0;return e||(n>>>=0),n}var Rt,At=null,Lt={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:ge,isNullOrUndefined:D,hasOwnProperty:function(e,n){return!(!e||!m.call(e,n))},isFunction:d,isObject:he,isDate:function(e){return!(!e||"[object Date]"!==de.call(e))},isArray:Ie,isError:Ce,isString:Se,isNumber:xe,isBoolean:Te,toISOString:we,arrForEach:P,arrIndexOf:be,arrMap:Ne,arrReduce:function(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r},strTrim:_e,objCreate:C,objKeys:Le,objDefineAccessors:Ee,addEventHandler:function(e,n){var t=!1,r=nn(),r=(r&&(t=me(r,e,n),t=me(r.body,e,n)||t),tn());return r&&me(r,e,n)||t},dateNow:Fe,isIE:un,disableCookies:function(){var e,n;(e=at[Zn]||it[Zn])||(e=at[Zn]=at(void 0,void 0),it[Zn]=e),e=e,n=Lt._canUseCookies,null===At&&(At=[],Rt=n,Ee(Lt,"_canUseCookies",function(){return Rt},function(n){Rt=n,P(At,function(e){e.setEnabled(n)})})),-1===be(At,e)&&At.push(e),Te(n)&&e.setEnabled(n),Te(Rt)&&e.setEnabled(Rt),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Et,function(e){var n=0|bt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=$e("performance");return e&&e.now?e.now():Fe()},newId:function(e){void 0===e&&(e=22);for(var n=Nt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Nt()<<2&4294967295|3&n)>>>0,t=0);return r},randomValue:bt,random32:Nt,mwcRandomSeed:function(e){e?Tt(e):wt()},mwcRandom32:_t,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Nt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Nt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Et=/[xy]/g;function Ft(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=_e(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,k.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));a=u}return a}function Mt(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=_e(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,k.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function kt(e,n){return Ut(e,n,2048,k.UrlTooLong)}function Dt(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,k.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function Pt(r,e){var i;return e&&(i={},ve(e,function(e,n){if(he(n)&&an())try{n=sn().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,k.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Mt(r,n,8192),e=Ft(r,e,i),i[e]=n}),e=i),e}function Bt(t,e){var r;return e&&(r={},ve(e,function(e,n){e=Ft(t,e,r),r[e]=n}),e=r),e}function Ut(e,n,t,r){var i;return n&&(n=_e(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function Ot(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var zt,jt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Kt="sampleRate",qt="ProcessLegacy",Vt="http.method",Wt="not_specified",Gt=((e=zt=zt||{})[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage",undefined);function Ht(e){try{if(D(y()))return null;var n=new Date,t=$e(e===zt.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function Xt(){return Yt()?Ht(zt.SessionStorage):null}function Yt(){return Gt=Gt===undefined?!!Ht(zt.SessionStorage):Gt}function Jt(e,n){var t=Xt();if(null!==t)try{return t.getItem(n)}catch(r){Gt=!1,e.throwInternal(M.WARNING,k.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Me(r),{exception:ln(r)})}return null}function Zt(e,n,t){var r=Xt();if(null!==r)try{return r.setItem(n,t),1}catch(i){Gt=!1,e.throwInternal(M.WARNING,k.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Me(i),{exception:ln(i)})}}var Qt=tn()||{},$t=0,er=[null,null,null,null,null];var nr=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tr(e){return~nr.indexOf(e.toLowerCase())}n(ir,rr=function(){});var rr,e=ir;function ir(){return rr.call(this)||this}n(sr,or=function(){this.ver=1,this.sampleRate=100,this.tags={}});var or,ar=sr;function sr(e,n,t){var r=or.call(this)||this;return r.name=Mt(e,t)||Wt,r.data=n,r.time=we(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var ur,t=function(){this.ver=2,this.properties={},this.measurements={}},lr=(n(cr,ur=t),cr.envelopeType="Microsoft.ApplicationInsights.{0}.Event",cr.dataType="EventData",cr);function cr(e,n,t,r){var i=ur.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=Mt(e,n)||Wt,i.properties=Pt(e,t),i.measurements=Bt(e,r),i}var fr="error",dr="stack",gr="stackDetails",pr="errorSrc",hr="message",mr="description";function vr(e,n){var t=e;return t&&!Se(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=d(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function yr(e,n){var t=e;return e&&((t=t&&!Se(t)&&(e[hr]||e[mr])||t)&&!Se(t)&&(t=vr(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function Ir(e){return e&&e.src&&Se(e.src)&&e.obj&&Ie(e.obj)}function Cr(e){var e=e||"",n=(e=Se(e)?e:Se(e[dr])?e[dr]:""+e).split("\n");return{src:e,obj:n}}function Sr(e){var n,t=null;if(e)try{e[dr]?t=Cr(e[dr]):e[fr]&&e[fr][dr]?t=Cr(e[fr][dr]):e.exception&&e.exception[dr]?t=Cr(e.exception[dr]):Ir(e)?t=e:Ir(e[gr])?t=e[gr]:window&&window.opera&&e[hr]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):Se(e)?t=Cr(e):(n=e[hr]||e[mr]||"",Se(e[pr])&&(n&&(n+="\n"),n+=" from "+e[pr]),n&&(t=Cr(n)))}catch(r){t=Cr(r)}return t||{src:"",obj:null}}function xr(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function Tr(e){if(e)try{var n,t;if(!Se(e))return n=xr(e),(t=vr(e,!1))&&"{}"!==t||(e[fr]&&(n=xr(e=e[fr])),t=vr(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}n(Nr,wr=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),Nr.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=xr(i||o||e);return{message:yr(e,u),url:n,lineNumber:t,columnNumber:r,error:Tr(i||o||e),evt:Tr(o||e),typeName:u,stackDetails:Sr(a||i||o),errorSrc:s}},Nr.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&Ne(e.exceptions,function(e){return Rr.CreateFromInterface(n,e)});return new Nr(n,S(S({},e),{exceptions:i}),t,r)},Nr.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&Ne(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},Nr.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},Nr.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Nr.dataType="ExceptionData",Nr.formatError=Tr;var wr,br=Nr;function Nr(e,n,t,r,i,o){var a=wr.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(he(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,D(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new Rr(e,n,t=t||{})],a.properties=Pt(e,t),a.measurements=Bt(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}n(Ar,_r=function(){this.hasFullStack=!0,this.parsedStack=[]}),Ar.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Ne(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[dr],parsedStack:e||undefined}},Ar.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&Ne(n.parsedStack,function(e){return Fr.CreateFromInterface(e)})||n.parsedStack;return new Ar(e,S(S({},n),{parsedStack:t}))};var _r,Rr=Ar;function Ar(e,n,t){var l,r,i,o,a,s=_r.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(he(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[dr]=n[dr],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,Ce(o)||(o=o[fr]||r||o),s.typeName=Mt(e,xr(o))||Wt,s.message=Dt(e,yr(n||o,s.typeName))||Wt,l=n[gr]||Sr(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(P(e,function(e){var e=e.toString();Fr.regex.test(e)&&(e=new Fr(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),s[dr]=(r=e,a="",(o=l)&&(o.obj?P(o.obj,function(e){a+=e+"\n"}):a=o.src||""),!(n=a)||32768<(e=""+n).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,k.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),i||n),s.hasFullStack=Ie(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}n(Mr,Lr=function(){}),Mr.CreateFromInterface=function(e){return new Mr(e,null)},Mr.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Mr.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Mr.baseSize=58;var Lr,Er,Fr=Mr;function Mr(e,n){var t,r=Lr.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=_e(t),r.fileName="",r.line=0,(n=t.match(Mr.regex))&&5<=n.length&&(r.method=_e(n[2])||r.method,r.fileName=_e(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+=Mr.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}Er=0,n(Pr,kr=function(){this.kind=Er});var kr,Dr=Pr;function Pr(){var e=null!==kr&&kr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}n(Or,Br=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Or.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Or.dataType="MetricData";var Br,Ur=Or;function Or(e,n,t,r,i,o,a,s,c){var u=Br.call(this)||this,l=(u.aiDataContract={ver:1,metrics:1,properties:0},new Dr);return l.count=0<r?r:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(i)||null===i?undefined:i,l.name=Mt(e,n)||Wt,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,u.metrics=[l],u.properties=Pt(e,s),u.measurements=Bt(e,c),u}n(jr,zr=t);var zr,t=jr;function jr(){var e=zr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Vr,Kr=t),Vr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Vr.dataType="PageviewData";var Kr,qr=Vr;function Vr(e,n,t,r,i,o,a){var s=Kr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Ut(e,a,128,k.IdTooLong).toString(),s.url=kt(e,t),s.name=Mt(e,n)||Wt,isNaN(r)||(s.duration=Ot(r)),s.properties=Pt(e,i),s.measurements=Bt(e,o),s}n(Hr,Wr=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Hr.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Hr.dataType="RemoteDependencyData";var Wr,Gr=Hr;function Hr(e,n,t,c,r,f,i,o,a,d,g,p){void 0===a&&(a="Ajax");var h,s,u,l=Wr.call(this)||this,t=(l.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},l.id=n,l.duration=Ot(r),l.success=f,l.resultCode=i+"",l.type=Mt(e,a),n=e,r=o,a=i=f=c,i=(o=t)&&0<o.length?(h=o,u=(t=er)[s=$t],Qt.createElement?t[s]||(u=t[s]=Qt.createElement("a")):u={host:function(){e=null,!h||null!=(t=h.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&Se(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&Se(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},u.href=h,++s>=t.length&&(s=0),$t=s,s=(t=u).host,i||(null!=t.pathname?("/"!=((u=0===t.pathname.length?"/":t.pathname)[0]||"")&&(u="/"+u),a=t.pathname,Mt(n,r?r+" "+u:u)):Mt(n,o))):s=f,{target:s,name:i,data:a});return l.data=kt(e,c)||t.data,l.target=Mt(e,t.target),d&&(l.target="".concat(l.target," | ").concat(d)),l.name=Mt(e,t.name),l.properties=Pt(e,g),l.measurements=Bt(e,p),l}n(Zr,Xr=function(){this.ver=2,this.properties={},this.measurements={}}),Zr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Zr.dataType="MessageData";var Xr,Yr,Jr=Zr;function Zr(e,n,t,r,i){var o=Xr.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Dt(e,n=n||Wt),o.properties=Pt(e,r),o.measurements=Bt(e,i),t&&(o.severityLevel=t),o}function Qr(){var e=Yr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Qr,Yr=t),n(ni,$r=Qr),ni.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",ni.dataType="PageviewPerformanceData";var $r,ei=ni;function ni(e,n,t,r,i,o,a){var s=$r.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=kt(e,t),s.name=Mt(e,n)||Wt,s.properties=Pt(e,i),s.measurements=Bt(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}n(ii,ti=e);var ti,ri=ii;function ii(e,n){var t=ti.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function oi(e){var n="ai."+e+".";return function(e){return n+e}}r.SeverityLevel=void 0,(t=r.SeverityLevel||(r.SeverityLevel={}))[t.Verbose=0]="Verbose",t[t.Information=1]="Information",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.Critical=4]="Critical";var ai,si,e=oi("application"),t=oi("device"),ui=oi("location"),li=oi("operation"),ci=oi("session"),fi=oi("user"),di=oi("cloud"),gi=oi("internal"),pi=(si={applicationVersion:e("ver"),applicationBuild:e("build"),applicationTypeId:e("typeId"),applicationId:e("applicationId"),applicationLayer:e("layer"),deviceId:t("id"),deviceIp:t("ip"),deviceLanguage:t("language"),deviceLocale:t("locale"),deviceModel:t("model"),deviceFriendlyName:t("friendlyName"),deviceNetwork:t("network"),deviceNetworkName:t("networkName"),deviceOEMName:t("oemName"),deviceOS:t("os"),deviceOSVersion:t("osVersion"),deviceRoleInstance:t("roleInstance"),deviceRoleName:t("roleName"),deviceScreenResolution:t("screenResolution"),deviceType:t("type"),deviceMachineName:t("machineName"),deviceVMName:t("vmName"),deviceBrowser:t("browser"),deviceBrowserVersion:t("browserVersion"),locationIp:ui("ip"),locationCountry:ui("country"),locationProvince:ui("province"),locationCity:ui("city"),operationId:li("id"),operationName:li("name"),operationParentId:li("parentId"),operationRootId:li("rootId"),operationSyntheticSource:li("syntheticSource"),operationCorrelationVector:li("correlationVector"),sessionId:ci("id"),sessionIsFirst:ci("isFirst"),sessionIsNew:ci("isNew"),userAccountAcquisitionDate:fi("accountAcquisitionDate"),userAccountId:fi("accountId"),userAgent:fi("userAgent"),userId:fi("id"),userStoreRegion:fi("storeRegion"),userAuthUserId:fi("authUserId"),userAnonymousUserAcquisitionDate:fi("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:fi("authUserAcquisitionDate"),cloudName:di("name"),cloudRole:di("role"),cloudRoleVer:di("roleVer"),cloudRoleInstance:di("roleInstance"),cloudEnvironment:di("environment"),cloudLocation:di("location"),cloudDeploymentUnit:di("deploymentUnit"),internalNodeName:gi("nodeName"),internalSdkVersion:gi("sdkVersion"),internalAgentVersion:gi("agentVersion"),internalSnippet:gi("snippet"),internalSdkSrc:gi("sdkSrc")},n(hi,ai=function(){var t=this;ve(si,function(e,n){t[e]=n})}),hi);function hi(){return ai.call(this)||this}var mi,vi=new pi,e=function Qi(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},$(Qi,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,k.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},yi=(n(Ii,mi=e),Ii);function Ii(e,n){e=mi.call(this,e,n)||this;return $(Ii,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}n(c,Ci=e),c.BUFFER_KEY="AI_buffer",c.SENT_BUFFER_KEY="AI_sentBuffer",c.MAX_BUFFER_SIZE=2e3;var Ci,Si=c;function c(s,u){var e=Ci.call(this,s,u)||this,l=!1;return $(c,e,function(t,n){var e=o(c.BUFFER_KEY),r=o(c.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return P(e,function(e){d(e)||-1!==be(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=Jt(s,e);if(n){var t=sn().parse(n);if((t=Se(t)?sn().parse(t):t)&&Ie(t))return t}}catch(r){s.throwInternal(M.CRITICAL,k.FailedToRestoreStorageBuffer," storage key: "+e+", "+Me(r),{exception:ln(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);Zt(s,e,t)}catch(r){Zt(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,k.FailedToSetStorageBuffer," storage key: "+e+", "+Me(r)+". Buffer cleared",{exception:ln(r)})}}r.length>c.MAX_BUFFER_SIZE&&(r.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,[]),a(c.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=c.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,k.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(c.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(c.BUFFER_KEY,t._get()),a(c.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(c.BUFFER_KEY,t._set(i(e,t._get())));var n=o(c.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>c.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,k.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(c.SENT_BUFFER_KEY));a(c.SENT_BUFFER_KEY,e)}}),e}var xi="baseType",f="baseData",Ti="properties",wi="true";function bi(e,n,t){return ke(e,n,t,Pe)}function Ni(e,t,r){D(e)||ve(e,function(e,n){xe(n)?r[e]=n:Se(n)?t[e]=n:an()&&(t[e]=sn().stringify(n))})}function _i(t,r){D(t)||ve(t,function(e,n){t[e]=n||r})}function Ri(e,n,t,r){for(var r=new ar(e,r,n),n=(bi(r,"sampleRate",t[Kt]),(t[f]||{}).startTime&&(r.time=we(t[f].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},s=e.tags=e.tags||[],u=a.user,u=(u&&(bi(o,vi.userAuthUserId,u.authId),bi(o,vi.userId,u.id||u.localId)),a.app),u=(u&&bi(o,vi.sessionId,u.sesId),a.device),u=(u&&(bi(o,vi.deviceId,u.id||u.localId),bi(o,vi.deviceType,u.deviceClass),bi(o,vi.deviceIp,u.ip),bi(o,vi.deviceModel,u.model),bi(o,vi.deviceType,u.deviceType)),e.ext.web),e=(u&&(bi(o,vi.deviceLanguage,u.browserLang),bi(o,vi.deviceBrowserVersion,u.browserVer),bi(o,vi.deviceBrowser,u.browser),bi(e=(e=(e=i.data=i.data||{})[f]=e[f]||{})[Ti]=e[Ti]||{},"domain",u.domain),bi(e,"isManual",u.isManual?wi:null),bi(e,"screenRes",u.screenRes),bi(e,"userConsent",u.userConsent?wi:null)),a.os),u=(e&&bi(o,vi.deviceOS,e.name),a.trace),c=(u&&(bi(o,vi.operationParentId,u.parentID),bi(o,vi.operationName,Mt(n,u.name)),bi(o,vi.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)ve(s[l],function(e,n){c[e]=n}),s.splice(l,1);ve(s,function(e,n){c[e]=n});e=S(S({},o),c);return e[vi.internalSdkVersion]||(e[vi.internalSdkVersion]="javascript:".concat(Li.Version)),i.tags=Ue(e),t.tags=t.tags||[],Ue(r)}function Ai(e,n){D(n[f])&&e.throwInternal(M.CRITICAL,k.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Li={Version:"2.8.0-nightly.2202-06"};function Ei(e,n,t){Ai(e,n);var r={},i={},t=(n[xi]!==lr.dataType&&(r.baseTypeSource=n[xi]),n[xi]===lr.dataType?(r=n[f][Ti]||{},i=n[f].measurements||{}):n[f]&&Ni(n[f],r,i),Ni(n.data,r,i),D(t)||_i(r,t),n[f].name),t=new lr(e,t,r,i),r=new ri(lr.dataType,t);return Ri(e,lr.envelopeType,n,r)}var Fi=function $i(f){$($i,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,k.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,k.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,ve(a.aiDataContract,function(e,n){var t=d(n)?1&n():1&n,r=d(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=he(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?c:l)(a[e],e):a[e])!==undefined&&(u[e]=t):f.throwInternal(M.CRITICAL,k.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(Ie(a))u=c(a,s);else{f.throwInternal(M.WARNING,k.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{sn().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,k.CannotSerializeObject,n&&d(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(Ie(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,k.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},ve(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return sn().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,k.CannotSerializeObject,n&&d(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function Mi(){var a=nn(),s=tn(),u=!1,l=!0;$(Mi,this,function(e){try{var n,t;a&&me(a,"online",r)&&(me(a,"offline",i),u=!0),s&&(ge((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=on())&&!D(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=on();return u?e=l:n&&!D(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var ki=Mi.Offline=new Mi,Di=(Pi.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Pi.INT_MAX_VALUE*100},Pi.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Pi.INT_MAX_VALUE=2147483647,Pi);function Pi(){}var Bi=function(){var n=new Di,t=new pi;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Ui=(Oi.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Ur.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Oi);function Oi(e,n){this.INT_MAX_VALUE=2147483647;n=n||xn(null);(100<e||e<0)&&(n.throwInternal(M.WARNING,k.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new Bi}function zi(e){try{return e.responseText}catch(n){}return null}function ji(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(t={})[lr.dataType]=Ei,t[Jr.dataType]=function(e,n,t){Ai(e,n);var r=n[f].message,i=n[f].severityLevel,o=n[f][Ti]||{},a=n[f].measurements||{},t=(Ni(n.data,o,a),D(t)||_i(o,t),new Jr(e,r,i,o,a)),r=new ri(Jr.dataType,t);return Ri(e,Jr.envelopeType,n,r)},t[qr.dataType]=function(e,n,t){Ai(e,n);var r,i="duration",o=n[f],i=(D(o)||D(o[Ti])||D(o[Ti][i])?D(n.data)||D(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[Ti][i],delete o[Ti][i]),n[f]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[Ti]||{},l=i.measurements||{},i=(D(i.refUri)||(u.refUri=i.refUri),D(i.pageType)||(u.pageType=i.pageType),D(i.isLoggedIn)||(u.isLoggedIn=i.isLoggedIn.toString()),D(i[Ti])||ve(i[Ti],function(e,n){u[e]=n}),Ni(n.data,u,l),D(t)||_i(u,t),new qr(e,a,s,r,u,l,o)),t=new ri(qr.dataType,i);return Ri(e,qr.envelopeType,n,t)},t[ei.dataType]=function(e,n,t){Ai(e,n);var r=n[f],i=r.name,o=r.uri||r.url,a=r[Ti]||{},s=r.measurements||{},t=(Ni(n.data,a,s),D(t)||_i(a,t),new ei(e,i,o,undefined,a,s,r)),i=new ri(ei.dataType,t);return Ri(e,ei.envelopeType,n,i)},t[br.dataType]=function(e,n,t){Ai(e,n);var r=n[f].measurements||{},i=n[f][Ti]||{},t=(Ni(n.data,i,r),D(t)||_i(i,t),n[f]),t=br.CreateFromInterface(e,t,i,r),i=new ri(br.dataType,t);return Ri(e,br.envelopeType,n,i)},t[Ur.dataType]=function(e,n,t){Ai(e,n);var r=n[f],i=r[Ti]||{},o=r.measurements||{},t=(Ni(n.data,i,o),D(t)||_i(i,t),new Ur(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new ri(Ur.dataType,t);return Ri(e,Ur.envelopeType,n,r)},t[Gr.dataType]=function(e,n,t){Ai(e,n);var r=n[f].measurements||{},i=n[f][Ti]||{},t=(Ni(n.data,i,r),D(t)||_i(i,t),n[f]);if(D(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[Ti]&&t[Ti][Vt]?t[Ti][Vt]:"GET",o=new Gr(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new ri(Gr.dataType,o);return Ri(e,Gr.envelopeType,n,t)};var Ki,qi=t,Vi=(n(Wi,Ki=ae),Wi.constructEnvelope=function(e,n,t,r){e=n===e.iKey||D(n)?e:S(S({},e),{iKey:n});return(qi[e.baseType]||Ei)(t,e,r)},Wi);function Wi(){var T,w,t,F,b,N,_,R=Ki.call(this)||this,A=(R.priority=1001,!(R.identifier="AppInsightsChannelPlugin")),L={},E=0;return R._senderConfig=ji(),$(Wi,R,function(l,m){function c(e,n,t,r,i,o){var a=null;l._appId||(a=f(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&I(e)?(d(n),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):ki.isOffline()?l._senderConfig.isRetryDisabled()||(d(n,10),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(ki.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||f(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(T=0,l._onSuccess(n,r)))}function s(e){return!(10<=b)&&!D(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++b,1)}function n(e,n){_?_(e,!1):a(e)}function o(e){var n=on(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),l._onSuccess(e,e.length)),r}function a(e,n){if(Ie(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(N(t,!0),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function u(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[jt]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),tr(r)&&t.setRequestHeader("Sdk-Context","appId"),P(Le(L),function(e){t.setRequestHeader(e,L[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,h(t),e)};e=l._buffer.batchPayloads(n);t.send(e),l._buffer.markAsSent(n)}function v(e,n){if(Ie(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;E+t<=65e3?i(e,!1):cn()?a(e):(N&&N(e,!0),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function y(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,s=!1,e=(tr(e)&&o.append("Sdk-Context","appId"),P(Le(L),function(e){o.append(e,L[e])}),(i={method:"POST",headers:o,body:i})[jt]=!0,r||(n=i.keepalive=!0,E+=a),new Request(e,i));try{e[jt]=!0}catch(u){}l._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(E-=a,a=0),s||(s=!0,n.ok?n.text().then(function(e){c(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText))})["catch"](function(e){r||(E-=a,a=0),s||(s=!0,l._onError(t,e.message))})}catch(u){s||l._onError(t,ln(u))}n&&!s&&(s=!0,l._onSuccess(t,t.length))}function f(e){try{if(e&&""!==e){var n=sn().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,k.InvalidBackendResponse,"Cannot parse the response. "+Me(t),{response:e})}return null}function d(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=T<=1?10:(e=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=Fe()+1e3*n;w=e,g()}}function g(){var e;t||A||(e=w?Math.max(0,w-Fe()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function p(){clearTimeout(t),w=t=null}function I(e){return 408===e||429===e||500===e||503===e}function h(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+zi(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=nn(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r&&r.location&&r.location.protocol||"");if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+zi(e)||"":n}function x(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,k.NotificationException,"send request notification failed: "+Me(r),{exception:ln(r)})}}l.pause=function(){p(),A=!0},l.resume=function(){A&&(A=!1,w=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),g())},l.flush=function(){if(!A){p();try{l.triggerSend(!0,null,1)}catch(e){l.diagLog().throwInternal(M.CRITICAL,k.FlushFailed,"flush failed, telemetry will not be collected: "+Me(e),{exception:ln(e)})}}},l.onunloadFlush=function(){if(!A)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!cn())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,k.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Me(e),{exception:ln(e)})}},l.teardown=function(){Be("Method not implemented.")},l.addHeader=function(e,n){L[e]=n},l.initialize=function(e,n,t,r){m.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(F=new Fi(n.logger),w=null,T=0,l._sender=null,b=0,l.diagLog()),r=(ve(ji(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&Yt()?Si:yi)(t,l._senderConfig),l._sample=new Ui(l._senderConfig.samplingPercentage(),t),!D(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||t.throwInternal(M.CRITICAL,k.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!tr(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&P(l._senderConfig.customHeaders(),function(e){R.addHeader(e.header,e.value)}),l._senderConfig),n=null;!r.disableXhr()&&dn()?n=C:!r.disableXhr()&&gn()&&(n=u),!n&&fn()&&(n=y),N=n||u,!r.isBeaconApiDisabled()&&cn()&&(n=a),l._sender=n||u,_=!r.onunloadDisableFetch()&&fn(!0)?v:cn()?a:!r.disableXhr()&&dn()?C:!r.disableXhr()&&gn()?u:N},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,k.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,k.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,k.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,k.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[Kt]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Wi.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,k.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[qt]&&(P(e.tags[qt],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,k.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+Me(n),{exception:ln(n)},!0)}}),delete e.tags[qt]),o)return;var a=F.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),g()}catch(u){t.diagLog().throwInternal(M.WARNING,k.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Me(u),{exception:ln(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&c(e.status,n,e.responseURL,t,h(e),zi(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!A)try{var r,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),x(t||0,e),n?n.call(R,r,e):l._sender(r,e)),p()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(ye(n,Ge))return e=tn()||{},Math.max(parseInt(n.split(Ge)[1]),e.documentMode||0);if(ye(n,He)){e=parseInt(n.split(He)[1]);if(e)return e+4}return null}();(!i||9<i)&&l.diagLog().throwInternal(M.CRITICAL,k.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+Me(o),{exception:ln(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,k.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(I(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,h(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(d(r),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=zi(e);!e||t+""!="200"&&""!==t?(t=f(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(T=0,l._onSuccess(n,0))}}),R}Gi.prototype.initialize=function(){this.core=new mt;var e=[],n=new Vi;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},Gi.prototype.track=function(e){this.core.track(e)},Gi.prototype.flush=function(n){void 0===n&&(n=!0),P(this.core.getTransmissionControls(),function(e){P(e,function(e){n?e.flush():e.triggerSend(n,null,1)})})},Gi.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},Gi.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},Gi.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4};ui=Gi;function Gi(e){(D(e)||D(e.instrumentationKey))&&Be("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}r.AppInsightsCore=mt,r.ApplicationInsights=ui,r.CoreUtils=Lt,r.Sender=Vi;li=r,ci="__esModule",fi={value:!0},di=Object.defineProperty;if(di)try{return void di(li,ci,fi)}catch(eo){}typeof fi.value!==undefined&&(li[ci]=fi.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(e){"use strict";var u="constructor",p="prototype",S="function",T="_dynInstFuncs",b="_isDynProxy",w="_dynClass",_="_dynInstChk",N=_,A="_dfOpts",c="_unknown_",M="__proto__",k="useBaseInst",G="setInstFuncs",X=Object,Y=X.getPrototypeOf,J=0;function Z(e,n){return e&&X[p].hasOwnProperty.call(e,n)}function $(e){return e&&(e===X[p]||e===Array[p])}function Q(e){return $(e)||e===Function[p]}function ee(e){if(e){if(Y)return Y(e);e=e[M]||e[p]||(e[u]?e[u][p]:null);if(e)return e}return null}function ne(e,n){var t=[],r=X.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&Z(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function te(e,n,t){return n!==u&&typeof e[n]===S&&(t||Z(e,n))}function re(e){throw new TypeError("DynamicProto: "+e)}function ie(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function oe(e,n){return Z(e,p)?e.name||n||c:((e||{})[u]||{}).name||n||c}function h(e,r,n,t){Z(e,p)||re("theClass is an invalid class definition.");var i,o,a,u,s,c,l=e[p],f=(function(e){if(Y)for(var n=[],t=ee(r);t&&!Q(t)&&!ie(n,t);){if(t===e)return 1;n.push(t),t=ee(t)}}(l)||re("["+oe(e)+"] is not in class hierarchy of ["+oe(r)+"]"),null),e=(Z(l,w)?f=l[w]:(f="_dynCls$"+oe(e,"_")+"$"+J,J++,l[w]=f),h[A]),d=!!e[k],g=(d&&t&&t[k]!==undefined&&(d=!!t[k]),o={},ne(i=r,function(e){!o[e]&&te(i,e,!1)&&(o[e]=i[e])}),o),d=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[b]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[w]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(ne(t,function(e){i[e]=r(n,t,e)}),ee(e)),u=[];a&&!Q(a)&&!ie(u,a);)ne(a,function(e){!i[e]&&te(a,e,!Y)&&(i[e]=r(n,a,e))}),u.push(a),a=ee(a);return i}(l,r,g,d)),!!Y&&!!e[G]);a=l,n=f,u=r,s=g,e=!1!==(d=d&&t?!!t[G]:d),$(a)||(l=u[T]=u[T]||{},c=l[n]=l[n]||{},!1!==l[N]&&(l[N]=!!e),ne(u,function(e){var t,r,i;te(u,e,!1)&&u[e]!==s[e]&&(c[e]=u[e],delete u[e],Z(a,e)&&(!a[e]||a[e][b])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&Z(t,w)){var o=e[T]||{};if((i=(o[t[w]]||{})[n])||re("Missing ["+n+"] "+S),!i[_]&&!1!==o[N]){for(var a=!Z(e,n),u=ee(e),s=[];a&&u&&!Q(u)&&!ie(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=ee(u)}try{a&&(e[n]=i),i[_]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?ee(t)[e]:n)!==S&&re("["+e+"] is not a "+S),n)).apply(this,arguments)})[b]=1,i)))}))}h[A]={setInstFuncs:!0,useBaseInst:!0};var ae="function",ue="object",se="undefined",o="prototype",ce="hasOwnProperty",t=Object,le=t[o],fe=t.assign,de=t.create,n=t.defineProperty,ge=le[ce],pe=null;function ve(e){return void 0===e&&(e=!0),pe&&e||(typeof globalThis!==se&&globalThis&&(pe=globalThis),typeof self!==se&&self&&(pe=self),typeof window!==se&&window&&(pe=window),typeof global!==se&&global&&(pe=global)),pe}function me(e){throw new TypeError(e)}function he(e){if(de)return de(e);if(null==e)return{};var n=typeof e;function t(){}return n!==ue&&n!==ae&&me("Object prototype may only be an Object:"+e),t[o]=e,new t}(ve()||{}).Symbol,(ve()||{}).Reflect;var ye=fe||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])le[ce].call(n,i)&&(e[i]=n[i]);return e},Ie=function(e,n){return(Ie=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[ce](t)&&(e[t]=n[t])})(e,n)};function Ce(e,n){function t(){this.constructor=e}typeof n!==ae&&null!==n&&me("Class extends value "+n+" is not a constructor or null"),Ie(e,n),e[o]=null===n?he(n):(t[o]=n[o],new t)}function xe(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var D="",Se="processTelemetry",Te="priority",be="setNextPlugin",we="isInitialized",E="teardown",d="core",_e="update",Ne="disabled",Ae="_doTeardown",Ee="processNext",Re="resume",Le="pause",Fe="NotificationListener",Me="add"+Fe,ke="remove"+Fe,De="eventsSent",Pe="eventsDiscarded",Be="eventsSendRequest",Ue="perfEvent",Oe="toISOString",ze="endsWith",je="indexOf",Ke="trim",Fe="toString",qe="constructor",Ve=n,We=t.freeze,He=(t.seal,t.keys),r=String[o],Ge=r[Ke],Xe=r[ze],Ye=(r.startsWith,Date[o][Oe]),r=Array.isArray,Je=le[Fe],Ze=ge[Fe],$e=Ze.call(t),Qe=/-([a-z])/g,en=/([^\w\d_$])/g,nn=/^(\d+[\w\d_$])/,tn=Object.getPrototypeOf;function P(e){return e===undefined||typeof e===se}function B(e){return null===e||P(e)}function rn(e){return!B(e)}function on(e){return!(!e||typeof e!==ue)}function R(e){return!(!e||typeof e!==ae)}function an(e){var n=e;return e&&m(e)?(n=(n=e.replace(Qe,function(e,n){return n.toUpperCase()})).replace(en,"_")).replace(nn,function(e,n){return"_"+n}):n}function U(e,n){if(e)for(var t in e)ge.call(e,t)&&n.call(e,t,e[t])}function O(e,n){return!(!e||!n||!~e.indexOf(n))}var z=r||function(e){return!(!e||"[object Array]"!==Je.call(e))};function un(e){return!(!e||"[object Error]"!==Je.call(e))}function m(e){return"string"==typeof e}function sn(e){return"number"==typeof e}function cn(e){return"boolean"==typeof e}function ln(e){return e&&"object"==typeof e&&(!(e=(tn||function(e){if(e){if(tn)return tn(e);e=e.__proto__||e[o]||e[qe];if(e)return e}return null})(e))||typeof(e=e[qe]&&ge.call(e,qe)?e[qe]:e)===ae&&Ze.call(e)===$e)}function fn(e){if(e){if(Ye)return e[Oe]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}function j(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function dn(e,n,t){if(e){if(e[je])return e[je](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function gn(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}}return o}function g(e){return e&&(Ge&&e[Ke]?e[Ke]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var pn=!{toString:null}.propertyIsEnumerable("toString"),vn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function mn(e){var n=typeof e;if(n===ae||n===ue&&null!==e||me("objKeys called on non-object"),!pn&&He)return He(e);var t,r=[];for(t in e)e&&ge.call(e,t)&&r.push(t);if(pn)for(var i=vn.length,o=0;o<i;o++)e&&ge.call(e,vn[o])&&r.push(vn[o]);return r}function hn(e,n,t,r){if(Ve)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),Ve(e,n,i),!0}catch(o){}return!1}var yn=We||function(e){return e};function In(){var e=Date;return e.now?e.now():(new e).getTime()}function K(e){return un(e)?e.name:D}function L(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function Cn(e){return!e}function xn(e){return!!e}function F(e){throw Error(e)}function Sn(e,n,t,r,i){var o,a,u;void 0===i&&(i=!0),e&&n&&t&&(i||P(e[n]))&&(e[n]=(o=r,u=a=null,R(i=t)?a=i:u=i,function(){var e=arguments;if(u=a?a():u)return u[o].apply(u,e)}))}function Tn(n,t,e,r){return void 0===r&&(r=!0),n&&t&&on(n)&&z(e)&&j(e,function(e){m(e)&&Sn(n,e,t,e,r)}),n}function bn(e){var t={};return U(e,function(e,n){t[e]=n,P(t[n])||F("["+n+"] exists for "+e),t[n]=e}),yn(t)}function wn(e){return e&&fe?t(fe({},e)):e}var _n="window",Nn="navigator",An="location",En="console",Rn="JSON",Ln="crypto",Fn="msCrypto",Mn="msie",kn="trident/",Dn="XMLHttpRequest",Pn=null,Bn=null,Un=null,On=null;function zn(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!P((new e)[n])}catch(i){}}return r}function v(e){var n=ve();return n&&n[e]?n[e]:e===_n&&jn()?window:null}function jn(){return typeof window===ue&&window}function Kn(){return jn()?window:v(_n)}function qn(){return typeof document===ue&&document?document:v("document")}function Vn(){return!(typeof navigator!==ue||!navigator)}function Wn(){return Vn()?navigator:v(Nn)}function Hn(){return typeof JSON===ue&&JSON||null!==v(Rn)}function Gn(){return Hn()?JSON||v(Rn):null}function Xn(){var e=Wn();return!e||e.userAgent===Bn&&null!==Pn||(e=((Bn=e.userAgent)||D).toLowerCase(),Pn=O(e,Mn)||O(e,kn)),Pn}function q(e){var n=Object[o].toString.call(e),t=D;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Hn()&&(t=Gn().stringify(e)),n+t}function Yn(){return On=null===On?Vn()&&!!Wn().sendBeacon:On}function Jn(e){var n=!1;try{var n=!!v("fetch"),t=v("Request");n&&e&&t&&(n=zn(t,"keepalive"))}catch(r){}return n}function Zn(){return Un=null===Un&&(Un=typeof XDomainRequest!==se)&&$n()?Un&&!zn(v(Dn),"withCredentials"):Un}function $n(){var e=!1;try{e=!!v(Dn)}catch(n){}return e}var Qn,et=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],nt=null;function tt(e){var n=nt;return(n=n||!0===e.disableDbgExt?n:nt||(e=v("Microsoft"),nt=e?e.ApplicationInsights:nt))?n.ChromeDbgExt:null}function rt(e){return e?'"'+e.replace(/\"/g,D)+'"':D}function it(e,n){var t,r=typeof console!==se?console:v(En);r&&(t="log",R(r[t=r[e]?e:t])&&r[t](n))}at.dataType="MessageData";var ot=at;function at(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=D,Hn()&&(t=Gn().stringify(r)),e=(n?" message:"+rt(n):D)+(r?" props:"+rt(t):D);this.message+=e}function ut(e,n){return(e||{}).logger||new st(n)}var st=function Oo(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};h(Oo,this,function(o){function e(e,n){e=r[e];return B(e)?n:e}function a(e,n){var t=tt(r);t&&t.diagLog&&t.diagLog(e,n)}B(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new ot(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";P(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!u[i]&&e<=r&&(o[t](n.message),u[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){it("warn",e),a("warning",e)},o.errorToConsole=function(e){it("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,u[t]?r=!1:u[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(1===e?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new ot(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===e?o.errorToConsole(t):o.warnToConsole(t))))}})};function V(e,n,t,r,i,o){void 0===o&&(o=!1),(e||new st).throwInternal(n,t,r,i,o)}lt.ParentContextKey="parent",lt.ChildrenContextKey="childEvts";var ct=lt;function lt(e,i,n){var t,o=this,a=!1;o.start=In(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},R(i)&&(a=hn(o,"payload",function(){return!t&&R(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===lt.ParentContextKey||e===lt.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===lt.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===lt.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(lt.ChildrenContextKey);if(z(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=In()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&R(i)&&(o.payload=i())}}var ft=function zo(n){this.ctx={},h(zo,this,function(t){t.create=function(e,n,t){return new ct(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&R(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},dt="CoreUtils.doPerf";function gt(e,n,t,r,i){if(e)if(e=R(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(dt);try{if(a=e.create(n(),r,i))return u&&a.setCtx&&(a.setCtx(ct.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(ct.ChildrenContextKey))||(o=[],u.setCtx(ct.ChildrenContextKey,o)),o.push(a))),e.setCtx(dt,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(dt,u)}}t()}var pt=4294967296,vt=4294967295,mt=!1,ht=123456789,yt=987654321;function It(e){e<0&&(e>>>=0),ht=123456789+e&vt,yt=987654321-e&vt,mt=!0}function Ct(){try{var e=2147483647&In();It((Math.random()*pt^e)+e)}catch(n){}}function xt(e){return 0<e?Math.floor(St()/vt*(e+1))>>>0:0}function St(e){var n=0,t=v(Ln)||v(Fn);return 0===(n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&vt:n)&&Xn()&&(mt||Ct(),n=Tt()&vt),0===n&&(n=Math.floor(pt*Math.random()|0)),e||(n>>>=0),n}function Tt(e){var n=((yt=36969*(65535&yt)+(yt>>16)&vt)<<16)+(65535&(ht=18e3*(65535&ht)+(ht>>16)&vt))>>>0&vt|0;return e||(n>>>=0),n}function bt(e){void 0===e&&(e=22);for(var n=St()>>>0,t=0,r=D;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(St()<<2&4294967295|3&n)>>>0,t=0);return r}var wt=n,_t="2.8.0-nightly.2204-04",Nt="."+bt(6),At=0;function Et(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Rt(e,n){return an(e+At+++((n=void 0!==n&&n)?"."+_t:"")+Nt)}function Lt(e){var o={id:Rt("_aiData-"+(e||"")+"."+_t),accept:Et,get:function(e,n,t,r){var i=e[o.id];return i?i[an(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{Et(n)&&!function(e,n,t){if(wt)try{return wt(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(o,e))[an(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var Ft=Lt("plugin");function Mt(e){return Ft.get(e,"state",{},!0)}function kt(t,r){for(var i,e=[],n=null,o=t.getNext();o;){var a=o.getPlugin();a&&(n&&R(n[be])&&R(a[Se])&&n[be](a),(R(a[we])?a[we]():(i=Mt(a))[we])||e.push(a),n=a,o=o.getNext())}j(e,function(e){var n=t.core();e.initialize(t.getCfg(),n,r,t.getNext()),i=Mt(e),e[d]||i[d]||(i[d]=n),i[we]=!0,delete i[E]})}function Dt(e){return e.sort(function(e,n){var t=0,r=R(n[Se]);return R(e[Se])?t=r?e[Te]-n[Te]:1:r&&(t=-1),t})}var Pt="TelemetryPluginChain",Bt="_hasRun",Ut="_getTelCtx",Ot=0;function zt(e,a,t,n){var r=null,i=[],o=(null!==n&&(r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Vt([r],n,t)}(e,a,t,n):e),{_next:function(){var e,n=r;return r=n?n.getNext():null,n||(e=i)&&0<e.length&&(j(e,function(e){try{e.func.call(e.self,e.args)}catch(n){V(t.logger,2,73,"Unexpected Exception during onComplete - "+q(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return ut(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=u(e,null);return e&&!B(e[n])?r=e[n]:a&&!B(a[n])&&(r=a[n]),B(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=o._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i.push({func:e,self:P(n)?o.ctx:n,args:t})}}});function u(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(i=a.extensionConfig)&&e?i[e]:r)?on(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,i=1;for(0<t&&cn(n)&&(r=n,n=e[i]||{},i++),on(n)||(n={});i<t;i++){var o,a,u,s,c=e[i],l=z(c),f=on(c);for(o in c)(l&&o in c||f&&ge.call(c,o))&&(a=c[o],u=void 0,r&&a&&((u=z(a))||ln(a))&&(s=n[o],u?z(s)||(s=[]):ln(s)||(s={}),a=d(r,s,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&U(n,function(e){var n;B(o[e])&&!B(n=a[e])&&(o[e]=n)})):r=n,r}return o}function jt(e,t,r,n){var i=zt(e,t,r,n),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.processTelemetry(e,o),!n},o.createNew=function(e,n){return jt((e=z(e=void 0===e?null:e)?Vt(e,t,r,n):e)||o.getNext(),t,r,n)},o}function Kt(e,t,r,n){var i=zt(e,t,r,n),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.unload(o,e),!n},o.createNew=function(e,n){return Kt((e=z(e=void 0===e?null:e)?Vt(e,t,r,n):e)||o.getNext(),t,r,n)},o}function qt(e,t,r,n){var i=zt(e,t,r,n).ctx;return i.processNext=function(n){return i.iterate(function(e){R(e[_e])&&e[_e](i,n)})},i.createNew=function(e,n){return qt((e=z(e=void 0===e?null:e)?Vt(e,t,r,n):e)||i.getNext(),t,r,n)},i}function Vt(e,n,t,r){var i,o=null,a=!r;return z(e)&&0<e.length&&(i=null,j(e,function(e){(a=!a&&r===e||a)&&e&&R(e.processTelemetry)&&(e=Wt(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Vt([r],n,t):o}function Wt(s,r,i){var c=null,o=R(s.processTelemetry),a=R(s.setNextPlugin),l=s?s.identifier+"-"+s.priority+"-"+Ot++:"Unknown-0-"+Ot++,u={getPlugin:function(){return s},getNext:function(){return c},processTelemetry:function(t,e){var n;f(e=e||(n=(n=s&&R(s[Ut])?s[Ut]():n)||jt(u,r,i)),function(e){if(!s||!o)return!1;var n=Mt(s);return!n[E]&&!n[Ne]&&(a&&s.setNextPlugin(c),s.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(r,i){f(r,function(){var e,n,t=!1;return s&&(e=Mt(s),n=s[d]||e.core,!s||n&&n!==r[d]()||e[E]||(e[d]=null,e[E]=!0,e[we]=!1,s[E]&&!0===s[E](r,i)&&(t=!0))),t},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var e,n,t=!1;return s&&(e=Mt(s),n=s[d]||e.core,!s||n&&n!==r[d]()||e[E]||s[_e]&&!0===s[_e](r,i)&&(t=!0)),t},"update",function(){},!1)||r.processNext(i)},_id:l,_setNext:function(e){c=e}};function f(t,r,i,e,n){var o=!1,a=s?s.identifier:Pt,u=(u=t[Bt])||(t[Bt]={});return t.setNext(c),s&>(t[d](),function(){return a+":"+i},function(){u[l]=!0;try{var e=c?c._id:D;e&&(u[e]=!1),o=r(t)}catch(n){e=!c||u[c._id];e&&(o=!0),c&&e||V(t.diagLog(),1,73,"Plugin ["+s.identifier+"] failed during "+i+" - "+q(n)+", run flags: "+q(u))}},e,n),o}return yn(u)}var Ht="toGMTString",Gt="toUTCString",Xt="cookie",Yt="expires",Jt="enabled",Zt="isCookieUseDisabled",$t="disableCookiesUsage",Qt="_ckMgr",er=null,nr=null,tr=null,rr=qn(),ir={},or={};function ar(e){return!e||e.isEnabled()}function ur(e,i){L(t=(e=e||or).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,rn,B),L(t,"path",e.cookiePath||"/",null,B),B(t[Jt])&&(n=void 0,P(e[Zt])||(n=!e[Zt]),P(e[$t])||(n=!e[$t]),t[Jt]=n);var n,t,c=t,l=c.path||"/",f=c.domain,r=!1!==c[Jt],d={isEnabled:function(){var e=r&&sr(i),n=or[Qt];return e&&n&&d!==n?ar(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return ar(d)&&(o={},-1!=(u=(a=g(n||D)).indexOf(";"))&&(a=g(n.substring(0,u)),o=cr(n.substring(1+u))),L(o,"domain",r||f,xn,P),B(t)||(u=Xn(),P(o[Yt])&&0<(n=In()+1e3*t)&&((r=new Date).setTime(n),L(o,Yt,lr(r,u?Ht:Gt)||lr(r,u?Ht:Gt)||D,xn)),u||L(o,"max-age",D+t,null,P)),(n=typeof location===ue&&location?location:v(An))&&"https:"===n.protocol&&(L(o,"secure",null,null,P),(nr=null===nr?!(m(r=(Wn()||{}).userAgent)&&(O(r,"CPU iPhone OS 12")||O(r,"iPad; CPU OS 12")||O(r,"Macintosh; Intel Mac OS X 10_14")&&O(r,"Version/")&&O(r,"Safari")||O(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Xe)return e[ze](n);var r=e,i=n,t=!1,e=r?r.length:0;if(e&&40<=e&&!(t=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}t=!0}return t}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||O(r,"Chrome/5")||O(r,"Chrome/6")||O(r,"UnrealEngine")&&!O(r,"Chrome")||O(r,"UCBrowser/12")||O(r,"UCBrowser/11"))):nr)&&L(o,"SameSite","None",null,P)),L(o,"path",i||l,null,P),(c.setCookie||dr)(e,fr(a,o)),s=!0),s},get:function(e){var n=D;return ar(d)?(c.getCookie||function(e){var n,t=D;return rr&&(n=rr[Xt]||D,tr!==n&&(ir=cr(n),tr=n),t=g(ir[e]||D)),t})(e):n},del:function(e,n){return!!ar(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return sr(i)&&((t={}).path=n||"/",t[Yt]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Xn()||(n["max-age"]="0"),(c.delCookie||dr)(e,fr(D,n)),r=!0),r}};return d[Qt]=d}function sr(e){if(null===er){er=!1;try{er=(rr||{})[Xt]!==undefined}catch(n){V(e,2,68,"Cannot access document.cookie - "+K(n),{exception:q(n)})}}return er}function cr(e){var t={};return e&&e.length&&j(g(e).split(";"),function(e){var n;(e=g(e||D))&&(-1==(n=e.indexOf("="))?t[e]=null:t[g(e.substring(0,n))]=g(e.substring(1+n)))}),t}function lr(e,n){return R(e[n])?e[n]():null}function fr(e,n){var t=e||D;return U(n,function(e,n){t+="; "+e+(B(n)?D:"="+n)}),t}function dr(e,n){rr&&(rr[Xt]=e+"="+n)}var gr="extensionConfig",pr=500,vr="Channel has invalid priority - ";function mr(e,n,t,r){n&&z(n)&&0<n.length&&(j(n=n.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<pr&&F(vr+e.identifier)}),e.push({queue:yn(n),chain:Vt(n,t,r)}))}function hr(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,r){j(n,function(e){try{e(t,r)}catch(n){V(t.diagLog(),2,73,"Unexpected error calling unload handler - "+q(n))}}),n=[]}}}var yr,Ir="getPlugin",Fe=function jo(){var i,o,s,c,l,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=o||jt(null,{},a.core),e=s&&s[Ir]?n.createNew(null,s[Ir]):n.createNew(null,s)),e}function f(e,n,t){e&&L(e,gr,[],null,B),!t&&n&&(t=n.getProcessTelContext().getNext());var r=s;s&&s[Ir]&&(r=s[Ir]()),a.core=n,o=jt(t,e,n,r)}function d(){i=!1,a.core=null,s=o=null,l=[],c=hr()}d(),h(jo,a,function(u){u.initialize=function(e,n,t,r){f(e,n,r),i=!0},u.teardown=function(e,n){var t,r,i,o;if(u.core&&(!e||u.core===e.core()))return r=!1,i=e||Kt(null,{},u.core,s&&s[Ir]?s[Ir]():s),o=n||{reason:0,isAsync:!1},u[Ae]&&!0===u[Ae](i,o,a)?t=!0:a(),t;function a(){r||(r=!0,c.run(i,n),j(l,function(e){e.rm()}),l=[],!0===t&&i.processNext(o),d())}},u.update=function(e,n){var t,r,i;if(u.core&&(!e||u.core===e.core()))return r=!1,i=e||qt(null,{},u.core,s&&s[Ir]?s[Ir]():s),u._doUpdate&&!0===u._doUpdate(i,n||{reason:0},o)?t=!0:o(),t;function o(){r||(r=!0,f(i.getCfg(),i.core(),i.getNext()))}},u._addHook=function(e){e&&(z(e)?l=l.concat(e):l.push(e))},Sn(u,"_addUnloadCb",function(){return c},"add")}),a.diagLog=function(e){return n(e).diagLog()},a[we]=function(){return i},a.setInitialized=function(e){i=e},a[be]=function(e){s=e},a.processNext=function(e,n){n?n.processNext(e):s&&R(s.processTelemetry)&&s.processTelemetry(e,null)},a._getTelCtx=n},Cr=(Ce(xr,yr=Fe),xr);function xr(){var n,s,e=yr.call(this)||this;function t(){n=0,s=[]}return e.identifier="TelemetryInitializerPlugin",e.priority=199,t(),h(xr,e,function(u,e){u.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return s.push(t),{remove:function(){j(s,function(e,n){if(e.id===t.id)return s.splice(n,1),-1})}}},u.processTelemetry=function(e,n){for(var t=!1,r=s.length,i=0;i<r;++i){var o=s[i];if(o)try{if(!1===o.fn.call(null,e)){t=!0;break}}catch(a){V(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+K(a),{exception:q(a)},!0)}}t||u.processNext(e,n)},u[Ae]=function(){t()}}),e}var Sr="Plugins must provide initialize method",Tr="_notificationManager",br="SDK is still unloading...";function wr(e,n){return new ft(n)}function _r(n,e){var t=!1;return j(e,function(e){if(e===n)return t=!0,-1}),t}function Nr(e,t,r,i){j(e,function(e){if(e&&e[t])if(r)setTimeout(function(){return i(e)},0);else try{i(e)}catch(n){}})}var Ar,Er=function Ko(e){this.listeners=[];var t=!!(e||{}).perfEvtsSendAll;h(Ko,this,function(r){r[Me]=function(e){r.listeners.push(e)},r[ke]=function(e){for(var n=dn(r.listeners,e);-1<n;)r.listeners.splice(n,1),n=dn(r.listeners,e)},r[De]=function(n){Nr(r.listeners,De,!0,function(e){e[De](n)})},r[Pe]=function(n,t){Nr(r.listeners,Pe,!0,function(e){e[Pe](n,t)})},r[Be]=function(n,t){Nr(r.listeners,Be,t,function(e){e[Be](n,t)})},r[Ue]=function(n){!n||!t&&n.isChildEvt()||Nr(r.listeners,Ue,!1,function(e){n.isAsync?setTimeout(function(){return e[Ue](n)},0):e[Ue](n)})}})},Rr=(Ce(Lr,Ar=function qo(){var d,t,g,r,p,i,C,x,S,T,b,w,v,o,m,e,_,N,A=0;h(qo,this,function(h){function a(){d=!1,h.logger=new st({loggingLevelConsole:1}),h.config={},h._extensions=[],o=new Cr,t=[],v=!(x=[]),e=Rt("AIBaseCore",!(m=w=b=T=S=C=i=p=r=g=null)),_=hr()}function y(){return jt(I(),h.config,h)}function s(e,n){r=h.logger,i=pr,o=[],a={},j(p=x,function(e){(B(e)||B(e.initialize))&&F(Sr);var n=e.priority,t=e.identifier;e&&n&&(B(a[n])?a[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+a[n]+", "+t)),(!n||n<i)&&o.push(e)});var r,i,o,a,t,u,s,c,l,f,d,g,p={all:p,core:o},p=(S=p.core,C=null,p.all);function v(){return jt(null,f.config,f,null)}function m(e,n,t,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&j(e,function(e){e&&0<e.queue.length?(e=e.chain,(e=n.createNew(e)).onComplete(o),t(e)):i--}),o()}w=yn((d=p,t=e,u=h,c=[],b&&j(b,function(e){return mr(c,e,t,u)}),d&&(s=[],j(d,function(e){e.priority>pr&&s.push(e)}),mr(c,s,t,u)),c)),T?(-1!=(d=p.indexOf(T))&&p.splice(d,1),-1!=(d=S.indexOf(T))&&S.splice(d,1),T._setQueue(w)):(l=w,f=h,g=!1,(d={identifier:"ChannelControllerPlugin",priority:pr,initialize:function(n,t,r,e){g=!0,j(l,function(e){e&&0<e.queue.length&&kt(jt(e.chain,n,t),r)})},isInitialized:function(){return g},processTelemetry:function(n,e){m(l,e||v(),function(e){e[Ee](n)},function(){e[Ee](n)})},update:function(e,n){var t=n||{reason:0};return m(l,e,function(e){e[Ee](t)},function(){e[Ee](t)}),!0}})[Le]=function(){m(l,v(),function(e){e.iterate(function(e){e[Le]&&e[Le]()})},null)},d[Re]=function(){m(l,v(),function(e){e.iterate(function(e){e[Re]&&e[Re]()})},null)},d[E]=function(e,n){var t=n||{reason:0,isAsync:!1};return m(l,e,function(e){e[Ee](t)},function(){e[Ee](t),g=!1}),!0},d.getChannel=function(n){var t=null;return l&&0<l.length&&j(l,function(e){if(e&&0<e.queue.length&&(j(e.queue,function(e){if(e.identifier===n)return t=e,-1}),t))return-1}),t},d.flush=function(t,e,r,i){var o=1,n=!1,a=null;function u(){o--,n&&0===o&&(a&&(clearTimeout(a),a=null),e&&e(n),e=null)}return i=i||5e3,m(l,v(),function(e){e.iterate(function(e){var n;e.flush&&(o++,n=!1,e.flush(t,function(){n=!0,u()},r)||n||(t&&null==a?a=setTimeout(function(){a=null,u()},i):u()))})},function(){n=!0,u()}),!0},d._setQueue=function(e){l=e},T=d),p.push(T),S.push(T),h._extensions=Dt(p),T.initialize(e,h,p),kt(y(),p),h._extensions=yn(Dt(S||[])).slice(),n&&(d=n,e=qt(I(),h.config,h),h._updateHook&&!0===h._updateHook(e,d)||e.processNext(d))}function c(n){var r=null;return j(h._extensions,function(e){if(e.identifier===n&&e!==T&&e!==o)return r=e,-1}),(r=!r&&T?T.getChannel(n):r)?{plugin:r,setEnabled:function(e){Mt(r)[Ne]=!e},isEnabled:function(){var e=Mt(r);return!e[E]&&!e[Ne]},remove:function(e,n){var t=[r];l(t,{reason:1,isAsync:e=void 0===e||e},function(e){e&&s(h.config,{reason:32,removed:t}),n&&n(e)})}}:null}function I(){var e;return C||(~(e=(S||[]).slice()).indexOf(o)||e.push(o),C=Vt(Dt(e),h.config,h)),C}function l(o,e,n){var t;o&&0<o.length?((t=Kt(Vt(o,h.config,h),h.config,h)).onComplete(function(){var r=!1,t=[],i=(j(x,function(e,n){_r(e,o)?r=!0:t.push(e)}),x=t,[]);b&&(j(b,function(e,n){var t=[];j(e,function(e){_r(e,o)?r=!0:t.push(e)}),i.push(t)}),b=i),n&&n(r)}),t.processNext(e)):n(!1)}function n(){var e=h.logger?h.logger.queue:[];e&&(j(e,function(e){e={name:m||"InternalMessageId: "+e.messageId,iKey:h.config.instrumentationKey,time:fn(new Date),baseType:ot.dataType,baseData:{message:e.message}};h.track(e)}),e.length=0)}function u(e,n,t,r){return T?T.flush(e,n,t||6,r):(n&&n(!1),!0)}function f(e){var n=h.logger;n?V(n,2,73,e):F(e)}a(),h.isInitialized=function(){return d},h.initialize=function(e,n,t,r){v&&F(br),h.isInitialized()&&F("Core should not be initialized more than once"),e&&!B(e.instrumentationKey)||F("Please provide instrumentation key"),g=r,h[Tr]=r,h.config=e||{};var i,o,r=e,r=(!0===r.disableDbgExt&&N&&(g[ke](N),N=null),g&&!N&&!0!==r.disableDbgExt&&(N=function(e){if(!Qn){Qn={};for(var n=0;n<et.length;n++)Qn[et[n]]=function(n,t){return function(){var e=tt(t);e&&(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(et[n],e)}return Qn}(r),g[Me](N)),e);!r.enablePerfMgr&&p&&(p=null),r.enablePerfMgr&&L(h.config,"createPerfMgr",wr),e.extensions=B(e.extensions)?[]:e.extensions,e?!(o=e[gr])&&B(o)&&(o=P(i)?{}:i,e[gr]=o):o=P(i)?{}:i,o.NotificationManager=g,t&&(h.logger=t),(x=[]).push.apply(x,xe(xe([],n),e.extensions)),b=(e||{}).channels,s(e,null),w&&0!==w.length||F("No channels available"),d=!0,h.releaseQueue()},h.getTransmissionControls=function(){var n=[];return w&&j(w,function(e){n.push(e.queue)}),yn(n)},h.track=function(e){L(e,"iKey",h.config.instrumentationKey,null,Cn),L(e,"time",fn(new Date),null,Cn),L(e,"ver","4.0",null,B),!v&&h.isInitialized()?y().processNext(e):t.push(e)},h.getProcessTelContext=y,h.getNotifyMgr=function(){var e;return g||(g=he(((e={})[Me]=function(e){},e[ke]=function(e){},e[De]=function(e){},e[Pe]=function(e,n){},e[Be]=function(e,n){},e)),h[Tr]=g),g},h[Me]=function(e){g&&g[Me](e)},h[ke]=function(e){g&&g[ke](e)},h.getCookieMgr=function(){return i=i||ur(h.config,h.logger)},h.setCookieMgr=function(e){i=e},h.getPerfMgr=function(){return r||p||h.config&&h.config.enablePerfMgr&&R(h.config.createPerfMgr)&&(p=h.config.createPerfMgr(h,h.getNotifyMgr())),r||p||null},h.setPerfMgr=function(e){r=e},h.eventCnt=function(){return t.length},h.releaseQueue=function(){var e;d&&0<t.length&&(e=t,t=[],j(e,function(e){y().processNext(e)}))},h.pollInternalLogs=function(e){m=e||null;e=h.config.diagnosticLogInterval;return e&&0<e||(e=1e4),A&&clearInterval(A),A=setInterval(function(){n()},e)},h.stopPollingInternalLogs=function(){A&&(clearInterval(A),A=0,n())},Tn(h,function(){return o},["addTelemetryInitializer"]),h.unload=function(e,n,t){d||F("SDK is not initialized"),v&&F(br);var r={reason:50,isAsync:e=void 0===e||e,flushComplete:!1},i=Kt(I(),h.config,h);function o(e){r.flushComplete=e,v=!0,_.run(i,r),h.stopPollingInternalLogs(),i.processNext(r)}i.onComplete(function(){a(),n&&n(r)},h),u(e,o,6,t)||o(!1)},h.getPlugin=c,h.addPlugin=function(e,n,t,r){if(!e)return r&&r(!1),void f(Sr);var i=c(e.identifier);if(i&&!n)return r&&r(!1),void f("Plugin ["+e.identifier+"] is already loaded!");var o,a={reason:16};function u(){x.push(e),a.added=[e],s(h.config,a),r&&r(!0)}i?l(o=[i.plugin],{reason:2,isAsync:!!t},function(e){e?(a.removed=o,a.reason|=32,u()):r&&r(!1)}):u()},h.evtNamespace=function(){return e},h.flush=u,Sn(h,"addUnloadCb",function(){return _},"add")})}),Lr);function Lr(){var e=Ar.call(this)||this;return h(Lr,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new st(e),r||new Er(e))},t.track=function(e){gt(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),F("Invalid telemetry item")),B(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)}}),e}var Fr="on",Mr="attachEvent",kr="addEventListener",Dr="detachEvent",Pr="removeEventListener",Br="events",Ur=(Rt("aiEvtPageHide"),Rt("aiEvtPageShow"),/\.[\.]+/g),Or=/[\.]+$/,zr=1,jr=Lt("events"),Kr=/^([^.]*)(?:\.(.+)|)/;function qr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Vr(e,n){n&&(t="",z(n)?(t="",j(n,function(e){(e=qr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=qr(n),t&&(e=(e||"")+(t="."!==t[0]?"."+t:t)));var t,n=Kr.exec(e||"")||[];return{type:n[1],ns:(n[2]||"").replace(Ur,".").replace(Or,"").split(".").sort().join(".")}}function Wr(e,n,t){e=jr.get(e,Br,{},t=void 0===t||t);return e[n]||(e[n]=[])}function Hr(e,n,t,r){e&&n&&n.type&&(e[Pr]?e[Pr](n.type,t,r):e[Dr]&&e[Dr](Fr+n.type,t))}function Gr(e,n,t,r){for(var i=n.length;i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Hr(e,o.evtName,o.handler,o.capture),n.splice(i,1))}}function Xr(e,n){return n?Vr("xx",z(n)?[e].concat(n):[e,n]).ns.split("."):e}function Yr(e,n,t,r,i){void 0===i&&(i=!1);var o,a=!1;if(e)try{var u,s=Vr(n,r),c=s,l=t,f=i,d=!1;(o=e)&&c&&c.type&&l&&(o[kr]?(o[kr](c.type,l,f),d=!0):o[Mr]&&(o[Mr](Fr+c.type,l),d=!0)),(a=d)&&jr.accept(e)&&(u={guid:zr++,evtName:s,handler:t,capture:i},Wr(e,s.type).push(u))}catch(g){}return a}var Jr,Zr=null,$r={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:P,isNullOrUndefined:B,hasOwnProperty:function(e,n){return!(!e||!ge.call(e,n))},isFunction:R,isObject:on,isDate:function(e){return!(!e||"[object Date]"!==Je.call(e))},isArray:z,isError:un,isString:m,isNumber:sn,isBoolean:cn,toISOString:fn,arrForEach:j,arrIndexOf:dn,arrMap:gn,arrReduce:function(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r},strTrim:g,objCreate:he,objKeys:mn,objDefineAccessors:hn,addEventHandler:function(e,n,t){var r=!1,i=Kn(),i=(i&&(r=Yr(i,e,n,t),r=Yr(i.body,e,n,t)||r),qn());return i&&Yr(i,e,n,t)||r},dateNow:In,isIE:Xn,disableCookies:function(){var e,n;(e=ur[Qt]||or[Qt])||(e=ur[Qt]=ur(void 0,void 0),or[Qt]=e),e=e,n=$r._canUseCookies,null===Zr&&(Zr=[],Jr=n,hn($r,"_canUseCookies",function(){return Jr},function(n){Jr=n,j(Zr,function(e){e.setEnabled(n)})})),-1===dn(Zr,e)&&Zr.push(e),cn(n)&&e.setEnabled(n),cn(Jr)&&e.setEnabled(Jr),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Qr,function(e){var n=0|xt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=v("performance");return e&&e.now?e.now():In()},newId:bt,randomValue:xt,random32:St,mwcRandomSeed:function(e){e?It(e):Ct()},mwcRandom32:Tt,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=D,r=0;r<4;r++)t+=n[15&(e=St())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&St())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Qr=/[xy]/g,W=bn({CRITICAL:1,WARNING:2}),H=bn({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105});function ei(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=g(n.toString())).length&&(i=n.substring(0,150),V(e,2,H.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var u=0,s=a;t[s]!==undefined;)u++,s=a.substring(0,147)+(r=void 0,(r="00"+u).substr(r.length-3));a=s}return a}function y(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=g(n)).toString().length>t&&(r=n.toString().substring(0,t),V(e,2,H.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function ni(e,n){return oi(e,n,2048,H.UrlTooLong)}function ti(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),V(e,2,H.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function ri(r,e){var i;return e&&(i={},U(e,function(e,n){if(on(n)&&Hn())try{n=Gn().stringify(n)}catch(t){V(r,2,H.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=y(r,n,8192),e=ei(r,e,i),i[e]=n}),e=i),e}function ii(t,e){var r;return e&&(r={},U(e,function(e,n){e=ei(t,e,r),r[e]=n}),e=r),e}function oi(e,n,t,r){var i;return n&&(n=g(n)).length>t&&(i=n.substring(0,t),V(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var ai="";function ui(e){var n=ai+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=ai+Math.floor(e/6e4)%60,r=ai+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=ai+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t,r=r.length<2?"0"+r:r;return(0<i?i+".":ai)+r+":"+t+":"+n+"."+e}var si="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ci="sampleRate",li="ProcessLegacy",fi="http.method",di="not_specified",gi=bn({LocalStorage:0,SessionStorage:1}),pi=(bn({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function vi(e){try{if(B(ve()))return null;var n=new Date,t=v(e===gi.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function mi(){return hi()?vi(gi.SessionStorage):null}function hi(e){return pi=e||pi===undefined?!!vi(gi.SessionStorage):pi}function yi(e,n){var t=mi();if(null!==t)try{return t.getItem(n)}catch(r){pi=!1,V(e,2,H.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+K(r),{exception:q(r)})}return null}function Ii(e,n,t){var r=mi();if(null!==r)try{r.setItem(n,t)}catch(i){pi=!1,V(e,2,H.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+K(i),{exception:q(i)})}}var Ci=qn()||{},xi=0,Si=[null,null,null,null,null];var Ti=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function bi(e){return~Ti.indexOf(e.toLowerCase())}var wi=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i.name=y(e,t)||di,i.data=n,i.time=fn(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},_i=(Ni.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Ni.dataType="EventData",Ni);function Ni(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this.name=y(e,n)||di,this.properties=ri(e,t),this.measurements=ii(e,r)}var Ai="error",s="stack",Ei="stackDetails",Ri="errorSrc",Li="message",Fi="description";function Mi(e,n){var t=e;return t&&!m(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=R(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function ki(e,n){var t=e;return e&&((t=t&&!m(t)&&(e[Li]||e[Fi])||t)&&!m(t)&&(t=Mi(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function Di(e){return e&&e.src&&m(e.src)&&e.obj&&z(e.obj)}function Pi(e){var e=e||"",n=(e=m(e)?e:m(e[s])?e[s]:""+e).split("\n");return{src:e,obj:n}}function Bi(e){var n,t=null;if(e)try{e[s]?t=Pi(e[s]):e[Ai]&&e[Ai][s]?t=Pi(e[Ai][s]):e.exception&&e.exception[s]?t=Pi(e.exception[s]):Di(e)?t=e:Di(e[Ei])?t=e[Ei]:window&&window.opera&&e[Li]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):m(e)?t=Pi(e):(n=e[Li]||e[Fi]||"",m(e[Ri])&&(n&&(n+="\n"),n+=" from "+e[Ri]),n&&(t=Pi(n)))}catch(r){t=Pi(r)}return t||{src:"",obj:null}}function Ui(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function Oi(e){if(e)try{var n,t;if(!m(e))return n=Ui(e),(t=Mi(e,!1))&&"{}"!==t||(e[Ai]&&(n=Ui(e=e[Ai])),t=Mi(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}ji.CreateAutoException=function(e,n,t,r,i,o,a,u){var s=Ui(i||o||e);return{message:ki(e,s),url:n,lineNumber:t,columnNumber:r,error:Oi(i||o||e),evt:Oi(o||e),typeName:s,stackDetails:Bi(a||i||o),errorSrc:u}},ji.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&gn(e.exceptions,function(e){return Ki.CreateFromInterface(n,e)});return new ji(n,ye(ye({},e),{exceptions:i}),t,r)},ji.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&gn(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},ji.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},ji.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",ji.dataType="ExceptionData",ji.formatError=Oi;var zi=ji;function ji(e,n,t,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,function(e){try{if(on(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions||[],a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),B(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new Ki(e,n,t=t||{})],a.properties=ri(e,t),a.measurements=ii(e,r),i&&(a.severityLevel=i),o&&(a.id=o))}qi.prototype.toInterface=function(){var e=this,n=e.parsedStack instanceof Array&&gn(e.parsedStack,function(e){return e.toInterface()});return{id:e.id,outerId:e.outerId,typeName:e.typeName,message:e.message,hasFullStack:e.hasFullStack,stack:e[s],parsedStack:n||undefined}},qi.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&gn(n.parsedStack,function(e){return Vi.CreateFromInterface(e)})||n.parsedStack;return new qi(e,ye(ye({},n),{parsedStack:t}))};var Ki=qi;function qi(e,n,t){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var c,r,i,o,a,u=this;!function(e){try{if(on(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(r=(o=n)&&o.evt,un(o)||(o=o[Ai]||r||o),u.typeName=y(e,Ui(o))||di,u.message=ti(e,ki(n||o,u.typeName))||di,c=n[Ei]||Bi(n),u.parsedStack=function(){var e=c.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(j(e,function(e){var e=e.toString();Vi.regex.test(e)&&(e=new Vi(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,u=i,s=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(u,s-u+1);break}u=i,s=o,i++,o--}}return n}(),u[s]=(r=e,a="",(o=c)&&(o.obj?j(o.obj,function(e){a+=e+"\n"}):a=o.src||""),(e=a)&&32768<(o=""+e).length&&(i=o.substring(0,32768),V(r,2,H.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),i||e),u.hasFullStack=z(u.parsedStack)&&0<u.parsedStack.length,t&&(t.typeName=t.typeName||u.typeName)):(u.typeName=n.typeName,u.message=n.message,u[s]=n[s],u.parsedStack=n.parsedStack||[],u.hasFullStack=n.hasFullStack)}Wi.CreateFromInterface=function(e){return new Wi(e,null)},Wi.prototype.toInterface=function(){var e=this;return{level:e.level,method:e.method,assembly:e.assembly,fileName:e.fileName,line:e.line}},Wi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wi.baseSize=58;var Vi=Wi;function Wi(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r.sizeInBytes=0,"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=g(t),r.fileName="",r.line=0,(n=t.match(Wi.regex))&&5<=n.length&&(r.method=g(n[2])||r.method,r.fileName=g(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+=Wi.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length}var Hi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Gi=(Xi.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Xi.dataType="MetricData",Xi);function Xi(e,n,t,r,i,o,a,u,s){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var c=new Hi;c.count=0<r?r:undefined,c.max=isNaN(o)||null===o?undefined:o,c.min=isNaN(i)||null===i?undefined:i,c.name=y(e,n)||di,c.value=t,c.stdDev=isNaN(a)||null===a?undefined:a,this.metrics=[c],this.properties=ri(e,u),this.measurements=ii(e,s)}Ji.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ji.dataType="PageviewData";var Yi=Ji;function Ji(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=a&&oi(e,a,128,H.IdTooLong).toString(),u.url=ni(e,t),u.name=y(e,n)||di,isNaN(r)||(u.duration=ui(r)),u.properties=ri(e,i),u.measurements=ii(e,o)}$i.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",$i.dataType="RemoteDependencyData";var Zi=$i;function $i(e,n,t,r,i,o,a,u,s,c,l,f){void 0===s&&(s="Ajax"),this.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};var d,g,p,v=this,t=(v.ver=2,v.id=n,v.duration=ui(i),v.success=o,v.resultCode=a+"",v.type=y(e,s),n=e,i=u,s=a=o=r,a=(u=t)&&0<u.length?(d=u,p=(t=Si)[g=xi],Ci.createElement?t[g]||(p=t[g]=Ci.createElement("a")):p={host:function(){e=null,d&&null!=(t=d.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&m(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&m(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},p.href=d,++g>=t.length&&(g=0),xi=g,g=(t=p).host,a||(null!=t.pathname?("/"!=((p=0===t.pathname.length?"/":t.pathname)[0]||"")&&(p="/"+p),s=t.pathname,y(n,i?i+" "+p:p)):y(n,u))):g=o,{target:g,name:a,data:s});v.data=ni(e,r)||t.data,v.target=y(e,t.target),c&&(v.target="".concat(v.target," | ").concat(c)),v.name=y(e,t.name),v.properties=ri(e,l),v.measurements=ii(e,f)}eo.envelopeType="Microsoft.ApplicationInsights.{0}.Message",eo.dataType="MessageData";var Qi=eo;function eo(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o.message=ti(e,n=n||di),o.properties=ri(e,r),o.measurements=ii(e,i),t&&(o.severityLevel=t)}to.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",to.dataType="PageviewPerformanceData";var no=to;function to(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=ni(e,t),u.name=y(e,n)||di,u.properties=ri(e,i),u.measurements=ii(e,o),a&&(u.domProcessing=a.domProcessing,u.duration=a.duration,u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u.receivedResponse=a.receivedResponse,u.sentRequest=a.sentRequest)}var ro=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};function io(e){var n="ai."+e+".";return function(e){return n+e}}e.SeverityLevel=void 0,(r=e.SeverityLevel||(e.SeverityLevel={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical";var oo,ao,We=io("application"),n=io("device"),r=io("location"),uo=io("operation"),so=io("session"),i=io("user"),a=io("cloud"),co=io("internal"),lo=(ao={applicationVersion:We("ver"),applicationBuild:We("build"),applicationTypeId:We("typeId"),applicationId:We("applicationId"),applicationLayer:We("layer"),deviceId:n("id"),deviceIp:n("ip"),deviceLanguage:n("language"),deviceLocale:n("locale"),deviceModel:n("model"),deviceFriendlyName:n("friendlyName"),deviceNetwork:n("network"),deviceNetworkName:n("networkName"),deviceOEMName:n("oemName"),deviceOS:n("os"),deviceOSVersion:n("osVersion"),deviceRoleInstance:n("roleInstance"),deviceRoleName:n("roleName"),deviceScreenResolution:n("screenResolution"),deviceType:n("type"),deviceMachineName:n("machineName"),deviceVMName:n("vmName"),deviceBrowser:n("browser"),deviceBrowserVersion:n("browserVersion"),locationIp:r("ip"),locationCountry:r("country"),locationProvince:r("province"),locationCity:r("city"),operationId:uo("id"),operationName:uo("name"),operationParentId:uo("parentId"),operationRootId:uo("rootId"),operationSyntheticSource:uo("syntheticSource"),operationCorrelationVector:uo("correlationVector"),sessionId:so("id"),sessionIsFirst:so("isFirst"),sessionIsNew:so("isNew"),userAccountAcquisitionDate:i("accountAcquisitionDate"),userAccountId:i("accountId"),userAgent:i("userAgent"),userId:i("id"),userStoreRegion:i("storeRegion"),userAuthUserId:i("authUserId"),userAnonymousUserAcquisitionDate:i("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:i("authUserAcquisitionDate"),cloudName:a("name"),cloudRole:a("role"),cloudRoleVer:a("roleVer"),cloudRoleInstance:a("roleInstance"),cloudEnvironment:a("environment"),cloudLocation:a("location"),cloudDeploymentUnit:a("deploymentUnit"),internalNodeName:co("nodeName"),internalSdkVersion:co("sdkVersion"),internalAgentVersion:co("agentVersion"),internalSnippet:co("snippet"),internalSdkSrc:co("sdkSrc")},Ce(fo,oo=function(){var t=this;U(ao,function(e,n){t[e]=n})}),fo);function fo(){return oo.call(this)||this}var go,f=new lo,We=function Vo(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(Vo,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(W.WARNING,H.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},po=(Ce(vo,go=We),vo);function vo(e,n){e=go.call(this,e,n)||this;return h(vo,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}Ce(l,mo=We),l.BUFFER_KEY="AI_buffer",l.SENT_BUFFER_KEY="AI_sentBuffer",l.MAX_BUFFER_SIZE=2e3;var mo,ho=l;function l(u,s){var e=mo.call(this,u,s)||this,c=!1;return h(l,e,function(t,n){var e=o(l.BUFFER_KEY),r=o(l.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return j(e,function(e){R(e)||-1!==dn(n,e)||t.push(e)}),t}function o(e){try{var e=s.namePrefix&&s.namePrefix()?s.namePrefix()+"_"+e:e,n=yi(u,e);if(n){var t=Gn().parse(n);if((t=m(t)?Gn().parse(t):t)&&z(t))return t}}catch(r){u.throwInternal(W.CRITICAL,H.FailedToRestoreStorageBuffer," storage key: "+e+", "+K(r),{exception:q(r)})}return[]}function a(e,n){try{var e=s.namePrefix&&s.namePrefix()?s.namePrefix()+"_"+e:e,t=JSON.stringify(n);Ii(u,e,t)}catch(r){Ii(u,e,JSON.stringify([])),u.throwInternal(W.WARNING,H.FailedToSetStorageBuffer," storage key: "+e+", "+K(r)+". Buffer cleared",{exception:q(r)})}}r.length>l.MAX_BUFFER_SIZE&&(r.length=l.MAX_BUFFER_SIZE),a(l.SENT_BUFFER_KEY,[]),a(l.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=l.MAX_BUFFER_SIZE?c||(u.throwInternal(W.WARNING,H.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),c=!0):(n.enqueue(e),a(l.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(l.BUFFER_KEY,t._get()),a(l.SENT_BUFFER_KEY,[]),c=!1},t.markAsSent=function(e){a(l.BUFFER_KEY,t._set(i(e,t._get())));var n=o(l.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>l.MAX_BUFFER_SIZE&&(u.throwInternal(W.CRITICAL,H.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=l.MAX_BUFFER_SIZE),a(l.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(l.SENT_BUFFER_KEY));a(l.SENT_BUFFER_KEY,e)}}),e}var yo="baseType",I="baseData",C="properties",Io="true";function x(e,n,t){L(e,n,t,xn)}function Co(e,t,r){B(e)||U(e,function(e,n){sn(n)?r[e]=n:m(n)?t[e]=n:Hn()&&(t[e]=Gn().stringify(n))})}function xo(t,r){B(t)||U(t,function(e,n){t[e]=n||r})}function So(e,n,t,r){for(var r=new wi(e,r,n),n=(x(r,"sampleRate",t[ci]),(t[I]||{}).startTime&&(r.time=fn(t[I].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},u=e.tags=e.tags||[],s=a.user,s=(s&&(x(o,f.userAuthUserId,s.authId),x(o,f.userId,s.id||s.localId)),a.app),s=(s&&x(o,f.sessionId,s.sesId),a.device),s=(s&&(x(o,f.deviceId,s.id||s.localId),x(o,f.deviceType,s.deviceClass),x(o,f.deviceIp,s.ip),x(o,f.deviceModel,s.model),x(o,f.deviceType,s.deviceType)),e.ext.web),e=(s&&(x(o,f.deviceLanguage,s.browserLang),x(o,f.deviceBrowserVersion,s.browserVer),x(o,f.deviceBrowser,s.browser),x(e=(e=(e=i.data=i.data||{})[I]=e[I]||{})[C]=e[C]||{},"domain",s.domain),x(e,"isManual",s.isManual?Io:null),x(e,"screenRes",s.screenRes),x(e,"userConsent",s.userConsent?Io:null)),a.os),s=(e&&x(o,f.deviceOS,e.name),a.trace),c=(s&&(x(o,f.operationParentId,s.parentID),x(o,f.operationName,y(n,s.name)),x(o,f.operationId,s.traceID)),{}),l=u.length-1;0<=l;l--)U(u[l],function(e,n){c[e]=n}),u.splice(l,1);U(u,function(e,n){c[e]=n});e=ye(ye({},o),c);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(bo.Version)),i.tags=wn(e),t.tags=t.tags||[],wn(r)}function To(e,n){B(n[I])&&e.throwInternal(W.CRITICAL,H.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var bo={Version:"2.8.0-nightly.2204-04"};function wo(e,n,t){To(e,n);var r={},i={},t=(n[yo]!==_i.dataType&&(r.baseTypeSource=n[yo]),n[yo]===_i.dataType?(r=n[I][C]||{},i=n[I].measurements||{}):n[I]&&Co(n[I],r,i),Co(n.data,r,i),B(t)||xo(r,t),n[I].name),t=new _i(e,t,r,i),r=new ro(_i.dataType,t);return So(e,_i.envelopeType,n,r)}var _o=function Wo(f){h(Wo,this,function(e){function c(a,u){var e="__aiCircularRefCheck",s={};if(!a)return f.throwInternal(W.CRITICAL,H.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:u},!0),s;if(a[e])return f.throwInternal(W.WARNING,H.CircularReferenceDetected,"Circular reference detected while serializing object",{name:u},!0),s;if(a.aiDataContract)return a[e]=!0,U(a.aiDataContract,function(e,n){var t=R(n)?1&n():1&n,r=R(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=on(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?l:c)(a[e],e):a[e])!==undefined&&(s[e]=t):f.throwInternal(W.CRITICAL,H.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:u})}),delete a[e],s;if("measurements"===u)s=t(a,"number",u);else if("properties"===u)s=t(a,"string",u);else if("tags"===u)s=t(a,"string",u);else if(z(a))s=l(a,u);else{f.throwInternal(W.WARNING,H.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{Gn().stringify(a),s=a}catch(n){f.throwInternal(W.CRITICAL,H.CannotSerializeObject,n&&R(n.toString)?n.toString():"Error serializing object",null,!0)}}return s}function l(e,n){if(e)if(z(e))for(var t=[],r=0;r<e.length;r++){var i=c(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(W.CRITICAL,H.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},U(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(W.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=c(e,"root");try{return Gn().stringify(e)}catch(n){f.throwInternal(W.CRITICAL,H.CannotSerializeObject,n&&R(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function No(e,n){var t,r,i=void 0;if(void 0===i&&(i=!1),e)try{var o=Vr(null,n),a=!1,u=e,s=function(e){return!(!o.ns&&null!==e.handler)&&(a=!0)};(t=o).type?Gr(u,Wr(u,t.type),t,s):(U(r=jr.get(u,Br,{}),function(e,n){Gr(u,n,t,s)}),0===mn(r).length&&jr.kill(u,Br)),a||Hr(e,o,null,i)}catch(c){}}Eo.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Eo.INT_MAX_VALUE*100},Eo.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Eo.INT_MAX_VALUE=2147483647;var Ao=Eo;function Eo(){}var Ro=function(){var n=new Ao,t=new lo;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Lo=(Fo.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Gi.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Fo);function Fo(e,n){this.INT_MAX_VALUE=2147483647;n=n||ut(null);(100<e||e<0)&&(n.throwInternal(W.WARNING,H.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new Ro}function Mo(e){try{return e.responseText}catch(n){}return null}function ko(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(n={})[_i.dataType]=wo,n[Qi.dataType]=function(e,n,t){To(e,n);var r=n[I].message,i=n[I].severityLevel,o=n[I][C]||{},a=n[I].measurements||{},t=(Co(n.data,o,a),B(t)||xo(o,t),new Qi(e,r,i,o,a)),r=new ro(Qi.dataType,t);return So(e,Qi.envelopeType,n,r)},n[Yi.dataType]=function(e,n,t){To(e,n);var r,i="duration",o=n[I],i=(B(o)||B(o[C])||B(o[C][i])?B(n.data)||B(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[C][i],delete o[C][i]),n[I]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,u=i.uri,s=i[C]||{},c=i.measurements||{},i=(B(i.refUri)||(s.refUri=i.refUri),B(i.pageType)||(s.pageType=i.pageType),B(i.isLoggedIn)||(s.isLoggedIn=i.isLoggedIn.toString()),B(i[C])||U(i[C],function(e,n){s[e]=n}),Co(n.data,s,c),B(t)||xo(s,t),new Yi(e,a,u,r,s,c,o)),t=new ro(Yi.dataType,i);return So(e,Yi.envelopeType,n,t)},n[no.dataType]=function(e,n,t){To(e,n);var r=n[I],i=r.name,o=r.uri||r.url,a=r[C]||{},u=r.measurements||{},t=(Co(n.data,a,u),B(t)||xo(a,t),new no(e,i,o,undefined,a,u,r)),i=new ro(no.dataType,t);return So(e,no.envelopeType,n,i)},n[zi.dataType]=function(e,n,t){To(e,n);var r=n[I].measurements||{},i=n[I][C]||{},t=(Co(n.data,i,r),B(t)||xo(i,t),n[I]),t=zi.CreateFromInterface(e,t,i,r),i=new ro(zi.dataType,t);return So(e,zi.envelopeType,n,i)},n[Gi.dataType]=function(e,n,t){To(e,n);var r=n[I],i=r[C]||{},o=r.measurements||{},t=(Co(n.data,i,o),B(t)||xo(i,t),new Gi(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new ro(Gi.dataType,t);return So(e,Gi.envelopeType,n,r)},n[Zi.dataType]=function(e,n,t){To(e,n);var r=n[I].measurements||{},i=n[I][C]||{},t=(Co(n.data,i,r),B(t)||xo(i,t),n[I]);if(B(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[C]&&t[C][fi]?t[C][fi]:"GET",o=new Zi(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new ro(Zi.dataType,o);return So(e,Zi.envelopeType,n,t)};var Do,Po=n,Bo=(Ce(Uo,Do=Fe),Uo.constructEnvelope=function(e,n,t,r){e=n===e.iKey||B(n)?e:ye(ye({},e),{iKey:n});return(Po[e.baseType]||wo)(t,e,r)},Uo);function Uo(){var T,b,w,r,_,N,A,E,R,L,F,M=Do.call(this)||this,k=(M.priority=1001,M.identifier="AppInsightsChannelPlugin",M._senderConfig=ko(),0);return h(Uo,M,function(c,a){function l(e,n,t,r,i,o){var a=null;c._appId||(a=p(o))&&a.appId&&(c._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||u(t))&&!c._senderConfig.isRetryDisabled()&&y(e)?(v(n),V(c.diagLog(),W.WARNING,H.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):c._onError(n,i):L&&!L.isOnline()?c._senderConfig.isRetryDisabled()||(v(n,10),V(c.diagLog(),W.WARNING,H.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!L.isOnline(),". Will retry to send ").concat(n.length," items."))):(u(t),206===e?(a=a||p(o))&&!c._senderConfig.isRetryDisabled()?c._onPartialSuccess(n,a):c._onError(n,i):(T=0,c._onSuccess(n,r)))}function u(e){return!(10<=N)&&!B(e)&&""!==e&&e!==c._senderConfig.endpointUrl()&&(c._senderConfig.endpointUrl=function(){return e},++N,1)}function n(e,n){R?R(e,!1):s(e)}function o(e){var n=Wn(),t=c._buffer,r=c._senderConfig.endpointUrl(),i=c._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),c._onSuccess(e,e.length)),r}function s(e,n){if(z(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(E&&E(t,!0),V(c.diagLog(),W.WARNING,H.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=c._senderConfig.endpointUrl();try{t[si]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),bi(r)&&t.setRequestHeader("Sdk-Context","appId"),j(mn(A),function(e){t.setRequestHeader(e,A[e])}),t.onreadystatechange=function(){return c._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return c._onError(n,I(t),e)};e=c._buffer.batchPayloads(n);t.send(e),c._buffer.markAsSent(n)}function d(e,n){if(z(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;k+t<=65e3?i(e,!1):Yn()?s(e):(E&&E(e,!0),V(c.diagLog(),W.WARNING,H.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function g(e,n){i(e,!0)}function i(t,r){var e=c._senderConfig.endpointUrl(),n=c._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,u=!1,e=(bi(e)&&o.append("Sdk-Context","appId"),j(mn(A),function(e){o.append(e,A[e])}),(i={method:"POST",headers:o,body:i})[si]=!0,r||(n=i.keepalive=!0,k+=a),new Request(e,i));try{e[si]=!0}catch(s){}c._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(k-=a,a=0),u||(u=!0,n.ok?n.text().then(function(e){l(n.status,t,n.url,t.length,n.statusText,e)}):c._onError(t,n.statusText))})["catch"](function(e){r||(k-=a,a=0),u||(u=!0,c._onError(t,e.message))})}catch(s){u||c._onError(t,q(s))}n&&!u&&(u=!0,c._onSuccess(t,t.length))}function p(e){try{if(e&&""!==e){var n=Gn().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){V(c.diagLog(),W.CRITICAL,H.InvalidBackendResponse,"Cannot parse the response. "+K(t),{response:e})}return null}function v(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=c._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=T<=1?10:(e=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=In()+1e3*n;b=e,m()}}function m(){var e;r||w||(e=b?Math.max(0,b-In()):0,e=Math.max(c._senderConfig.maxBatchInterval(),e),r=setTimeout(function(){r=null,c.triggerSend(!0,null,1)},e))}function h(){clearTimeout(r),b=r=null}function y(e){return 408===e||429===e||500===e||503===e}function I(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Mo(e)||e.response||"":n}function C(n,e){var t=c._buffer,r=Kn(),i=new XDomainRequest,r=(i.onload=function(){return c._xdrOnLoad(i,n)},i.onerror=function(e){return c._onError(n,x(i),e)},r&&r.location&&r.location.protocol||"");if(c._senderConfig.endpointUrl().lastIndexOf(r,0))return V(c.diagLog(),W.WARNING,H.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=c._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function x(e,n){return e?"XDomainRequest,Response:"+Mo(e)||"":n}function S(e,n){var t="getNotifyMgr",t=c.core[t]?c.core[t]():c.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){V(c.diagLog(),W.CRITICAL,H.NotificationException,"send request notification failed: "+K(r),{exception:q(r)})}}function t(){c._sender=null,c._buffer=null,c._appId=null,c._sample=null,w=!(A={}),k=N=T=0,F=R=E=_=r=b=L=null}t(),c.pause=function(){h(),w=!0},c.resume=function(){w&&(w=!1,b=null,c._buffer.size()>c._senderConfig.maxBatchSizeInBytes()&&c.triggerSend(!0,null,10),m())},c.flush=function(e,n,t){if(void 0===e&&(e=!0),!w){h();try{c.triggerSend(e,null,t||1)}catch(r){V(c.diagLog(),W.CRITICAL,H.FlushFailed,"flush failed, telemetry will not be collected: "+K(r),{exception:q(r)})}}},c.onunloadFlush=function(){if(!w)if(!1!==c._senderConfig.onunloadDisableBeacon()&&!1!==c._senderConfig.isBeaconApiDisabled()||!Yn())c.flush();else try{c.triggerSend(!0,n,2)}catch(e){V(c.diagLog(),W.CRITICAL,H.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+K(e),{exception:q(e)})}},c.addHeader=function(e,n){A[e]=n},c.initialize=function(e,n,t,r){c.isInitialized()&&V(c.diagLog(),W.CRITICAL,H.SenderNotInitialized,"Sender is already initialized"),a.initialize(e,n,t,r);var i=c._getTelCtx(),o=c.identifier,t=(_=new _o(n.logger),b=null,T=0,c._sender=null,N=0,c.diagLog()),r=(F=Xr(Rt("Sender"),n.evtNamespace&&n.evtNamespace()),L=function(e){var n,t=qn(),r=Wn(),i=!1,o=!0,a=Xr(Rt("OfflineListener"),e);try{u(Kn())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!B(r.onLine)&&(o=r.onLine)}catch(l){i=!1}function u(e){var n=!1;return e&&(n=Yr(e,"online",s,a))&&Yr(e,"offline",c,a),n}function s(){o=!0}function c(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!B(r.onLine)&&(e=r.onLine),e},isListening:function(){return i},unload:function(){var e=Kn();e&&i&&(No(e,a),t&&!P((e=t.body||t).ononline)&&No(e,a),i=!1)}}}(F),U(ko(),function(e,n){c._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),c._buffer=new(c._senderConfig.enableSessionStorageBuffer()&&hi()?ho:po)(t,c._senderConfig),c._sample=new Lo(c._senderConfig.samplingPercentage(),t),!B(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||V(t,W.CRITICAL,H.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!bi(c._senderConfig.endpointUrl())&&c._senderConfig.customHeaders()&&0<c._senderConfig.customHeaders().length&&j(c._senderConfig.customHeaders(),function(e){M.addHeader(e.header,e.value)}),c._senderConfig),n=null;!r.disableXhr()&&Zn()?n=C:!r.disableXhr()&&$n()&&(n=f),!n&&Jn()&&(n=g),E=n||f,!r.isBeaconApiDisabled()&&Yn()&&(n=s),c._sender=n||f,R=!r.onunloadDisableFetch()&&Jn(!0)?d:Yn()?s:!r.disableXhr()&&Zn()?C:!r.disableXhr()&&$n()?f:E},c.processTelemetry=function(e,t){t=c._getTelCtx(t);try{if(c._senderConfig.disableTelemetry())return;if(!e)return void V(t.diagLog(),W.CRITICAL,H.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void V(t.diagLog(),W.CRITICAL,H.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!c._sender)return void V(t.diagLog(),W.CRITICAL,H.SenderNotInitialized,"Sender was not initialized");if(!c._sample.isSampledIn(e))return void V(t.diagLog(),W.WARNING,H.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:c._sample.sampleRate});e[ci]=c._sample.sampleRate;var n=c._senderConfig.convertUndefined()||undefined,r=e.iKey||c._senderConfig.instrumentationKey(),i=Uo.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void V(t.diagLog(),W.CRITICAL,H.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[li]&&(j(e.tags[li],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){V(t.diagLog(),W.CRITICAL,H.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+K(n),{exception:q(n)},!0)}}),delete e.tags[li]),o)return;var a=_.serialize(i),u=c._buffer;u.size()+a.length>c._senderConfig.maxBatchSizeInBytes()&&c.triggerSend(!0,null,10),u.enqueue(a),m()}catch(s){V(t.diagLog(),W.WARNING,H.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+K(s),{exception:q(s)})}c.processNext(e,t)},c._xhrReadyStateChange=function(e,n,t){4===e.readyState&&l(e.status,n,e.responseURL,t,I(e),Mo(e)||e.response)},c.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!w)try{var r,i=c._buffer;c._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),S(t||0,e),n?n.call(M,r,e):c._sender(r,e)),h()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Wn()||{})?(n.userAgent||D).toLowerCase():D)||D).toLowerCase();if(O(n,Mn))return e=qn()||{},Math.max(parseInt(n.split(Mn)[1]),e.documentMode||0);if(O(n,kn)){e=parseInt(n.split(kn)[1]);if(e)return e+4}return null}();(!i||9<i)&&V(c.diagLog(),W.CRITICAL,H.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+K(o),{exception:q(o)})}},c._doTeardown=function(e,n){c.onunloadFlush(),L.unload(),t()},c._onError=function(e,n,t){V(c.diagLog(),W.WARNING,H.OnError,"Failed to send telemetry.",{message:n}),c._buffer.clearSent(e)},c._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],u=e.splice(a.index,1)[0];(y(a.statusCode)?r:t).push(u)}0<e.length&&c._onSuccess(e,n.itemsAccepted),0<t.length&&c._onError(t,I(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(v(r),V(c.diagLog(),W.WARNING,H.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},c._onSuccess=function(e,n){c._buffer.clearSent(e)},c._xdrOnLoad=function(e,n){var t=Mo(e);!e||t+""!="200"&&""!==t?(t=p(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!c._senderConfig.isRetryDisabled()?c._onPartialSuccess(n,t):c._onError(n,x(e)):(T=0,c._onSuccess(n,0))}}),M}r=function Ho(t){var r=new Rr;(B(t)||B(t.instrumentationKey))&&F("Invalid input configuration"),h(Ho,this,function(e){function n(){var e=[],n=new Bo;e.push(n),r.initialize(this.config,e),n.initialize(this.config,r,e),r.pollInternalLogs()}e.config=t,e.getSKUDefaults(),n(),e.initialize=n,e.getSKUDefaults=function(){e.config.diagnosticLogInterval=e.config.diagnosticLogInterval&&0<e.config.diagnosticLogInterval?e.config.diagnosticLogInterval:1e4},Tn(e,r,["track","flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb"])})},e.AppInsightsCore=Rr,e.ApplicationInsights=r,e.CoreUtils=$r,e.Sender=Bo,e._InternalMessageId=H,e.arrForEach=j,e.isNullOrUndefined=B,e.proxyFunctions=Tn,e.throwError=F,uo=e,so="__esModule",i={value:!0},a=Object.defineProperty;if(a)try{return void a(uo,so,i)}catch(Go){}typeof i.value!==undefined&&(uo[so]=i.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=aib.2.min.js.map
|