@microsoft/applicationinsights-web-basic 2.7.3 → 2.7.4-nightly.2202-03
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.7.4-nightly.2202-03.integrity.json +26 -0
- package/browser/{aib.2.7.3.js → aib.2.7.4-nightly.2202-03.js} +119 -83
- package/browser/aib.2.7.4-nightly.2202-03.js.map +1 -0
- package/browser/aib.2.7.4-nightly.2202-03.min.js +6 -0
- package/browser/aib.2.7.4-nightly.2202-03.min.js.map +1 -0
- package/browser/aib.2.js +118 -82
- 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.d.ts +1 -1
- package/dist/applicationinsights-web-basic.js +118 -82
- 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 +1 -1
- package/dist-esm/index.js +1 -1
- package/package.json +60 -57
- package/browser/aib.2.7.3.integrity.json +0 -26
- package/browser/aib.2.7.3.js.map +0 -1
- package/browser/aib.2.7.3.min.js +0 -6
- package/browser/aib.2.7.3.min.js.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Application Insights JavaScript Web SDK - Basic, 2.7.4-nightly.2202-03
|
|
3
|
+
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
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,m=u.defineProperty,v=l[s],y=null;function I(e){return void 0===e&&(e=!0),y&&e||(typeof globalThis!==i&&globalThis&&(y=globalThis),typeof self!==i&&self&&(y=self),typeof window!==i&&window&&(y=window),typeof global!==i&&global&&(y=global)),y}function C(e){throw new TypeError(e)}function S(e){if(h)return h(e);if(null==e)return{};var n=typeof e;function t(){}return n!==g&&n!==a&&C("Object prototype may only be an Object:"+e),t[o]=e,new t}(I()||{}).Symbol,(I()||{}).Reflect;var x=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},T=function(e,n){return(T=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 e(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&C("Class extends value "+n+" is not a constructor or null"),T(e,n),e[o]=null===n?S(n):(t[o]=n[o],new t)}function w(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var b="constructor",N="prototype",_="function",R="_dynInstFuncs",A="_isDynProxy",L="_dynClass",E="_dynInstChk",F=E,B="_dfOpts",U="_unknown_",O="__proto__",z="useBaseInst",j="setInstFuncs",K=Object,q=K.getPrototypeOf,V=0;function W(e,n){return e&&K[N].hasOwnProperty.call(e,n)}function G(e){return e&&(e===K[N]||e===Array[N])}function H(e){return G(e)||e===Function[N]}function X(e){if(e){if(q)return q(e);e=e[O]||e[N]||(e[b]?e[b][N]:null);if(e)return e}return null}function Y(e,n){var t=[],r=K.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&W(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function J(e,n,t){return n!==b&&typeof e[n]===_&&(t||W(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function Q(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function $(e,n){return W(e,N)?e.name||n||U:((e||{})[b]||{}).name||n||U}function ee(e,r,n,t){W(e,N)||Z("theClass is an invalid class definition.");var c,i,o,a,f,d,s=e[N],u=(function(e){if(q)for(var n=[],t=X(r);t&&!H(t)&&!Q(n,t);){if(t===e)return 1;n.push(t),t=X(t)}}(s)||Z("["+$(e)+"] is not in class hierarchy of ["+$(r)+"]"),null),e=(W(s,L)?u=s[L]:(u="_dynCls$"+$(e,"_")+"$"+V,V++,s[L]=u),ee[B]),l=!!e[z],g=(l&&t&&t[z]!==undefined&&(l=!!t[z]),i={},Y(c=r,function(e){!i[e]&&J(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[A]&&o&&!1!==(r=e[R]||{})[F]&&(i=(r[n[L]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(Y(t,function(e){i[e]=r(n,t,e)}),X(e)),s=[];a&&!H(a)&&!Q(s,a);)Y(a,function(e){!i[e]&&J(a,e,!q)&&(i[e]=r(n,a,e))}),s.push(a),a=X(a);return i}(s,r,g,l)),!!q&&!!e[j]);o=s,n=u,a=r,f=g,e=!1!==(l=l&&t?!!t[j]:l),G(o)||(s=a[R]=a[R]||{},d=s[n]=s[n]||{},!1!==s[F]&&(s[F]=!!e),Y(a,function(e){var t,r,i;J(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],W(o,e)&&(!o[e]||o[e][A])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&W(t,L)){var i=e[R]||{};if((r=(i[t[L]]||{})[n])||Z("Missing ["+n+"] "+_),!r[E]&&!1!==i[F]){for(var o=!W(e,n),a=X(e),s=[];o&&a&&!H(a)&&!Q(s,a);){var u=a[n];if(u){o=u===c;break}s.push(a),a=X(a)}try{o&&(e[n]=r),r[E]=1}catch(l){i[F]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?X(t)[e]:n)!==_&&Z("["+e+"] is not a "+_),n)).apply(this,arguments)})[A]=1,i)))}))}ee[B]={setInstFuncs:!0,useBaseInst:!0},(n=M=M||{})[n.CRITICAL=1]="CRITICAL",n[n.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},ne="attachEvent",te="addEventListener",re="toISOString",ie="endsWith",oe="indexOf",ae="trim",se="toString",ue=m,n=(u.freeze,u.seal,String[o]),le=n[ae],ce=n[ie],fe=(n.startsWith,Date[o][re]),de=Array.isArray;function ge(e){return l[se].call(e)}function pe(e){return e===undefined||typeof e===i}function D(e){return null===e||pe(e)}function he(e){return!D(e)}function me(e){return!(!e||typeof e!==g)}function d(e){return!(!e||typeof e!==a)}function ve(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!D(e))try{D(e[te])?D(e[ne])||(e[ne]("on"+n,t),i=!0):(e[te](n,t,r),i=!0)}catch(o){}return i}function ye(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function Ie(e,n){return!(!e||!n||!~e.indexOf(n))}function Ce(e){return de?de(e):!(!e||"[object Array]"!==ge(e))}function Se(e){return!(!e||"[object Error]"!==ge(e))}function xe(e){return"string"==typeof e}function Te(e){return"number"==typeof e}function we(e){return"boolean"==typeof e}function be(e){if(e){if(fe)return e[re]();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 Ne(e,n,t){if(e){if(e[oe])return e[oe](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 _e(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 Re(e){return e&&(le&&e[ae]?e[ae]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}v[se].call(u);var Ae=!{toString:null}.propertyIsEnumerable("toString"),Le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;if(n===a||n===g&&null!==e||C("objKeys called on non-object"),!Ae&&e.keys)return e.keys;var t,r=[];for(t in e)e&&v.call(e,t)&&r.push(t);if(Ae)for(var i=Le.length,o=0;o<i;o++)e&&v.call(e,Le[o])&&r.push(Le[o]);return r}function Fe(e,n,t,r){if(ue)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),ue(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function ke(e){return Se(e)?e.name:""}function De(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 Pe(e){return!e}function Be(e){return!!e}function Ue(e){throw Error(e)}function Oe(e){return e&&u(p?p({},e):e)}var ze="window",je="navigator",Ke="location",qe="console",Ve="JSON",We="crypto",Ge="msCrypto",He="msie",Xe="trident/",Ye=null,Je=null,Ze=null,Qe=null;function $e(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=!pe((new e)[n])}catch(i){}}return r}function en(e){var n=I();return n&&n[e]?n[e]:e===ze&&nn()?window:null}function nn(){return typeof window===g&&window}function tn(){return nn()?window:en(ze)}function rn(){return typeof document===g&&document?document:en("document")}function on(){return!(typeof navigator!==g||!navigator)}function an(){return on()?navigator:en(je)}function sn(){return typeof JSON===g&&JSON||null!==en(Ve)}function un(){return sn()?JSON||en(Ve):null}function ln(){var e=an();return!e||e.userAgent===Je&&null!==Ye||(e=((Je=e.userAgent)||"").toLowerCase(),Ye=Ie(e,He)||Ie(e,Xe)),Ye}function cn(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":sn()&&(t=un().stringify(e)),n+t}function fn(){return Qe=null===Qe?on()&&!!an().sendBeacon:Qe}function dn(e){var n=!1;try{var n=!!en("fetch"),t=en("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n}function gn(){return Ze=null===Ze&&(Ze="undefined"!=typeof XDomainRequest)&&pn()?Ze&&!$e(en("XMLHttpRequest"),"withCredentials"):Ze}function pn(){var e=!1;try{e=!!en("XMLHttpRequest")}catch(n){}return e}var hn,mn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],vn=null;function yn(e){var n=vn;return(n=n||!0===e.disableDbgExt?n:vn||(e=en("Microsoft"),vn=e?e.ApplicationInsights:vn))?n.ChromeDbgExt:null}function In(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Cn(e,n){var t,r=typeof console!==i?console:en(qe);r&&(t="log",d(r[t=r[e]?e:t])&&r[t](n))}xn.dataType="MessageData";var Sn=xn;function xn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",sn()&&(t=un().stringify(r)),e=(n?" message:"+In(n):"")+(r?" props:"+In(t):"");this.message+=e}function Tn(e,n){return(e||{}).logger||new wn(n)}var wn=function Xi(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,s={};ee(Xi,this,function(o){function e(e,n){e=r[e];return D(e)?n:e}function a(e,n){var t=yn(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 Sn(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole";pe(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){Cn("warn",e),a("warning",e)},o.errorToConsole=function(e){Cn("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 Sn(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))))}})},bn=(Nn.ParentContextKey="parent",Nn.ChildrenContextKey="childEvts",Nn);function Nn(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},d(i)&&(a=Fe(o,"payload",function(){return!t&&d(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Nn.ParentContextKey||e===Nn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Nn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Nn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Nn.ChildrenContextKey);if(Ce(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&d(i)&&(o.payload=i())}}var _n=function Yi(n){this.ctx={},ee(Yi,this,function(t){t.create=function(e,n,t){return new bn(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]}})},Rn="CoreUtils.doPerf";function An(e,n,t,r,i){if(e)if(e=d(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(Rn);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(bn.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(bn.ChildrenContextKey))||(o=[],s.setCtx(bn.ChildrenContextKey,o)),o.push(a))),e.setCtx(Rn,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Rn,s)}}return t()}var Ln=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";An(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 - "+cn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function En(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 Ln(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Fn=function Ji(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),En(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=En(a,r)):pe(n)&&(l=En(e,u))),u.core=function(){return t},u.diagLog=function(){return Tn(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 Ji((e=void 0===e?null:e)||l,i,t,n)}},Mn="extensionConfig",kn="getPlugin",m=(Dn.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Dn);function Dn(){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 Fn(null,{},o.core),e=u&&u[kn]?n.createNew(null,u[kn]):n.createNew(null,u)),e},o._baseTelInit=function(e,n,t,r){e&&De(e,Mn,[],null,D),!r&&n&&(r=n.getProcessTelContext().getNext());var i=u;u&&u[kn]&&(i=u[kn]()),o.core=n,s=new Fn(r,e,n,i),a=!0}}var Pn="processTelemetry",Bn="priority",Un="setNextPlugin",On="isInitialized";function zn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&d(r[Un])&&d(o[Pn])&&r[Un](o),d(o[On])&&o[On]()||e.push(o),r=o,i=i.getNext())}P(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function jn(e){return e.sort(function(e,n){var t=0,r=d(n[Pn]);return d(e[Pn])?t=r?e[Bn]-n[Bn]:1:r&&(t=-1),t})}e(Vn,Kn=m),Vn._staticInit=(Fe(n=Vn.prototype,"ChannelControls",n.getChannelControls),void Fe(n,"channelQueue",n.getChannelControls));var Kn,qn=Vn;function Vn(){var u,r=Kn.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&&Ue("Channel has invalid priority"+e.identifier)}),u.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,ee(Vn,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 zn(new Fn(e,n,t),r)}))}}),r}var Wn="toGMTString",Gn="toUTCString",Hn="cookie",Xn="expires",Yn="enabled",Jn="isCookieUseDisabled",Zn="disableCookiesUsage",Qn="_ckMgr",$n="",et=null,nt=null,tt=null,rt=rn(),it={},ot={};function at(e){return!e||e.isEnabled()}function st(e,i){De(t=(e=e||ot).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,he,D),De(t,"path",e.cookiePath||"/",null,D),D(t[Yn])&&(n=void 0,pe(e[Jn])||(n=!e[Jn]),pe(e[Zn])||(n=!e[Zn]),t[Yn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,r=!1!==l[Yn],d={isEnabled:function(){var e=r&&ut(i),n=ot[Qn];return e&&n&&d!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return at(d)&&(o={},-1!=(s=(a=Re(n||$n)).indexOf(";"))&&(a=Re(n.substring(0,s)),o=lt(n.substring(1+s))),De(o,"domain",r||f,Be,pe),D(t)||(s=ln(),!pe(o[Xn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),De(o,Xn,ct(r,s?Wn:Gn)||ct(r,s?Wn:Gn)||$n,Be)),s||De(o,"max-age",$n+t,null,pe)),(n=typeof location===g&&location?location:en(Ke))&&"https:"===n.protocol&&(De(o,"secure",null,null,pe),(nt=null===nt?!(xe(r=(an()||{}).userAgent)&&(Ie(r,"CPU iPhone OS 12")||Ie(r,"iPad; CPU OS 12")||Ie(r,"Macintosh; Intel Mac OS X 10_14")&&Ie(r,"Version/")&&Ie(r,"Safari")||Ie(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[ie](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)")||Ie(r,"Chrome/5")||Ie(r,"Chrome/6")||Ie(r,"UnrealEngine")&&!Ie(r,"Chrome")||Ie(r,"UCBrowser/12")||Ie(r,"UCBrowser/11"))):nt)&&De(o,"SameSite","None",null,pe)),De(o,"path",i||c,null,pe),(l.setCookie||dt)(e,ft(a,o)),u=!0),u},get:function(e){var n=$n;return at(d)?(l.getCookie||function(e){var n,t=$n;return rt&&(n=rt[Hn]||$n,tt!==n&&(it=lt(n),tt=n),t=Re(it[e]||$n)),t})(e):n},del:function(e,n){return!!at(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return ut(i)&&((t={}).path=n||"/",t[Xn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,ln()||(n["max-age"]="0"),(l.delCookie||dt)(e,ft($n,n)),r=!0),r}};return d[Qn]=d}function ut(e){if(null===et){et=!1;try{et=(rt||{})[Hn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,k.CannotAccessCookie,"Cannot access document.cookie - "+ke(n),{exception:cn(n)})}}return et}function lt(e){var t={};return e&&e.length&&P(Re(e).split(";"),function(e){var n;(e=Re(e||$n))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Re(e.substring(0,n))]=Re(e.substring(1+n)))}),t}function ct(e,n){return d(e[n])?e[n]():null}function ft(e,n){var t=e||$n;return ye(n,function(e,n){t+="; "+e+(D(n)?$n:"="+n)}),t}function dt(e,n){rt&&(rt[Hn]=e+"="+n)}var gt="_notificationManager";function pt(e,n){return new _n(n)}var ht,mt=function Zi(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;ee(Zi,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=Ne(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=Ne(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){}}))}})},vt=(e(yt,ht=function Qi(){var n,l,c,t,r,f=!1;ee(Qi,this,function(u){u._extensions=[],l=new qn,u.logger=new wn({loggingLevelConsole:M.CRITICAL}),n=[],u.isInitialized=function(){return f},u.initialize=function(e,n,r,t){u.isInitialized()&&Ue("Core should not be initialized more than once"),e&&!D(e.instrumentationKey)||Ue("Please provide instrumentation key"),c=t,u[gt]=t,u.config=e||{},t&&!0!==u.config.disableDbgExt&&t.addNotificationListener(function(e){if(!hn){hn={};for(var n=0;n<mn.length;n++)hn[mn[n]]=function(n,t){return function(){var e=yn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(mn[n],e)}return hn}(e)),u.config.enablePerfMgr&&De(u.config,"createPerfMgr",pt),e.extensions=D(e.extensions)?[]:e.extensions,e?!(i=e[Mn])&&D(i)&&(i=pe(o)?{}:o,e[Mn]=i):i=pe(o)?{}:o,i.NotificationManager=t,r&&(u.logger=r);var i,o=[],a=(o.push.apply(o,w(w([],n),e.extensions)),o=jn(o),[]),s={};P(o,function(e){(D(e)||D(e.initialize))&&Ue("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=jn(o),u._extensions=o,zn(new Fn([l],e,u),o),zn(new Fn(a,e,u),o),u._extensions=a,0===u.getTransmissionControls().length&&Ue("No channels available"),f=!0,u.releaseQueue()},u.getTransmissionControls=function(){return l.getChannelControls()},u.track=function(e){De(e,"iKey",u.config.instrumentationKey,null,Pe),De(e,"time",be(new Date),null,Pe),De(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 Fn(n,u.config,u)},u.getNotifyMgr=function(){return c||(c=S({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[gt]=c),c},u.getCookieMgr=function(){return r=r||st(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=[])}})}),yt);function yt(){var e=ht.call(this)||this,r=0;return ee(yt,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 wn(e),r||new mt(e))},t.track=function(e){An(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),Ue("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:be(new Date),baseType:Sn.dataType,baseData:{message:e.message}};t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var It=4294967296,Ct=4294967295,St=!1,xt=123456789,Tt=987654321;function wt(e){e<0&&(e>>>=0),xt=123456789+e&Ct,Tt=987654321-e&Ct,St=!0}function bt(){try{var e=2147483647&Me();wt((Math.random()*It^e)+e)}catch(n){}}function Nt(e){return 0<e?Math.floor(_t()/Ct*(e+1))>>>0:0}function _t(e){var n=en(We)||en(Ge),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Ct:ln()?(St||bt(),Rt()&Ct):Math.floor(It*Math.random()|0);return e||(n>>>=0),n}function Rt(e){var n=((Tt=36969*(65535&Tt)+(Tt>>16)&Ct)<<16)+(65535&(xt=18e3*(65535&xt)+(xt>>16)&Ct))>>>0&Ct|0;return e||(n>>>=0),n}var At,Lt=null,Et={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:pe,isNullOrUndefined:D,hasOwnProperty:function(e,n){return!(!e||!v.call(e,n))},isFunction:d,isObject:me,isDate:function(e){return!(!e||"[object Date]"!==ge(e))},isArray:Ce,isError:Se,isString:xe,isNumber:Te,isBoolean:we,toISOString:be,arrForEach:P,arrIndexOf:Ne,arrMap:_e,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:Re,objCreate:S,objKeys:Ee,objDefineAccessors:Fe,addEventHandler:function(e,n){var t=!1,r=tn(),r=(r&&(t=ve(r,e,n),t=ve(r.body,e,n)||t),rn());return r&&ve(r,e,n)||t},dateNow:Me,isIE:ln,disableCookies:function(){var e,n;(e=st[Qn]||ot[Qn])||(e=st[Qn]=st(void 0,void 0),ot[Qn]=e),e=e,n=Et._canUseCookies,null===Lt&&(Lt=[],At=n,Fe(Et,"_canUseCookies",function(){return At},function(n){At=n,P(Lt,function(e){e.setEnabled(n)})})),-1===Ne(Lt,e)&&Lt.push(e),we(n)&&e.setEnabled(n),we(At)&&e.setEnabled(At),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ft,function(e){var n=0|Nt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=en("performance");return e&&e.now?e.now():Me()},newId:function(e){void 0===e&&(e=22);for(var n=_t()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(_t()<<2&4294967295|3&n)>>>0,t=0);return r},randomValue:Nt,random32:_t,mwcRandomSeed:function(e){e?wt(e):bt()},mwcRandom32:Rt,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=_t())]+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&_t())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Ft=/[xy]/g;function Mt(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=Re(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 kt(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=Re(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 Dt(e,n){return Ot(e,n,2048,k.UrlTooLong)}function Pt(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 Bt(r,e){var i;return e&&(i={},ye(e,function(e,n){if(me(n)&&sn())try{n=un().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,k.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=kt(r,n,8192),e=Mt(r,e,i),i[e]=n}),e=i),e}function Ut(t,e){var r;return e&&(r={},ye(e,function(e,n){e=Mt(t,e,r),r[e]=n}),e=r),e}function Ot(e,n,t,r){var i;return n&&(n=Re(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 zt(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 jt,Kt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",qt="sampleRate",Vt="ProcessLegacy",Wt="http.method",Gt="not_specified",Ht=((n=jt=jt||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",undefined);function Xt(e){try{if(D(I()))return null;var n=new Date,t=en(e===jt.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 Yt(){return Jt()?Xt(jt.SessionStorage):null}function Jt(){return Ht=Ht===undefined?!!Xt(jt.SessionStorage):Ht}function Zt(e,n){var t=Yt();if(null!==t)try{return t.getItem(n)}catch(r){Ht=!1,e.throwInternal(M.WARNING,k.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+ke(r),{exception:cn(r)})}return null}function Qt(e,n,t){var r=Yt();if(null!==r)try{return r.setItem(n,t),1}catch(i){Ht=!1,e.throwInternal(M.WARNING,k.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+ke(i),{exception:cn(i)})}}var $t=rn()||{},er=0,nr=[null,null,null,null,null];var tr=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function rr(e){return~tr.indexOf(e.toLowerCase())}e(or,ir=function(){});var ir,n=or;function or(){return ir.call(this)||this}e(ur,ar=function(){this.ver=1,this.sampleRate=100,this.tags={}});var ar,sr=ur;function ur(e,n,t){var r=ar.call(this)||this;return r.name=kt(e,t)||Gt,r.data=n,r.time=be(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var lr,t=function(){this.ver=2,this.properties={},this.measurements={}},cr=(e(fr,lr=t),fr.envelopeType="Microsoft.ApplicationInsights.{0}.Event",fr.dataType="EventData",fr);function fr(e,n,t,r){var i=lr.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=kt(e,n)||Gt,i.properties=Bt(e,t),i.measurements=Ut(e,r),i}var dr="error",gr="stack",pr="stackDetails",hr="errorSrc",mr="message",vr="description";function yr(e,n){var t=e;return t&&!xe(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 Ir(e,n){var t=e;return e&&((t=t&&!xe(t)&&(e[mr]||e[vr])||t)&&!xe(t)&&(t=yr(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 Cr(e){return e&&e.src&&xe(e.src)&&e.obj&&Ce(e.obj)}function Sr(e){var e=e||"",n=(e=xe(e)?e:xe(e[gr])?e[gr]:""+e).split("\n");return{src:e,obj:n}}function xr(e){var n,t=null;if(e)try{e[gr]?t=Sr(e[gr]):e[dr]&&e[dr][gr]?t=Sr(e[dr][gr]):e.exception&&e.exception[gr]?t=Sr(e.exception[gr]):Cr(e)?t=e:Cr(e[pr])?t=e[pr]:window&&window.opera&&e[mr]?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):xe(e)?t=Sr(e):(n=e[mr]||e[vr]||"",xe(e[hr])&&(n&&(n+="\n"),n+=" from "+e[hr]),n&&(t=Sr(n)))}catch(r){t=Sr(r)}return t||{src:"",obj:null}}function Tr(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 wr(e){if(e)try{var n,t;if(!xe(e))return n=Tr(e),(t=yr(e,!1))&&"{}"!==t||(e[dr]&&(n=Tr(e=e[dr])),t=yr(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}e(_r,br=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),_r.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=Tr(i||o||e);return{message:Ir(e,u),url:n,lineNumber:t,columnNumber:r,error:wr(i||o||e),evt:wr(o||e),typeName:u,stackDetails:xr(a||i||o),errorSrc:s}},_r.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&_e(e.exceptions,function(e){return Ar.CreateFromInterface(n,e)});return new _r(n,x(x({},e),{exceptions:i}),t,r)},_r.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&&_e(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},_r.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},_r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",_r.dataType="ExceptionData",_r.formatError=wr;var br,Nr=_r;function _r(e,n,t,r,i,o){var a=br.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(me(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 Ar(e,n,t=t||{})],a.properties=Bt(e,t),a.measurements=Ut(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}e(Lr,Rr=function(){this.hasFullStack=!0,this.parsedStack=[]}),Lr.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_e(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[gr],parsedStack:e||undefined}},Lr.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&_e(n.parsedStack,function(e){return Mr.CreateFromInterface(e)})||n.parsedStack;return new Lr(e,x(x({},n),{parsedStack:t}))};var Rr,Ar=Lr;function Lr(e,n,t){var l,r,i,o,a,s=Rr.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(me(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[gr]=n[gr],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,Se(o)||(o=o[dr]||r||o),s.typeName=kt(e,Tr(o))||Gt,s.message=Pt(e,Ir(n||o,s.typeName))||Gt,l=n[pr]||xr(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();Mr.regex.test(e)&&(e=new Mr(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[gr]=(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=Ce(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}e(kr,Er=function(){}),kr.CreateFromInterface=function(e){return new kr(e,null)},kr.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},kr.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,kr.baseSize=58;var Er,Fr,Mr=kr;function kr(e,n){var t,r=Er.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=Re(t),r.fileName="",r.line=0,(n=t.match(kr.regex))&&5<=n.length&&(r.method=Re(n[2])||r.method,r.fileName=Re(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+=kr.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}Fr=0,e(Br,Dr=function(){this.kind=Fr});var Dr,Pr=Br;function Br(){var e=null!==Dr&&Dr.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}e(zr,Ur=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),zr.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",zr.dataType="MetricData";var Ur,Or=zr;function zr(e,n,t,r,i,o,a,s,c){var u=Ur.call(this)||this,l=(u.aiDataContract={ver:1,metrics:1,properties:0},new Pr);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=kt(e,n)||Gt,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,u.metrics=[l],u.properties=Bt(e,s),u.measurements=Ut(e,c),u}e(Kr,jr=t);var jr,t=Kr;function Kr(){var e=jr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}e(Wr,qr=t),Wr.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Wr.dataType="PageviewData";var qr,Vr=Wr;function Wr(e,n,t,r,i,o,a){var s=qr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Ot(e,a,128,k.IdTooLong).toString(),s.url=Dt(e,t),s.name=kt(e,n)||Gt,isNaN(r)||(s.duration=zt(r)),s.properties=Bt(e,i),s.measurements=Ut(e,o),s}e(Xr,Gr=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Xr.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Xr.dataType="RemoteDependencyData";var Gr,Hr=Xr;function Xr(e,n,t,c,r,f,i,o,a,d,g,p){void 0===a&&(a="Ajax");var h,s,u,l=Gr.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=zt(r),l.success=f,l.resultCode=i+"",l.type=kt(e,a),n=e,r=o,a=i=f=c,i=(o=t)&&0<o.length?(h=o,u=(t=nr)[s=er],$t.createElement?t[s]||(u=t[s]=$t.createElement("a")):u={host:function(){e=null,!h||null!=(t=h.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&xe(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&&xe(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},u.href=h,++s>=t.length&&(s=0),er=s,s=(t=u).host,i||(null!=t.pathname?("/"!=((u=0===t.pathname.length?"/":t.pathname)[0]||"")&&(u="/"+u),a=t.pathname,kt(n,r?r+" "+u:u)):kt(n,o))):s=f,{target:s,name:i,data:a});return l.data=Dt(e,c)||t.data,l.target=kt(e,t.target),d&&(l.target="".concat(l.target," | ").concat(d)),l.name=kt(e,t.name),l.properties=Bt(e,g),l.measurements=Ut(e,p),l}e(Qr,Yr=function(){this.ver=2,this.properties={},this.measurements={}}),Qr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Qr.dataType="MessageData";var Yr,Jr,Zr=Qr;function Qr(e,n,t,r,i){var o=Yr.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Pt(e,n=n||Gt),o.properties=Bt(e,r),o.measurements=Ut(e,i),t&&(o.severityLevel=t),o}function $r(){var e=Jr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}e($r,Jr=t),e(ti,ei=$r),ti.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",ti.dataType="PageviewPerformanceData";var ei,ni=ti;function ti(e,n,t,r,i,o,a){var s=ei.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Dt(e,t),s.name=kt(e,n)||Gt,s.properties=Bt(e,i),s.measurements=Ut(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}e(oi,ri=n);var ri,ii=oi;function oi(e,n){var t=ri.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function ai(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 si,ui,n=ai("application"),t=ai("device"),li=ai("location"),ci=ai("operation"),fi=ai("session"),di=ai("user"),gi=ai("cloud"),pi=ai("internal"),hi=(ui={applicationVersion:n("ver"),applicationBuild:n("build"),applicationTypeId:n("typeId"),applicationId:n("applicationId"),applicationLayer:n("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:li("ip"),locationCountry:li("country"),locationProvince:li("province"),locationCity:li("city"),operationId:ci("id"),operationName:ci("name"),operationParentId:ci("parentId"),operationRootId:ci("rootId"),operationSyntheticSource:ci("syntheticSource"),operationCorrelationVector:ci("correlationVector"),sessionId:fi("id"),sessionIsFirst:fi("isFirst"),sessionIsNew:fi("isNew"),userAccountAcquisitionDate:di("accountAcquisitionDate"),userAccountId:di("accountId"),userAgent:di("userAgent"),userId:di("id"),userStoreRegion:di("storeRegion"),userAuthUserId:di("authUserId"),userAnonymousUserAcquisitionDate:di("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:di("authUserAcquisitionDate"),cloudName:gi("name"),cloudRole:gi("role"),cloudRoleVer:gi("roleVer"),cloudRoleInstance:gi("roleInstance"),cloudEnvironment:gi("environment"),cloudLocation:gi("location"),cloudDeploymentUnit:gi("deploymentUnit"),internalNodeName:pi("nodeName"),internalSdkVersion:pi("sdkVersion"),internalAgentVersion:pi("agentVersion"),internalSnippet:pi("snippet"),internalSdkSrc:pi("sdkSrc")},e(mi,si=function(){var t=this;ye(ui,function(e,n){t[e]=n})}),mi);function mi(){return si.call(this)||this}var vi,yi=new hi,n=function $i(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},ee($i,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}})},Ii=(e(Ci,vi=n),Ci);function Ci(e,n){e=vi.call(this,e,n)||this;return ee(Ci,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}e(c,Si=n),c.BUFFER_KEY="AI_buffer",c.SENT_BUFFER_KEY="AI_sentBuffer",c.MAX_BUFFER_SIZE=2e3;var Si,xi=c;function c(s,u){var e=Si.call(this,s,u)||this,l=!1;return ee(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!==Ne(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=Zt(s,e);if(n){var t=un().parse(n);if((t=xe(t)?un().parse(t):t)&&Ce(t))return t}}catch(r){s.throwInternal(M.CRITICAL,k.FailedToRestoreStorageBuffer," storage key: "+e+", "+ke(r),{exception:cn(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);Qt(s,e,t)}catch(r){Qt(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,k.FailedToSetStorageBuffer," storage key: "+e+", "+ke(r)+". Buffer cleared",{exception:cn(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 Ti="baseType",f="baseData",wi="properties",bi="true";function Ni(e,n,t){return De(e,n,t,Be)}function _i(e,t,r){D(e)||ye(e,function(e,n){Te(n)?r[e]=n:xe(n)?t[e]=n:sn()&&(t[e]=un().stringify(n))})}function Ri(t,r){D(t)||ye(t,function(e,n){t[e]=n||r})}function Ai(e,n,t,r){for(var r=new sr(e,r,n),n=(Ni(r,"sampleRate",t[qt]),(t[f]||{}).startTime&&(r.time=be(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&&(Ni(o,yi.userAuthUserId,u.authId),Ni(o,yi.userId,u.id||u.localId)),a.app),u=(u&&Ni(o,yi.sessionId,u.sesId),a.device),u=(u&&(Ni(o,yi.deviceId,u.id||u.localId),Ni(o,yi.deviceType,u.deviceClass),Ni(o,yi.deviceIp,u.ip),Ni(o,yi.deviceModel,u.model),Ni(o,yi.deviceType,u.deviceType)),e.ext.web),e=(u&&(Ni(o,yi.deviceLanguage,u.browserLang),Ni(o,yi.deviceBrowserVersion,u.browserVer),Ni(o,yi.deviceBrowser,u.browser),Ni(e=(e=(e=i.data=i.data||{})[f]=e[f]||{})[wi]=e[wi]||{},"domain",u.domain),Ni(e,"isManual",u.isManual?bi:null),Ni(e,"screenRes",u.screenRes),Ni(e,"userConsent",u.userConsent?bi:null)),a.os),u=(e&&Ni(o,yi.deviceOS,e.name),a.trace),c=(u&&(Ni(o,yi.operationParentId,u.parentID),Ni(o,yi.operationName,kt(n,u.name)),Ni(o,yi.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)ye(s[l],function(e,n){c[e]=n}),s.splice(l,1);ye(s,function(e,n){c[e]=n});e=x(x({},o),c);return e[yi.internalSdkVersion]||(e[yi.internalSdkVersion]="javascript:".concat(Ei.Version)),i.tags=Oe(e),t.tags=t.tags||[],Oe(r)}function Li(e,n){D(n[f])&&e.throwInternal(M.CRITICAL,k.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Ei={Version:"2.7.4-nightly.2202-03"};function Fi(e,n,t){Li(e,n);var r={},i={},t=(n[Ti]!==cr.dataType&&(r.baseTypeSource=n[Ti]),n[Ti]===cr.dataType?(r=n[f][wi]||{},i=n[f].measurements||{}):n[f]&&_i(n[f],r,i),_i(n.data,r,i),D(t)||Ri(r,t),n[f].name),t=new cr(e,t,r,i),r=new ii(cr.dataType,t);return Ai(e,cr.envelopeType,n,r)}var Mi=function eo(f){ee(eo,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,ye(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=me(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(Ce(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{un().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(Ce(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={},ye(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 un().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,k.CannotSerializeObject,n&&d(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function ki(){var a=tn(),s=rn(),u=!1,l=!0;ee(ki,this,function(e){try{var n,t;a&&ve(a,"online",r)&&(ve(a,"offline",i),u=!0),s&&(pe((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=an())&&!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=an();return u?e=l:n&&!D(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Di=ki.Offline=new ki,Pi=(Bi.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Bi.INT_MAX_VALUE*100},Bi.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)},Bi.INT_MAX_VALUE=2147483647,Bi);function Bi(){}var Ui=function(){var n=new Pi,t=new hi;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()}},Oi=(zi.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===Or.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},zi);function zi(e,n){this.INT_MAX_VALUE=2147483647;n=n||Tn(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 Ui}function ji(e){try{return e.responseText}catch(n){}return null}function Ki(){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={})[cr.dataType]=Fi,t[Zr.dataType]=function(e,n,t){Li(e,n);var r=n[f].message,i=n[f].severityLevel,o=n[f][wi]||{},a=n[f].measurements||{},t=(_i(n.data,o,a),D(t)||Ri(o,t),new Zr(e,r,i,o,a)),r=new ii(Zr.dataType,t);return Ai(e,Zr.envelopeType,n,r)},t[Vr.dataType]=function(e,n,t){Li(e,n);var r,i="duration",o=n[f],i=(D(o)||D(o[wi])||D(o[wi][i])?D(n.data)||D(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[wi][i],delete o[wi][i]),n[f]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[wi]||{},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[wi])||ye(i[wi],function(e,n){u[e]=n}),_i(n.data,u,l),D(t)||Ri(u,t),new Vr(e,a,s,r,u,l,o)),t=new ii(Vr.dataType,i);return Ai(e,Vr.envelopeType,n,t)},t[ni.dataType]=function(e,n,t){Li(e,n);var r=n[f],i=r.name,o=r.uri||r.url,a=r[wi]||{},s=r.measurements||{},t=(_i(n.data,a,s),D(t)||Ri(a,t),new ni(e,i,o,undefined,a,s,r)),i=new ii(ni.dataType,t);return Ai(e,ni.envelopeType,n,i)},t[Nr.dataType]=function(e,n,t){Li(e,n);var r=n[f].measurements||{},i=n[f][wi]||{},t=(_i(n.data,i,r),D(t)||Ri(i,t),n[f]),t=Nr.CreateFromInterface(e,t,i,r),i=new ii(Nr.dataType,t);return Ai(e,Nr.envelopeType,n,i)},t[Or.dataType]=function(e,n,t){Li(e,n);var r=n[f],i=r[wi]||{},o=r.measurements||{},t=(_i(n.data,i,o),D(t)||Ri(i,t),new Or(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new ii(Or.dataType,t);return Ai(e,Or.envelopeType,n,r)},t[Hr.dataType]=function(e,n,t){Li(e,n);var r=n[f].measurements||{},i=n[f][wi]||{},t=(_i(n.data,i,r),D(t)||Ri(i,t),n[f]);if(D(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[wi]&&t[wi][Wt]?t[wi][Wt]:"GET",o=new Hr(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new ii(Hr.dataType,o);return Ai(e,Hr.envelopeType,n,t)};var qi,Vi=t,Wi=(e(Gi,qi=m),Gi.constructEnvelope=function(e,n,t,r){e=n===e.iKey||D(n)?e:x(x({},e),{iKey:n});return(Vi[e.baseType]||Fi)(t,e,r)},Gi);function Gi(){var T,w,t,F,b,N,_,R=qi.call(this)||this,A=(R.priority=1001,!(R.identifier="AppInsightsChannelPlugin")),L={},E=0;return R._senderConfig=Ki(),ee(Gi,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):Di.isOffline()?l._senderConfig.isRetryDisabled()||(d(n,10),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(Di.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=an(),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(Ce(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[Kt]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),rr(r)&&t.setRequestHeader("Sdk-Context","appId"),P(Ee(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(Ce(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;E+t<=65e3?i(e,!1):fn()?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=(rr(e)&&o.append("Sdk-Context","appId"),P(Ee(L),function(e){o.append(e,L[e])}),(i={method:"POST",headers:o,body:i})[Kt]=!0,r||(n=i.keepalive=!0,E+=a),new Request(e,i));try{e[Kt]=!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,cn(u))}n&&!s&&(s=!0,l._onSuccess(t,t.length))}function f(e){try{if(e&&""!==e){var n=un().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. "+ke(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=Me()+1e3*n;w=e,g()}}function g(){var e;t||A||(e=w?Math.max(0,w-Me()):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:"+ji(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=tn(),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:"+ji(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: "+ke(r),{exception:cn(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: "+ke(e),{exception:cn(e)})}}},l.onunloadFlush=function(){if(!A)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!fn())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: "+ke(e),{exception:cn(e)})}},l.teardown=function(){Ue("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 Mi(n.logger),w=null,T=0,l._sender=null,b=0,l.diagLog()),r=(ye(Ki(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&Jt()?xi:Ii)(t,l._senderConfig),l._sample=new Oi(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),!rr(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()&&gn()?n=C:!r.disableXhr()&&pn()&&(n=u),!n&&dn()&&(n=y),N=n||u,!r.isBeaconApiDisabled()&&fn()&&(n=a),l._sender=n||u,_=!r.onunloadDisableFetch()&&dn(!0)?v:fn()?a:!r.disableXhr()&&gn()?C:!r.disableXhr()&&pn()?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[qt]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=Gi.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[Vt]&&(P(e.tags[Vt],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: "+ke(n),{exception:cn(n)},!0)}}),delete e.tags[Vt]),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: "+ke(u),{exception:cn(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&c(e.status,n,e.responseURL,t,h(e),ji(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=an()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Ie(n,He))return e=rn()||{},Math.max(parseInt(n.split(He)[1]),e.documentMode||0);if(Ie(n,Xe)){e=parseInt(n.split(Xe)[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: "+ke(o),{exception:cn(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=ji(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}Hi.prototype.initialize=function(){this.core=new vt;var e=[],n=new Wi;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},Hi.prototype.track=function(e){this.core.track(e)},Hi.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)})})},Hi.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},Hi.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},Hi.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4};li=Hi;function Hi(e){(D(e)||D(e.instrumentationKey))&&Ue("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}r.AppInsightsCore=vt,r.ApplicationInsights=li,r.CoreUtils=Et,r.Sender=Wi;ci=r,fi="__esModule",di={value:!0},gi=Object.defineProperty;if(gi)try{return void gi(ci,fi,di)}catch(no){}typeof di.value!==undefined&&(ci[fi]=di.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
|
+
//# sourceMappingURL=aib.2.7.4-nightly.2202-03.min.js.map
|