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